import react__default, { MutableRefObject } from 'react';
import { ProgressBarProps } from './ProgressBar.js';
import '@emotion/react/jsx-runtime';

type ModalProps = {
    visible: boolean;
    onClose: () => void;
    title?: string;
    description?: string | undefined;
    cancelText?: string | undefined;
    cancelDisabled?: boolean;
    cancelHidden?: boolean;
    ghost?: boolean;
    onSubmit?: (() => void) | undefined;
    onCancel?: () => void;
    submitDisabled?: boolean;
    submitLoading?: boolean;
    submitText?: string;
    children?: react__default.ReactNode;
    firstFocusRef?: MutableRefObject<{
        focus: () => void;
    } | null>;
    autoFocus?: boolean;
    nonDismissable?: boolean;
    width?: 460 | 600;
    progressBar?: ProgressBarProps;
};
declare function Modal({ visible, title, description, children, onClose, onCancel, cancelDisabled, cancelHidden, ghost, onSubmit, submitDisabled, submitLoading, submitText, cancelText, firstFocusRef, nonDismissable, autoFocus, width, progressBar, }: ModalProps): react__default.ReactPortal | null;

export { Modal };
