import { d as createPinnedLookup, n as PinnedDispatcherPolicy } from "./ssrf-skjEI_i5.js";
import { r as GuardedFetchOptions } from "./fetch-guard-BKvfwdRa.js";
import { a as resolveFetch, n as getProxyUrlFromFetch, o as wrapFetchWithAbortSignal, r as makeProxyFetch } from "./proxy-fetch-9Z9a0YvK.js";
import { n as createNodeProxyAgent, t as CreateNodeProxyAgentOptions } from "./node-proxy-agent-BKfiPkJU.js";
import { c as resolveEnvHttpProxyUrl, i as hasEnvHttpProxyConfigured, l as shouldUseEnvHttpProxyForUrl, r as hasEnvHttpProxyAgentConfigured, s as resolveEnvHttpProxyAgentOptions } from "./proxy-env-C3y9mYGC.js";
//#region src/infra/net/undici-runtime.d.ts
type UndiciRuntimeDeps = {
  Agent: typeof import("undici").Agent;
  EnvHttpProxyAgent: typeof import("undici").EnvHttpProxyAgent;
  FormData?: typeof import("undici").FormData;
  ProxyAgent: typeof import("undici").ProxyAgent;
  fetch: typeof import("undici").fetch;
};
type UndiciEnvHttpProxyAgentOptions = ConstructorParameters<UndiciRuntimeDeps["EnvHttpProxyAgent"]>[0];
type UndiciProxyAgentOptions = ConstructorParameters<UndiciRuntimeDeps["ProxyAgent"]>[0];
declare function createHttp1EnvHttpProxyAgent(options?: UndiciEnvHttpProxyAgentOptions, timeoutMs?: number): import("undici").EnvHttpProxyAgent;
declare function createHttp1ProxyAgent(options: UndiciProxyAgentOptions, timeoutMs?: number): import("undici").ProxyAgent;
//#endregion
//#region src/infra/net/proxy/proxy-tls.d.ts
type ManagedProxyTlsOptions = Readonly<{
  ca?: string;
}>;
//#endregion
//#region src/infra/net/proxy/managed-proxy-undici.d.ts
type ManagedProxyTlsEnv = NodeJS.ProcessEnv;
type ResolveActiveManagedProxyTlsOptionsParams = {
  proxyUrl?: string;
  env?: ManagedProxyTlsEnv;
};
type AddActiveManagedProxyTlsOptionsParams = {
  env?: ManagedProxyTlsEnv;
};
declare function resolveActiveManagedProxyTlsOptions(params?: ResolveActiveManagedProxyTlsOptionsParams): ManagedProxyTlsOptions | undefined;
declare function addActiveManagedProxyTlsOptions(options: undefined, params?: AddActiveManagedProxyTlsOptionsParams): {
  proxyTls: ManagedProxyTlsOptions;
} | undefined;
declare function addActiveManagedProxyTlsOptions<TOptions extends object>(options: TOptions, params?: AddActiveManagedProxyTlsOptionsParams): TOptions | (TOptions & {
  proxyTls: Record<string, unknown>;
});
declare function addActiveManagedProxyTlsOptions<TOptions extends object>(options: TOptions | undefined, params?: AddActiveManagedProxyTlsOptionsParams): TOptions | (TOptions & {
  proxyTls: Record<string, unknown>;
}) | {
  proxyTls: ManagedProxyTlsOptions;
} | undefined;
//#endregion
//#region src/plugin-sdk/fetch-runtime.d.ts
type GuardedFetchPresetOptions = Omit<GuardedFetchOptions, "mode" | "proxy" | "dangerouslyAllowEnvProxyWithoutPinnedDns">;
declare function withTrustedEnvProxyGuardedFetchMode(params: GuardedFetchPresetOptions): GuardedFetchOptions;
//#endregion
export { type CreateNodeProxyAgentOptions, type PinnedDispatcherPolicy, addActiveManagedProxyTlsOptions, createHttp1EnvHttpProxyAgent, createHttp1ProxyAgent, createNodeProxyAgent, createPinnedLookup, getProxyUrlFromFetch, hasEnvHttpProxyAgentConfigured, hasEnvHttpProxyConfigured, makeProxyFetch, resolveActiveManagedProxyTlsOptions, resolveEnvHttpProxyAgentOptions, resolveEnvHttpProxyUrl, resolveFetch, shouldUseEnvHttpProxyForUrl, withTrustedEnvProxyGuardedFetchMode, wrapFetchWithAbortSignal };