import type { MfaListItem } from '../biz'; declare const MfaSingleton: { currentId: number; activePromises: Map void; reject: (reason?: any) => void; state: "idle" | "pending" | "resolved" | "rejected"; bizFunc?: { pending: boolean; req: (mfaMethod: string, mfaValue: string) => Promise; reqRaw: (mfaMethod: string, mfaValue: string) => Promise<{ raw: Response; }>; getSecKey: (payload: any) => Promise<{ raw: Response; }>; getBizRes: (guardKey: string) => Promise<{ raw: Response; }>; }; }>; generateId(): string; register(id: string, resolve: (value: any) => void, reject: (reason?: any) => void, bizFunc?: { req: (mfaMethod: string, mfaValue: string) => Promise; reqRaw: (mfaMethod: string, mfaValue: string) => Promise; getSecKey: (payload: any) => Promise; getBizRes: (guardKey: string) => Promise; }): void; resolve(id: string, value: any): boolean; reject(id: string, reason?: any): boolean; getState(id: string): "idle" | "pending" | "resolved" | "rejected" | undefined; cleanup(id: string): void; cancelByUser(): void; }; export { MfaSingleton }; export declare const useMFA: () => (mfaMethods: MfaListItem[], paramsJSON?: string, bizFunc?: { req: (mfaMethod: string, mfaValue: string) => Promise; reqRaw: (mfaMethod: string, mfaValue: string) => Promise<{ raw: Response; }>; getSecKey: () => Promise<{ raw: Response; }>; getBizRes: (guardKey: string) => Promise<{ raw: Response; }>; }) => Promise;