export type ProtocolType = "http" | "socks5" | "light" | "aigo" | "s52aigo" | "ws"; export type ConnectProtocol = "direct" | "direct.fetch" | "direct.ws" | "http" | "forward.http" | "aigo" | "light" | "socks5" | "ws" | "s52aigo"; /** * 连接器配置参数 */ export type ConnectOptions = { /** 是否直接连接目标 */ isDirect?: boolean; protocol?: ConnectProtocol; peerId?: string; }; export type HttpRequest = { host: string; port: number; url: string; init: { method: string; headers: { [key: string]: string; }; body: any; }; };