import { Api } from '../api'; export declare const COMMENTS_API = "/service/element-comments"; export interface CommentPostData { text: string; organization: string; private: boolean; parent_id?: string; } export interface Comment { _id: string; author: { id: string; name: string; }; created_at: string; parent_id: string; private: boolean; text: string; replies?: Comment[]; } export interface BatchCommentRequest { keys: string[]; } interface BatchCommentResult { comments?: Comment[]; error?: string; } export type BatchCommentResponse = Record; export declare class Comments { api: Api; constructor(api: Api); getComments(elementHash: string, extraPath?: string): Promise>; getCommentsBatch(data: BatchCommentRequest): Promise>; postComment(elementHash: string, data: CommentPostData, extraPath?: string): Promise>; archiveComment(elementHash: string, commentId: string, extraPath?: string): Promise>; } export {};