/// import { TcbService } from '../tcb/tcb.service'; import { ConfigService } from '../config/config.service'; export declare class CloudFileService { private readonly tcbService; private readonly configService; constructor(tcbService: TcbService, configService: ConfigService); /** * 获取永久文件链接 */ getPermanentLink(params: { content: Buffer; cloudPath: string; }): Promise; /** * 将云存储的文件传到hosting,并且换取永久链接 * * @param params 参数 * @param params.fieldId 必填。云存储文件的fieldId * @param params.clear 可选。上传后是否清除云存储中的文件,默认为false * @param params.cloudPath 可选。上传到hosting的路径,默认为随机值 * @returns 永久链接 */ uploadCosFileToHosting(params: { fieldId: string; clear?: boolean; cloudPath?: string; }): Promise; }