export type HttpProxy = { port: number; close: () => Promise; }; export type StartHttpProxyOptions = { localPort?: number; remoteBaseUrl: string; headers?: Record; }; /** * Legacy origin-form reverse proxy: forwards every request on the local port * to `remoteBaseUrl`. New callers should prefer `startForwardHttpProxy`. */ export declare function startHttpProxy({ localPort, remoteBaseUrl, headers, }: StartHttpProxyOptions): Promise; export type StartForwardHttpProxyOptions = { /** Loopback requests to this port are rewritten to remoteBaseUrl; everything else passes through. */ matchPort: number; remoteBaseUrl: string; headers?: Record; }; /** * Single-destination HTTP forward proxy (absolute-form request targets, as sent * by clients configured with e.g. JVM -Dhttp.proxyHost). Loopback requests on * `matchPort` are forwarded to `remoteBaseUrl`; every other target is refused, * so the proxy can only ever reach the destination it was configured with. */ export declare function startForwardHttpProxy({ matchPort, remoteBaseUrl, headers, }: StartForwardHttpProxyOptions): Promise; //# sourceMappingURL=http-proxy.d.mts.map