import React, { Component } from "react"; import { ShowUploadListInterface, RcCustomRequestOptions } from "antd/lib/upload/interface"; export declare type UploadListType = 'text' | 'picture' | 'picture-card'; export interface iProps { uploadSignURL?: string; maxFileNumber?: number; maxFileLength?: number; minFileLength?: number; label?: string; fileType?: string; filePatten?: string; fileList?: any[]; action?: string; multiple?: boolean; directory?: boolean; disabled?: boolean; showUploadList?: boolean | ShowUploadListInterface; onChange?: (files: any[]) => void; children?: React.ReactNode; listType?: UploadListType; } export default class FileUpload extends Component { private uploadService; state: any; initFileList: (fileList?: any[]) => any[]; componentDidMount(): void; componentWillReceiveProps(newProps: any): void; transformFile: (file: any) => any; onChange: ({ fileList, file, event }: { fileList: any; file: any; event: any; }) => void; beforeUpload: (file: any) => any; customRequest: (options: RcCustomRequestOptions) => void; render(): JSX.Element; }