import { Carrier } from '../contract/index.ts'; import { type Arrivals, type Dialed, type Sockets } from '../harbor/index.ts'; export interface Doors { arrive(pk: string, bytes: Uint8Array): Promise; } export declare class TcpCarrier extends Carrier { #private; route(pk: string, at: readonly string[] | null): boolean; routed(pk: string): boolean; carry(pk: string, bytes: Uint8Array): Promise; carryAt(at: readonly string[], pk: string, bytes: Uint8Array): Promise; dial(at: string, pk: string, bytes: Uint8Array): Promise; close(): Promise; } export declare class TcpListener { #private; private constructor(); static listen(doors: Doors, host?: string, port?: number): Promise; get at(): string; close(): Promise; } export declare class NodeSockets implements Sockets { #private; dial(address: string, pk: string, bytes: Uint8Array): Promise; listen(ground: Arrivals, host: string, port: number): Promise; close(): Promise; }