import { RefObject } from 'react'; /** * Subscribes an event listener to the target, and automatically unsubscribes * it on unmount. * * @param target Element ref object or element itself. * @param params Parameters specific for target's `addEventListener`. Commonly, * it is `[eventName, listener, options]`. */ export declare function useEventListener(target: RefObject | T | null, ...params: Parameters | [string, EventListenerOrEventListenerObject | ((...args: any[]) => any), ...any]): void;