/** * Error detection utilities for handling different types of API errors. */ /** * Checks if an error indicates a server-down scenario (network errors or 5xx status codes). * * @param error - The error to check (can be Error, string, or object with status) * @returns true if the error indicates the server is down or unreachable */ export declare function isServerError(error: unknown): boolean; /** * Checks if an error indicates a rate limit (429) response. * * @param error - The error message or object to check * @returns true if the error indicates a rate limit was exceeded */ export declare function isRateLimitError(error: unknown): boolean; /** * Checks if an error indicates an authentication error (401). * * @param error - The error to check * @returns true if the error indicates an authentication failure */ export declare function isAuthError(error: unknown): boolean; /** * Checks if an error indicates a forbidden error (403). * * @param error - The error to check * @returns true if the error indicates a forbidden response */ export declare function isForbiddenError(error: unknown): boolean; /** * Checks if an error indicates a not found error (404). * * @param error - The error to check * @returns true if the error indicates a not found response */ export declare function isNotFoundError(error: unknown): boolean; /** * Get a user-friendly error message from an error. * * @param error - The error to get a message from * @param fallback - Fallback message if no message can be extracted * @returns A user-friendly error message */ export declare function getErrorMessage(error: unknown, fallback?: string): string; //# sourceMappingURL=error-utils.d.ts.map