/** * Exponential backoff retry utility. */ export interface RetryOptions { maxAttempts?: number; baseDelayMs?: number; /** Return true if the error is retryable. Default: always retry. */ shouldRetry?: (err: unknown, attempt: number) => boolean; } /** * Execute fn with exponential backoff. Delays: 1s, 2s, 4s (with ±20% jitter). * Throws the last error if all attempts fail. */ export declare function withRetry(fn: () => Promise, opts?: RetryOptions): Promise; //# sourceMappingURL=retry.d.ts.map