/** * AuthMethodInteractor * * A base interface/class for client-side logic to interact with a server * for a specific Auth Method's flow (start, complete). */ export interface AuthPayload { [key: string]: any; } export interface StartAuthResponse { success: boolean; message?: string; data?: any; } export interface CompleteAuthResponse { success: boolean; message?: string; presentationKey?: string; } /** * Abstract client-side interactor for an Auth Method. * * Subclasses only need to set `methodType`; the HTTP calls to * `/auth/start` and `/auth/complete` are handled here. */ export declare abstract class AuthMethodInteractor { abstract methodType: string; /** * Shared POST helper for auth endpoints. */ private postAuth; /** * Start the flow (e.g. request an OTP or create a session). */ startAuth(serverUrl: string, presentationKey: string, payload: AuthPayload): Promise; /** * Complete the flow (e.g. confirm OTP). */ completeAuth(serverUrl: string, presentationKey: string, payload: AuthPayload): Promise; } //# sourceMappingURL=AuthMethodInteractor.d.ts.map