import * as react_jsx_runtime from 'react/jsx-runtime';
import { ReactNode } from 'react';
import { BaseModalProps } from './Modal.js';

type RenderProps = {
    confirm: (value?: unknown) => void;
    cancel: () => void;
    params?: any;
    isOpen: boolean;
};
type useConfirmModalProps = Pick<BaseModalProps, 'initialFocusRef' | 'heading' | 'size'> & {
    render: (props: RenderProps) => ReactNode;
};
declare const useConfirmModal: ({ heading, size, render, initialFocusRef, }: useConfirmModalProps) => {
    renderModal: () => react_jsx_runtime.JSX.Element;
    showModal: (params?: any) => Promise<unknown>;
};

export { useConfirmModal as default, useConfirmModalProps };
