/** * Handles authentication errors with consistent logging and formatting. * @param error The error to handle. * @param context The context where the error occurred. * @throws A formatted error. */ export declare function handleAuthError(error: unknown, context: string): never; /** * Handles logout errors with consistent logging. * @param error The error to handle. * @returns Error response object for logout. */ export declare function handleLogoutError(error: unknown): { success: false; error: string; }; /** * Creates a standard authentication error. * @param statusCode The HTTP status code. * @param message The error message. * @throws A formatted error. */ export declare function createAuthError(statusCode: number, message: string): never; /** * Creates a validation error for missing parameters. * @param field The missing field name. * @throws A formatted error. */ export declare function createValidationError(field: string): never; /** * Creates a configuration error. * @param message The error message. * @throws A formatted error. */ export declare function createConfigError(message: string): never; /** * Creates a strategy error. * @param message The error message. * @throws A formatted error. */ export declare function createStrategyError(message: string): never;