import type { MultiFactorAssertion as ModularMultiFactorAssertion, User } from './types/auth'; import type { MultiFactorInfo, MultiFactorSession, MultiFactorUser as MultiFactorUserType, MultiFactorAssertion } from './types/auth'; import type { AuthInternal } from './types/internal'; type MultiFactorAuthHost = { currentUser: User | null; native: AuthInternal['native']; }; /** * Return a MultiFactorUser instance the gateway to multi-factor operations. */ export declare function multiFactor(auth: MultiFactorAuthHost): MultiFactorUserType; export declare class MultiFactorUser { readonly enrolledFactors: MultiFactorInfo[]; private readonly _auth; constructor(auth: MultiFactorAuthHost, user?: User); getSession(): Promise; /** * Finalize the enrollment process for the given multi-factor assertion. * Optionally set a displayName. This method will reload the current user * profile, which is necessary to see the multi-factor changes. */ enroll(multiFactorAssertion: MultiFactorAssertion | ModularMultiFactorAssertion, displayName?: string | null): Promise; unenroll(enrollmentId: MultiFactorInfo | string): Promise; } export {}; //# sourceMappingURL=multiFactor.d.ts.map