import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { DiscountRule, CreateDiscountRuleApplicationErrors, CreateDiscountRuleValidationErrors, UpdateDiscountRule, BulkUpdateDiscountRuleTagsOptions, BulkUpdateDiscountRuleTagsResponse, BulkUpdateDiscountRuleTagsApplicationErrors, BulkUpdateDiscountRuleTagsByFilterOptions, BulkUpdateDiscountRuleTagsByFilterResponse, BulkUpdateDiscountRuleTagsByFilterApplicationErrors, DiscountRuleCreatedEnvelope, DiscountRuleDeletedEnvelope, DiscountRuleUpdatedEnvelope, DiscountRulesQueryBuilder, DiscountRuleQuery, typedQueryDiscountRules } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ActiveTimeInfo, Address, And, ApplicationError, AppliedDiscount, AppliedDiscountRule, AppliedSubjectType, AppliedSubjectTypeWithLiterals, BaseEventMetadata, BulkActionMetadata, BulkUpdateDiscountRuleTagsByFilterRequest, BulkUpdateDiscountRuleTagsRequest, BulkUpdateDiscountRuleTagsResult, BuyXGetYInfo, BuyerInfo, CatalogItemFilter, CatalogReference, CommonQueryWithEntityContext, ContactSegments, ContactTags, CreateDiscountRuleRequest, CreateDiscountRuleResponse, CursorPaging, Cursors, Custom, CustomFilter, CustomerBuy, CustomerBuyConditionOneOf, CustomerEligibility, CustomerEligibilityOptionsOneOf, CustomerGet, DayOfWeek, DayOfWeekWithLiterals, DeleteDiscountRuleRequest, DeleteDiscountRuleResponse, Discount, DiscountConfig, DiscountDiscountOneOf, DiscountRuleName, DiscountRuleQuerySpec, DiscountRuleUsageLimitReached, DiscountRulesQueryResult, DiscountSettings, DiscountTrigger, DiscountTriggerTriggerOneOf, DiscountType, DiscountTypeWithLiterals, Discounts, DomainEvent, DomainEventBodyOneOf, EligibilityType, EligibilityTypeWithLiterals, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetAppliedDiscountsRequest, GetAppliedDiscountsResponse, GetDiscountRuleRequest, GetDiscountRuleResponse, IdentificationData, IdentificationDataIdOneOf, IndividualMembers, ItemCombination, ItemCombinationLineItem, ItemMetadata, ItemQuantityRange, LineItem, MessageEnvelope, MultiCurrencyPrice, Or, PlatformPaging, PlatformPagingMetadata, PlatformQuery, PlatformQueryPagingMethodOneOf, QuantityBased, QueryDiscountRulesRequest, QueryDiscountRulesResponse, Recurrence, RestoreInfo, Scope, ScopeScopeItemsOneOf, ScopeType, ScopeTypeWithLiterals, ShippingInfo, SortOrder, SortOrderWithLiterals, Sorting, SpecificItemsInfo, Status, StatusWithLiterals, SubtotalRange, TagList, TagReference, Tags, TagsModified, TimeOfDay, TimeWindow, TriggerType, TriggerTypeWithLiterals, Type, TypeWithLiterals, UpdateDiscountRuleRequest, UpdateDiscountRuleResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeeklySchedule, utils } from './index.typings.js'; declare function createDiscountRule$1(httpClient: HttpClient): CreateDiscountRuleSignature; interface CreateDiscountRuleSignature { /** * Creates a new discount rule. * * * The `createDiscountRule()` function returns a Promise that resolves to the new discount rule when it's created. * @param - Discount rule info. * @returns Discount rule. */ (discountRule: NonNullablePaths): Promise & { __applicationErrorsType?: CreateDiscountRuleApplicationErrors; __validationErrorsType?: CreateDiscountRuleValidationErrors; }>; } declare function getDiscountRule$1(httpClient: HttpClient): GetDiscountRuleSignature; interface GetDiscountRuleSignature { /** * Retrieves a discount rule. * * * The `getDiscountRule()` function returns a Promise that resolves when the specified discount rule is retrieved. * @param - ID of the discount rule to retrieve. * @returns The requested discount rule. */ (discountRuleId: string): Promise>; } declare function updateDiscountRule$1(httpClient: HttpClient): UpdateDiscountRuleSignature; interface UpdateDiscountRuleSignature { /** * Updates a discount rule's properties. * * * The `updateDiscountRule()` function returns a Promise that resolves when the specified discount rule's properties are updated. * * Each time the discount rule is updated, `revision` increments by 1. The existing `revision` must be included when updating the discount rule. This ensures you're working with the latest discount rule information, and it prevents unintended overwrites. * @param - Discount rule ID. * @param - Discount rule info. * @param - Discount rule info. * @returns Updated discount rule. */ (_id: string, discountRule: NonNullablePaths): Promise>; } declare function deleteDiscountRule$1(httpClient: HttpClient): DeleteDiscountRuleSignature; interface DeleteDiscountRuleSignature { /** * Deletes a discount rule. * * * The `deleteDiscountRule()` function returns a Promise that resolves when the specified discount rule is deleted. * @param - ID of the discount rule to delete. */ (discountRuleId: string): Promise; } declare function bulkUpdateDiscountRuleTags$1(httpClient: HttpClient): BulkUpdateDiscountRuleTagsSignature; interface BulkUpdateDiscountRuleTagsSignature { /** * Bulk update tags for discount rules by IDs. * @param - IDs of discount rules to update. */ (discountRuleIds: string[], options?: BulkUpdateDiscountRuleTagsOptions): Promise & { __applicationErrorsType?: BulkUpdateDiscountRuleTagsApplicationErrors; }>; } declare function bulkUpdateDiscountRuleTagsByFilter$1(httpClient: HttpClient): BulkUpdateDiscountRuleTagsByFilterSignature; interface BulkUpdateDiscountRuleTagsByFilterSignature { /** * Asynchronously update tags on multiple discount rules by filter. * An empty filter will update all discount rules. * A tag that appears both in the list of assign and unassign tags, will be assigned. * @param - Filter. */ (filter: Record, options?: BulkUpdateDiscountRuleTagsByFilterOptions): Promise & { __applicationErrorsType?: BulkUpdateDiscountRuleTagsByFilterApplicationErrors; }>; } declare const onDiscountRuleCreated$1: EventDefinition; declare const onDiscountRuleDeleted$1: EventDefinition; declare const onDiscountRuleUpdated$1: EventDefinition; declare function customQueryDiscountRules(httpClient: HttpClient): { (): DiscountRulesQueryBuilder; (query: DiscountRuleQuery): ReturnType; }; declare const createDiscountRule: MaybeContext & typeof createDiscountRule$1>; declare const getDiscountRule: MaybeContext & typeof getDiscountRule$1>; declare const updateDiscountRule: MaybeContext & typeof updateDiscountRule$1>; declare const deleteDiscountRule: MaybeContext & typeof deleteDiscountRule$1>; declare const bulkUpdateDiscountRuleTags: MaybeContext & typeof bulkUpdateDiscountRuleTags$1>; declare const bulkUpdateDiscountRuleTagsByFilter: MaybeContext & typeof bulkUpdateDiscountRuleTagsByFilter$1>; declare const queryDiscountRules: MaybeContext & typeof customQueryDiscountRules>; /** * Triggered when a discount rule is created. */ declare const onDiscountRuleCreated: BuildEventDefinition & typeof onDiscountRuleCreated$1; /** * Triggered when a discount rule is deleted. */ declare const onDiscountRuleDeleted: BuildEventDefinition & typeof onDiscountRuleDeleted$1; /** * Triggered when a discount rule is updated. */ declare const onDiscountRuleUpdated: BuildEventDefinition & typeof onDiscountRuleUpdated$1; export { BulkUpdateDiscountRuleTagsApplicationErrors, BulkUpdateDiscountRuleTagsByFilterApplicationErrors, BulkUpdateDiscountRuleTagsByFilterOptions, BulkUpdateDiscountRuleTagsByFilterResponse, BulkUpdateDiscountRuleTagsOptions, BulkUpdateDiscountRuleTagsResponse, CreateDiscountRuleApplicationErrors, CreateDiscountRuleValidationErrors, DiscountRule, DiscountRuleCreatedEnvelope, DiscountRuleDeletedEnvelope, DiscountRuleQuery, DiscountRuleUpdatedEnvelope, DiscountRulesQueryBuilder, UpdateDiscountRule, bulkUpdateDiscountRuleTags, bulkUpdateDiscountRuleTagsByFilter, createDiscountRule, deleteDiscountRule, getDiscountRule, onDiscountRuleCreated, onDiscountRuleDeleted, onDiscountRuleUpdated, queryDiscountRules, updateDiscountRule };