export type LlmErrorCategory = 'context_overflow' | 'timeout' | 'server_error' | 'connection' | 'rate_limit' | 'auth' | 'max_tokens' | 'client_error' | 'premature_close' | 'thinking_history_corrupted' | 'user_abort' | 'unknown'; export interface LlmErrorClassification { category: LlmErrorCategory; retryable: boolean; message: string; } export declare class LlmRetriesExhaustedError extends Error { readonly originalError: unknown; readonly attempts: number; constructor(originalError: unknown, attempts: number); } export declare function classifyLlmError(error: unknown): LlmErrorClassification; export declare function retryDelayForLlmError(classification: LlmErrorClassification, attempt?: number): number | undefined; //# sourceMappingURL=llm-error-classifier.d.ts.map