type FetchFn = typeof globalThis.fetch & { _httpClientCustomFetch?: boolean; }; export type NodeAgentLike = { options?: Record; }; export type AgentOptions = { agent?: NodeAgentLike; httpsAgent?: NodeAgentLike; fetch?: FetchFn; [key: string]: unknown; }; /** * Converts a legacy `agent`/`httpsAgent` option to a custom fetch function * backed by an undici dispatcher. No-op when no agent is present. * * @param options {AgentOptions | undefined} * @returns {AgentOptions | undefined} */ export declare function convertAgent(options: AgentOptions | undefined): AgentOptions | undefined; export {}; //# sourceMappingURL=agentCompatibility.d.ts.map