import React from 'react'; export interface BasicModalProps { isOpen: boolean; headerText: string; bodyText: string | (() => string); onCancel?: () => void; onConfirm: () => void; onDiscard?: () => void; onModalDisable?: () => void; cancelButtonText?: string; confirmButtonText?: string; discardButtonText?: string; isConfirmDanger?: boolean; children?: React.ReactNode; 'data-testid'?: string; } /** * A basic modal dialog with two buttons: cancel / confirm. * * @param isOpen indicates if the modal dialog is open * @param headerText text displayed in the modal header * @param bodyText text displayed in the modal body * @param onCancel callback for the cancel button; if not provided, button not shown * @param onConfirm callback for the confirm button * @param onDiscard callback for the discard button; if not provided, button not shown * @param cancelButtonText optional text for the cancel button, defaults to 'Cancel' * @param confirmButtonText optional text for the confirm button, defaults to 'Okay' * @param discardButtonText optional text for the discard button, defaults to 'Discard' */ declare function BasicModal(props: BasicModalProps): JSX.Element; export default BasicModal; //# sourceMappingURL=BasicModal.d.ts.map