declare type EventHandler = (this: T, ev: DocumentEventMap[K]) => any; /** * Attaches an event handler outside directly to specified DOM element * bypassing the react synthetic event system. * * @param element The target to listen for events on * @param event The DOM event name * @param handler An event handler * @param capture Whether or not to listen during the capture event phase */ export default function useEventListener(eventTarget: T | (() => T), event: K, listener: EventHandler, capture?: boolean | AddEventListenerOptions): void; export {};