import type { ServerId } from "socket.io-adapter"; import { DiscoveryClient } from "./discovery/discovery-client"; import { MeshTransport } from "./transport/mesh-transport"; import { type MetricsRegistry } from "./metrics"; import type { MeshAdapter } from "./mesh-adapter"; import type { MeshAdapterOptions } from "./types"; /** * Owns the mesh transport + discovery client for a given `wsPort`, and routes * inbound mesh frames to the right namespace's adapter. Multiple namespaces * created in the same process share a single context (and thus a single mesh). */ export declare class MeshContext { readonly uid: ServerId; readonly transport: MeshTransport; readonly discovery: DiscoveryClient; readonly metrics: MetricsRegistry; private readonly adapters; private metricsServer?; private localClientsTimer?; private closed; constructor(opts: MeshAdapterOptions); private buildMetrics; private startMetricsServerIfNeeded; private startLocalClientsSampler; registerAdapter(nspName: string, adapter: MeshAdapter): void; unregisterAdapter(nspName: string): void; private dispatch; close(): Promise; } //# sourceMappingURL=mesh-context.d.ts.map