import type { Duplex } from "node:stream"; export declare const TCP_TRANSPORT = "agentsafe-tcp-relay/1"; export declare const TCP_UUID: RegExp; export declare const TCP_TICKET: RegExp; export declare const TCP_LABEL: RegExp; export declare function tenantHostname(host: string | undefined, domain: string | null): string | null; /** Refusal responses contain only our constants, never peer headers or control-API text. */ export declare function refuseTcp(socket: Duplex, status: number, code: string): void; export declare function connectedTcp(socket: Duplex): void; /** Reads one bounded control line and leaves the stream paused, including on failure. */ export declare function controlLine(socket: Duplex, initial: Buffer, timeoutMs: number): Promise<{ line: string; tail: Buffer; }>; /** Bounded opaque stream relay. A FIN is forwarded independently in each direction. */ export declare function spliceTcp(left: Duplex, right: Duplex, options: { leftHead?: Buffer; rightHead?: Buffer; idleMs: number; lifetimeMs: number; maxBytes: number; closed: () => void; }): () => void; //# sourceMappingURL=TcpRelayStreams.d.ts.map