import http from 'http'; import { WebSocket } from 'ws'; export declare const HTTP_JID_PREFIX = "http:"; export declare const sseClients: Map>; export declare function buildHttpThreadId(agentId: string, threadId: string): string; export declare function parseHttpThreadId(chatJid: string): [string, string]; export declare function addClient(chatJid: string, res: http.ServerResponse | WebSocket): void; export declare function removeClient(chatJid: string, res: http.ServerResponse | WebSocket): void; export declare function isUiMessageChunkEvent(event: unknown): boolean; export declare function broadcastToChat(chatJid: string, event: object): void; //# sourceMappingURL=stream.d.ts.map