import type { ServerWebSocket } from 'bun'; import type { ClientBridgeEvent, IClientBridge } from '../../types/public-types.js'; type BunSocket = ServerWebSocket; /** * Manages WebSocket subscribers and broadcasts development events. * Bridges the gap between the server and the development client. */ export declare class ClientBridge implements IClientBridge { private subscribers; subscribe(ws: BunSocket): void; unsubscribe(ws: BunSocket): void; /** * Broadcast a raw event to all connected clients. */ broadcast(event: ClientBridgeEvent): void; /** * Trigger a full page reload on all connected clients. */ reload(): void; /** * Broadcast a CSS update for hot stylesheet reload. */ cssUpdate(path: string): void; /** * Broadcast a JS module update for hot module replacement. */ update(path: string): void; /** * Broadcast an error message to connected clients. */ error(message: string): void; get subscriberCount(): number; destroy(): void; } export {};