import type { BasicTarget } from '../utils/domTarget'; type noop = (...p: any) => void; export type Target = BasicTarget; type Options = { target?: T; capture?: boolean; once?: boolean; passive?: boolean; }; declare function useEventListener(eventName: K, handler: (ev: HTMLElementEventMap[K]) => void, options?: Options): void; declare function useEventListener(eventName: K, handler: (ev: ElementEventMap[K]) => void, options?: Options): void; declare function useEventListener(eventName: K, handler: (ev: DocumentEventMap[K]) => void, options?: Options): void; declare function useEventListener(eventName: K, handler: (ev: WindowEventMap[K]) => void, options?: Options): void; declare function useEventListener(eventName: string, handler: noop, options: Options): void; export default useEventListener;