import type { Socks5Server } from '@pondwader/socks5-server'; import type { ResolvedParentProxy } from './parent-proxy.js'; export interface SocksProxyServerOptions { filter(port: number, host: string): Promise | boolean; /** * Optional upstream HTTP proxy. When present, SOCKS CONNECT requests are * tunnelled through the parent's HTTP CONNECT instead of dialing directly. * NO_PROXY-matched hosts still connect directly. */ parentProxy?: ResolvedParentProxy; } export interface SocksProxyWrapper { server: Socks5Server; getPort(): number | undefined; listen(port: number, hostname: string): Promise; close(): Promise; unref(): void; } export declare function createSocksProxyServer(options: SocksProxyServerOptions): SocksProxyWrapper; //# sourceMappingURL=socks-proxy.d.ts.map