import type { Store } from '../core/index.js'; import type { WorkOSEventName } from './constants.js'; export interface EventPayload { event: WorkOSEventName | string; data: Record; environment_id?: string; } export declare class EventBus { private store; private endpointsByEvent; private catchAllEndpoints; constructor(store: Store); /** Rebuild the event-type index. Auto-called via collection hooks; call manually only in tests. */ rebuildIndex(): void; emit(payload: EventPayload): void; private deliver; }