import { ReactInstance, Ref } from 'react';
declare type Options = {
    capture?: boolean;
    once?: boolean;
    passive?: boolean;
};
export default function useEventListener(element: Window | Document | HTMLElement | Ref<HTMLElement | ReactInstance>, eventName: string, handler: (event: Event) => void, options?: boolean | Options): void;
export declare function addEventListener(element: any, eventName: string, handler: (event: Event) => void, options?: boolean | Options): () => void;
export declare function removeEventListener(element: any, eventName: string, handler: (event: Event) => void, options?: boolean | Options): void;
export declare function getTargetElement(element: Window | Document | HTMLElement | Ref<HTMLElement | ReactInstance>): any;
export {};
