import { WebSocketServer } from "ws"; export type WsServerEvent = { type: "directory:changed"; } | { type: "member:profile"; memberId: string; name: string; title: string | null; avatarShape?: string | null; avatarColor?: string | null; } | { type: "room:message"; roomId: string; message: unknown; } | { type: "agent:status"; roomId: string; agent: string; memberId: string; status: "inactive" | "idle" | "working"; } | { type: "agent:event"; roomId: string; agent: string; memberId: string; event: unknown; } | { type: "agent:context_usage"; roomId: string; agent: string; memberId: string; usage: import("../agent/types.js").ContextUsage | null; }; export type WsClientCommand = { type: "subscribe:room" | "unsubscribe:room"; roomId: string; } | { type: "subscribe:agent" | "unsubscribe:agent"; roomId: string; memberId: string; }; export declare function createWebSocketServer(server: import("node:http").Server): WebSocketServer; export declare function broadcastToRoom(roomId: string, event: WsServerEvent): void; export declare function broadcastToAgentSubscribers(roomId: string, event: WsServerEvent): void; /** Current identity is global, including clients without any scope subscriptions. */ export declare function broadcastMemberProfileChanged(profile: { memberId: string; name: string; title: string | null; avatarShape?: string | null; avatarColor?: string | null; }): void; export declare function shutdownWebSocket(): Promise; /** List invalidation after instance creation/deletion; no private record payload. */ export declare function broadcastDirectoryChanged(): void; //# sourceMappingURL=ws.d.ts.map