/** * The storage adapter will just save the file and return * { * fileId: string, * location: string, // depending on storage it could be a path * } */ import mime from 'mime-types'; export type AdapterResult = { location: string; }; export type SaveOptionsOverride = { fileName?: string; path?: string; }; export type AdapterOptions = { baseDir: string; }; export declare abstract class BaseStorageAdapter { adapterOpts: AdapterOptions; constructor(adapterOpts: AdapterOptions); getAdapterOptions(): AdapterOptions; generateFileNameWithExtension(saveOpts: SaveOptionsOverride | undefined, file: File): string; abstract save(file: File, saveOpts?: SaveOptionsOverride): Promise; abstract remove(fileLocation: AdapterResult['location']): Promise; abstract read(fileLocation: AdapterResult['location']): Promise<{ contents: Buffer | string; type: ReturnType; }>; } //# sourceMappingURL=BaseStorageAdapter.d.ts.map