import { FileUploadRequestModel, FileUploadViewerInfo } from '../api/model/file.model'; import { UofxFileService } from '../api/service/file.service'; import { UofxFileGroupModel, UofxFileUploadFileItem } from '../file.interface'; import { UofxFileDownloadHelper, UofxFileModel } from '@uofx/app-components/file-helper'; import * as i0 from "@angular/core"; export declare class UofxFileUploadController { private _service; private downloadHelper; cancelUploadIds: Array; constructor(_service: UofxFileService, downloadHelper: UofxFileDownloadHelper); /** @public 取消上傳 */ cancelUpload(fileId: string): void; /** @public 上傳檔案 */ uploadFile(file: Blob, fileItem: UofxFileUploadFileItem, module: string, subModule: string, chunkSize: number, viewerInfo: FileUploadViewerInfo): Promise; /** * @internal 分段上傳 * @param {FileUploadRequestModel} model 上傳檔案的資訊 * @param {Blob} file 檔案 * @param {UofxFileUploadFileItem} fileItem 上傳元件所需的model * @return {*} {Promise} * @memberof UofxFileUploadController */ chunkUpload(model: FileUploadRequestModel, file: Blob, fileItem: UofxFileUploadFileItem): Promise; /** * 轉換成UofxFileGroupModel * @param {string} fileGroupId File Group ID * @param {string} module 上傳檔案的模組 * @param {number} totalSize 檔案上傳的大小限制 (單位: byte) * @param {Array} resultFileList 檔案列表 * @param {string} [subModule=''] 上傳檔案的子分類 * @returns * @memberof UofxFileUploadController */ convertToUofxFileGroupModel(fileGroupId: string, module: string, totalSize: number, resultFileList: Array, subModule?: string): UofxFileGroupModel; /** * 轉換成api的 UofxFileModel * @param {Array} fileList 上傳元件所需的model * @return {*} {Array} * @memberof UofxFileUploadController */ _mapToUofFileSaveModel(fileList: Array): UofxFileModel[]; /** * 取得檔案列表 * @param fileGroupId fileGroupId * @returns FileListModel */ loadFileList(fileGroupId: string): import("rxjs").Observable; /** @internal 錯誤訊息 */ _errorMessage(error: any): string; /** @internal Error 轉換成 i18n Key */ _convertErrorCodeToi18nKey(errorCode: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** https://github.com/ionic-team/capacitor/issues/1564 */ export declare function getFileReader(): FileReader; export declare function delay(ms: number): Promise;