import type { UnidyClient } from "../api"; export declare class AuthHelpers { private client; private logger; private refreshTokenPromise; constructor(client: UnidyClient); createSignIn(email: string, password?: string, sendMagicCode?: boolean): Promise; }; sid: string; } | { error_identifier: "brand_connection_required"; sid: string; } | { sid: string; status: "pending_verification" | "authenticated" | "completed"; email: string; expired: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; brands: { name: string; host: string; url: string; display_name: string; colors: { background: string; foreground: string; text: string; }; current: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; logo_url?: string; }[]; connected_to_brand?: boolean; } | { jwt: string; refresh_token: string; sid?: string; } | { enable_resend_after: number; brands: { name: string; host: string; url: string; display_name: string; colors: { background: string; foreground: string; text: string; }; current: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; logo_url?: string; }[]; sid?: string; login_options?: { magic_link: boolean; }; } | { error_identifier: string; enable_resend_after: number; }] | readonly ["connection_failed" | "internal_error" | "schema_validation_error" | "captcha_token_missing" | "captcha_verification_failed" | "captcha_score_too_low" | "account_unconfirmed" | "missing_required_fields" | "brand_connection_required" | "account_not_found" | "invalid_password" | "sign_in_not_found" | "sign_in_expired" | "account_locked" | "magic_code_recently_created", { error_identifier: string; } | { error_identifier: string; errors: string[]; } | { error_identifier: "missing_required_fields"; fields: { salutation?: { required: boolean; label: string; attr_name: string; type: "radio"; radio_options: { label: string; checked: boolean; value?: string | boolean; }[]; locked?: boolean; locked_text?: string; value?: string | boolean; }; first_name?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; last_name?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; email?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; phone_number?: { required: boolean; label: string; attr_name: string; type: "tel"; locked?: boolean; locked_text?: string; value?: string; }; company_name?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; address_line_1?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; address_line_2?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; city?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; postal_code?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; country_code?: { required: boolean; label: string; attr_name: string; type: "select"; options: { value: string; label: string; }[]; locked?: boolean; locked_text?: string; value?: string; }; date_of_birth?: { required: boolean; label: string; attr_name: string; type: "date" | "datetime-local"; locked?: boolean; locked_text?: string; value?: string; }; preferred_language?: { required: boolean; label: string; attr_name: string; type: "text" | "textarea"; locked?: boolean; locked_text?: string; value?: string; }; custom_attributes?: Record; }; sid: string; } | { error_identifier: "brand_connection_required"; sid: string; } | { sid: string; status: "pending_verification" | "authenticated" | "completed"; email: string; expired: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; brands: { name: string; host: string; url: string; display_name: string; colors: { background: string; foreground: string; text: string; }; current: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; logo_url?: string; }[]; connected_to_brand?: boolean; } | { jwt: string; refresh_token: string; sid?: string; } | { enable_resend_after: number; brands: { name: string; host: string; url: string; display_name: string; colors: { background: string; foreground: string; text: string; }; current: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; logo_url?: string; }[]; sid?: string; login_options?: { magic_link: boolean; }; } | { error_identifier: string; enable_resend_after: number; }]>; authenticateWithPassword(password: string): Promise; authenticateWithMagicCode(code: string): Promise; authenticateWithPasskey(): Promise; logout(globalLogout?: boolean, signInId?: string | null, backendSignedIn?: boolean): Promise; refreshToken(): Promise; private static readonly MAX_STALE_REFRESH_RETRIES; private doRefreshToken; extractSidFromUrl(): void; recoverSignInStep(): boolean; checkSignedIn(): Promise; sendMagicCode(): Promise; }; sid: string; } | { error_identifier: "brand_connection_required"; sid: string; } | { sid: string; status: "pending_verification" | "authenticated" | "completed"; email: string; expired: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; brands: { name: string; host: string; url: string; display_name: string; colors: { background: string; foreground: string; text: string; }; current: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; logo_url?: string; }[]; connected_to_brand?: boolean; } | { jwt: string; refresh_token: string; sid?: string; } | { enable_resend_after: number; brands: { name: string; host: string; url: string; display_name: string; colors: { background: string; foreground: string; text: string; }; current: boolean; login_options: { magic_link: boolean; password: boolean; social_logins: string[]; passkey: boolean; social_login_labels?: Record; social_login_icons?: Record; }; logo_url?: string; }[]; sid?: string; login_options?: { magic_link: boolean; }; } | { error_identifier: string; enable_resend_after: number; }]>; resendConfirmationEmail(): Promise; resendInvitationEmail(): Promise; sendResetPasswordEmail(): Promise; resetPassword(): Promise; handleInvitationRedirect(): Promise; handleResetPasswordRedirect(): Promise; acceptInvitation(): Promise; handleSocialAuthRedirect(): void; private clearRedirectSignInId; connectBrand(): Promise; cancelBrandConnect(): Promise; private handleAuthError; private handleMissingFields; private handleAuthSuccess; }