/**
 * Lightweight HTTP proxy that intercepts Anthropic API calls, logs the full
 * request body (system prompt, tools, messages summary) to JSONL, and forwards
 * the request to the real Anthropic API.
 *
 * Dev-mode only — started lazily when `buildAgentEnv()` detects dev mode and
 * the Anthropic direct-API provider.  The SDK subprocess (`cli.js`) is pointed
 * to the proxy via `ANTHROPIC_BASE_URL=http://localhost:<port>`.
 *
 * Design: the proxy buffers the incoming request body, forwards it to the
 * upstream via Node.js `https.request()` with explicit HTTP/1.1 ALPN, then
 * pipes the response back to the SDK client.
 */
export interface ApiProxyHandle {
    port: number;
    close: () => void;
}
/**
 * Start the API logging proxy.  Returns a handle with the assigned port.
 * Subsequent calls return the same singleton.
 */
export declare function startApiProxy(opts: {
    targetBaseUrl?: string;
    logDir: string;
}): Promise<ApiProxyHandle>;
//# sourceMappingURL=api-proxy.d.ts.map