/// <reference types="react" />
import { PromptProps } from '../type';
export default function usePrompt({ onOk, onCancel }: Pick<PromptProps, 'onOk' | 'onCancel'>): {
    value: undefined;
    visible: boolean;
    okBtnLoading: boolean;
    cancelBtnLoading: boolean;
    hide: () => void;
    onChange: import("react").Dispatch<import("react").SetStateAction<undefined>>;
    handleOk: () => void;
    handleCancel: () => Promise<void>;
};
//# sourceMappingURL=usePrompt.d.ts.map