import type { Socket } from "node:net"; /** Protocol failures are codes only: never include credentials or received bytes. */ export declare class TcpClientError extends Error { readonly code: string; constructor(code: string); } /** The newline counts toward the limit. The socket remains paused; no tail is discarded. */ export declare function readLine(socket: Socket, maxBytes: number, timeoutMs: number, initial?: Buffer, signal?: AbortSignal): Promise<{ readonly line: string; readonly tail: Buffer; }>; /** Strict HTTP/1.1 framing; a successful CONNECT has no HTTP body. */ export declare function readConnectResponse(socket: Socket, maxBytes: number, timeoutMs: number, signal?: AbortSignal): Promise<{ readonly status: number; readonly tail: Buffer; }>; export declare function requireControl(line: string, type: "attach"): void; //# sourceMappingURL=TcpWire.d.ts.map