import * as S from 'ufc-schema'; import { RunOptions } from '../../env'; /** 获取某个文件详情 */ export declare function getFileById(fileId: S.Id, { HOST }?: RunOptions): Promise>; export declare function getFilesByIds(fileIds: S.Id[], { HOST }?: RunOptions): Promise>; /** 获取图片文件的下载地址 */ export declare function getImagePreSignedUrl(fileId: S.Id, storeId?: S.Id, runOptions?: RunOptions): Promise; /** 获取某个文件的下载地址 */ export declare function getPreSignedUrl(fileId: S.Id, storeId?: S.Id, runOptions?: RunOptions): Promise; /** * 创建文件 * 这里也支持直接以 URL 创建文件,storeKey 就是 URL,fileStore 选择当前租户类型为 HTTP_READ_ONLY 的存储 */ export declare function createFile(fileStore: S.FileStore, storeKey: string, attrs: Partial, { HOST }?: RunOptions): Promise; /** 复制某个文件 */ export declare function copyFile(file: S.File, runOptions?: RunOptions): Promise<"string">; export declare function updateFileAttr(fileId: S.Id, attr?: Partial, runOptions?: RunOptions): Promise;