import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { DraftPost, CreateDraftPostOptions, CreateDraftPostResponse, BulkCreateDraftPostsOptions, BulkCreateDraftPostsResponse, BulkUpdateDraftPostsOptions, BulkUpdateDraftPostsResponse, ListDeletedDraftPostsOptions, ListDeletedDraftPostsResponse, GetDraftPostOptions, GetDraftPostResponse, UpdateDraftPost, UpdateDraftPostOptions, UpdateDraftPostResponse, DeleteDraftPostOptions, BulkDeleteDraftPostsOptions, BulkDeleteDraftPostsResponse, ListDraftPostsOptions, ListDraftPostsResponse, GetDeletedDraftPostResponse, RestoreFromTrashBinResponse, PublishDraftPostResponse, DraftCreatedEnvelope, DraftDeletedEnvelope, DraftUpdatedEnvelope, DraftPostQuery, QueryDraftPostsOptions, typedQueryDraftPosts, DraftPostsQueryBuilder } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, Action, ActionEvent, ActionWithLiterals, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, ApproveDraftPostRequest, ApproveDraftPostResponse, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Banner, BannerOrigin, BannerOriginWithLiterals, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BorderWidths, BulkActionMetadata, BulkCreateDraftPostsRequest, BulkDeleteDraftPostsRequest, BulkDraftPostResult, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkUpdateDraftPostsRequest, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonQueryWithEntityContext, CreateDraftPostRequest, Crop, CropWithLiterals, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteDraftPostRequest, DeleteDraftPostResponse, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftCategoriesUpdated, DraftPostCount, DraftPostOwnerChanged, DraftPostQuerySpec, DraftPostTranslation, DraftPostsQueryResult, DraftTagsUpdated, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FieldWithLiterals, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetDeletedDraftPostRequest, GetDraftPostCountsRequest, GetDraftPostCountsResponse, GetDraftPostRequest, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, GetDraftPostsSort, GetDraftPostsSortWithLiterals, Gradient, GradientType, GradientTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialDraftPostsCopied, InitialExpandedItems, InitialExpandedItemsWithLiterals, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Keyword, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListDeletedDraftPostsRequest, ListDraftPostsRequest, ListStyle, ListStyleWithLiterals, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, MaskedDraftPosts, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, ModerationDetails, ModerationStatusStatus, ModerationStatusStatusWithLiterals, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, PricingData, PublishDraftPostRequest, QueryDraftPostsRequest, QueryDraftPostsResponse, RejectDraftPostRequest, RejectDraftPostResponse, Rel, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreFromTrashBinRequest, RestoreInfo, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RibbonStyles, RichContent, Scaling, ScalingWithLiterals, SeoSchema, Settings, ShapeData, ShapeDataStyles, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Stop, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, TocData, TotalDraftPosts, TotalDraftPostsGroupingField, TotalDraftPostsGroupingFieldWithLiterals, TranslateDraftRequest, TranslateDraftResponse, Type, TypeWithLiterals, UnpublishPostRequest, UnpublishPostResponse, UpdateDraftPostContentRequest, UpdateDraftPostContentResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, UpdateDraftPostRequest, V1Media, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, WixMedia, utils } from './index.typings.js'; declare function createDraftPost$1(httpClient: HttpClient): CreateDraftPostSignature; interface CreateDraftPostSignature { /** * Creates a draft post. * * For 3rd-party apps, `memberId` is a required field. * * In `categoryIds`, only categories that already exist will be added to the draft post. Including * `categoryIds` that do not exist will not return an error, but they will not be added to the `categoryIds` array. * If some of the categories exist, those will be added while those that do not exist will not be added to `categoryIds`. * You can check which categories are available with * [List Categories](https://dev.wix.com/docs/rest/business-solutions/blog/category/list-categories). * @param - Draft post to create. * @param - Options for creating a draft post. */ (draftPost: NonNullablePaths, options?: CreateDraftPostOptions): Promise>; } declare function bulkCreateDraftPosts$1(httpClient: HttpClient): BulkCreateDraftPostsSignature; interface BulkCreateDraftPostsSignature { /** * Creates multiple draft posts. * @param - Draft posts to create. * @param - Options for creating multiple draft posts. */ (draftPosts: NonNullablePaths[], options?: BulkCreateDraftPostsOptions): Promise>; } declare function bulkUpdateDraftPosts$1(httpClient: HttpClient): BulkUpdateDraftPostsSignature; interface BulkUpdateDraftPostsSignature { /** * Updates multiple draft posts. * @param - Options for updating multiple draft posts. */ (options?: NonNullablePaths): Promise>; } declare function listDeletedDraftPosts$1(httpClient: HttpClient): ListDeletedDraftPostsSignature; interface ListDeletedDraftPostsSignature { /** * Retrieves a list of up to 100 deleted draft posts. * * List Draft Posts runs with these defaults, which you can override: * - `editedDate` is sorted in descending order. In this case,`editedDate` implies the date the post was deleted. * - `paging.limit` is `50`. * - `paging.offset` is `0`. * @param - Options for listing deleted draft posts. */ (options?: ListDeletedDraftPostsOptions): Promise>; } declare function getDraftPost$1(httpClient: HttpClient): GetDraftPostSignature; interface GetDraftPostSignature { /** * Retrieves a draft post by the provided ID. * @param - Draft post ID. * @param - Options for getting a draft post. */ (draftPostId: string, options?: GetDraftPostOptions): Promise>; } declare function updateDraftPost$1(httpClient: HttpClient): UpdateDraftPostSignature; interface UpdateDraftPostSignature { /** * Updates a draft post. * @param - Draft post ID. * @param - Options for updating a draft post. * @param - Draft Post info. */ (_id: string, draftPost: UpdateDraftPost, options?: UpdateDraftPostOptions): Promise>; } declare function deleteDraftPost$1(httpClient: HttpClient): DeleteDraftPostSignature; interface DeleteDraftPostSignature { /** * Moves a draft post to the trash bin. * A published post can also be deleted by the `post.id`. See the [Posts API](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object) for more information about posts. * * To permanently delete a post bypassing the trash bin, set the `permanent` field value to `true`. The post can't be restored after this. * @param - Draft post ID. * @param - Options for deleting a draft post. */ (draftPostId: string, options?: DeleteDraftPostOptions): Promise; } declare function removeFromTrashBin$1(httpClient: HttpClient): RemoveFromTrashBinSignature; interface RemoveFromTrashBinSignature { /** * Permanently deletes a draft post that is currently in the trash bin. * * This action is permanent and can't be reversed. * @param - Draft post ID. */ (draftPostId: string): Promise; } declare function bulkDeleteDraftPosts$1(httpClient: HttpClient): BulkDeleteDraftPostsSignature; interface BulkDeleteDraftPostsSignature { /** * Deletes multiple draft posts. * @param - Post IDs. * @param - Options for deleting multiple draft posts. */ (postIds: string[], options?: BulkDeleteDraftPostsOptions): Promise>; } declare function listDraftPosts$1(httpClient: HttpClient): ListDraftPostsSignature; interface ListDraftPostsSignature { /** * Retrieves a list of up to 100 draft posts per request. * * List Draft Posts runs with these defaults, which you can override: * - `editedDate` is sorted in descending order. * - `paging.limit` is `50`. * - `paging.offset` is `0`. * @param - Options for listing multiple draft posts. */ (options?: ListDraftPostsOptions): Promise>; } declare function getDeletedDraftPost$1(httpClient: HttpClient): GetDeletedDraftPostSignature; interface GetDeletedDraftPostSignature { /** * Retrieves a deleted draft post from the trash bin by the provided ID. * @param - Draft post ID. */ (draftPostId: string): Promise>; } declare function restoreFromTrashBin$1(httpClient: HttpClient): RestoreFromTrashBinSignature; interface RestoreFromTrashBinSignature { /** * Restores a deleted draft post from the trash bin by the provided ID. * @param - Draft post ID. */ (draftPostId: string): Promise>; } declare function publishDraftPost$1(httpClient: HttpClient): PublishDraftPostSignature; interface PublishDraftPostSignature { /** * Publishes a draft post by ID. This creates a new [post](https://dev.wix.com/docs/rest/business-solutions/blog/posts-stats/post-object) * with the data from the draft post. * * If the draft post was already published, the published post will be updated with the latest values * from the draft post. * @param - Draft post ID. */ (draftPostId: string): Promise>; } declare const onDraftCreated$1: EventDefinition; declare const onDraftDeleted$1: EventDefinition; declare const onDraftUpdated$1: EventDefinition; declare function customQueryDraftPosts(httpClient: HttpClient): { (query: DraftPostQuery, options?: QueryDraftPostsOptions): ReturnType; (options?: QueryDraftPostsOptions): DraftPostsQueryBuilder; }; declare const createDraftPost: MaybeContext & typeof createDraftPost$1>; declare const bulkCreateDraftPosts: MaybeContext & typeof bulkCreateDraftPosts$1>; declare const bulkUpdateDraftPosts: MaybeContext & typeof bulkUpdateDraftPosts$1>; declare const listDeletedDraftPosts: MaybeContext & typeof listDeletedDraftPosts$1>; declare const getDraftPost: MaybeContext & typeof getDraftPost$1>; declare const updateDraftPost: MaybeContext & typeof updateDraftPost$1>; declare const deleteDraftPost: MaybeContext & typeof deleteDraftPost$1>; declare const removeFromTrashBin: MaybeContext & typeof removeFromTrashBin$1>; declare const bulkDeleteDraftPosts: MaybeContext & typeof bulkDeleteDraftPosts$1>; declare const listDraftPosts: MaybeContext & typeof listDraftPosts$1>; declare const getDeletedDraftPost: MaybeContext & typeof getDeletedDraftPost$1>; declare const restoreFromTrashBin: MaybeContext & typeof restoreFromTrashBin$1>; declare const publishDraftPost: MaybeContext & typeof publishDraftPost$1>; declare const queryDraftPosts: MaybeContext & typeof customQueryDraftPosts>; /** * Triggered when a draft post is created. */ declare const onDraftCreated: BuildEventDefinition & typeof onDraftCreated$1; /** * Triggered when a draft post is deleted. */ declare const onDraftDeleted: BuildEventDefinition & typeof onDraftDeleted$1; /** * Triggered when a draft post is updated. */ declare const onDraftUpdated: BuildEventDefinition & typeof onDraftUpdated$1; export { BulkCreateDraftPostsOptions, BulkCreateDraftPostsResponse, BulkDeleteDraftPostsOptions, BulkDeleteDraftPostsResponse, BulkUpdateDraftPostsOptions, BulkUpdateDraftPostsResponse, CreateDraftPostOptions, CreateDraftPostResponse, DeleteDraftPostOptions, DraftCreatedEnvelope, DraftDeletedEnvelope, DraftPost, DraftPostQuery, DraftPostsQueryBuilder, DraftUpdatedEnvelope, GetDeletedDraftPostResponse, GetDraftPostOptions, GetDraftPostResponse, ListDeletedDraftPostsOptions, ListDeletedDraftPostsResponse, ListDraftPostsOptions, ListDraftPostsResponse, PublishDraftPostResponse, QueryDraftPostsOptions, RestoreFromTrashBinResponse, UpdateDraftPost, UpdateDraftPostOptions, UpdateDraftPostResponse, bulkCreateDraftPosts, bulkDeleteDraftPosts, bulkUpdateDraftPosts, createDraftPost, deleteDraftPost, getDeletedDraftPost, getDraftPost, listDeletedDraftPosts, listDraftPosts, onDraftCreated, onDraftDeleted, onDraftUpdated, publishDraftPost, queryDraftPosts, removeFromTrashBin, restoreFromTrashBin, updateDraftPost };