import { PlainObject } from '../types'; import { UploadFile } from './types'; interface UploadOptions { url: string; file: UploadFile; fileVal: string; type: 'file' | 'base64'; xhrFields: PlainObject; beforeSend?: (file: UploadFile, data: PlainObject, headers: PlainObject) => void; onProgress?: (file: UploadFile, percent: number) => void; onSuccess?: (file: UploadFile, response: any) => void; onError?: (file: UploadFile, error: Error) => void; } export default function upload(options: UploadOptions): void; export {};