import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren, ReactElement } from 'react';
import { BaseModalProps } from './Modal.js';
import { noop } from '../../utils/utils.js';

type ConfirmModalProps = Omit<BaseModalProps, 'isOpen' | 'isClosable' | 'size' | 'onClose'> & PropsWithChildren<{
    trigger: string | ReactElement;
    onConfirm: (dismiss: (value?: unknown) => void) => void;
    onClose?: typeof noop;
    primaryActionLabel?: string;
    secondaryActionLabel?: string;
    variant?: 'default' | 'delete' | 'success' | 'error';
    autoCloseOnConfirm?: boolean;
}>;
declare const ConfirmModal: {
    (props: ConfirmModalProps): react_jsx_runtime.JSX.Element;
    displayName: string;
};

export { ConfirmModalProps, ConfirmModal as default };
