import type { Recording } from '../types.js'; export type StartReplayUpstreamOpts = { /** Pre-captured exchanges; replayed in order. */ recording: Recording; /** * Number of matched POSTs to replay before falling through to the * live upstream. Must be ≥ 0 and ≤ recording.exchanges.length. */ upTo: number; /** URL forwarded to once the prefix is exhausted. */ liveUpstream: string; /** Path predicate — only POSTs matching this get replay/forward treatment. */ matchPath: (url: string) => boolean; }; export type ReplayUpstream = { /** URL the proxy forwards to. */ url: string; /** Number of matched POSTs served from the recording so far. */ exchangeIndex(): number; close(): Promise; }; export declare function startReplayUpstream(opts: StartReplayUpstreamOpts): Promise; //# sourceMappingURL=replay-upstream.d.ts.map