import { FC } from 'react'; import { ModalFuncProps, ModalProps } from 'antd/lib/modal'; import { FormBasicConfig, FormItemConfig } from '../types'; import useModal from './useModal'; import './style'; interface FormModalProps { mode?: 'form' | 'normal'; formConfig?: FormItemConfig; formProps?: { locales?: FormBasicConfig['locales']; initialValues?: FormBasicConfig['initialValues']; validationCodeExtraParams?: Record; }; onOk?: (values: any, fullValue: any) => any; limitHeight?: boolean; } interface ModalFuncReturn { destroy: Function; update: (props: ModalProps & ModalFuncProps & FormModalProps) => any; } export type ModalFunction = (props: ModalProps & ModalFuncProps & FormModalProps) => ModalFuncReturn; interface ModalType extends FC { confirm: ModalFunction; info: ModalFunction; warning: ModalFunction; error: ModalFunction; success: ModalFunction; noFooter: ModalFunction; destroyAll: Function; useModal: typeof useModal; } declare const IglooModal: ModalType; export default IglooModal;