interface UploadOptions { endpoint: string; getToken: () => string; chunkSize?: number; onSuccess?: (file: any, response: any) => void; onError?: (error: any) => void; onProgress?: (progress: number, file: any) => void; } export declare class FileUploader { private uppy; private options; constructor(options: UploadOptions); private bindEvents; /** * 上传文件 */ upload(file: File): Promise; /** * 销毁实例(很重要,避免内存泄漏) */ destroy(): void; } export {};