import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Branch, CreateBranchApplicationErrors, UpdateBranch, UpdateBranchApplicationErrors, DeleteBranchApplicationErrors, SetDefaultBranchResponse, GetDefaultBranchResponse, BulkUpdateBranchTagsOptions, BulkUpdateBranchTagsResponse, BulkUpdateBranchTagsApplicationErrors, BulkUpdateBranchTagsByFilterOptions, BulkUpdateBranchTagsByFilterResponse, BulkUpdateBranchTagsByFilterApplicationErrors, BranchCreatedEnvelope, BranchDeletedEnvelope, BranchUpdatedEnvelope, BranchesQueryBuilder, BranchQuery, typedQueryBranches } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ApplicationError, Asset, BaseEventMetadata, BranchQuerySpec, BranchSourceOneOf, BranchesQueryResult, BulkActionMetadata, BulkUpdateBranchTagsByFilterRequest, BulkUpdateBranchTagsRequest, BulkUpdateBranchTagsResult, CommonQueryWithEntityContext, CreateBranchRequest, CreateBranchResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteBranchRequest, DeleteBranchResponse, DeleteContext, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorType, EditorTypeOptions, EditorTypeOptionsWithLiterals, EditorlessAssigned, EditorlessUnassigned, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetBranchRequest, GetBranchResponse, GetDefaultBranchRequest, HtmlSitePublished, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, Page, PicassoAssigned, PicassoUnassigned, PublicTags, QueryBranchesRequest, QueryBranchesResponse, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetDefaultBranchRequest, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SourceBranch, SourceTemplate, SourceType, SourceTypeWithLiterals, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, TagList, TagsModified, Type, TypeWithLiterals, UpdateBranchRequest, UpdateBranchResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UserDomainMediaDisabled, UserDomainMediaEnabled, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned, utils } from './index.typings.js'; declare function createBranch$1(httpClient: HttpClient): CreateBranchSignature; interface CreateBranchSignature { /** * Creates a branch. * * If a source branch isn't provided, the branch will include a blank website. * * > **Important:** Align the `sourceType` field with its corresponding source properties: * > - When `sourceType` is `SOURCE_BRANCH`, provide `sourceBranchProperties`. * > - When `sourceType` is `SOURCE_TEMPLATE`, provide `sourceTemplateProperties`. * > * > Using `UNKNOWN_SOURCE_TYPE` or mismatched properties results in an `ILLEGAL_SOURCE_TYPE` error. * @param - Branch to create. * @returns Created branch. */ (branch: Branch): Promise & { __applicationErrorsType?: CreateBranchApplicationErrors; }>; } declare function getBranch$1(httpClient: HttpClient): GetBranchSignature; interface GetBranchSignature { /** * Retrieves a branch. * @param - ID of the branch to retrieve. * @returns Requested branch. */ (branchId: string): Promise>; } declare function updateBranch$1(httpClient: HttpClient): UpdateBranchSignature; interface UpdateBranchSignature { /** * Updates a branch. * * Each time the branch is updated, `revision` increments by 1. The current `revision` must be passed when updating the branch. This ensures you're working with the latest branch and prevents unintended overwrites. * * Note that `ORIGINAL_BRANCH` types can't be updated. * @param - Branch ID. * @returns Updated branch. */ (_id: string, branch: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateBranchApplicationErrors; }>; } declare function deleteBranch$1(httpClient: HttpClient): DeleteBranchSignature; interface DeleteBranchSignature { /** * Permanently deletes a branch. * @param - ID of the branch to delete. */ (branchId: string): Promise; } declare function setDefaultBranch$1(httpClient: HttpClient): SetDefaultBranchSignature; interface SetDefaultBranchSignature { /** * Sets the specified branch as the default. * * The default branch is used for API operations when no branch ID is specified. * @param - Branch ID. */ (branchId: string): Promise>; } declare function getDefaultBranch$1(httpClient: HttpClient): GetDefaultBranchSignature; interface GetDefaultBranchSignature { /** * Retrieves the default branch. */ (): Promise>; } declare function bulkUpdateBranchTags$1(httpClient: HttpClient): BulkUpdateBranchTagsSignature; interface BulkUpdateBranchTagsSignature { /** * Updates tags on multiple branches. * * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned. * * To update a single branch's tags, call [Update Branch](https://dev.wix.com/docs/api-reference/business-management/branches/update-branch). * @param - IDs of the branches to update. */ (branchIds: string[], options?: BulkUpdateBranchTagsOptions): Promise & { __applicationErrorsType?: BulkUpdateBranchTagsApplicationErrors; }>; } declare function bulkUpdateBranchTagsByFilter$1(httpClient: HttpClient): BulkUpdateBranchTagsByFilterSignature; interface BulkUpdateBranchTagsByFilterSignature { /** * Asynchronously updates tags on multiple branches that match the provided filter criteria. * * Specify which tags to assign and which tags to unassign. A tag that appears both the list to assign and the list to unassign tags, will be assigned. * * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job). * * To update a single branch's tags, call [Update Branch](https://dev.wix.com/docs/api-reference/business-management/branches/update-branch). * @param - Filter to select which branches to update. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more information. */ (filter: Record, options?: BulkUpdateBranchTagsByFilterOptions): Promise & { __applicationErrorsType?: BulkUpdateBranchTagsByFilterApplicationErrors; }>; } declare const onBranchCreated$1: EventDefinition; declare const onBranchDeleted$1: EventDefinition; declare const onBranchUpdated$1: EventDefinition; declare function customQueryBranches(httpClient: HttpClient): { (): BranchesQueryBuilder; (query: BranchQuery): ReturnType; }; declare const createBranch: MaybeContext & typeof createBranch$1>; declare const getBranch: MaybeContext & typeof getBranch$1>; declare const updateBranch: MaybeContext & typeof updateBranch$1>; declare const deleteBranch: MaybeContext & typeof deleteBranch$1>; declare const setDefaultBranch: MaybeContext & typeof setDefaultBranch$1>; declare const getDefaultBranch: MaybeContext & typeof getDefaultBranch$1>; declare const bulkUpdateBranchTags: MaybeContext & typeof bulkUpdateBranchTags$1>; declare const bulkUpdateBranchTagsByFilter: MaybeContext & typeof bulkUpdateBranchTagsByFilter$1>; declare const queryBranches: MaybeContext & typeof customQueryBranches>; /** * Triggered when a branch is created. */ declare const onBranchCreated: BuildEventDefinition & typeof onBranchCreated$1; /** * Triggered when a branch is deleted. */ declare const onBranchDeleted: BuildEventDefinition & typeof onBranchDeleted$1; /** * Triggered when a branch is updated. */ declare const onBranchUpdated: BuildEventDefinition & typeof onBranchUpdated$1; export { Branch, BranchCreatedEnvelope, BranchDeletedEnvelope, BranchQuery, BranchUpdatedEnvelope, BranchesQueryBuilder, BulkUpdateBranchTagsApplicationErrors, BulkUpdateBranchTagsByFilterApplicationErrors, BulkUpdateBranchTagsByFilterOptions, BulkUpdateBranchTagsByFilterResponse, BulkUpdateBranchTagsOptions, BulkUpdateBranchTagsResponse, CreateBranchApplicationErrors, DeleteBranchApplicationErrors, GetDefaultBranchResponse, SetDefaultBranchResponse, UpdateBranch, UpdateBranchApplicationErrors, bulkUpdateBranchTags, bulkUpdateBranchTagsByFilter, createBranch, deleteBranch, getBranch, getDefaultBranch, onBranchCreated, onBranchDeleted, onBranchUpdated, queryBranches, setDefaultBranch, updateBranch };