import { Request } from "../structures/Request"; import { BaseRoute } from "./BaseRoute"; export declare class Views extends BaseRoute { /** * @constructor * @param {Request} request A request instance */ constructor(request: Request); /** * Get a view * * @param {String} viewId The view id */ get(viewId: string): Promise>; /** * Update a view * * @param {String} viewId The view id * @param {Object} data The view data */ update(viewId: string, data: object): Promise>; /** * Delete a view * * @param {String} viewId The view id */ delete(viewId: string): Promise>; /** * Add a comment on a view * * @param {String} viewId The view id * @param {Object} data The comment data */ addComment(viewId: string, data: object): Promise>; /** * Get all comments on a view * * @param {String} viewId The view id */ getComments(viewId: string): Promise>; /** * Get all tasks in a view * * @param {String} viewId The view id * @param {Integer} [page=0] The page to get */ getTasks(viewId: string, page?: number): Promise>; }