import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Brand, CreateBrandValidationErrors, GetBrandOptions, UpdateBrand, UpdateBrandOptions, BulkCreateBrandsOptions, BulkCreateBrandsResponse, BulkCreateBrandsValidationErrors, MaskedBrand, BulkUpdateBrandsOptions, BulkUpdateBrandsResponse, GetOrCreateBrandOptions, GetOrCreateBrandResponse, GetOrCreateBrandValidationErrors, BulkGetOrCreateBrandsOptions, BulkGetOrCreateBrandsResponse, BulkDeleteBrandsResponse, BrandCreatedEnvelope, BrandDeletedEnvelope, BrandUpdatedEnvelope, BrandQuery, QueryBrandsOptions, typedQueryBrands, BrandsQueryBuilder } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, App, ApplicationError, BaseEventMetadata, BrandQuerySpec, BrandsQueryResult, BulkActionMetadata, BulkBrandsResult, BulkCreateBrandsRequest, BulkDeleteBrandsRequest, BulkDeleteBrandsResponseBulkBrandsResult, BulkGetOrCreateBrandsRequest, BulkUpdateBrandsRequest, CommonQueryWithEntityContext, CreateBrandRequest, CreateBrandResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, DeleteBrandRequest, DeleteBrandResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, GetBrandRequest, GetBrandResponse, GetOrCreateBrandRequest, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, MessageEnvelope, Page, Pages, QueryBrandsRequest, QueryBrandsResponse, RecloneSiteRequest, RecloneSiteResponse, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, URI, URIs, UpdateBrandRequest, UpdateBrandResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createBrand$1(httpClient: HttpClient): CreateBrandSignature; interface CreateBrandSignature { /** * Creates a brand. * @param - Brand to create. * @returns Created brand. */ (brand: NonNullablePaths): Promise & { __validationErrorsType?: CreateBrandValidationErrors; }>; } declare function getBrand$1(httpClient: HttpClient): GetBrandSignature; interface GetBrandSignature { /** * Retrieves a brand. * @param - Brand ID. * @returns Brand. */ (brandId: string, options?: GetBrandOptions): Promise>; } declare function updateBrand$1(httpClient: HttpClient): UpdateBrandSignature; interface UpdateBrandSignature { /** * Updates a brand. * * Each time the brand is updated, `revision` increments by 1. * The current `revision` must be passed when updating the brand. * This ensures you're working with the latest brand and prevents unintended overwrites. * @param - Brand ID. * @returns Updated brand. */ (_id: string, brand: NonNullablePaths, options?: UpdateBrandOptions): Promise>; } declare function deleteBrand$1(httpClient: HttpClient): DeleteBrandSignature; interface DeleteBrandSignature { /** * Deletes a brand. * * > **Note:** Deleting a brand will also remove it from all products it is assigned to. * @param - Brand ID. */ (brandId: string): Promise; } declare function bulkCreateBrands$1(httpClient: HttpClient): BulkCreateBrandsSignature; interface BulkCreateBrandsSignature { /** * Creates multiple brands. * @param - Brands to create. */ (brands: NonNullablePaths[], options?: BulkCreateBrandsOptions): Promise & { __validationErrorsType?: BulkCreateBrandsValidationErrors; }>; } declare function bulkUpdateBrands$1(httpClient: HttpClient): BulkUpdateBrandsSignature; interface BulkUpdateBrandsSignature { /** * Updates multiple brands. * * Each time a brand is updated, `revision` increments by 1. * The current `revision` must be passed when updating a brand. * This ensures you're working with the latest brand and prevents unintended overwrites. * @param - List of brands to update. */ (brands: NonNullablePaths[], options?: BulkUpdateBrandsOptions): Promise>; } declare function getOrCreateBrand$1(httpClient: HttpClient): GetOrCreateBrandSignature; interface GetOrCreateBrandSignature { /** * Retrieves a brand by name, or creates a brand if one with the passed `brandName` doesn't exist. * @param - Brand name to retrieve or create. */ (brandName: string, options?: GetOrCreateBrandOptions): Promise & { __validationErrorsType?: GetOrCreateBrandValidationErrors; }>; } declare function bulkGetOrCreateBrands$1(httpClient: HttpClient): BulkGetOrCreateBrandsSignature; interface BulkGetOrCreateBrandsSignature { /** * Retrieves multiple brands by name, or creates multiple brands if those with the passed `brandNames` don't exist. * @param - Brand names to retrieve or create. */ (brandNames: string[], options?: BulkGetOrCreateBrandsOptions): Promise>; } declare function bulkDeleteBrands$1(httpClient: HttpClient): BulkDeleteBrandsSignature; interface BulkDeleteBrandsSignature { /** * Deletes multiple brands. * @param - IDs of brands to delete. */ (brandIds: string[]): Promise>; } declare const onBrandCreated$1: EventDefinition; declare const onBrandDeleted$1: EventDefinition; declare const onBrandUpdated$1: EventDefinition; declare function customQueryBrands(httpClient: HttpClient): { (query: BrandQuery, options?: QueryBrandsOptions): ReturnType; (options?: QueryBrandsOptions): BrandsQueryBuilder; }; declare const createBrand: MaybeContext & typeof createBrand$1>; declare const getBrand: MaybeContext & typeof getBrand$1>; declare const updateBrand: MaybeContext & typeof updateBrand$1>; declare const deleteBrand: MaybeContext & typeof deleteBrand$1>; declare const bulkCreateBrands: MaybeContext & typeof bulkCreateBrands$1>; declare const bulkUpdateBrands: MaybeContext & typeof bulkUpdateBrands$1>; declare const getOrCreateBrand: MaybeContext & typeof getOrCreateBrand$1>; declare const bulkGetOrCreateBrands: MaybeContext & typeof bulkGetOrCreateBrands$1>; declare const bulkDeleteBrands: MaybeContext & typeof bulkDeleteBrands$1>; declare const queryBrands: MaybeContext & typeof customQueryBrands>; /** * Triggered when a brand is created. */ declare const onBrandCreated: BuildEventDefinition & typeof onBrandCreated$1; /** * Triggered when a brand is deleted. */ declare const onBrandDeleted: BuildEventDefinition & typeof onBrandDeleted$1; /** * Triggered when a brand is updated. */ declare const onBrandUpdated: BuildEventDefinition & typeof onBrandUpdated$1; export { Brand, BrandCreatedEnvelope, BrandDeletedEnvelope, BrandQuery, BrandUpdatedEnvelope, BrandsQueryBuilder, BulkCreateBrandsOptions, BulkCreateBrandsResponse, BulkCreateBrandsValidationErrors, BulkDeleteBrandsResponse, BulkGetOrCreateBrandsOptions, BulkGetOrCreateBrandsResponse, BulkUpdateBrandsOptions, BulkUpdateBrandsResponse, CreateBrandValidationErrors, GetBrandOptions, GetOrCreateBrandOptions, GetOrCreateBrandResponse, GetOrCreateBrandValidationErrors, MaskedBrand, QueryBrandsOptions, UpdateBrand, UpdateBrandOptions, bulkCreateBrands, bulkDeleteBrands, bulkGetOrCreateBrands, bulkUpdateBrands, createBrand, deleteBrand, getBrand, getOrCreateBrand, onBrandCreated, onBrandDeleted, onBrandUpdated, queryBrands, updateBrand };