import { AxiosInstance, InternalAxiosRequestConfig } from "axios"; /** * Attaches an HttpsProxyAgent (built from HTTPS_PROXY/HTTP_PROXY/NO_PROXY) to a * single axios request when a proxy applies, and turns off axios's own proxy * handling so the agent is used instead. */ export declare function applyProxyToRequest(config: InternalAxiosRequestConfig): InternalAxiosRequestConfig; /** * Installs the proxy interceptor on an axios instance (or the global default * instance) so every request it sends honors the system proxy env vars. */ export declare function installProxyInterceptor(instance: AxiosInstance): void; /** * Installs the proxy interceptor on axios's global default instance, and wraps * `axios.create` so every instance created afterwards also honors the system * proxy env vars. Instances created via `axios.create()` do not inherit the * default instance's interceptors, so wrapping `create` is how we cover the * many clients in this package that spin up their own instance. Idempotent. */ export declare function installGlobalProxyInterceptor(): void; //# sourceMappingURL=httpProxy.d.ts.map