import * as React from 'react'; import type { ModalFunc, ModalStaticFunctions } from '../confirm'; export type ModalFuncWithPromise = (...args: Parameters) => ReturnType & { then(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise; }; export type HookAPI = Omit, 'warn'>; declare function useModal(): readonly [instance: HookAPI, contextHolder: React.ReactElement]; export default useModal;