import { LoginWithMagicLinkConfiguration, LoginWithSmsConfiguration, LoginWithEmailOTPConfiguration, UpdateEmailConfiguration, LoginWithCredentialConfiguration } from '@magic-sdk/types'; import { BaseModule } from './base-module'; export declare const ProductConsolidationMethodRemovalVersions: { 'magic-sdk': string; '@magic-sdk/react-native': string; '@magic-sdk/react-native-bare': string; '@magic-sdk/react-native-expo': string; }; export declare class AuthModule extends BaseModule { /** * Initiate the "magic link" login flow for a user. If the flow is successful, * this method will return a Decentralized ID token (with a default lifespan * of 15 minutes). */ loginWithMagicLink(configuration: LoginWithMagicLinkConfiguration): import("..").PromiEvent void; "email-not-deliverable": () => void; retry: () => void; } & { "device-needs-approval": () => void; "device-verification-email-sent": () => void; "device-verification-link-expired": () => void; "device-approved": () => void; "device-retry": () => void; } & { done: (result: string | null) => void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; /** * Initiate an SMS login flow for a user. If successful, * this method will return a Decentralized ID token (with a default lifespan * of 15 minutes) */ loginWithSMS(configuration: LoginWithSmsConfiguration): import("..").PromiEvent void; "verify-mfa-code": (mfa: string) => void; "lost-device": () => void; "verify-recovery-code": (recoveryCode: string) => void; cancel: () => void; retry: () => void; "sms-otp-sent": () => void; "invalid-sms-otp": () => void; "expired-sms-otp": () => void; "mfa-sent-handle": () => void; "invalid-mfa-otp": () => void; "login-throttled": () => void; "recovery-code-sent-handle": () => void; "invalid-recovery-code": () => void; "recovery-code-success": () => void; } & { "device-needs-approval": () => void; "device-verification-email-sent": () => void; "device-verification-link-expired": () => void; "device-approved": () => void; "device-retry": () => void; } & { done: (result: string | null) => void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; /** * Initiate an Email with OTP login flow for a user. If successful, * this method will return a Decentralized ID token (with a default lifespan * of 15 minutes) */ loginWithEmailOTP(configuration: LoginWithEmailOTPConfiguration): import("..").PromiEvent void; "login-throttled": () => void; "invalid-email-otp": () => void; "invalid-mfa-otp": () => void; "expired-email-otp": () => void; "mfa-sent-handle": () => void; "recovery-code-sent-handle": () => void; "invalid-recovery-code": () => void; "recovery-code-success": () => void; "max-attempts-reached": () => void; "Auth/id-token-created": (idToken: string) => void; "Wallet/wallet-info-fetched": () => void; "verify-email-otp": (otp: string) => void; "verify-mfa-code": (mfa: string) => void; "lost-device": () => void; "verify-recovery-code": (recoveryCode: string) => void; cancel: () => void; } & { "device-needs-approval": () => void; "device-verification-email-sent": () => void; "device-verification-link-expired": () => void; "device-approved": () => void; "device-retry": () => void; } & import("@magic-sdk/types").MfaEventHandlers & { done: (result: string | null) => void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; /** * Log a user in with a special one-time-use credential token. This is * currently used during magic link flows with a configured redirect to * hydrate the user session at the end of the flow. If the flow is successful, * this method will return a Decentralized ID token (with a default lifespan * of 15 minutes). * * If no argument is provided, a credential is automatically parsed from * `window.location.search`. */ loginWithCredential(configuration?: LoginWithCredentialConfiguration): import("..").PromiEvent void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; setAuthorizationToken(jwt: string): import("..").PromiEvent void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; updateEmailWithUI(configuration: UpdateEmailConfiguration): import("..").PromiEvent void; "UpdateEmail/email-updated": () => void; "UpdateEmail/new-email-invalid-email-otp": () => void; "UpdateEmail/new-email-verification-email-not-deliverable": () => void; "UpdateEmail/new-email-verification-email-expired": () => void; "UpdateEmail/new-email-verification-email-sent": () => void; "UpdateEmail/new-email-invalid": () => void; "UpdateEmail/new-email-already-exists": () => void; "UpdateEmail/new-email-verification-cancel": () => void; "UpdateEmail/retry-with-new-email": (email?: string) => void; "UpdateEmail/new-email-verify-otp": (otp: string) => void; } & import("@magic-sdk/types").RecencyCheckEventHandlers & { done: (result: string | null) => void; error: (reason: any) => void; settled: () => void; "closed-by-user": () => void; }>; }