import React from 'react'; export interface IFileProp { uid: string; name?: string; status?: string; url: string; } export interface IUploadProps { onChange: (value: any) => void; action: string; initImageUrls?: IFileProp[] | string[]; maxFileLength: number; fileTypes?: string[]; fileSize?: number; origin?: boolean; form?: any; } export default class Uploader extends React.Component { private defaultFileTypes; private defaultFileSize; private defaultMaxFileLength; state: { fileList: any[]; fileTypes: any; fileSize: any; maxFileLength: any; }; componentDidMount(): void; componentWillReceiveProps(newProps: any): void; init: (initImageUrls: any, origin: any) => void; handleChange: (info: any) => void; isRightType: (file: any) => boolean; beforeUpload: (file: any) => boolean; render(): any; }