import { MouseEvent, ReactElement } from 'react'; export interface ModalCloserProps { /** * Element that closes the modal when clicked. The element is cloned and receives * a wrapped `onClick` that calls the original handler first, then closes the modal. */ children: ReactElement<{ onClick?: (event: MouseEvent) => void; }>; } export declare const ModalCloser: { ({ children }: ModalCloserProps): JSX.Element; displayName: string; }; export default ModalCloser;