import { type StreamIdleOptions } from "@caupulican/pi-agent-core/reliability"; export declare const DEFAULT_HTTP_IDLE_TIMEOUT_MS = 660000; export interface HttpBoundedStreamIdlePolicy { options: StreamIdleOptions; /** Undefined when the HTTP idle timeout is disabled and imposes no adaptive ceiling. */ adaptiveCeilingMs?: number; } export declare const HTTP_IDLE_TIMEOUT_CHOICES: readonly [{ readonly label: "30 sec"; readonly timeoutMs: 30000; }, { readonly label: "1 min"; readonly timeoutMs: 60000; }, { readonly label: "2 min"; readonly timeoutMs: 120000; }, { readonly label: "5 min"; readonly timeoutMs: 300000; }, { readonly label: "11 min"; readonly timeoutMs: 660000; }, { readonly label: "disabled"; readonly timeoutMs: 0; }]; export declare function parseHttpIdleTimeoutMs(value: unknown): number | undefined; export declare function formatHttpIdleTimeoutMs(timeoutMs: number): string; /** * Keep the phase-aware watchdog authoritative over undici's coarser headers/body idle timeout. * A nonzero HTTP timeout constrains every watchdog phase and adaptive expansion to a value with * a 10% margin (capped at 60s). Disabling the HTTP timeout leaves watchdog policy untouched. */ export declare function constrainStreamIdleToHttpTimeout(options: StreamIdleOptions, httpIdleTimeoutMs: number): HttpBoundedStreamIdlePolicy; export declare function configureHttpDispatcher(timeoutMs?: number): void; //# sourceMappingURL=http-dispatcher.d.ts.map