import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { TaxGroup, UpdateTaxGroup, UpdateTaxGroupApplicationErrors, ListDefaultTaxGroupsResponse, ListDefaultTaxGroupsByAppIdsResponse, TaxGroupCreatedEnvelope, TaxGroupDeletedEnvelope, TaxGroupUpdatedEnvelope, TaxGroupsQueryBuilder, TaxGroupQuery, typedQueryTaxGroups } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, CommonQueryWithEntityContext, CreateTaxGroupRequest, CreateTaxGroupResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteTaxGroupRequest, DeleteTaxGroupResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetTaxGroupRequest, GetTaxGroupResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListDefaultTaxGroupsByAppIdsRequest, ListDefaultTaxGroupsByAppIdsResult, ListDefaultTaxGroupsRequest, MessageEnvelope, Paging, QueryTaxGroupsRequest, QueryTaxGroupsResponse, QueryV2, QueryV2PagingMethodOneOf, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TaxGroupQuerySpec, TaxGroupsQueryResult, UpdateTaxGroupRequest, UpdateTaxGroupResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createTaxGroup$1(httpClient: HttpClient): CreateTaxGroupSignature; interface CreateTaxGroupSignature { /** * Creates a tax group. * * Call Stores Update Product to add the `taxGroupId` to specific products to categorize as a group based on distinct tax treatment. * Wix uses tax groups to calculate tax. * * In addition to tax groups you create, default tax groups are already included in all Wix catalogs. * Call List Default Tax Groups to retrieve them. You can also use the Tax Groups Integration service plugin (REST only) * to create new default tax groups that can be applied directly to an entire catalog of products. * @param - Tax group to create. * @returns Created tax group. */ (taxGroup: NonNullablePaths): Promise>; } declare function getTaxGroup$1(httpClient: HttpClient): GetTaxGroupSignature; interface GetTaxGroupSignature { /** * Retrieves a tax group. * @param - ID of the tax group to retrieve. * @returns Retrieved tax group. */ (taxGroupId: string): Promise>; } declare function updateTaxGroup$1(httpClient: HttpClient): UpdateTaxGroupSignature; interface UpdateTaxGroupSignature { /** * Updates a tax group. * * Each time the tax group is updated, `revision` increments by 1. * The current `revision` must be passed when updating the tax group. * This ensures you're working with the latest tax group and prevents * unintended overwrites. * @param - Tax group ID. * @param - Tax group info. * @returns Updated tax group. */ (_id: string, taxGroup: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateTaxGroupApplicationErrors; }>; } declare function deleteTaxGroup$1(httpClient: HttpClient): DeleteTaxGroupSignature; interface DeleteTaxGroupSignature { /** * Deletes a tax group. * * If a tax group is deleted but the `taxGroupId` is still assigned to a product (see Stores Products API) then the default tax group is used to calculate tax. * @param - ID of the tax group to delete. */ (taxGroupId: string): Promise; } declare function listDefaultTaxGroups$1(httpClient: HttpClient): ListDefaultTaxGroupsSignature; interface ListDefaultTaxGroupsSignature { /** * Retrieves a list of default tax groups. * * The default tax groups for a site are inherited by the apps installed on the site. * For example, the Wix Stores app includes a `"Products"` tax group by default. * * Add additional default tax groups with the Tax Groups Integration service plugin (REST only). */ (): Promise>; } declare function listDefaultTaxGroupsByAppIds$1(httpClient: HttpClient): ListDefaultTaxGroupsByAppIdsSignature; interface ListDefaultTaxGroupsByAppIdsSignature { /** * Retrieves default tax groups for specific apps. * @param - App IDs to retrieve default tax groups for. */ (appIds: string[]): Promise>; } declare const onTaxGroupCreated$1: EventDefinition; declare const onTaxGroupDeleted$1: EventDefinition; declare const onTaxGroupUpdated$1: EventDefinition; declare function customQueryTaxGroups(httpClient: HttpClient): { (): TaxGroupsQueryBuilder; (query: TaxGroupQuery): ReturnType; }; declare const createTaxGroup: MaybeContext & typeof createTaxGroup$1>; declare const getTaxGroup: MaybeContext & typeof getTaxGroup$1>; declare const updateTaxGroup: MaybeContext & typeof updateTaxGroup$1>; declare const deleteTaxGroup: MaybeContext & typeof deleteTaxGroup$1>; declare const listDefaultTaxGroups: MaybeContext & typeof listDefaultTaxGroups$1>; declare const listDefaultTaxGroupsByAppIds: MaybeContext & typeof listDefaultTaxGroupsByAppIds$1>; declare const queryTaxGroups: MaybeContext & typeof customQueryTaxGroups>; /** * Triggered when a tax group is created. */ declare const onTaxGroupCreated: BuildEventDefinition & typeof onTaxGroupCreated$1; /** * Triggered when a tax group is deleted. */ declare const onTaxGroupDeleted: BuildEventDefinition & typeof onTaxGroupDeleted$1; /** * Triggered when a tax group is updated. */ declare const onTaxGroupUpdated: BuildEventDefinition & typeof onTaxGroupUpdated$1; export { ListDefaultTaxGroupsByAppIdsResponse, ListDefaultTaxGroupsResponse, TaxGroup, TaxGroupCreatedEnvelope, TaxGroupDeletedEnvelope, TaxGroupQuery, TaxGroupUpdatedEnvelope, TaxGroupsQueryBuilder, UpdateTaxGroup, UpdateTaxGroupApplicationErrors, createTaxGroup, deleteTaxGroup, getTaxGroup, listDefaultTaxGroups, listDefaultTaxGroupsByAppIds, onTaxGroupCreated, onTaxGroupDeleted, onTaxGroupUpdated, queryTaxGroups, updateTaxGroup };