export interface ParsedTokenLimitError { currentTokens: number; maxTokens: number; requestId?: string; errorType: string; providerID?: string; modelID?: string; } export interface RetryState { attempt: number; lastAttemptTime: number; } export interface FallbackState { revertAttempt: number; lastRevertedMessageID?: string; } export interface TruncateState { truncateAttempt: number; lastTruncatedPartId?: string; } export interface AutoCompactState { pendingCompact: Set; errorDataBySession: Map; retryStateBySession: Map; fallbackStateBySession: Map; truncateStateBySession: Map; compactionInProgress: Set; } export declare const RETRY_CONFIG: { readonly maxAttempts: 2; readonly initialDelayMs: 2000; readonly backoffFactor: 2; readonly maxDelayMs: 30000; }; export declare const FALLBACK_CONFIG: { readonly maxRevertAttempts: 3; readonly minMessagesRequired: 2; }; export declare const TRUNCATE_CONFIG: { readonly maxTruncateAttempts: 10; readonly minOutputSizeToTruncate: 1000; };