/** * Utility for standardized error handling throughout the codebase */ /** * Extract an error message from an unknown error * @param error - The caught error of unknown type * @returns A string representation of the error */ export declare const getErrorMessage: (error: unknown) => string; /** * Options for error handling */ interface ErrorHandlingOptions { /** Optional context to add to the error message */ context?: string; /** The error to handle */ error: unknown; /** Whether to throw the error after logging */ shouldThrow?: boolean; } /** * Handle an error with consistent logging * @param options - Error handling options * @returns The formatted error message that was logged */ export declare const handleError: (options: ErrorHandlingOptions) => string; /** * Checks if an error has a specific HTTP status code * @param error - The caught error of unknown type * @param status - The HTTP status code to check for (e.g., 429, 404, 500) * @returns True if the error has the specified status code */ export declare const hasErrorStatus: (error: unknown, status: number) => boolean; export {};