import { EventEmitter } from 'node:events'; export type EdenEvent = { type: 'task_started'; data: { id: string; name: string; agentId: string; }; } | { type: 'task_updated'; data: { id: string; status: string; output?: string; }; } | { type: 'agent_switched'; data: { agentId: string; }; } | { type: 'tool_call'; data: { name: string; args: any; }; } | { type: 'tool_result'; data: { name: string; result: any; }; } | { type: 'learning_captured'; data: { topic: string; content: string; }; } | { type: 'worker_created'; data: { id: string; containerName: string; }; } | { type: 'notification'; data: { title: string; message: string; type: 'info' | 'warning' | 'error' | 'permission'; }; } | { type: 'transcript_entry'; data: any; }; declare class EventHub extends EventEmitter { private quiet; private redisAvailable; setQuiet(quiet: boolean): void; emitEvent(event: EdenEvent): void; private publishToStream; private resolveStream; private mapToBusType; onEvent(callback: (event: EdenEvent) => void): void; /** Emit only locally, without Redis Streams propagation. */ emitLocal(event: EdenEvent): void; } export declare const eventHub: EventHub; export {}; //# sourceMappingURL=events.d.ts.map