import { Singleton } from "../Common/Singleton"; import { IDirectoryProps } from "../UI/Components/SourceManage/CommonPanel"; export interface IFileInfo { file_id?: string; dir_id?: string; name?: string; logo?: string; file?: string; zip_type?: "gzip"; update_date?: string; code?: string; path?: string; pathNum?: number[]; } /** * File server * 保存CAD的文件服务,统一由这里经过文件的CRUD操作 */ export declare class FileServer extends Singleton { currentFileInfo: { name: string; dir: IDirectoryProps; }; m_CurFileId: string; CurrentFileMd5: string; _CurrentFilePath: string; constructor(); AddNewFile(): Promise; GetFileMD5(fid: string): Promise; OpenFile(fid: string, file?: string): Promise; ReadFileList(): Promise; GetFileInfo(fid: string, code?: string): Promise; CacheFileInfo(fid: string, info: IFileInfo): Promise; UploadFile(fileInfo: IFileInfo, rawFile?: string): Promise; UpdateFile(fileInfo: IFileInfo, rawFile?: string): Promise; Download(fid: string): Promise; private SaveCurrentFileInfo; Clear(): void; } //# sourceMappingURL=FileServer.d.ts.map