/**
 * Centralized 429/rate-limit error detection.
 * Checks error message for common rate-limit indicators across LLM providers.
 */
export declare function isRateLimitError(err: unknown): boolean;
/**
 * Wraps an async function with exponential backoff retry on 429 errors.
 */
export declare function withRetry<T>(fn: () => Promise<T>, opts?: {
    maxRetries?: number;
    baseDelayMs?: number;
    onRetry?: (attempt: number, delayMs: number) => void;
}): Promise<T>;
//# sourceMappingURL=retry.d.ts.map