index.d.ts 635 B

123456789101112131415
  1. import type { ModalStaticFunctions } from './confirm';
  2. import { modalGlobalConfig } from './confirm';
  3. import OriginModal from './Modal';
  4. import PurePanel from './PurePanel';
  5. import useModal from './useModal';
  6. export type { ModalFuncProps, ModalLocale, ModalProps } from './interface';
  7. type ModalType = typeof OriginModal & ModalStaticFunctions & {
  8. useModal: typeof useModal;
  9. destroyAll: () => void;
  10. config: typeof modalGlobalConfig;
  11. /** @private Internal Component. Do not use in your production. */
  12. _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
  13. };
  14. declare const Modal: ModalType;
  15. export default Modal;