import type { ProxyActivitySnapshot, ProxyResponseTrackingObserver } from "../types/index.js";
/** Track one client-facing proxy request until its response body settles. */
export declare function beginProxyRequest(): () => void;
export declare function getProxyActivitySnapshot(): ProxyActivitySnapshot;
export declare function isProxyActivityQuiet(snapshot: ProxyActivitySnapshot, quietThresholdMs: number, nowMs?: number): boolean;
/** Keep activity open until the response body completes, errors, or is cancelled. */
export declare function trackProxyResponse(response: Response, finishRequest: () => void, observer?: ProxyResponseTrackingObserver): Response;
export declare function resetProxyActivityForTests(): void;
