import { Basic, EndpointService, TaskInput, Task } from "../types"; /** * Class to manage and expose all endpoits and operations below '/rest/api/1.0/tasks/*' */ export declare class TasksEndpoint extends EndpointService { constructor(auth: Basic); /** * Create a new task * @param {TaskInput} taskInput Task intput to create it * @returns {Promise} Promise with the created task data */ create(taskInput: TaskInput): Promise; /** * Retrieve a existing task * @param {number} taskId Task id to retrieve * @returns {Promise} Promise with the requested task data */ get(taskId: number): Promise; /** * Update a existing task * @param {number} taskId Task id to retrieve * @param {TaskInput} taskInput Task data to update * @returns {Promise} Promise with the updated task data */ update(taskId: number, taskInput: TaskInput): Promise; /** * Delete a existing task * @param {number} taskId Task id to retrieve * @returns {Promise} If not throw errors, operation finish succesfully */ delete(taskId: number): Promise; }