import { Definer } from '@react-form-builder/core'; import { JSX } from 'react/jsx-runtime'; import { ModalProps } from '@mantine/core'; import { ReactNode } from 'react'; /** * Mantine dialog component for React Form Builder. * @param props component properties. * @returns dialog component. */ export declare function MtDialog(props: MtDialogProps): JSX.Element; export declare const mtDialog: Definer; /** * Props for the MtDialog component. */ declare interface MtDialogProps extends Partial> { /** * Flag if true, the modal window should be displayed, false otherwise. */ open?: boolean; /** * The function that should be called when the modal window is closed. */ handleClose?: () => void; /** * Called when modal/drawer is closed. */ onClose?: () => void; /** * Callback fired when the dialog opens. */ onOpen?: () => void; /** * Controls opened state. */ opened?: boolean; /** * Optional description text displayed under the title. */ description?: string; /** * The main content of the dialog. */ children?: ReactNode; /** * Whether to show the close button in the dialog header. */ showCloseButton?: boolean; } export { }