import type { HoloScriptValue } from '@holoscript/core'; export type EventHandler = (data?: HoloScriptValue) => void | Promise; export declare class GlobalEventBus { private static instance; private handlers; private constructor(); /** * Get the singleton instance */ static getInstance(): GlobalEventBus; /** * Register an event listener * @param event The event name * @param handler Callback function * @returns Unsubscribe function */ on(event: string, handler: EventHandler): () => void; /** * Remove an event listener */ off(event: string, handler: EventHandler): void; /** * Emit an event to all registered listeners */ emit(event: string, data?: HoloScriptValue): Promise; /** * Clear all event handlers */ clear(): void; /** * Get all registered events (for debugging) */ getEvents(): string[]; } /** * Convenience export for the singleton */ export declare const eventBus: GlobalEventBus; //# sourceMappingURL=EventBus.d.ts.map