import { HashDrivers } from '@ioc:Adonis/Core/Hash'; /** * Expected shape of the config accepted by the "hashConfig" * method */ declare type HashConfig = { list: { [name: string]: { [K in keyof HashDrivers]: HashDrivers[K]['config'] & { driver: K; }; }[keyof HashDrivers]; }; }; /** * Define config for the Hash module */ export declare function hashConfig(config: T): T; /** * Pull hashers list from the config defined inside the "config/hash.ts" * file */ export declare type InferListFromConfig = { [K in keyof T['list']]: HashDrivers[T['list'][K]['driver']]; }; export {};