import { HttpClient } from '@mtraders/rest-api-client'; import { BaseComment, BaseCommentParam, BaseCommentWithParent, CommentWithHasChildren, Page, Response } from '../types'; declare type commentTargets = 'posts' | 'sheets' | 'journals'; export declare class CommentClient { private client; constructor(client: HttpClient); /** * Get top comments * * @param target posts, sheets, or journals * @param targetId the id of the target * @param params optional query params */ listTopComments(target: commentTargets, targetId: number, params?: { page: number; sort?: Array; }): Promise>>; /** * Get children comments * * @param target posts, sheets, or journals * @param targetId the id of the target * @param commentId the id of the top comment * @param params optional query params */ listChildren(target: commentTargets, targetId: number, commentId: number, params?: { sort?: Array; }): Promise>>; /** * Get comments as tree view * * @param target posts, sheets, or journals * @param targetId the id of the target * @param params optional query params */ listAsTreeView(target: commentTargets, targetId: number, params?: { page?: number; sort?: Array; }): Promise>>; /** * Get comments as list view * * @param target posts, sheets, or journals * @param targetId the id of the target * @param params optional query params */ listAsView(target: commentTargets, targetId: number, params?: { page?: number; sort?: Array; }): Promise>>; /** * Create a comment * * @param target posts, sheets, or journals * @param params the comment params */ create(target: commentTargets, params: BaseCommentParam): Promise; } export {}; //# sourceMappingURL=CommentClient.d.ts.map