import React, { PropsWithChildren, ReactNode } from 'react';
import { ErrorHandler } from '../kit/utils/error';
import { ModalSize } from './Modal';
export interface ConfirmModalProps {
    cancelText?: string;
    content?: ReactNode;
    danger?: boolean;
    size?: ModalSize;
    title?: string;
    okText?: string;
    onClose?: () => void;
    onConfirm: () => Promise<void> | void;
    onError: ErrorHandler;
}
export declare const DEFAULT_CONFIRM_TITLE = "Confirm Action";
export declare const DEFAULT_CONFIRM_LABEL = "Confirm";
export declare const DEFAULT_CONTENT = "Are you sure?";
type ConfirmModalModifier = (args: ConfirmModalProps) => void;
export declare const voidFn: () => void;
export declare const voidPromiseFn: () => Promise<void>;
export declare const ConfirmationProvider: React.FC<PropsWithChildren>;
declare const useConfirm: () => ConfirmModalModifier;
export default useConfirm;
//# sourceMappingURL=useConfirm.d.ts.map