import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { TaxRegion, CreateTaxRegionApplicationErrors, UpdateTaxRegion, UpdateTaxRegionApplicationErrors, TaxRegionCreatedEnvelope, TaxRegionDeletedEnvelope, TaxRegionUpdatedEnvelope, TaxRegionsQueryBuilder, TaxRegionQuery, typedQueryTaxRegions } from './index.typings.js'; export { AccountDetails, ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateTaxRegionRequest, BulkCreateTaxRegionResponse, BulkCreateTaxRegionResult, BulkRestoreTaxRegionsRequest, BulkRestoreTaxRegionsResponse, BulkRestoreTaxRegionsResult, CommonQueryWithEntityContext, ConflictErrorDetails, CreateOrGetTaxRegionWithoutValidationRequest, CreateOrGetTaxRegionWithoutValidationResponse, CreateTaxRegionRequest, CreateTaxRegionResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteTaxRegionRequest, DeleteTaxRegionResponse, DeleteTaxRegionWithoutDomainEventsRequest, DeleteTaxRegionWithoutDomainEventsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetTaxRegionRequest, GetTaxRegionResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryTaxRegionsRequest, QueryTaxRegionsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TaxRegionQuerySpec, TaxRegionsQueryResult, UpdateTaxRegionRequest, UpdateTaxRegionResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function createTaxRegion$1(httpClient: HttpClient): CreateTaxRegionSignature; interface CreateTaxRegionSignature { /** * Creates a tax region. * * Tax regions require a tax calculator `appId`. Call List Tax Calculators to retrieve a list of available calculators for a site. * * Wix uses tax regions to calculate tax. * * @param - Tax region to create. * @returns Created tax region. */ (taxRegion: NonNullablePaths): Promise & { __applicationErrorsType?: CreateTaxRegionApplicationErrors; }>; } declare function getTaxRegion$1(httpClient: HttpClient): GetTaxRegionSignature; interface GetTaxRegionSignature { /** * Retrieves a tax region. * @param - ID of the tax region to retrieve. * @returns Retrieved tax region. */ (taxRegionId: string): Promise>; } declare function updateTaxRegion$1(httpClient: HttpClient): UpdateTaxRegionSignature; interface UpdateTaxRegionSignature { /** * Updates a tax region. * * Each time the tax region is updated, `revision` increments by 1. * The current `revision` must be passed when updating the tax region. * This ensures you're working with the latest tax region and prevents * unintended overwrites. * @param - Tax region ID. * @param - Tax region info. * @returns Updated tax region. */ (_id: string, taxRegion: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateTaxRegionApplicationErrors; }>; } declare function deleteTaxRegion$1(httpClient: HttpClient): DeleteTaxRegionSignature; interface DeleteTaxRegionSignature { /** * Deletes a tax region. * * When a tax region is deleted, tax is not calculated and zero tax will be returned for addresses in this region. * @param - ID of the tax region to delete. */ (taxRegionId: string): Promise; } declare const onTaxRegionCreated$1: EventDefinition; declare const onTaxRegionDeleted$1: EventDefinition; declare const onTaxRegionUpdated$1: EventDefinition; declare function customQueryTaxRegions(httpClient: HttpClient): { (): TaxRegionsQueryBuilder; (query: TaxRegionQuery): ReturnType; }; declare const createTaxRegion: MaybeContext & typeof createTaxRegion$1>; declare const getTaxRegion: MaybeContext & typeof getTaxRegion$1>; declare const updateTaxRegion: MaybeContext & typeof updateTaxRegion$1>; declare const deleteTaxRegion: MaybeContext & typeof deleteTaxRegion$1>; declare const queryTaxRegions: MaybeContext & typeof customQueryTaxRegions>; /** */ declare const onTaxRegionCreated: BuildEventDefinition & typeof onTaxRegionCreated$1; /** * Triggered when a tax region is deleted. */ declare const onTaxRegionDeleted: BuildEventDefinition & typeof onTaxRegionDeleted$1; /** * Triggered when a tax region is updated. */ declare const onTaxRegionUpdated: BuildEventDefinition & typeof onTaxRegionUpdated$1; export { CreateTaxRegionApplicationErrors, TaxRegion, TaxRegionCreatedEnvelope, TaxRegionDeletedEnvelope, TaxRegionQuery, TaxRegionUpdatedEnvelope, TaxRegionsQueryBuilder, UpdateTaxRegion, UpdateTaxRegionApplicationErrors, createTaxRegion, deleteTaxRegion, getTaxRegion, onTaxRegionCreated, onTaxRegionDeleted, onTaxRegionUpdated, queryTaxRegions, updateTaxRegion };