import type { WebSocket } from 'ws'; import type { ClientBridgeEvent, IClientBridge } from '../../types/public-types.js'; export declare class NodeClientBridge implements IClientBridge { private subscribers; private heartbeatTimer; constructor(); /** * Pings all open subscribers and removes any that are no longer in OPEN state. * This prevents a slow memory leak caused by zombie connections that never * send a close event (e.g. abruptly killed browsers, orphaned tabs, network drops). */ private sweep; subscribe(ws: WebSocket): void; unsubscribe(ws: WebSocket): void; broadcast(event: ClientBridgeEvent): void; reload(): void; cssUpdate(path: string): void; update(path: string): void; error(message: string): void; get subscriberCount(): number; /** * Stops the heartbeat timer and clears all subscribers. * Call this when the dev server is shutting down. */ destroy(): void; [Symbol.dispose](): void; }