/// declare class PDFFile { name: String; url: String; constructor(data: Object); download(path?: String): Promise; } declare class PDFOutput { files?: Array; file?: PDFFile; constructor(data?: any); } declare class Result { id: String; name: String; status: String; createdAt: String; output: PDFOutput; constructor(data?: any); private isValidResponse; private getFirstFile; /** * Download the generated file * @param path Optional - Path to save download file * @returns Buffer data */ download(path?: String): Promise; /** * Download all generated files * @param path Optional - Folder to save generated files * @returns Buffer data */ downloadAll(path?: String): Promise>; } export default Result;