import * as React from 'react'; import { ModalProps, ModalFuncProps } from 'antd'; import hoistNonReactStatic from 'hoist-non-react-statics'; import "./style/index.less"; import { ModalStaticFunctions, modalGlobalConfig } from 'antd/lib/modal/confirm'; import useModal from 'antd/lib/modal/useModal'; declare type ISize = 'small' | 'large'; interface IWrappedComponentInstance { size?: ISize; prefixCls?: string | undefined; className?: string; width?: string | number; } declare const _default: { new (props: (ModalStaticFunctions & { destroyAll: () => void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance) | Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>): { render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextState: Readonly<{}>, nextContext: any): void; }; new (props: ModalStaticFunctions & { destroyAll: () => void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance, context: any): { render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, nextState: Readonly<{}>, nextContext: any): void; }; contextType?: React.Context; } & hoistNonReactStatic.NonReactStatics void; config: typeof modalGlobalConfig; } & ModalProps & { useModal: typeof useModal; } & ModalFuncProps & IWrappedComponentInstance>, {}>; export default _default;