import { NextContextBase } from "../../NextContext"; import { NextUser } from "../../structure/NextUser"; import { NextAuthenticationMethod } from "../NextAuthenticationMethod"; import { NextAuthenticationResult } from "../NextAuthenticationResult"; import { NextAuthenticationValidationCode } from "../NextAuthenticationValidationCode"; type RetrieveUserDelegate = (ctx: NextContextBase, username: string, password: string) => Promise; type WhenCodeGeneratedDelegate = (ctx: NextContextBase, user: NextUser, code: NextAuthenticationValidationCode) => Promise; export declare class NextTwoFactorAuthenticationMethod extends NextAuthenticationMethod { RetrieveUser?: RetrieveUserDelegate; WhenCodeGenerated?: WhenCodeGeneratedDelegate; static methodName: string; secureCodeLength: number; constructor(RetrieveUser?: RetrieveUserDelegate, WhenCodeGenerated?: WhenCodeGeneratedDelegate); login(context: NextContextBase): Promise; logout(context: NextContextBase): Promise; info(context: NextContextBase): Promise; validate(context: NextContextBase): Promise; } export {}; //# sourceMappingURL=NextTwoFactorAuthenticationMethod.d.ts.map