import { Stream } from "stream"; import AppFile from "../model/entities/AppFile.js"; import FileContent from "../model/entities/FileContent.js"; import { LocalFile } from "@entity-access/server-pages/dist/core/LocalFile.js"; /** * This service is scoped to timely clean up the temp files after each scope. */ export default class TempFileService { private files; private storage; private diskCache; private cryptoService; downloadAppFile(appFile: AppFile): Promise; downloadFileContent(fc: FileContent | string | number | bigint, { name, contentType }: Partial): Promise; downloadFileWithoutCache(f: AppFile): Promise; downloadCloudFile(cloudPath: string, fileName: string, contentType?: string): Promise; createTempFile2(name: string, mimeType?: string): Promise; createTempFile(ext?: string, name?: string, mimeType?: string): Promise; download(inputUrl: string, name?: string, retry?: number): Promise; downloadVerify(inputUrl: string, name?: string, contentHash?: string, retry?: number): Promise; createFrom(fileName: string, content: Buffer | Stream, contentType: string): Promise; [Symbol.dispose](): void; private fetch; } //# sourceMappingURL=TempFileService.d.ts.map