/** * Inter-agent messaging system */ import { Message, CoordinationConfig } from "../utils/types.js"; import { IEventBus } from "../core/event-bus.js"; import { ILogger } from "../core/logger.js"; /** * Message router for inter-agent communication */ export declare class MessageRouter { private config; private eventBus; private logger; private queues; private pendingResponses; private messageCount; constructor(config: CoordinationConfig, eventBus: IEventBus, logger: ILogger); initialize(): void; shutdown(): void; send(from: string, to: string, payload: unknown): Promise; sendWithResponse(from: string, to: string, payload: unknown, timeoutMs?: number): Promise; broadcast(from: string, payload: unknown): Promise; subscribe(agentId: string, handler: (message: Message) => void): void; unsubscribe(agentId: string, handlerId: string): void; sendResponse(originalMessageId: string, response: unknown): void; getHealthStatus(): { healthy: boolean; error?: string; metrics?: Record; }; private sendMessage; private processMessage; private ensureQueue; performMaintenance(): void; private cleanup; } //# sourceMappingURL=messaging.d.ts.map