import { Modal, ModalProps } from "antd"; import { modalGlobalConfig, ModalStaticFunctions } from "antd/es/modal/confirm"; import PurePanel from "antd/es/modal/PurePanel"; import { HookAPI } from "antd/es/modal/useModal"; type useModalType = readonly [ instance: HookAPI, contextHolder: React.ReactElement ]; export type ModalType = typeof Modal & ModalStaticFunctions & { useModal: useModalType; destroyAll: () => void; config: typeof modalGlobalConfig; /** @private Internal Component. Do not use in your production. */ _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel; }; export type { ModalProps };