type EventObject = { id: string; action: (args: T) => void; }; export declare class EventEmitter { private events; on(type: MapKey, event: EventObject): void; off(type: MapKey, eventId: string): void; dispatch(type: MapKey, args: EventsMap[MapKey]): void; } export {};