/** * Retry with exponential backoff for transient LLM and tool failures. */ export interface RetryOptions { /** Maximum number of retry attempts (default: 3) */ readonly maxAttempts?: number; /** Base delay in ms before first retry (default: 1000) */ readonly baseDelayMs?: number; /** Maximum delay in ms (default: 10000) */ readonly maxDelayMs?: number; /** Abort signal to cancel retries */ readonly signal?: AbortSignal; } /** * Returns true if the error is transient and the operation should be retried. * Retries on: rate limits (429), server errors (5xx), network errors, timeouts. */ export declare function isRetryableError(error: unknown): boolean; /** * Execute an async function with retry and exponential backoff. * Only retries on transient errors (rate limits, server errors, network issues). */ export declare function withRetry(fn: () => Promise, options?: RetryOptions): Promise; //# sourceMappingURL=retry.d.ts.map