export declare enum FailoverReason { AUTH = "auth", AUTH_PERMANENT = "auth_permanent", BILLING = "billing", RATE_LIMIT = "rate_limit", OVERLOADED = "overloaded", SERVER_ERROR = "server_error", TIMEOUT = "timeout", CONTEXT_OVERFLOW = "context_overflow", PAYLOAD_TOO_LARGE = "payload_too_large", MODEL_NOT_FOUND = "model_not_found", PROVIDER_POLICY_BLOCKED = "provider_policy_blocked", FORMAT_ERROR = "format_error", THINKING_SIGNATURE = "thinking_signature", LONG_CONTEXT_TIER = "long_context_tier", UNKNOWN = "unknown" } export interface ClassifiedError { reason: FailoverReason; statusCode?: number; provider?: string; model?: string; message: string; retryable: boolean; shouldCompress: boolean; shouldRotateCredential: boolean; shouldFallback: boolean; } export declare function classifyApiError(error: unknown, provider?: string, model?: string, approxTokens?: number, contextLength?: number): ClassifiedError; export declare function formatUserFriendlyError(classified: ClassifiedError): string; export declare function extractRetryDelaySeconds(message: string): number | null; //# sourceMappingURL=error-classifier.d.ts.map