import * as React from 'react'; import { DraggerProps } from 'antd/lib/upload'; import './index.less'; interface IProps extends DraggerProps { fileType: string; fileLimit: string; fileUrl: string; fileCount: number; title?: string; submitFile: (file: any) => void; triggerRef?: (context: any) => void; } interface IState { fileList: Array; visible: boolean; confirmLoading: boolean; file: any; } declare class Upload extends React.Component { static defaultProps: { fileType: string; fileLimit: string; fileCount: number; }; constructor(props: IProps); componentDidMount(): void; show: () => void; hide: () => void; render(): JSX.Element; } export default Upload;