import { type IncomingMessage, type ServerResponse } from "node:http"; import type { Duplex } from "node:stream"; export interface GatewayProxyAddress { host: "127.0.0.1"; port: number; } /** 宿主在退出或切换实例时回收正在进行的请求和隧道。 */ export interface GatewayProxyHandle { close(): void; } /** 不读取或重新编码请求体;保留签名依赖的路径、头和字节,pipe 提供背压。 */ export declare function proxyGatewayHttp(req: IncomingMessage, res: ServerResponse, address?: GatewayProxyAddress): GatewayProxyHandle; /** 网关决定 WS 鉴权与路由;控制宿主只向已验证的子进程地址转发。 */ export declare function proxyGatewayUpgrade(req: IncomingMessage, socket: Duplex, head: Buffer, address?: GatewayProxyAddress): GatewayProxyHandle; //# sourceMappingURL=proxy.d.ts.map