import type { WebSocketConnection } from "../../../platform/adapters/base.js"; /** Client metadata for observability */ export interface HMRClientInfo { id: string; socket: WebSocketConnection; connectedAt: number; projectSlug?: string; userAgent?: string; lastActivity: number; } /** Detailed client info for the status endpoint (no socket reference) */ interface HMRClientDetail { id: string; connectedAt: number; projectSlug?: string; lastActivity: number; connectionDurationMs: number; } export declare function getClientCount(): number; export declare function addClient(info: HMRClientInfo): void; export declare function removeClient(clientId: string): void; export declare function getClient(clientId: string): HMRClientInfo | undefined; export declare function getClientDetails(): HMRClientDetail[]; /** * Get all open WebSocket connections, optionally filtered by projectSlug. * This replaces the old exported `clientSockets` Set that drifted out of sync. */ export declare function getOpenSockets(projectSlug?: string): WebSocketConnection[]; export declare function clearAll(): void; export {}; //# sourceMappingURL=hmr-client-manager.d.ts.map