import { type MouseEvent } from 'react'; type BtnHandle = (e: MouseEvent) => void; type Destroy = () => void; export declare const useHandlePromise: (onOk: BtnHandle, onCancel: BtnHandle, destroy: Destroy) => { handleOk: (e: MouseEvent) => void; handleCancel: (e: MouseEvent) => void; autoOkLoading: boolean; autoCancelLoading: boolean; }; export {};