import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { DuplicateSectionOptions, DuplicateSectionResponse, Section, BulkCreateSectionsOptions, BulkCreateSectionsResponse, ListSectionsOptions, ListSectionsResponse, UpdateSection, MaskedSection, BulkUpdateSectionOptions, BulkUpdateSectionResponse, BulkDeleteSectionsResponse, SectionCreatedEnvelope, SectionDeletedEnvelope, SectionUpdatedEnvelope, SectionsQueryBuilder, SectionQuery, typedQuerySections } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, App, ApplicationError, Availability, AvailabilityAvailabilityTypeOptionsOneOf, AvailabilityType, AvailabilityTypeWithLiterals, AvailableRange, BaseEventMetadata, BulkActionMetadata, BulkCreateSectionResult, BulkCreateSectionsRequest, BulkDeleteSectionResult, BulkDeleteSectionsRequest, BulkItemResult, BulkSectionResult, BulkUpdateBusinessLocationIdRequest, BulkUpdateBusinessLocationIdResponse, BulkUpdateSectionRequest, CloneSectionsRequest, CloneSectionsResponse, CommonQueryWithEntityContext, CreateSectionRequest, CreateSectionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DayOfWeek, DayOfWeekAvailability, DayOfWeekWithLiterals, DeleteLocationIdFromItems, DeleteSectionRequest, DeleteSectionResponse, DomainEvent, DomainEventBodyOneOf, DuplicateSectionRequest, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReferenceInfo, File, GetSectionRequest, GetSectionResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListSectionsRequest, MessageEnvelope, OrderSettings, Page, Pages, QuerySectionsRequest, QuerySectionsResponse, RestoreInfo, SectionQuerySpec, SectionsQueryResult, SortOrder, SortOrderWithLiterals, Sorting, SyncContentToMultilingualRequest, SyncContentToMultilingualResponse, TimeOfDay, TimeOfDayRange, TimestampRangesOptions, URI, URIs, UpdateSectionRequest, UpdateSectionResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklyScheduleOptions, utils } from './index.typings.js'; declare function duplicateSection$1(httpClient: HttpClient): DuplicateSectionSignature; interface DuplicateSectionSignature { /** * Duplicates a section. * * You can duplicate a section to the same business location, or to 1 or more different business locations. * You can specify whether to also duplicate the section's sub-entities, such as its items. * @param - ID of the section to be duplicated. */ (_id: string, options?: DuplicateSectionOptions): Promise>; } declare function createSection$1(httpClient: HttpClient): CreateSectionSignature; interface CreateSectionSignature { /** * > **Note:** The Sections API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). * * Creates a section. * * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections). * @param - Section details. * @returns Section. */ (section: Section): Promise>; } declare function bulkCreateSections$1(httpClient: HttpClient): BulkCreateSectionsSignature; interface BulkCreateSectionsSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). * * Creates multiple sections at once. * @param - Sections details. */ (sections: Section[], options?: BulkCreateSectionsOptions): Promise>; } declare function getSection$1(httpClient: HttpClient): GetSectionSignature; interface GetSectionSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). * * Retrieves a section by ID. * @param - Section ID. * @returns Section. */ (sectionId: string): Promise>; } declare function listSections$1(httpClient: HttpClient): ListSectionsSignature; interface ListSectionsSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). * * Retrieves a list of up to 500 sections. */ (options?: ListSectionsOptions): Promise>; } declare function updateSection$1(httpClient: HttpClient): UpdateSectionSignature; interface UpdateSectionSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). * * Updates a section. * * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites. * @param - Section ID. * @returns Updated section. */ (_id: string, section: NonNullablePaths): Promise>; } declare function bulkUpdateSection$1(httpClient: HttpClient): BulkUpdateSectionSignature; interface BulkUpdateSectionSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). * * Updates multiple sections at once. * * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites. * @param - Sections to update. */ (sections: NonNullablePaths[], options?: BulkUpdateSectionOptions): Promise>; } declare function deleteSection$1(httpClient: HttpClient): DeleteSectionSignature; interface DeleteSectionSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). * * Deletes a section. * @param - Section ID. */ (sectionId: string): Promise; } declare function bulkDeleteSections$1(httpClient: HttpClient): BulkDeleteSectionsSignature; interface BulkDeleteSectionsSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new). * * Deletes multiple sections at once. * @param - Section IDs. */ (ids: string[]): Promise>; } declare const onSectionCreated$1: EventDefinition; declare const onSectionDeleted$1: EventDefinition; declare const onSectionUpdated$1: EventDefinition; declare function customQuerySections(httpClient: HttpClient): { (): SectionsQueryBuilder; (query: SectionQuery): ReturnType; }; declare const duplicateSection: MaybeContext & typeof duplicateSection$1>; declare const createSection: MaybeContext & typeof createSection$1>; declare const bulkCreateSections: MaybeContext & typeof bulkCreateSections$1>; declare const getSection: MaybeContext & typeof getSection$1>; declare const listSections: MaybeContext & typeof listSections$1>; declare const updateSection: MaybeContext & typeof updateSection$1>; declare const bulkUpdateSection: MaybeContext & typeof bulkUpdateSection$1>; declare const deleteSection: MaybeContext & typeof deleteSection$1>; declare const bulkDeleteSections: MaybeContext & typeof bulkDeleteSections$1>; declare const querySections: MaybeContext & typeof customQuerySections>; /** */ declare const onSectionCreated: BuildEventDefinition & typeof onSectionCreated$1; /** */ declare const onSectionDeleted: BuildEventDefinition & typeof onSectionDeleted$1; /** * Triggered when a section is updated. */ declare const onSectionUpdated: BuildEventDefinition & typeof onSectionUpdated$1; export { BulkCreateSectionsOptions, BulkCreateSectionsResponse, BulkDeleteSectionsResponse, BulkUpdateSectionOptions, BulkUpdateSectionResponse, DuplicateSectionOptions, DuplicateSectionResponse, ListSectionsOptions, ListSectionsResponse, MaskedSection, Section, SectionCreatedEnvelope, SectionDeletedEnvelope, SectionQuery, SectionUpdatedEnvelope, SectionsQueryBuilder, UpdateSection, bulkCreateSections, bulkDeleteSections, bulkUpdateSection, createSection, deleteSection, duplicateSection, getSection, listSections, onSectionCreated, onSectionDeleted, onSectionUpdated, querySections, updateSection };