/** * @description 上传请求错误类型 */ export declare class UploadAjaxError extends Error { status: number; method: string; url: string; constructor(message: string, status: number, method: string, url: string); } /** * @description 文件上传请求 * @param {Object} options 请求配置选项 * @returns {Promise} */ export declare function uploadFile(options: { action: string; file: File; filename: string; data?: Record; headers?: Record; withCredentials?: boolean; onProgress?: (percent: number) => void; onSuccess?: (response: any) => void; onError?: (error: Error) => void; }): XMLHttpRequest;