import { IFile } from "../Interface"; import { SdkBase } from "./sdkBase"; import { SdkResult } from "../Entity"; import { FileInfo } from "../../../model/Entity"; import { HChooseImageOptions } from "../../../model/Entity/HChooseImageOption"; import { HChooseVideoSuccess } from "../../../model/Entity/HChooseVideoSuccess"; export declare class File extends SdkBase implements IFile { constructor(); PrintHtml(html: string): Promise>; GetSealImage(index: 0 | 1 | 2): Promise>; GetSignature(): Promise>; PlayMusic(url: string): Promise>; PreViewVideo(url: string): Promise>; AudioRecord(): Promise>; SaveBase64File(base64Data: string, ext: string): Promise>; ZipCompress(dirPath: string, zipFilePath: string): Promise>; ZipDecompress(filPath: string, targetDir: string): Promise>; GetTempDir(): Promise>; /** * 在线预览文件 * @param fileName * @param url * @param type */ PreViewOnlineFile(fileName: string, filePath: string, extName: string, appId: string, closeSelf?: boolean): Promise>; /** * 选择视频文件 */ ChooseVideo(option?: HChooseImageOptions): Promise>; /** * 选择文件 */ ChooseImage(option?: HChooseImageOptions): Promise>; /** * 获取文件信息 * @param filePath */ GetFileInfo(filePath: string): Promise>; /** * 上传文件 * @param filePath * @param key 文件路径 /日期/aa.jpg * @param progressFun */ Upload(filePath: string, key: string, progressFun: Function): Promise>; /** * 下载文件 * @param filePath * @param progressFun */ Download(filePath: string, progressFun: Function): Promise>; /** * 图片预览 * @param url * @param imgList 图片数组 */ PreViewImage(filePath: string, imgList: string[]): Promise>; /** * 文件预览 * @param fileUrl * @param fileName * @param extName * @param size */ ViewFile(filePath: string, fileName: string, extName: string, size: number): Promise>; } declare const _default: File; export default _default;