import React, { Component } from 'react'; import type { UploadProps, RcFile } from './interface'; interface ParsedFileInfo { origin: RcFile; action: string; data: Record; parsedFile: RcFile; } declare class AjaxUploader extends Component { state: { uid: string; }; reqs: any; private fileInput; private _isMounted; onChange: (e: React.ChangeEvent) => void; onClick: (e: React.MouseEvent | React.KeyboardEvent) => void; onKeyDown: (e: React.KeyboardEvent) => void; onFileDrop: (e: React.DragEvent) => void; componentDidMount(): void; componentWillUnmount(): void; uploadFiles: (files: File[]) => void; /** * Process file before upload. When all the file is ready, we start upload. */ processFile: (file: RcFile, fileList: RcFile[]) => Promise; post({ data, origin, action, parsedFile }: ParsedFileInfo): void; reset(): void; abort(file?: any): void; saveFileInput: (node: HTMLInputElement) => void; render(): React.JSX.Element; } export default AjaxUploader;