import type { IDisposable } from './disposable.js'; export declare function addAnyKindOfListener(host: IEventEmitterObject | IShorthandEmitterObject, name: string, handler: Function): void; export interface IShorthandEmitterObject { on(type: string, handler: Function): void; off(type: string, handler: Function): void; } export interface IEventEmitterObject { addListener(type: string, handler: Function): void; removeListener(type: string, handler: Function): void; } export declare function addDisposableEventListener(target: IEventEmitterObject | IShorthandEmitterObject, type: string, handler: Function): IDisposable; //# sourceMappingURL=disposableEvent.d.ts.map