import { IDetachable } from "./IDetachable.js"; import { IStringDictionary } from "./IDictionary.js"; import { IEventListener } from "./IEventListener.js"; import { IEventSource } from "./IEventSource.js"; import { PlatformEvent } from "./PlatformEvent.js"; export declare class EventSource implements IEventSource { private privEventListeners; private privMetadata; private privIsDisposed; private privConsoleListener; constructor(metadata?: IStringDictionary); onEvent(event: TEvent): void; attach(onEventCallback: (event: TEvent) => void): IDetachable; attachListener(listener: IEventListener): IDetachable; attachConsoleListener(listener: IEventListener): IDetachable; isDisposed(): boolean; dispose(): void; get metadata(): IStringDictionary; }