/// /** * socks5协议生成和解析 */ import { AcceptSocket, ProxyMode } from "../types"; export declare function buildClientInfo(host: string, port: number): Buffer; /** * 发送生成用户认证的数据 * @param data */ export declare function sendAuth(data: { mode: ProxyMode; username: string; password: string; }): Buffer; export declare const validConnectInfo: { validTarget(socket: AcceptSocket, { host, port, atype, command }: { host: any; port: any; atype: any; command: any; }): boolean; parseTarget(chunk: Buffer): { host: string; port: number; atype: number; command: number; }; };