import type { IncomingMessage } from "node:http"; import type { AddressInfo } from "node:net"; import type { TlsListener } from "./TlsListener.js"; import { type TcpBinding, type TcpControl } from "../egress/TcpControlClient.js"; export declare const TCP_BROKER_SERVERNAME = "tcp-broker.decionisedge.com"; export declare const TCP_BROKER_LIMITS: Readonly<{ totalLegs: 128; organizationLegs: 16; routeLegs: 8; pairMs: 20000; connectMs: 10000; idleMs: 300000; sessionMs: 3600000; maxBytes: number; refreshMs: 10000; }>; export type TcpBrokerLimits = { [Key in keyof typeof TCP_BROKER_LIMITS]: number; }; type Limits = TcpBrokerLimits; /** Validate before using a header in a dial, control-plane call or response. */ export declare function tcpRequest(request: IncomingMessage, domain: string | null, publicEdge: boolean): { binding: TcpBinding; ticket: string; } | null; /** One rendezvous process. The fleet never dials the target; the connector owns that socket. */ export declare class TcpBroker { private readonly options; private readonly server; private readonly legs; private readonly rawSockets; private readonly admissions; private readonly closingLeases; private stopping; private readonly limits; constructor(options: { tls: TlsListener; domain: string; control: TcpControl; limits?: Partial; }); listen(port: number, host: string): Promise; rotateTls(): void; close(): Promise; private health; private connect; private sameRoute; private waitForClient; private pair; private expiry; private refresh; private reject; private finish; private release; } export {}; //# sourceMappingURL=TcpBroker.d.ts.map