import { EventEmitter } from 'events'; import type { Message, IAgent } from './types'; export interface RoomMessage { from: string; to?: string; topic?: string; message: Message; } export declare class Room extends EventEmitter { readonly name: string; private agents; private subscriptions; constructor(name: string); addAgent(agent: IAgent): void; removeAgent(name: string): void; getAgents(): string[]; subscribe(agentName: string, topic: string): void; unsubscribe(agentName: string, topic: string): void; getSubscribers(topic: string): string[]; send(roomMessage: RoomMessage): Promise; broadcast(from: string, content: string): Promise; publishToTopic(from: string, topic: string, content: string): Promise; } //# sourceMappingURL=room.d.ts.map