import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Order, CalculateServiceFeesOptions, CalculateServiceFeesResponse, Rule, UpdateRule, ListRulesOptions, ListRulesResponse, BulkCreateRulesOptions, BulkCreateRulesResponse, MaskedRule, BulkUpdateRulesOptions, BulkUpdateRulesResponse, BulkDeleteRulesResponse, BulkUpdateRuleTagsOptions, BulkUpdateRuleTagsResponse, BulkUpdateRuleTagsApplicationErrors, BulkUpdateRuleTagsByFilterOptions, BulkUpdateRuleTagsByFilterResponse, BulkUpdateRuleTagsByFilterApplicationErrors, RuleCreatedEnvelope, RuleDeletedEnvelope, RuleUpdatedEnvelope, RulesQueryBuilder, RuleQuery, typedQueryRules } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateRulesRequest, BulkDeleteRulesRequest, BulkRuleResult, BulkUpdateRuleTagsByFilterRequest, BulkUpdateRuleTagsRequest, BulkUpdateRuleTagsResult, BulkUpdateRulesRequest, CalculateServiceFeesRequest, CalculatedFee, CommonBulkActionMetadata, CommonItemMetadata, CommonMoney, CommonQueryWithEntityContext, Condition, ConditionTree, ConditionTreeLeftConditionNodeOneOf, ConditionTreeRightConditionNodeOneOf, ConditionType, ConditionTypeWithLiterals, ConditionValueOneOf, ConditionsType, ConditionsTypeWithLiterals, CreateRuleRequest, CreateRuleResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteRuleRequest, DeleteRuleResponse, DeliveryLogistics, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExpectedFieldType, ExpectedFieldTypeWithLiterals, ExpectedType, ExtendedFields, GetRuleRequest, GetRuleResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, List, ListRulesRequest, Locale, MessageEnvelope, Money, Operation, OperationWithLiterals, Operator, OperatorWithLiterals, Platform, PlatformValue, PlatformValueWithLiterals, PriceSummary, QueryRulesRequest, QueryRulesResponse, RestoreInfo, RoundingStrategy, RoundingStrategyWithLiterals, RuleConditionTypeOptionsOneOf, RuleConditionsOneOf, RuleQuerySpec, RuleRequirementsOneOf, RuleTaxesOneOf, RuleValueOneOf, RulesQueryResult, ShippingInformation, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, Type, TypeWithLiterals, UpdateRuleRequest, UpdateRuleResponse, Value, ValueWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _Number, utils } from './index.typings.js'; declare function calculateServiceFees$1(httpClient: HttpClient): CalculateServiceFeesSignature; interface CalculateServiceFeesSignature { /** * The `calculateServiceFees()` function returns a Promise that resolves to an array containing the calculated fees. * * * The specified order information is evaluated against all rules created for the site. If the rule conditions are met, the service fee set in the rule is applied. Otherwise, no service fee is added. * @param - Order information needed to evaluate the rules and calculate the relevant fees. */ (order: NonNullablePaths, options?: CalculateServiceFeesOptions): Promise>; } declare function createRule$1(httpClient: HttpClient): CreateRuleSignature; interface CreateRuleSignature { /** * The `createRule()` function returns a Promise that resolves to the created rule. * * * To create multiple rules at once, use the `bulkCreateRules()` function. * @param - Rule to create. * @returns Created rule */ (rule: NonNullablePaths): Promise>; } declare function getRule$1(httpClient: HttpClient): GetRuleSignature; interface GetRuleSignature { /** * The `createRule()` function returns a Promise that resolves to the retrieved rule. * @param - ID of the rule to retrieve. * @returns The retrieved rule. */ (ruleId: string): Promise>; } declare function updateRule$1(httpClient: HttpClient): UpdateRuleSignature; interface UpdateRuleSignature { /** * The `updateRule()` function returns a Promise that resolves to the updated rule. * * * Each time the task is updated, `revision` increments by 1. The existing `revision` must be included when updating the task. This ensures you're working with the latest task and prevents unintended overwrites. * * To update multiple rules at once, use the `bulkUpdateRules()` function. * @param - Rule ID. * @returns Updated rule. */ (_id: string, rule: NonNullablePaths): Promise>; } declare function deleteRule$1(httpClient: HttpClient): DeleteRuleSignature; interface DeleteRuleSignature { /** * The `deleteRule()` function returns a Promise that resolves to void. * * * To delete multiple rules at once, use the `bulkDeleteRules()` function. * @param - ID of the rule to delete. */ (ruleId: string): Promise; } declare function listRules$1(httpClient: HttpClient): ListRulesSignature; interface ListRulesSignature { /** * The `listRules()` function returns a Promise that resolves to an array of the retrieved rules. * * * You can filter by location or app that the rules are associated with. */ (options?: ListRulesOptions): Promise>; } declare function bulkCreateRules$1(httpClient: HttpClient): BulkCreateRulesSignature; interface BulkCreateRulesSignature { /** * The `bulkCreateRules()` function returns a Promise that resolves to the created rules. * * * To create only one rule, use the `createRule()` function. * @param - Rules to create. */ (rules: Rule[], options?: BulkCreateRulesOptions): Promise>; } declare function bulkUpdateRules$1(httpClient: HttpClient): BulkUpdateRulesSignature; interface BulkUpdateRulesSignature { /** * The `bulkUpdateRules()` function returns a Promise that resolves to the updated rules. * * * Each time the task is updated, `revision` increments by 1. The existing `revision` must be included when updating the task. This ensures you're working with the latest task and prevents unintended overwrites. * * To update only one rule, use the `updateRule()` function. * @param - Masked rules to update. */ (rules: MaskedRule[], options?: BulkUpdateRulesOptions): Promise>; } declare function bulkDeleteRules$1(httpClient: HttpClient): BulkDeleteRulesSignature; interface BulkDeleteRulesSignature { /** * The `bulkDeleteRules()` function returns a Promise that resolves to the deleted rules. * * * To delete only one rule, use the `deleteRule()` function. * @param - IDs of the rules to delete. */ (ruleIds: string[]): Promise>; } declare function bulkUpdateRuleTags$1(httpClient: HttpClient): BulkUpdateRuleTagsSignature; interface BulkUpdateRuleTagsSignature { /** * Synchronously update tags on multiple rules. * If you specify a tag in both `assignTags` and `unassignTags`, it is assigned. * @param - IDs of the rules to update tags for. */ (ruleIds: string[], options?: BulkUpdateRuleTagsOptions): Promise & { __applicationErrorsType?: BulkUpdateRuleTagsApplicationErrors; }>; } declare function bulkUpdateRuleTagsByFilter$1(httpClient: HttpClient): BulkUpdateRuleTagsByFilterSignature; interface BulkUpdateRuleTagsByFilterSignature { /** * Asynchronously update tags on multiple rules according to the specified filter. * If a filter isn't specified, this method updates all rules. * If you specify a tag in both `assignTags` and `unassignTags`, it is assigned. * @param - Filter that determines which rules to update tags for. */ (filter: Record, options?: BulkUpdateRuleTagsByFilterOptions): Promise & { __applicationErrorsType?: BulkUpdateRuleTagsByFilterApplicationErrors; }>; } declare const onRuleCreated$1: EventDefinition; declare const onRuleDeleted$1: EventDefinition; declare const onRuleUpdated$1: EventDefinition; declare function customQueryRules(httpClient: HttpClient): { (): RulesQueryBuilder; (query: RuleQuery): ReturnType; }; declare const calculateServiceFees: MaybeContext & typeof calculateServiceFees$1>; declare const createRule: MaybeContext & typeof createRule$1>; declare const getRule: MaybeContext & typeof getRule$1>; declare const updateRule: MaybeContext & typeof updateRule$1>; declare const deleteRule: MaybeContext & typeof deleteRule$1>; declare const listRules: MaybeContext & typeof listRules$1>; declare const bulkCreateRules: MaybeContext & typeof bulkCreateRules$1>; declare const bulkUpdateRules: MaybeContext & typeof bulkUpdateRules$1>; declare const bulkDeleteRules: MaybeContext & typeof bulkDeleteRules$1>; declare const bulkUpdateRuleTags: MaybeContext & typeof bulkUpdateRuleTags$1>; declare const bulkUpdateRuleTagsByFilter: MaybeContext & typeof bulkUpdateRuleTagsByFilter$1>; declare const queryRules: MaybeContext & typeof customQueryRules>; /** */ declare const onRuleCreated: BuildEventDefinition & typeof onRuleCreated$1; /** */ declare const onRuleDeleted: BuildEventDefinition & typeof onRuleDeleted$1; /** */ declare const onRuleUpdated: BuildEventDefinition & typeof onRuleUpdated$1; export { BulkCreateRulesOptions, BulkCreateRulesResponse, BulkDeleteRulesResponse, BulkUpdateRuleTagsApplicationErrors, BulkUpdateRuleTagsByFilterApplicationErrors, BulkUpdateRuleTagsByFilterOptions, BulkUpdateRuleTagsByFilterResponse, BulkUpdateRuleTagsOptions, BulkUpdateRuleTagsResponse, BulkUpdateRulesOptions, BulkUpdateRulesResponse, CalculateServiceFeesOptions, CalculateServiceFeesResponse, ListRulesOptions, ListRulesResponse, MaskedRule, Order, Rule, RuleCreatedEnvelope, RuleDeletedEnvelope, RuleQuery, RuleUpdatedEnvelope, RulesQueryBuilder, UpdateRule, bulkCreateRules, bulkDeleteRules, bulkUpdateRuleTags, bulkUpdateRuleTagsByFilter, bulkUpdateRules, calculateServiceFees, createRule, deleteRule, getRule, listRules, onRuleCreated, onRuleDeleted, onRuleUpdated, queryRules, updateRule };