import { File } from './file'; import { MetaStorage, MetaStorageOptions, UploadList } from './meta-storage'; export interface LocalMetaStorageOptions extends MetaStorageOptions { /** * Where the upload metadata should be stored */ directory?: string; } /** * Stores upload metafiles on local disk */ export declare class LocalMetaStorage extends MetaStorage { readonly directory: string; constructor(config?: LocalMetaStorageOptions); /** * Returns metafile path * @param id - upload id */ getMetaPath: (id: string) => string; save(id: string, file: T): Promise; touch(id: string, file: T): Promise; get(id: string): Promise; delete(id: string): Promise; list(prefix?: string): Promise; private accessCheck; }