import { type RefObject } from "react";
import { type GenericEventCallback } from "../../types/events";
export default function useEventListener({ eventName, callback, ref, capture }: {
    eventName: keyof HTMLElementEventMap | string;
    callback: GenericEventCallback;
    ref: RefObject<HTMLElement | Document>;
    capture?: boolean;
}): void;
