import net from 'node:net'; import { h as MeshConnectionCounters } from './types-C9VYURdP.js'; interface ActiveConnectionSnapshot { readonly total: MeshConnectionCounters; readonly byInstance: Readonly>; } declare class ActiveConnectionTracker { private readonly http; private readonly sockets; private readonly waiters; beginHttp(instanceId: string): () => void; trackSocket(instanceId: string, ...tracked: net.Socket[]): () => void; snapshot(): ActiveConnectionSnapshot; isIdle(): boolean; waitForIdle(timeoutMs: number): Promise; destroySockets(): void; private notifyIfIdle; } export { type ActiveConnectionSnapshot as A, ActiveConnectionTracker as a };