/** * Different types of errors that can occur during authentication */ export declare enum AuthErrorType { NETWORK = "NETWORK", AUTHENTICATION = "AUTHENTICATION", SERVER = "SERVER", VALIDATION = "VALIDATION", UNKNOWN = "UNKNOWN" } /** * Structured error information */ export interface AuthErrorInfo { type: AuthErrorType; message: string; originalError?: Error; } /** * Detects the type of error and returns appropriate user-friendly message */ export declare function detectErrorType(error: unknown): AuthErrorInfo;