declare module 'ghost-storage-base' { import {RequestHandler} from 'express'; export type StorageFile = { name: string; path: string; type?: string; }; export default abstract class StorageBase { protected storagePath: string; getTargetDir(baseDir?: string): string; getUniqueFileName(file: StorageFile, targetDir: string): Promise; abstract save(file: StorageFile, targetDir?: string): Promise; abstract saveRaw(buffer: Buffer, targetPath: string): Promise; abstract exists(fileName: string, targetDir: string): Promise; abstract delete(fileName: string, targetDir: string): Promise; abstract read(file: {path: string}): Promise; abstract serve(): RequestHandler; abstract urlToPath(url: string): string; } }