import { Agent, AgentOptions } from "node:http"; import { AgentOptions as AgentOptions$1 } from "node:https"; //#region src/infra/net/node-proxy-agent.d.ts type NodeProxyProtocol = "http" | "https"; type NodeProxyAgentOptions = AgentOptions & AgentOptions$1; /** Selects either ambient env proxy resolution or a caller-supplied fixed proxy URL. */ type CreateNodeProxyAgentOptions = { mode: "env"; targetUrl: string | URL; protocol?: NodeProxyProtocol; agentOptions?: NodeProxyAgentOptions; } | { mode: "explicit"; proxyUrl: string | URL; protocol?: NodeProxyProtocol; agentOptions?: NodeProxyAgentOptions; }; /** Creates a Node HTTP(S) agent for explicit proxy URLs; unsupported protocols throw. */ declare function createNodeProxyAgent(options: Extract): Agent; /** Creates a Node HTTP(S) agent from env proxy settings, or undefined when bypassed. */ declare function createNodeProxyAgent(options: Extract): Agent | undefined; //#endregion export { createNodeProxyAgent as n, CreateNodeProxyAgentOptions as t };