UNPKG

525 BTypeScriptView Raw
1export function getListenersCounter(): number;
2export default class EventManager {
3 constructor(context?: object);
4
5 context: any;
6
7 addEventListener(element: Element, eventName: string, callback: (event: Event) => void, options?: boolean | AddEventListenerOptions): () => void;
8 removeEventListener(element: Element, eventName: string, callback: () => void, onlyOwnEvents?: boolean): void;
9 clear(): void;
10 destroy(): void;
11 destroyWithOwnEventsOnly(): void;
12 fireEvent(element: Element, eventName: string): void;
13}