import type { RegistrationOptions, RegistrationResult, AuthenticationApi, Unsubscribe } from "../types.js"; export interface VeloRegistrationResult { status: 'PENDING' | 'ACTIVE'; approvalToken: string; member: unknown; } export interface WixMembersFrontendEdm { authentication?: { register?: (email: string, password: string, options?: RegistrationOptions) => Promise; login: (email: string, password: string) => Promise; logout: () => Promise; applySessionToken: (token: string) => Promise; loggedIn: () => boolean; onLogin: (handler: (currentMember: unknown) => void) => void; sendResetPasswordEmail?: (email: string) => Promise; onLogout: (handler: () => void) => void; }; } export declare class WixVeloAuthenticationApi implements AuthenticationApi { private wixMembersFrontendEdm; constructor(wixMembersFrontendEdm: WixMembersFrontendEdm); register(email: string, password: string, options?: RegistrationOptions): Promise; login(email: string, password: string): Promise; logout(): Promise; applySessionToken(token: string): Promise; sendPasswordResetEmail(email: string, _redirectUri: string): Promise; loggedIn(): boolean; onLogin(handler: () => void): Unsubscribe; onLogout(handler: () => void): Unsubscribe; } //# sourceMappingURL=wix-velo-authentication.d.ts.map