import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Label, ListLabelsResponse, CountLabelsOptions, CountLabelsResponse, CountLabelsApplicationErrors, UpdateLabel, BulkDeleteLabelsResponse, ItemLabelCreatedEnvelope, ItemLabelDeletedEnvelope, ItemLabelUpdatedEnvelope, LabelsQueryBuilder, LabelQuery, typedQueryLabels } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkDeleteLabelsRequest, BulkDeleteLabelsResult, CloneLabelsRequest, CloneLabelsResponse, CommonQueryWithEntityContext, CountLabelsRequest, CreateLabelRequest, CreateLabelResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DeleteLabelRequest, DeleteLabelResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReferenceInfo, File, GetLabelRequest, GetLabelResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, LabelQuerySpec, LabelsQueryResult, ListLabelsRequest, MessageEnvelope, Page, Pages, QueryLabelsRequest, QueryLabelsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, SyncContentToMultilingualRequest, SyncContentToMultilingualResponse, URI, URIs, UpdateLabelRequest, UpdateLabelResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createLabel$1(httpClient: HttpClient): CreateLabelSignature; interface CreateLabelSignature { /** * > **Note:** The Label 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 an item label. * @param - Item label details. * @returns Item label. */ (label: Label): Promise>; } declare function getLabel$1(httpClient: HttpClient): GetLabelSignature; interface GetLabelSignature { /** * > **Note:** The Labels 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 an item label by ID. * @param - Item label ID. * @returns Item label. */ (labelId: string): Promise>; } declare function listLabels$1(httpClient: HttpClient): ListLabelsSignature; interface ListLabelsSignature { /** * > **Note:** The Label 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 item labels. */ (): Promise>; } declare function countLabels$1(httpClient: HttpClient): CountLabelsSignature; interface CountLabelsSignature { /** * > **Note:** The Label 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 the number of labels that match a specified filter. * * If a filter isn't passed in the request, the endpoint returns the count of all labels. */ (options?: CountLabelsOptions): Promise & { __applicationErrorsType?: CountLabelsApplicationErrors; }>; } declare function updateLabel$1(httpClient: HttpClient): UpdateLabelSignature; interface UpdateLabelSignature { /** * > **Note:** The Label 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 an item Label. * * Each time an item label is updated, its revision increments by 1. The existing revision must be included when updating the item labels. This ensures you're working with the latest item labels information, and it prevents unintended overwrites. * @param - Item label ID. * @returns Updated item label. */ (_id: string, label: NonNullablePaths): Promise>; } declare function deleteLabel$1(httpClient: HttpClient): DeleteLabelSignature; interface DeleteLabelSignature { /** * > **Note:** The Label 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 an item label. * @param - ID of the item label. */ (labelId: string): Promise; } declare function bulkDeleteLabels$1(httpClient: HttpClient): BulkDeleteLabelsSignature; interface BulkDeleteLabelsSignature { /** * > **Note:** The Label 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 item labels at once. * @param - Item Label IDs. */ (ids: string[]): Promise>; } declare const onItemLabelCreated$1: EventDefinition; declare const onItemLabelDeleted$1: EventDefinition; declare const onItemLabelUpdated$1: EventDefinition; declare function customQueryLabels(httpClient: HttpClient): { (): LabelsQueryBuilder; (query: LabelQuery): ReturnType; }; declare const createLabel: MaybeContext & typeof createLabel$1>; declare const getLabel: MaybeContext & typeof getLabel$1>; declare const listLabels: MaybeContext & typeof listLabels$1>; declare const countLabels: MaybeContext & typeof countLabels$1>; declare const updateLabel: MaybeContext & typeof updateLabel$1>; declare const deleteLabel: MaybeContext & typeof deleteLabel$1>; declare const bulkDeleteLabels: MaybeContext & typeof bulkDeleteLabels$1>; declare const queryLabels: MaybeContext & typeof customQueryLabels>; /** * Triggered when an item label is created. */ declare const onItemLabelCreated: BuildEventDefinition & typeof onItemLabelCreated$1; /** */ declare const onItemLabelDeleted: BuildEventDefinition & typeof onItemLabelDeleted$1; /** * Triggered when an item label is updated. */ declare const onItemLabelUpdated: BuildEventDefinition & typeof onItemLabelUpdated$1; export { BulkDeleteLabelsResponse, CountLabelsApplicationErrors, CountLabelsOptions, CountLabelsResponse, ItemLabelCreatedEnvelope, ItemLabelDeletedEnvelope, ItemLabelUpdatedEnvelope, Label, LabelQuery, LabelsQueryBuilder, ListLabelsResponse, UpdateLabel, bulkDeleteLabels, countLabels, createLabel, deleteLabel, getLabel, listLabels, onItemLabelCreated, onItemLabelDeleted, onItemLabelUpdated, queryLabels, updateLabel };