/// declare class UploadFile { id: String; size: Number; contentType: String; createdAt: String; url: String; constructor(data: Object); } declare class Storage { private apiKey; constructor(apiKey: String); private readFromPath; /** * Upload a file to the Storage API * @param file Buffer * @returns Upload file */ uploadFile(file: Buffer): Promise; /** * Upload a file to the Storage API * @param path Path to the file * @returns Upload file */ uploadFile(path: String): Promise; /** * Upload files to the Storage API * @param files Array of buffer * @returns Upload file */ uploadFiles(files: Array): Promise>; /** * Upload files to the Storage API * @param files Array of paths * @returns Upload file */ uploadFiles(paths: Array): Promise>; } export default Storage;