import type { Logger } from "@workleap/logging"; export type EventName = string | symbol; export type EventCallbackFunction = (data?: TPayload) => void; export interface EventMap { } export type EventMapKey = keyof EventMap; export type EventBusDispatchFunction = (eventName: K, payload?: EventMap[K]) => void; export interface AddListenerOptions { once?: boolean; } export interface RemoveListenerOptions { once?: boolean; } export declare class EventBus { #private; constructor(logger: Logger); addListener(eventName: K, callback: EventCallbackFunction, options?: AddListenerOptions): void; removeListener(eventName: K, callback: EventCallbackFunction, options?: RemoveListenerOptions): void; dispatch(eventName: K, payload?: EventMap[K]): void; }