import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { BulkCreateSectionsOptions, BulkCreateSectionsResponse, BulkCreateSectionsResponseNonNullableFields, BulkDeleteSectionsResponse, BulkDeleteSectionsResponseNonNullableFields, BulkUpdateSectionOptions, BulkUpdateSectionResponse, BulkUpdateSectionResponseNonNullableFields, ListSectionsOptions, ListSectionsResponse, ListSectionsResponseNonNullableFields, MaskedSection, Section, SectionCreatedEnvelope, SectionDeletedEnvelope, SectionNonNullableFields, SectionUpdatedEnvelope, SectionsQueryBuilder, UpdateSection } from './restaurants-menus-v1-section-sections.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function createSection(httpClient: HttpClient): CreateSectionSignature; interface CreateSectionSignature { /** * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) 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
; } export declare function bulkCreateSections(httpClient: HttpClient): BulkCreateSectionsSignature; interface BulkCreateSectionsSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus (New) 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 | undefined): Promise; } export declare function getSection(httpClient: HttpClient): GetSectionSignature; interface GetSectionSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus (New) 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
; } export declare function listSections(httpClient: HttpClient): ListSectionsSignature; interface ListSectionsSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus (New) 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 | undefined): Promise; } export declare function querySections(httpClient: HttpClient): QuerySectionsSignature; interface QuerySectionsSignature { /** * Creates a query to retrieve a list of sections. * * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object. * * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function. * * You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns. * * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override: * * * [`limit(100)`](/sections/sections-query-builder/limit) * * [`ascending('entityId')`](/sections/sections-query-builder/ascending) * * The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`. */ (): SectionsQueryBuilder; } export declare function updateSection(httpClient: HttpClient): UpdateSectionSignature; interface UpdateSectionSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus (New) 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 | null, section: UpdateSection): Promise
; } export declare function bulkUpdateSection(httpClient: HttpClient): BulkUpdateSectionSignature; interface BulkUpdateSectionSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus (New) 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: MaskedSection[], options?: BulkUpdateSectionOptions | undefined): Promise; } export declare function deleteSection(httpClient: HttpClient): DeleteSectionSignature; interface DeleteSectionSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus (New) 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; } export declare function bulkDeleteSections(httpClient: HttpClient): BulkDeleteSectionsSignature; interface BulkDeleteSectionsSignature { /** * > **Note:** The Section API only works with the Wix Restaurants Menus (New) 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; } export declare const onSectionCreated: EventDefinition; export declare const onSectionDeleted: EventDefinition; export declare const onSectionUpdated: EventDefinition; export { ActionEvent, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateSectionResult, BulkCreateSectionsOptions, BulkCreateSectionsRequest, BulkCreateSectionsResponse, BulkCreateSectionsResponseNonNullableFields, BulkDeleteSectionResult, BulkDeleteSectionsRequest, BulkDeleteSectionsResponse, BulkDeleteSectionsResponseNonNullableFields, BulkSectionResult, BulkUpdateSectionOptions, BulkUpdateSectionRequest, BulkUpdateSectionResponse, BulkUpdateSectionResponseNonNullableFields, CloneSectionsRequest, CloneSectionsResponse, CreateSectionRequest, CreateSectionResponse, CreateSectionResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteSectionRequest, DeleteSectionResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, File, GetSectionRequest, GetSectionResponse, GetSectionResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, ListSectionsOptions, ListSectionsRequest, ListSectionsResponse, ListSectionsResponseNonNullableFields, MaskedSection, MessageEnvelope, Page, QuerySectionsRequest, QuerySectionsResponse, QuerySectionsResponseNonNullableFields, RestoreInfo, Section, SectionCreatedEnvelope, SectionDeletedEnvelope, SectionNonNullableFields, SectionUpdatedEnvelope, SectionsQueryBuilder, SectionsQueryResult, SortOrder, Sorting, URI, UpdateSection, UpdateSectionRequest, UpdateSectionResponse, UpdateSectionResponseNonNullableFields, WebhookIdentityType, } from './restaurants-menus-v1-section-sections.universal.js';