import type { HedgeOptions } from '../types.js'; /** * Creates a hedge policy that sends a parallel (hedged) request if the * primary request doesn't resolve within the configured delay. * The first request to resolve wins; the other's result is discarded. * * @example * ```ts * const result = await hedge({ hedgeDelay: 1000 })(() => callApi()); * ``` */ export declare function hedge(options?: HedgeOptions): (fn: () => Promise) => Promise; //# sourceMappingURL=hedge.d.ts.map