import { BaseEditor, Path } from "slate";
import { ICommentState, IDiscussionDTO, IElement, IMentionedList, IMessageDTO, IUserDTO, IUserState } from "../../../utils/types";
export declare const isCommentsAllowedForElement: (editor: BaseEditor, element: IElement, path: Path) => boolean;
export declare const getCurrentDiscussion: (discussions: {
    [key: string]: IDiscussionDTO;
}, element: IElement) => IDiscussionDTO | undefined;
export declare const isNewDiscussion: (activeDiscussion: string) => boolean;
export declare const checkIsRangeComment: (activeDiscussion: string) => boolean;
export declare const getDiscussionTitle: (commentCount: number) => string;
export declare const getUserName: (user: IUserDTO) => string;
export declare const getCommentBody: (state: ICommentState) => {
    message: string;
    to_users: Array<string>;
    to_roles: Array<string>;
};
export declare const getMessageWithDisplayName: (comment: IMessageDTO | undefined, userState: IUserState, profile: "text" | "html") => string;
export declare const sanitizeData: (dirty: any) => any;
export declare const getError: (comment: string, to_roles: IMentionedList, to_users: IMentionedList) => string;
export declare const removeDeletedMentions: (message: string, to_roles: IMentionedList, to_users: IMentionedList) => {
    to_users: IMentionedList;
    to_roles: IMentionedList;
};
export declare const parseDiscussionUID: (discussionUid: string) => string;
export declare const getTargetDOM: (activeDiscussion: string, isNewDiscussion: boolean) => Element | globalThis.Range;
