/** * Centralized error message management for authentication */ export declare const AuthErrorMessages: { INVALID_CREDENTIALS: string; EMAIL_NOT_CONFIRMED: string; USER_EXISTS: string; WEAK_PASSWORD: string; INVALID_EMAIL: string; TOO_MANY_REQUESTS: string; NETWORK_ERROR: string; UNKNOWN_ERROR: string; EMAIL_REQUIRED: string; PASSWORD_REQUIRED: string; PASSWORD_MISMATCH: string; SESSION_EXPIRED: string; NO_SESSION: string; INVALID_TOKEN: string; UNAUTHORIZED: string; FORBIDDEN: string; INSUFFICIENT_PERMISSIONS: string; ADMIN_REQUIRED: string; USER_NOT_FOUND: string; PROFILE_INCOMPLETE: string; LOGIN_SUCCESS: string; SIGNUP_SUCCESS: string; LOGOUT_SUCCESS: string; PASSWORD_RESET_SENT: string; PASSWORD_UPDATED: string; EMAIL_VERIFIED: string; PROFILE_UPDATED: string; }; /** * Map Supabase error codes to user-friendly messages */ export declare const ErrorCodeMap: Record; /** * Get user-friendly error message from error code or message */ export declare function getErrorMessage(error: string | { code?: string; message?: string; }): string; /** * Format error for display with optional context */ export declare function formatError(error: unknown, context?: 'login' | 'signup' | 'reset' | 'update'): string; /** * Check if error is a network error */ export declare function isNetworkError(error: unknown): boolean; /** * Check if error is an authentication error */ export declare function isAuthError(error: unknown): boolean; /** * Check if error requires user to re-authenticate */ export declare function requiresReauth(error: unknown): boolean; //# sourceMappingURL=error-messages.d.ts.map