import * as undici from "undici";
export declare const DEFAULT_HTTP_IDLE_TIMEOUT_MS = 600000;
export declare const HTTP_IDLE_TIMEOUT_CHOICES: readonly [{
    readonly label: "30 sec";
    readonly timeoutMs: 30000;
}, {
    readonly label: "1 min";
    readonly timeoutMs: 60000;
}, {
    readonly label: "5 min";
    readonly timeoutMs: 300000;
}, {
    readonly label: "10 min";
    readonly timeoutMs: 600000;
}, {
    readonly label: "30 min";
    readonly timeoutMs: 1800000;
}, {
    readonly label: "Disabled";
    readonly timeoutMs: 0;
}];
export declare function parseHttpIdleTimeoutMs(value: unknown): number | undefined;
export declare function formatHttpIdleTimeoutMs(timeoutMs: number): string;
export declare function createHttpDispatcherOptions(timeoutMs: number): ConstructorParameters<typeof undici.EnvHttpProxyAgent>[0];
/**
 * Configure the global undici dispatcher used by fetch and SDK HTTP clients.
 *
 * Keep HTTP/2 disabled for now because some Node/undici combinations have
 * produced stream-reset crashes, and use a configurable idle timeout so stale
 * connections are eventually reclaimed while long-running requests remain
 * supported. Do not install a fixed connect-phase timeout here: under Pier and
 * other policy/proxy layers, CONNECT establishment can be slower than normal
 * internet egress and should surface through the provider/agent retry path.
 */
export declare function configureHttpDispatcher(timeoutMs?: number): void;
//# sourceMappingURL=http-dispatcher.d.ts.map