/** * V3 Event Bus * Core event pub/sub implementation */ import type { IEventBus, IEventCreate, IEventHandler, IEventSubscription, IEventFilter } from './interfaces/event.interface.js'; /** * Event bus implementation */ export declare class EventBus implements IEventBus { private handlers; private subscriptions; private subscriptionId; emit(type: string, payload: T, options?: Partial>): void; emitAsync(type: string, payload: T, options?: Partial>): Promise; on(type: string, handler: IEventHandler): IEventSubscription; subscribe(filter: IEventFilter, handler: IEventHandler): IEventSubscription; once(type: string, handler: IEventHandler): IEventSubscription; off(type: string, handler: IEventHandler): void; removeAllListeners(type?: string): void; listenerCount(type: string): number; eventNames(): string[]; private createEvent; private dispatchEvent; private dispatchEventAsync; private removeSubscription; } /** * Create a new event bus instance */ export declare function createEventBus(): IEventBus; //# sourceMappingURL=event-bus.d.ts.map