import { RefObject } from 'react'; /** * A hook that triggers a callback when a click or touch event occurs outside a specified element. * @param ref React ref object for the element to monitor * @param handler Callback function to execute when click/touch occurs outside * @param enabled Optional flag to enable/disable the handler (defaults to true) */ export declare function useOnClickOutside(ref: RefObject, handler: (e: MouseEvent | TouchEvent) => void, enabled?: boolean): void;