/** * @module backoff * @category Internal * * Per-reaction retry backoff delay computation. Pure function — keeps * `DrainController` and `reactions._finalize` testable in isolation. * * @internal */ import type { BackoffOptions } from "../types/action.js"; /** * Compute the wall-clock delay (in ms) to wait before the next attempt on * a stream whose handler just failed. * * @param retry - The lease's `retry` counter at finalize time. `0` is the * first attempt that failed; `1` is after one retry; etc. * @param opts - Per-reaction backoff config. Returns `0` when undefined. * @returns Non-negative integer milliseconds. Always `0` when `opts` is * undefined or `baseMs <= 0`. */ export declare function compute_backoff_delay(retry: number, opts: BackoffOptions | undefined): number; //# sourceMappingURL=backoff.d.ts.map