export declare class AuthError extends Error { status: number | undefined; protected __isAuthError: boolean; constructor(message: string, status?: number); } export declare function isAuthError(error: unknown): error is AuthError; export declare class AuthApiError extends AuthError { status: number; constructor(message: string, status: number); toJSON(): { name: string; message: string; status: number; }; } export declare function isAuthApiError(error: unknown): error is AuthApiError; export declare class AuthUnknownError extends AuthError { originalError: unknown; constructor(message: string, originalError: unknown); } export declare class CustomAuthError extends AuthError { name: string; status: number; constructor(message: string, name: string, status: number); toJSON(): { name: string; message: string; status: number; }; } export declare class AuthSessionMissingError extends CustomAuthError { constructor(); } export declare class AuthInvalidTokenResponseError extends CustomAuthError { constructor(); } export declare class AuthInvalidCredentialsError extends CustomAuthError { constructor(message: string); } export declare class AuthImplicitGrantRedirectError extends CustomAuthError { details: { error: string; code: string; } | null; constructor(message: string, details?: { error: string; code: string; } | null); toJSON(): { name: string; message: string; status: number; details: { error: string; code: string; } | null; }; } export declare class AuthPKCEGrantCodeExchangeError extends CustomAuthError { details: { error: string; code: string; } | null; constructor(message: string, details?: { error: string; code: string; } | null); toJSON(): { name: string; message: string; status: number; details: { error: string; code: string; } | null; }; } export declare class AuthRetryableFetchError extends CustomAuthError { constructor(message: string, status: number); } export declare function isAuthRetryableFetchError(error: unknown): error is AuthRetryableFetchError; /** * This error is thrown on certain methods when the password used is deemed * weak. Inspect the reasons to identify what password strength rules are * inadequate. */ export declare class AuthWeakPasswordError extends CustomAuthError { /** * Reasons why the password is deemed weak. */ reasons: ('length' | 'characters' | 'pwned' | string)[]; constructor(message: string, status: number, reasons: string[]); } export declare function isAuthWeakPasswordError(error: unknown): error is AuthWeakPasswordError; //# sourceMappingURL=errors.d.ts.map