/// import { AxiosInstance } from 'axios'; import { IDownloadProcessed, IError } from './@typings'; declare type UseAny = any; /** * @class Task */ export declare class Task { #private; id: string; protected token: string; protected server: string; protected tool: string; /** * @constructor * @param {string} id Task ID * @param {string} token Task token * @param {string} server Task's server * @param {string} tool Task's tool */ constructor(id: string, token: string, server: string, tool: string); /** * @description Uploaded files * @return {string} */ get files(): string[]; /** * Get axios request instance. * @return {AxiosInstance} */ get request(): AxiosInstance; /** * Upload local file to I Love PDF Cloud. * @param {string} filePath File Path. * @param {string} fileName File Name * @return {Promise} */ addFileLocal(filePath: string, fileName: string): Promise; /** * Add file via URL * @param {string} fileUrl File URL * @param {string} fileName File Name * @return {Promise} */ addFileUrl(fileUrl: string, fileName: string): Promise; /** * Process current task. * @param {any} args Process payload * @return {Promise} */ process(args: UseAny): Promise; /** * @description Download processed task. * @return {Promise} buffer. */ download(): Promise; } export {};