import { type MouseEventHandler } from 'react'; export declare function closeOnDirectClick(onClose?: () => void): MouseEventHandler;