import { FC } from 'react'; declare type UploadFileStatus = 'ready' | 'uploading' | 'success' | 'error'; export interface UploadFile { uid: string; size: number; name: string; status?: UploadFileStatus; percent?: number; raw?: File; response?: any; error?: any; } export interface UploadProps { action: string; defaultFileList?: UploadFile[]; beforeUpload?: (file: File) => boolean | Promise; onProgress?: (percentage: number, file: File) => void; onChange?: (file: File) => void; onError?: (error: any, file: File) => void; onSuccess?: (response: any, file: File) => void; onRemove?: (file: UploadFile) => void; headers?: { [key: string]: any; }; name?: string; data?: { [key: string]: any; }; withCredentials?: boolean; multiple?: boolean; accept?: string; } declare const Upload: FC; export default Upload;