/** * Add event listener to the document, returns the cleanup function for removing the listener. */ export declare function on(doc: Document, eventName: K, callback: (event: DocumentEventMap[K]) => void, options?: boolean): () => void; /** * Add event listener to the window, returns the cleanup function for removing the listener. */ export declare function on(win: Window, eventName: K, callback: (event: WindowEventMap[K]) => void, options?: boolean): () => void; /** * Add event listener to the element, returns the cleanup function for removing the listener. */ export declare function on(element: Element, eventName: K, callback: (event: HTMLElementEventMap[K]) => void, options?: boolean): () => void; //# sourceMappingURL=event-on.d.ts.map