declare type Callback = (event: TopicEvent) => void; export declare type TopicEvent = { type: string; defaultPrevented?: boolean; }; export declare class EventTopic { private listeners; constructor(); addEventListener(type: string, callback: Callback): void; removeEventListener(type: string, callback: Callback): void; dispatchEvent(event: TopicEvent): boolean; } export {};