///
///
import http from 'http';
import https from 'https';
import type { RestClientConfig } from './models/config';
export interface ProxyAgents {
httpAgent?: http.Agent;
httpsAgent?: https.Agent;
}
/**
* Checks if a URL should bypass proxy based on NO_PROXY patterns.
*/
export declare function shouldBypassProxy(url: string, noProxy?: string): boolean;
/**
* Gets proxy configuration for a given URL, checking both environment variables and explicit config.
*/
export declare function getProxyConfig(url: string, proxyConfig?: RestClientConfig): {
proxyUrl: string;
} | null;
/**
* Creates an HTTP/HTTPS agent with proxy configuration for a specific URL.
* Agents are cached and reused to enable connection pooling and keepAlive.
*/
export declare function createProxyAgents(url: string, restClientConfig?: RestClientConfig): ProxyAgents;
/**
* Gets proxy agent for a specific request URL. This is the main function used in axios requests.
*/
export declare function getProxyAgentForUrl(url: string, restClientConfig?: RestClientConfig): ProxyAgents;