/**
 * Exponential backoff with full jitter and Retry-After header support.
 */
export interface RetryOptions {
    /** Maximum number of attempts (including the first). Default: 3 */
    maxAttempts?: number;
    /** Base delay in milliseconds. Default: 250 */
    baseDelayMs?: number;
    /** Maximum delay cap in milliseconds. Default: 30_000 */
    maxDelayMs?: number;
}
export interface RetryContext {
    method: string;
    attempt: number;
    response: Response;
    options: Required<RetryOptions>;
}
export declare function shouldRetry(ctx: RetryContext): boolean;
export declare function computeDelay(attempt: number, response: Response, options: Required<RetryOptions>): number;
export declare function resolveRetryOptions(opts?: RetryOptions, maxRetries?: number): Required<RetryOptions>;
//# sourceMappingURL=retry.d.ts.map