import { DocComment } from "../ot/doc-container"; export interface CommentsMapHandler { onInsertComment: (comment: DocComment) => void; onDeleteComment: (comment: DocComment) => void; onUpdatePosition: () => void; } export declare class CommentGroup { comments: DocComment[]; handler: CommentsMapHandler; commentGroupId: string; commentGroupAbstract: string; constructor(comments: DocComment[], handler: CommentsMapHandler); private exists; getCommentById(commentId: string): DocComment | undefined; update(others: DocComment[]): void; get groupId(): string; } export declare class CommentsMap { groups: CommentGroup[]; handler: CommentsMapHandler; constructor(comments: DocComment[][], handler: CommentsMapHandler); get groupCount(): number; getGroup(index: number): CommentGroup | undefined; getGroupByCommentGroupId(ids: string | string[]): CommentGroup | undefined; getGroupIndexByCommentGroupId(id: string): number; getCommentById(groupId: string, commentId: string): DocComment | undefined; update(allComments: DocComment[][]): void; updatePosition(): void; }