import { IDObject } from "./id-object"; /** * 可激发及监听事件基类 */ export declare abstract class EventedObject extends IDObject { private _events; private _eventParents; private _firingCount; constructor(); on(types: any, fn?: any, context?: any): this; off(types: any, fn?: Function, context?: any): this; _on(type: string, fn: Function, context: any): void; _off(type: string, fn: Function, context: any): void; fire(type: string, data?: any, propagate?: boolean): this; listens(type: string, propagate?: boolean): boolean; once(types: any, fn: Function, context?: any): this; addEventParent(obj: EventedObject): this; removeEventParent(obj: EventedObject): this; private _propagateEvent; addEventListener(types: any, fn: Function, context: any): void; removeEventListener(types: any, fn: Function, context: any): void; clearAllEventListeners(types: any, fn: Function, context: any): void; addOneTimeEventListener(types: any, fn: Function, context: any): void; fireEvent(type: string, data: any, propagate: boolean): void; hasEventListeners(type: string, propagate: boolean): void; }