// @ts-nocheck import { Observable } from "rxjs"; import { CommentPinAnnotation } from "../data/comment-pin-annotation.data.model"; export declare class CommentElement { /** * Subscribe to comments on the current document. * * Returns Observable. */ getAllCommentAnnotations: (documentId?: string, documentParams?: object) => Observable; /** * To delete selected comments */ deleteComment: () => any; /** * To enable text comment selection */ enableTextComments: () => any; /** * To disable text comment selection */ disableTextComments: () => any; /** * To allow text selection in specific elements only * @param elementIds Element ids to be allowed for text selection */ allowedElementIds: (elementIds: string[]) => any; /** * To enable/disable floating comments * * By default floating comments will be enabled * * Pass `true` to disable floating comments * * Pass `false` to enable floating comments * * @param disable Enble/Disable floating comments */ disableFloatingComments: (disable: boolean) => any; /** * To add comments on specific elements * * @param elementId ID of html element */ attachComment: (elementId: string) => any; /** * To open comment sidebar */ openCommentSidebar: () => any; /** * To close comment sidebar */ closeCommentSidebar: () => any; /** * To toggle comment sidebar */ toggleCommentSidebar: () => any; /** * To enable/disable moderator mode * * @param moderatorMode pass `true` to enable it, `false` to disable it. */ enableModeratorMode: (moderatorMode: boolean) => any; /** * To enable/disable stream mode * * @param enable pass `true` to enable it, `false` to disable it. */ enableStreamMode: (enable: boolean) => any; /** * To show sign in button in comments if user is signed out * * @param enable pass `true` to enable it, `false` to disable it. */ enableSignInButton: (enable: boolean) => any; /** * Subscribe to add comment mode change. * * Returns Observable. */ addCommentModeChange: () => Observable; /** * Enable this feature to add attachments in comments * * @param enable pass `true` to enable it, `false` to disable it. */ enableAttachment: (enable: boolean) => any; /** * Enable this feature to show device info in comments * * @param showInfo pass `true` to show info, `false` to hide it. */ showDeviceInfo: (showInfo: boolean) => any; /** * Enable comment mode to add comments. */ public enableCommentMode: () => any; /** * Disable comment mode. */ public disableCommentMode: () => any; /** * To show/hide comment number * @param show pass `true` to show it, `false` to hide it. */ public showCommentIndex: (show: boolean) => any; /** * To enable popover mode */ public enablePopoverMode: () => any; /** * To disable popover mode */ public disablePopoverMode: () => any; /** * To enable dialog on hover */ public enableDialogOnHover: () => any; /** * To disable dialog on hover */ public disableDialogOnHover: () => any; /** * To enable feature to show dialog on target element click */ public enableDialogOnTargetElementClick: () => any; /** * To disable feature to show dialog on target element click */ public disableDialogOnTargetElementClick: () => any; /** * To enable feature to set priority on comments */ public enablePriority: () => any; /** * To disable feature to set priority on comments */ public disablePriority: () => any; /** * To enable feature to set status on comments */ public enableStatus: () => any; /** * To disable feature to set status on comments */ public disableStatus: () => any; /** * To enable feature to resolve comments */ public enableResolve: () => any; /** * To disable feature to resolve comments */ public disableResolve: () => any; /** * To enable feature to show ghost comments */ public enableGhostCommentsInDOM: () => any; /** * To disable feature to show ghost comments */ public disableGhostCommentsInDOM: () => any; /** * To enable feature to show ghost comments message in comment dialog and comment sidebar */ public enableGhostCommentsMessage: () => any; /** * To disable feature to show ghost comments message in comment dialog and comment sidebar */ public disableGhostCommentsMessage: () => any; /** * To enable inbox mode */ public enableInboxMode: () => any; /** * To disable inbox mode */ public disableInboxMode: () => any; /** * To enable auto categorize feature */ public enableAutoCategorize: () => any; /** * To disable auto categorize feature */ public disableAutoCategorize: () => any; /** * To enable suggestion mode */ public enableSuggestionMode: () => any; /** * To disable suggestion mode */ public disableSuggestionMode: () => any; constructor(); /** * Subscribe to comments on the current document. * * Returns Observable. */ private _getAllCommentAnnotations; /** * To delete selected comments */ private _deleteComment; /** * To enable text comment selection */ private _enableTextComments; /** * To disable text comment selection */ private _disableTextComments; /** * To allow text selection in specific elements only * @param elementIds Element ids to be allowed for text selection */ private _allowedElementIds; /** * To enable/disable floating comments * * By default floating comments will be enabled * * Pass `true` to disable floating comments * * Pass `false` to enable floating comments * * @param disable Enble/Disable floating comments */ private _disableFloatingComments; /** * To add comments on specific elements * * @param elementId ID of html element */ private _attachComment; /** * To open comment sidebar */ private _openCommentSidebar; /** * To close comment sidebar */ private _closeCommentSidebar; /** * To toggle comment sidebar */ private _toggleCommentSidebar; /** * To enable/disable moderator mode * * @param moderatorMode pass `true` to enable it, `false` to disable it. */ private _enableModeratorMode; /** * To enable/disable stream mode * * @param enable pass `true` to enable it, `false` to disable it. */ private _enableStreamMode; /** * To show sign in button in comments if user is signed out * * @param enable pass `true` to enable it, `false` to disable it. */ private _enableSignInButton; /** * Subscribe to add comment mode change. * * Returns Observable. */ private _addCommentModeChange; /** * Enable this feature to add attachments in comments * * @param enable pass `true` to enable it, `false` to disable it. */ private _enableAttachment; /** * Enable this feature to show device info in comments * * @param showInfo pass `true` to show info, `false` to hide it. */ private _showDeviceInfo; /** * Enable comment mode to add comments. */ private _enableCommentMode; /** * Disable comment mode. */ private _disableCommentMode; /** * To show/hide comment number * @param show pass `true` to show it, `false` to hide it. */ private _showCommentIndex; /** * To enable popover mode */ private _enablePopoverMode; /** * To disable popover mode */ private _disablePopoverMode; /** * To enable dialog on hover */ private _enableDialogOnHover; /** * To disable dialog on hover */ private _disableDialogOnHover; /** * To enable feature to show dialog on target element click */ private _enableDialogOnTargetElementClick; /** * To disable feature to show dialog on target element click */ private _disableDialogOnTargetElementClick; /** * To enable feature to set priority on comments */ private _enablePriority; /** * To disable feature to set priority on comments */ private _disablePriority; /** * To enable feature to set status on comments */ private _enableStatus; /** * To disable feature to set status on comments */ private _disableStatus; /** * To enable feature to resolve comments */ private _enableResolve; /** * To disable feature to resolve comments */ private _disableResolve; /** * To enable feature to show ghost comments */ private _enableGhostCommentsInDOM; /** * To disable feature to show ghost comments */ private _disableGhostCommentsInDOM; /** * To enable feature to show ghost comments message in comment dialog and comment sidebar */ private _enableGhostCommentsMessage; /** * To disable feature to show ghost comments message in comment dialog and comment sidebar */ private _disableGhostCommentsMessage; /** * To enable inbox mode */ private _enableInboxMode; /** * To disable inbox mode */ private _disableInboxMode; /** * To enable auto categorize feature */ private _enableAutoCategorize; /** * To disable auto categorize feature */ private _disableAutoCategorize; /** * To enable suggestion mode */ private _enableSuggestionMode; /** * To disable suggestion mode */ private _disableSuggestionMode; }