import { FileStorage } from "./FileStorage"; export interface Storage { set(path: string, data: Buffer): Promise; get(path: string): Promise; delete(path: string): Promise; } var storage: Storage; if (process.env.STORAGE_PROVIDER === "file") { storage = new FileStorage(); } export { storage };