import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Category, CreateCategoryOptions, UpdateCategory, UpdateCategoryOptions, GetCategoryOptions, GetCategoryResponse, GetCategoryBySlugOptions, GetCategoryBySlugResponse, ListCategoriesOptions, ListCategoriesResponse, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, CategoryQuery, QueryCategoriesOptions, typedQueryCategories, CategoriesQueryBuilder } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ApplicationError, BaseEventMetadata, BlogPaging, BulkActionMetadata, BulkCategoryResult, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, BulkUpdateCategoriesRequest, BulkUpdateCategoriesResponse, CategoriesQueryResult, CategoryLanguageCount, CategoryQuerySpec, CategoryTranslation, CommonQueryWithEntityContext, CreateCategoryRequest, CreateCategoryResponse, CursorPaging, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, Field, FieldWithLiterals, FocalPoint, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, GetCategoryBySlugRequest, GetCategoryRequest, IdentificationData, IdentificationDataIdOneOf, InitialCategoriesCopied, ItemMetadata, Keyword, ListCategoriesRequest, MaskedCategory, MessageEnvelope, MetaData, Paging, PagingMetadataV2, PlatformQuery, PlatformQueryPagingMethodOneOf, QueryCategoriesRequest, QueryCategoriesResponse, RestoreInfo, SeoSchema, Settings, SortOrder, SortOrderWithLiterals, Sorting, Tag, UpdateCategoryRequest, UpdateCategoryResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createCategory$1(httpClient: HttpClient): CreateCategorySignature; interface CreateCategorySignature { /** * Creates a category. * @param - Category info. * @returns Category info. */ (category: NonNullablePaths, options?: CreateCategoryOptions): Promise>; } declare function updateCategory$1(httpClient: HttpClient): UpdateCategorySignature; interface UpdateCategorySignature { /** * Updates a category. * @param - Category ID. * @returns Category info. */ (_id: string, category: UpdateCategory, options?: UpdateCategoryOptions): Promise>; } declare function getCategory$1(httpClient: HttpClient): GetCategorySignature; interface GetCategorySignature { /** * Gets a category with the specified ID. * @param - Category ID. * @param - Options specifying which fields to return. */ (categoryId: string, options?: GetCategoryOptions): Promise>; } declare function getCategoryBySlug$1(httpClient: HttpClient): GetCategoryBySlugSignature; interface GetCategoryBySlugSignature { /** * Gets a category with the specified slug. * * The slug is at the end of the URL of a specific category. * For example, if a category's URL is `https://example.com/blog/categories/famous-cats`, the slug is `famous-cats`. * The slug is a case-sensitive string that is derived from the category's label, unless specified otherwise. * @param - Slug of the category to retrieve. * * The end of a category's URL. For example, `'https:/example.com/blog/category/{my-category-slug}'`. Case sensitive and generally based on the category `label` if not specified. * @param - Options specifying which fields to return. */ (slug: string, options?: GetCategoryBySlugOptions): Promise>; } declare function listCategories$1(httpClient: HttpClient): ListCategoriesSignature; interface ListCategoriesSignature { /** * Retrieves a list of up to 100 categories per request. * * If you pass a language filter to the method, it returns a list of up to 100 categories in the requested language. * * The categoies are displayed in order of their `displayPosition`, starting with `0`. The `displayPosition` is the position in which the categories * are displayed in the Category Menu page. By default, categories get added to the bottom of the Category Menu page with a `displayPosition` of `-1`. * * List Categories runs with these defaults, which you can override: * - `paging.limit` is `50`. * - `paging.offset` is `0`. * * List Categories is sorted by `displayPosition` in descending order. This cannot be overridden. * @param - Filter and paging options. */ (options?: ListCategoriesOptions): Promise>; } declare function deleteCategory$1(httpClient: HttpClient): DeleteCategorySignature; interface DeleteCategorySignature { /** * Deletes a category. * @param - Category ID. */ (categoryId: string): Promise; } declare const onCategoryCreated$1: EventDefinition; declare const onCategoryDeleted$1: EventDefinition; declare const onCategoryUpdated$1: EventDefinition; declare function customQueryCategories(httpClient: HttpClient): { (query: CategoryQuery, options?: QueryCategoriesOptions): ReturnType; (options?: QueryCategoriesOptions): CategoriesQueryBuilder; }; declare const createCategory: MaybeContext & typeof createCategory$1>; declare const updateCategory: MaybeContext & typeof updateCategory$1>; declare const getCategory: MaybeContext & typeof getCategory$1>; declare const getCategoryBySlug: MaybeContext & typeof getCategoryBySlug$1>; declare const listCategories: MaybeContext & typeof listCategories$1>; declare const deleteCategory: MaybeContext & typeof deleteCategory$1>; declare const queryCategories: MaybeContext & typeof customQueryCategories>; /** * Triggered when a category is created. */ declare const onCategoryCreated: BuildEventDefinition & typeof onCategoryCreated$1; /** * Triggered when a category is deleted. */ declare const onCategoryDeleted: BuildEventDefinition & typeof onCategoryDeleted$1; /** * Triggered when a category is updated. */ declare const onCategoryUpdated: BuildEventDefinition & typeof onCategoryUpdated$1; export { CategoriesQueryBuilder, Category, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryQuery, CategoryUpdatedEnvelope, CreateCategoryOptions, GetCategoryBySlugOptions, GetCategoryBySlugResponse, GetCategoryOptions, GetCategoryResponse, ListCategoriesOptions, ListCategoriesResponse, QueryCategoriesOptions, UpdateCategory, UpdateCategoryOptions, createCategory, deleteCategory, getCategory, getCategoryBySlug, listCategories, onCategoryCreated, onCategoryDeleted, onCategoryUpdated, queryCategories, updateCategory };