/** * Proxy class - Static methods for proxy configuration and agent creation */ import { HttpsProxyAgent } from 'https-proxy-agent'; import { SocksProxyAgent } from 'socks-proxy-agent'; /** * Supported proxy protocols */ type ProxyProtocol = 'http' | 'https' | 'socks4' | 'socks5'; /** * Static class for proxy operations */ export declare class Proxy { /** * Create a proxy agent from a URL string * Supports HTTP(S) and SOCKS proxies */ static createAgent(proxyUrl: string): HttpsProxyAgent | SocksProxyAgent; /** * Create a Tor proxy agent using default Tor SOCKS port */ static createTorAgent(): SocksProxyAgent; /** * Parse proxy URL and extract components */ static parseUrl(proxyUrl: string): { protocol: ProxyProtocol; host: string; port: number; auth?: { username: string; password: string; }; }; /** * Parse protocol from URL */ private static parseProtocol; /** * Validate a proxy URL format */ static isValidUrl(proxyUrl: string): boolean; /** * Get the default Tor proxy URL */ static get TOR_PROXY(): string; } export {};