/**
 * Node.js SOCKS5 proxy server.
 *
 * Implements RFC 1928 (SOCKS5) with no-auth method and CONNECT command only.
 * Domain filtering is delegated to a callback.
 *
 * Covers: SSH, git-over-SSH, database connections, gRPC, and any
 * SOCKS-aware tool that respects ALL_PROXY.
 */
export interface SocksProxyOptions {
    /** Called for every CONNECT request. Return true to allow, false to deny. */
    checkDomain: (domain: string) => Promise<boolean>;
}
export interface SocksProxyHandle {
    /** TCP port the proxy is listening on. */
    port: number;
    /** Stop the proxy server. */
    stop: () => void;
}
/**
 * Start a SOCKS5 proxy on a random localhost port.
 *
 * Supports CONNECT command with IPv4, IPv6, and domain name addressing.
 * Only no-auth method is offered.
 */
export declare function startSocksProxy(options: SocksProxyOptions): Promise<SocksProxyHandle>;
//# sourceMappingURL=socks-proxy.d.ts.map