import type { Api, FetchImpl, Model } from "../types.js"; /** * Opens, or keeps alive, a pooled connection to {@link model}'s API host so * the next turn skips DNS + TCP + TLS. Sends a credential-less `HEAD` (nothing * is billed; hosts answer 401/404/405) through the same transport — proxy, * extra CA, Cowork profile, TLS options — as real requests, because sockets * pool per transport configuration and a warm-up made any other way (e.g. * `fetch.preconnect`, which also throws on Windows) is never reused. * Throttled per origin; best effort, never throws. */ export declare function prewarmModelConnection(model: Model, options?: { fetch?: FetchImpl; }): Promise; /** Test hook: forgets every warm-up so the next call is not throttled. */ export declare function resetConnectionPrewarmForTesting(): void;