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",
    image_too_large = "image_too_large",
    model_not_found = "model_not_found",
    content_policy_blocked = "content_policy_blocked",
    format_error = "format_error",
    thinking_signature = "thinking_signature",
    multimodal_tool_content_unsupported = "multimodal_tool_content_unsupported",
    unknown = "unknown"
}
export interface ClassifiedError {
    reason: FailoverReason;
    statusCode: number;
    message: string;
    retryable: boolean;
    shouldCompress: boolean;
}
export declare function classifyApiError(error: any, statusCode?: number): ClassifiedError;
export declare function isImageRejection(error: any, statusCode?: number): boolean;
export declare function hasImagesInMessages(messages: any[]): boolean;
export declare function stripImagesFromMessages(messages: any[]): number;
//# sourceMappingURL=error-classifier.d.ts.map