/** * Configuration options for calculating exponential backoff. */ interface BackoffOptions { /** * The current retry attempt, typically starting at 0. * @default 0 */ attempt?: number; /** * The base delay in milliseconds for the first retry. * @default 100 */ baseDelay?: number; /** * The absolute maximum delay in milliseconds allowed, regardless of the attempt number. * @default 10000 (10 seconds) */ maxDelay?: number; /** * The exponential multiplier used to increase the delay. * @default 2 */ factor?: number; /** * Whether to apply "Full Jitter" to the calculated delay. * Randomizes the delay between 0 and the calculated exponential maximum to prevent thundering herds. * @default true */ jitter?: boolean; } /** * Calculates the delay time for a retry operation using exponential backoff and jitter. * * @param {BackoffOptions} [options={}] - Configuration options for the calculation. * @returns {number} The calculated delay in milliseconds before the next retry. */ export declare function calculateBackoff(options?: BackoffOptions): number; export {};