import type { Authenticatable } from '../contracts/Authenticatable.js'; import type { UserProvider } from '../contracts/UserProvider.js'; import { type HashManager } from '../hashing/HashManager.js'; type RetrieveByCredentials = (credentials: Record) => Promise; /** * User provider backed by app-supplied callbacks (ideal for tests and custom stores). */ export declare class CallbackUserProvider implements UserProvider { private readonly hash; private readonly retrieve; /** * @param hash - Password hasher. * @param retrieve - Resolve a user from a credential bag. */ constructor(hash: HashManager, retrieve: RetrieveByCredentials); /** * @inheritdoc */ retrieveById(id: string | number): Promise; /** * @inheritdoc */ retrieveByToken(id: string | number, token: string): Promise; /** * @inheritdoc */ updateRememberToken(user: Authenticatable, token: string): Promise; /** * @inheritdoc */ retrieveByCredentials(credentials: Record): Promise; /** * @inheritdoc */ validateCredentials(user: Authenticatable, credentials: Record): Promise; } export {}; //# sourceMappingURL=CallbackUserProvider.d.ts.map