import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Comment, CreateCommentOptions, CreateCommentApplicationErrors, UpdateComment, UpdateCommentApplicationErrors, ModerateDraftContentOptions, ModerateDraftContentResponse, MarkCommentResponse, UnmarkCommentResponse, HideCommentResponse, PublishCommentResponse, CountCommentsOptions, CountCommentsResponse, CountCommentsApplicationErrors, ListCommentsByResourceOptions, ListCommentsByResourceResponse, AddCommentReactionApplicationErrors, RemoveCommentReactionApplicationErrors, BulkGetCommentReactionsOptions, BulkGetCommentReactionsResponse, BulkGetCommentReactionsApplicationErrors, GetCommentThreadOptions, GetCommentThreadResponse, BulkPublishCommentOptions, BulkPublishCommentResponse, BulkHideCommentOptions, BulkHideCommentResponse, BulkDeleteCommentOptions, BulkDeleteCommentResponse, BulkModerateDraftContentOptions, BulkModerateDraftContentResponse, BulkMoveCommentByFilterOptions, BulkMoveCommentByFilterResponse, CommentDeletedEnvelope, CommentContentChangedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentUnmarkedEnvelope, CommentCreatedEnvelope, CommentResourceCommentCountChangedEnvelope, CommentUpdatedEnvelope, CommentQuery, QueryCommentsOptions, typedQueryComments, CommentsQueryBuilder } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, Action, ActionEvent, ActionWithLiterals, AddCommentReactionRequest, AddCommentReactionResponse, AddressLocation, Alignment, AlignmentWithLiterals, AnchorData, Animation, App, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, Attachment, AttachmentMediaOneOf, AudioData, AuthorBadge, AuthorBadgeWithLiterals, AuthorBadges, AuthorBadgesInfo, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerOriginPresenceOneOf, BannerPosition, BannerPositionWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulkDeleteCommentRequest, BulkGetCommentReactionsRequest, BulkHideCommentRequest, BulkModerateDraftContentRequest, BulkMoveCommentByFilterRequest, BulkPublishCommentRequest, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckboxListData, CodeBlockData, CollapsibleListData, ColorData, ColorDataBackground, ColorDataBackgroundType, ColorDataBackgroundTypeWithLiterals, Colors, ColumnSize, ColumnSizeWithLiterals, CommentAuthor, CommentAuthorIdentityOneOf, CommentCodeReactions, CommentContent, CommentContentChanged, CommentDeleted, CommentHidden, CommentMarked, CommentModerated, CommentMoved, CommentPublished, CommentQuerySpec, CommentReactionSummary, CommentReactionsInfo, CommentSort, CommentUnmarked, CommentsQueryResult, CommonQueryWithEntityContext, ContactDetails, ContentAuthor, ContentAuthorAuthorOneOf, CountCommentsRequest, CreateCommentRequest, CreateCommentResponse, Crop, CropWithLiterals, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteByFilterOperation, DeleteByIdsOperation, DeleteCommentRequest, DeleteCommentResponse, Design, DesignTarget, DesignTargetWithLiterals, Destination, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DividerDataStyles, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EntranceAnimation, EntranceEffect, EntranceEffectType, EntranceEffectTypeWithLiterals, EventData, EventMetadata, File, FileData, FileSource, FileSourceDataOneOf, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetCommentRequest, GetCommentResponse, GetCommentThreadRequest, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, HideCommentRequest, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataCrop, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, InternalDocument, InternalDocumentUpdateByFilterOperation, InternalDocumentUpdateOperation, InternalUpdateExistingOperation, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemDataOneOf, ItemStyle, LayerEffect, LayerEffectWithLiterals, Layers, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineCap, LineCapWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListCommentsByResourceCursorPaging, ListCommentsByResourceRequest, ListCommentsByResourceRequestedFields, ListCommentsByResourceRequestedFieldsWithLiterals, ListItemMarkerColor, ListItemMarkerColorBackground, ListItemMarkerColorBackgroundType, ListItemMarkerColorBackgroundTypeWithLiterals, ListItemMarkerStyle, ListItemNodeData, ListStyle, ListStyleWithLiterals, ListValue, LoopAnimation, LoopEffect, LoopEffectType, LoopEffectTypeWithLiterals, MapData, MapSettings, MapType, MapTypeWithLiterals, MarkCommentRequest, Media, Mention, MentionData, MentionIdentityOneOf, MessageEnvelope, Metadata, ModerateDraftContentRequest, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, Order, OrderWithLiterals, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Page, Pages, ParagraphData, ParentComment, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, PointerEffect, PointerEffectType, PointerEffectTypeWithLiterals, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, PublishCommentRequest, QueryCommentsRequest, QueryCommentsResponse, Rel, RemoveCommentReactionRequest, RemoveCommentReactionResponse, RepliesListResponse, ReplySort, ReplySortOrder, ReplySortOrderWithLiterals, Resizing, ResizingWithLiterals, ResourceCommentCountChanged, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, SectionDivider, Settings, Shape, ShapeData, ShapeDataStyles, ShapeWithLiterals, SketchData, SlotData, SlotDesign, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, Type, TypeWithLiterals, URI, URIs, UnmarkCommentRequest, UpdateCommentRequest, UpdateCommentResponse, UpdateInternalDocumentsEvent, UpdateInternalDocumentsEventOperationOneOf, Variant, VariantWithLiterals, VersionedDeleteByIdsOperation, VersionedDocumentId, VersionedDocumentUpdateOperation, VersioningMode, VersioningModeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, VoteSummary, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, utils } from './index.typings.js'; declare function createComment$1(httpClient: HttpClient): CreateCommentSignature; interface CreateCommentSignature { /** * Creates a new comment. * * Depending on the comment context's moderation settings, the comment may be published immediately or submitted for moderation. * * The `appId`, `contextId`, and `resourceId` are all required and associate the created comment with the specific * resource it responds to. See **Integrations** in the Comments introduction for a list of integrated scopes for these fields. * * If the created comment is a direct response to another comment, the `commentId` of the parent comment should be passed * as `parentComment.id` in this comment's request. See **Terminology** in the Comments introduction for additional information on parent comments and replies. * @param - Comment to create. * @returns Created comment. */ (comment: NonNullablePaths, options?: CreateCommentOptions): Promise & { __applicationErrorsType?: CreateCommentApplicationErrors; }>; } declare function getComment$1(httpClient: HttpClient): GetCommentSignature; interface GetCommentSignature { /** * Retrieves a comment. * @param - ID of the comment to retrieve. * @returns Retrieved comment. */ (commentId: string): Promise>; } declare function updateComment$1(httpClient: HttpClient): UpdateCommentSignature; interface UpdateCommentSignature { /** * Updates a comment. * * Each time the comment is updated, `revision` increments by 1. The current `revision` must be * passed when updating the comment. This ensures you're working with the latest comment and * prevents unintended overwrites. * @param - Comment ID. * @returns Updated comment. */ (_id: string, comment: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateCommentApplicationErrors; }>; } declare function deleteComment$1(httpClient: HttpClient): DeleteCommentSignature; interface DeleteCommentSignature { /** * Deletes a comment. * * This method deletes the `content` of the comment and sets its `status` to `DELETED`. * @param - ID of the comment to delete. */ (commentId: string): Promise; } declare function moderateDraftContent$1(httpClient: HttpClient): ModerateDraftContentSignature; interface ModerateDraftContentSignature { /** * Moderates the draft content of a comment. * * - `APPROVE`: Moves `draftContent` to `content` and updates the comment `status` to `PUBLISHED`. * * - `REJECT`: Handles the draft content based on the current comment status: * - If the comment `status` is `PUBLISHED`, clears `draftContent`. * - If the comment `status` is `PENDING`, keeps `draftContent` unchanged and changes `status` to `HIDDEN`. * * To moderate multiple comments, call Bulk Moderate Draft Content. * @param - ID of the comment to moderate. * @param - Revision number, which increments by `1` each time the comment is updated. * * To prevent conflicting changes, the current `revision` must be passed when updating the comment. */ (commentId: string, revision: string, options?: ModerateDraftContentOptions): Promise>; } declare function markComment$1(httpClient: HttpClient): MarkCommentSignature; interface MarkCommentSignature { /** * Sets `marked` to `TRUE` to mark a comment. * * Call Query Comments to filter for marked comments to then apply customization to. * See Sample Flows for an example. * @param - ID of the comment to mark. */ (commentId: string): Promise>; } declare function unmarkComment$1(httpClient: HttpClient): UnmarkCommentSignature; interface UnmarkCommentSignature { /** * Sets `marked` to `FALSE` to unmark a comment. * @param - ID of the comment to unmark. */ (commentId: string): Promise>; } declare function hideComment$1(httpClient: HttpClient): HideCommentSignature; interface HideCommentSignature { /** * Hides a comment in a widget. The comment status becomes `HIDDEN`. * @param - ID of the comment to hide. */ (commentId: string): Promise>; } declare function publishComment$1(httpClient: HttpClient): PublishCommentSignature; interface PublishCommentSignature { /** * Publishes a comment with the `HIDDEN` status. The comment status becomes `PUBLISHED`. * * To publish a new comment, call Create Comment. * @param - ID of the comment to publish. */ (commentId: string): Promise>; } declare function countComments$1(httpClient: HttpClient): CountCommentsSignature; interface CountCommentsSignature { /** * Counts comments, given the specified filtering. Comments with the `HIDDEN` status are not included in the response. * @param - App ID to count the comments of. */ (appId: string, options?: CountCommentsOptions): Promise & { __applicationErrorsType?: CountCommentsApplicationErrors; }>; } declare function listCommentsByResource$1(httpClient: HttpClient): ListCommentsByResourceSignature; interface ListCommentsByResourceSignature { /** * Lists published comments and replies from a specified resource, such as a blog post. * * Specify `AUTHOR_BADGES` in `fields` to return broad display badges for member authors * in the current page. Badge resolution is best effort. If it isn't available, * `authorBadges` is omitted and the comments are still returned. * @param - ID of the app from which the comments are listed. */ (appId: string, options?: NonNullablePaths): Promise>; } declare function addCommentReaction$1(httpClient: HttpClient): AddCommentReactionSignature; interface AddCommentReactionSignature { /** * Adds the current identity's reaction to a comment. * * Requires permission to view and react to the comment in its context. * Replaces the current identity's previous reaction, including a different reaction code. * @param - ID of the comment to react to. * @param - Code of the reaction, for example an emoji identifier. */ (commentId: string, reactionCode: string): Promise; } declare function removeCommentReaction$1(httpClient: HttpClient): RemoveCommentReactionSignature; interface RemoveCommentReactionSignature { /** * Removes the current identity's reaction from a comment. * * Requires permission to view and react to the comment in its context. * @param - ID of the comment to remove the reaction from. * @param - Code of the reaction to remove. */ (commentId: string, reactionCode: string): Promise; } declare function bulkGetCommentReactions$1(httpClient: HttpClient): BulkGetCommentReactionsSignature; interface BulkGetCommentReactionsSignature { /** * Retrieves reactions for multiple comments. * * For each requested comment the response carries the reaction total, per-code totals, * whether the current identity has reacted, and the member IDs that reacted with each code. * Visitor reactions are included in the totals but their identities are not returned. * Every comment must belong to the supplied app and context. If any comment is missing, * inaccessible, or belongs to a different context, the entire request fails. * @param - App ID the comments belong to. */ (appId: string, options?: NonNullablePaths): Promise; } declare function getCommentThread$1(httpClient: HttpClient): GetCommentThreadSignature; interface GetCommentThreadSignature { /** * Returns a thread of a comment or a reply. * * If you request a comment thread, the method returns a single comment with cursors. With cursors (`pagingMetadata.cursors.next` or `pagingMetadata.cursors.prev`) you can load replies by calling the List Comments by Resource method. * * If you request a reply thread, the method returns a reply with its parent comment. With cursors (`pagingMetadata.cursors.next` or `pagingMetadata.cursors.prev`) you can load replies by calling the List Comments by Resource method. * @param - Comment ID. */ (commentId: string, options?: GetCommentThreadOptions): Promise>; } declare function bulkPublishComment$1(httpClient: HttpClient): BulkPublishCommentSignature; interface BulkPublishCommentSignature { /** * Publishes multiple comments with the `HIDDEN` status. The comment status becomes `PUBLISHED`. * @param - ID of the app where to publish the comment. */ (appId: string, options: NonNullablePaths): Promise>; } declare function bulkHideComment$1(httpClient: HttpClient): BulkHideCommentSignature; interface BulkHideCommentSignature { /** * Hides multiple comments. The comment status becomes `HIDDEN`. * @param - ID of the app where to hide the comments. */ (appId: string, options: NonNullablePaths): Promise>; } declare function bulkDeleteComment$1(httpClient: HttpClient): BulkDeleteCommentSignature; interface BulkDeleteCommentSignature { /** * Deletes multiple comments. * @param - ID of the app where to delete the comments. */ (appId: string, options: NonNullablePaths): Promise>; } declare function bulkModerateDraftContent$1(httpClient: HttpClient): BulkModerateDraftContentSignature; interface BulkModerateDraftContentSignature { /** * Moderates the draft content of multiple comments that match the specified filter. * * The same action, `APPROVE` or `REJECT`, applies to all comments that match the filter. * - `APPROVE`: Moves `draftContent` to `content` and updates the comment `status` to `PUBLISHED`. * * - `REJECT`: Handles the draft content based on the current comment status: * - If the comment `status` is `PUBLISHED`, clears `draftContent`. * - If the comment `status` is `PENDING`, keeps `draftContent` unchanged and changes `status` to `HIDDEN`. * * To moderate a single comment, call Moderate Draft Content. * @param - ID of the app where to moderate the comments. */ (appId: string, options: NonNullablePaths): Promise>; } declare function bulkMoveCommentByFilter$1(httpClient: HttpClient): BulkMoveCommentByFilterSignature; interface BulkMoveCommentByFilterSignature { /** * Moves multiple comments to another resource. * @param - ID of the app from which to move the comments. */ (appId: string, options?: NonNullablePaths): Promise>; } declare const onCommentDeleted$1: EventDefinition; declare const onCommentContentChanged$1: EventDefinition; declare const onCommentHidden$1: EventDefinition; declare const onCommentMarked$1: EventDefinition; declare const onCommentMoved$1: EventDefinition; declare const onCommentPublished$1: EventDefinition; declare const onCommentUnmarked$1: EventDefinition; declare const onCommentCreated$1: EventDefinition; declare const onCommentResourceCommentCountChanged$1: EventDefinition; declare const onCommentUpdated$1: EventDefinition; declare function customQueryComments(httpClient: HttpClient): { (query: CommentQuery, options: QueryCommentsOptions): ReturnType; (options: QueryCommentsOptions): CommentsQueryBuilder; }; declare const createComment: MaybeContext & typeof createComment$1>; declare const getComment: MaybeContext & typeof getComment$1>; declare const updateComment: MaybeContext & typeof updateComment$1>; declare const deleteComment: MaybeContext & typeof deleteComment$1>; declare const moderateDraftContent: MaybeContext & typeof moderateDraftContent$1>; declare const markComment: MaybeContext & typeof markComment$1>; declare const unmarkComment: MaybeContext & typeof unmarkComment$1>; declare const hideComment: MaybeContext & typeof hideComment$1>; declare const publishComment: MaybeContext & typeof publishComment$1>; declare const countComments: MaybeContext & typeof countComments$1>; declare const listCommentsByResource: MaybeContext & typeof listCommentsByResource$1>; declare const addCommentReaction: MaybeContext & typeof addCommentReaction$1>; declare const removeCommentReaction: MaybeContext & typeof removeCommentReaction$1>; declare const bulkGetCommentReactions: MaybeContext & typeof bulkGetCommentReactions$1>; declare const getCommentThread: MaybeContext & typeof getCommentThread$1>; declare const bulkPublishComment: MaybeContext & typeof bulkPublishComment$1>; declare const bulkHideComment: MaybeContext & typeof bulkHideComment$1>; declare const bulkDeleteComment: MaybeContext & typeof bulkDeleteComment$1>; declare const bulkModerateDraftContent: MaybeContext & typeof bulkModerateDraftContent$1>; declare const bulkMoveCommentByFilter: MaybeContext & typeof bulkMoveCommentByFilter$1>; declare const queryComments: MaybeContext & typeof customQueryComments>; /** * Triggered when a comment is deleted. */ declare const onCommentDeleted: BuildEventDefinition & typeof onCommentDeleted$1; /** * Triggered when comment content is updated. */ declare const onCommentContentChanged: BuildEventDefinition & typeof onCommentContentChanged$1; /** * Triggered when a comment is hidden. */ declare const onCommentHidden: BuildEventDefinition & typeof onCommentHidden$1; /** * Triggered when a comment is marked. */ declare const onCommentMarked: BuildEventDefinition & typeof onCommentMarked$1; /** * Triggered when a comment is moved. */ declare const onCommentMoved: BuildEventDefinition & typeof onCommentMoved$1; /** * Triggered when a comment is published. */ declare const onCommentPublished: BuildEventDefinition & typeof onCommentPublished$1; /** * Triggered when a comment is unmarked. */ declare const onCommentUnmarked: BuildEventDefinition & typeof onCommentUnmarked$1; /** * Triggered when a comment is created. */ declare const onCommentCreated: BuildEventDefinition & typeof onCommentCreated$1; /** * Triggered when the total number of comments has changed in a resource. */ declare const onCommentResourceCommentCountChanged: BuildEventDefinition & typeof onCommentResourceCommentCountChanged$1; /** * Triggered when a comment is updated. */ declare const onCommentUpdated: BuildEventDefinition & typeof onCommentUpdated$1; export { AddCommentReactionApplicationErrors, BulkDeleteCommentOptions, BulkDeleteCommentResponse, BulkGetCommentReactionsApplicationErrors, BulkGetCommentReactionsOptions, BulkGetCommentReactionsResponse, BulkHideCommentOptions, BulkHideCommentResponse, BulkModerateDraftContentOptions, BulkModerateDraftContentResponse, BulkMoveCommentByFilterOptions, BulkMoveCommentByFilterResponse, BulkPublishCommentOptions, BulkPublishCommentResponse, Comment, CommentContentChangedEnvelope, CommentCreatedEnvelope, CommentDeletedEnvelope, CommentHiddenEnvelope, CommentMarkedEnvelope, CommentMovedEnvelope, CommentPublishedEnvelope, CommentQuery, CommentResourceCommentCountChangedEnvelope, CommentUnmarkedEnvelope, CommentUpdatedEnvelope, CommentsQueryBuilder, CountCommentsApplicationErrors, CountCommentsOptions, CountCommentsResponse, CreateCommentApplicationErrors, CreateCommentOptions, GetCommentThreadOptions, GetCommentThreadResponse, HideCommentResponse, ListCommentsByResourceOptions, ListCommentsByResourceResponse, MarkCommentResponse, ModerateDraftContentOptions, ModerateDraftContentResponse, PublishCommentResponse, QueryCommentsOptions, RemoveCommentReactionApplicationErrors, UnmarkCommentResponse, UpdateComment, UpdateCommentApplicationErrors, addCommentReaction, bulkDeleteComment, bulkGetCommentReactions, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentDeleted, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, removeCommentReaction, unmarkComment, updateComment };