import { FileData } from '@verdant-web/common'; import { Context } from '../context/context.js'; import { Disposable } from '../internal.js'; import { Sync } from '../sync/Sync.js'; import { EntityFile, EntityFileContext } from './EntityFile.js'; export declare class FileManager extends Disposable { private sync; private context; private cache; private fileData; constructor({ sync, context }: { sync: Sync; context: Context; }); add: (file: FileData) => Promise; /** * Immediately returns an EntityFile to use, then either loads * the file from cache, local database, or the server. */ get: (id: string, options: { downloadRemote?: boolean; ctx: Context; fileContext: EntityFileContext; }) => EntityFile; private updateFileData; private load; private onFileUploaded; }