import type { ServerResponse } from 'node:http'; export interface SseEvent { event: string; data: unknown; } export declare class EventHub { private clients; private nextId; /** Attach a response as an SSE stream. Returns a detach function. */ attach(res: ServerResponse): () => void; private detach; broadcast(event: string, data: unknown): void; get clientCount(): number; } //# sourceMappingURL=events.d.ts.map