import { Agent } from "agent-base"; declare class ProxyAgentHelper { proxyAgentInstance: Agent; isEnableProxy: boolean; constructor(); /** * Set up proxy server and initialize the proxy agent instance * @param proxy * @param params * @param params.allowNonPrefixSocksProxy Treat proxy server without protocol as socks5 proxy for backward compatibility */ setProxy(proxy: string, { allowNonPrefixSocksProxy }?: { allowNonPrefixSocksProxy?: boolean; }): void; /** * Whether the proxy is enabled */ isProxyEnabled(): boolean; /** * Disable the proxy */ disableProxy(): void; /** * Enable the proxy */ enableProxy(): void; getProxyAgentInstance(): Agent; /** * Read proxy configuration from environment variables. * By default, ALL_PROXY, HTTP_PROXY and HTTPS_PROXY will be used. * Note: environment variables will override system proxy in Windows. */ readProxyConfigurationFromEnv(): void; /** * Read Windows system proxy from registry */ readWindowsSystemProxy(): Promise; } declare const _default: ProxyAgentHelper; export default _default;