/**
 * useEvent
 *
 * Description : useEvent is a hook that adds event listener to element.
 *
 *
 * @param element element : window, document, globalThis, or HTMLElement
 * @param action action : action for element event
 * @param onAction onAction : event handler for element event
 * @param options? options : options for addEventListener
 */
export declare function useEvent<T extends Window | Document | HTMLElement | typeof globalThis | null, K extends (T extends Window | typeof globalThis ? keyof WindowEventMap : T extends Document ? keyof DocumentEventMap : T extends HTMLElement ? keyof HTMLElementEventMap : string) | (string & NonNullable<string>), L extends K extends keyof WindowEventMap ? (this: T, ev: WindowEventMap[K]) => any : K extends keyof DocumentEventMap ? (this: T, ev: DocumentEventMap[K]) => any : K extends keyof HTMLElementEventMap ? (this: T, ev: HTMLElementEventMap[K]) => any : EventListenerOrEventListenerObject>(element: T | undefined, action: K, onAction: L, options?: AddEventListenerOptions): void;
