///
import File from "./File";
interface OutputInterface {
files?: Array;
file?: File;
download(): Promise;
save(path: String): any;
downloadAll(): Promise>;
saveAll(path: String): any;
}
declare class GenericOutput implements OutputInterface {
files?: Array;
file?: File;
constructor(data?: any);
private getFiles;
private getFirstFile;
private getPromisePerFile;
/**
* Download the generated file
* @returns Buffer data
*/
download(): Promise;
/**
* Save the generated file in the specified path
* @param path Path to save download file
*/
save(path: String): Promise;
/**
* Download all generated files
* @returns Buffer data
*/
downloadAll(): Promise>;
/**
* Download all generated files in the specified path
* @param path Folder to save generated files
* @returns Buffer data
*/
saveAll(path: String): Promise;
}
export { GenericOutput };