/**
 * Node.js HTTP CONNECT proxy server.
 *
 * Handles HTTP CONNECT (for HTTPS) and plain HTTP forward requests.
 * Domain filtering is delegated to a callback — the proxy has no
 * opinion about how allowlists are managed.
 *
 * Runs in the host Node.js process. No IPC, no Python, no WSL.
 */
export interface HttpProxyOptions {
    /** Called for every request. Return true to allow, false to deny. */
    checkDomain: (domain: string) => Promise<boolean>;
}
export interface HttpProxyHandle {
    /** TCP port the proxy is listening on. */
    port: number;
    /** Stop the proxy server. */
    stop: () => void;
}
/**
 * Start an HTTP CONNECT proxy on a random localhost port.
 *
 * Supports:
 * - CONNECT tunneling (HTTPS, WebSocket, etc.)
 * - Plain HTTP forward (GET http://host/path → rewrite + relay)
 */
export declare function startHttpProxy(options: HttpProxyOptions): Promise<HttpProxyHandle>;
//# sourceMappingURL=http-proxy.d.ts.map