import type { Command } from '../args.js'; import type { Profile } from '../profiles.js'; import { type Io } from '../output.js'; import { type VerbServerFactory } from './fetch.js'; /** * `fpx capture-redirect [/path]` — snapshot where the next matching * request gets REDIRECTED to. * * The case it exists for: an endpoint that 302s cross-origin to a presigned * URL. A page-level fetch sees an opaque redirect and can tell you nothing; * `onBeforeRedirect` sees the target. That is a diagnosis you reach for a * shell to make, which is why the CLI having no surface for it mattered * (chrischall/fetchproxy#341). * * Unlike `capture`, there is no per-entry declaration to narrow against — * scope is the profile's declared `domains`, so the host goes through * `assertHostOnProfile` before the bridge is dialled. That is the SAME * function `fpx get` reaches through `assertUrlOnProfile`, so the refusal a * user reads is one sentence with one place to change it. */ export declare function runCaptureRedirect(cmd: Extract, profile: Profile, io: Io, makeServer?: VerbServerFactory): Promise;