import React, { Component } from "react"; import { ShowUploadListInterface, RcCustomRequestOptions } from "antd/lib/upload/interface"; import "../style.css"; import "photoswipe/dist/photoswipe.css"; import "photoswipe/dist/default-skin/default-skin.css"; export interface iProps { uploadSignURL?: string; maxFileNumber?: number; maxFileLength?: number; minFileLength?: number; fileType?: string; filePatten?: string; fileList?: any[]; avatar?: any; action?: string; upload?: boolean; preview?: boolean; multiple?: boolean; directory?: boolean; disabled?: boolean; single?: boolean; showUploadList?: boolean | ShowUploadListInterface; onChange?: (files: any) => void; onRemove?: (files: any) => void; children?: React.ReactNode; } export default class FileUpload extends Component { private ref; private uploadService; state: any; constructor(props: 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; getExtendInfoData: (fileList: any) => Promise; handlePreview: (file: any) => Promise; handleCancel: () => void; customRequest: (options: RcCustomRequestOptions) => void; render(): JSX.Element; }