import type { Ref } from 'vue'; type TargetRef = EventTarget | Ref; export type UseEventListenerOptions = { target?: TargetRef; capture?: boolean; passive?: boolean; }; export declare function onMountedOrActivated(hook: () => any): void; export declare function useEventListener(type: K, listener: (event: DocumentEventMap[K]) => void, options?: UseEventListenerOptions): () => void; export declare function useEventListener(type: string, listener: EventListener, options?: UseEventListenerOptions): () => void; export {};