import React, { FunctionComponent } from "react"; import { alignActionsType } from "../Modal"; export interface ModalConfirmProps { title?: string; subTitle?: string; children?: React.ReactNode; onClose: () => void; onCloseText?: string; showConfirmBtn?: boolean; showCloseBtn?: boolean; onConfirm: React.MouseEventHandler; onConfirmText?: string; alignActions?: alignActionsType; } /** * @component Renders a modal confirmation component with customizable text, buttons and styling. * * - The props object containing the following properties: * @prop {string} title: The title to be displayed in the modal. * @prop {string} subTitle: The subtitle to be displayed in the modal. * @prop {React.ReactNode} children: The content to be rendered inside the modal. * @prop {() => void} onClose: A function to call when the close button is clicked. * @prop {string} onCloseText: The text to be displayed on the close button. * @prop {boolean} showConfirmBtn: A boolean indicating whether to show the confirm button. * @prop {boolean} showCloseBtn: A boolean indicating whether to show the close button. * @prop {React.MouseEventHandler} onConfirm: A function to call when the confirm button is clicked. * @prop {string} onConfirmText: The text to be displayed on the confirm button. * @prop {alignActionsType} alignActions: The alignment of the action buttons. * @return {ReactElement} The rendered modal confirm component. */ export declare const ModalConfirm: FunctionComponent;