import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { Pool, UpdatePool, RedeemBenefitOptions, RedeemBenefitResponse, RedeemBenefitApplicationErrors, ReallocateBenefitOptions, ReallocateBenefitResponse, ReallocateBenefitApplicationErrors, CancelRedemptionOptions, CancelRedemptionResponse, CancelRedemptionApplicationErrors, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, ItemReference, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, GetEligibleBenefitsApplicationErrors, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CheckBenefitEligibilityByFilterOptions, CheckBenefitEligibilityByFilterResponse, CheckBenefitEligibilityByFilterApplicationErrors, PoolQuery, QueryPoolsOptions, typedQueryPools, PoolsQueryBuilder } from './index.typings.js'; export { AccountInfo, ActionEvent, AlreadyExecuted, ApplicationError, AsyncResult, BalanceAmount, Benefit, BenefitAlreadyRedeemed, BenefitInfo, BenefitNotFound, BenefitReallocated, BenefitRedeemed, BenefitReservationCanceled, BenefitReservationReleased, BenefitReserved, BenefitResult, BenefitResultResultOneOf, BenefitResultType, BenefitResultTypeWithLiterals, BenefitSelector, BulkActionMetadata, BulkCheckBenefitEligibilityRequest, BulkEligibilityCheckResult, BulkPoolResult, BulkUpdatePoolsRequest, ByPoolDefinitionIdAndProgramDefinitionIdOptions, ByProgramIdOptions, CancelBenefitReservationRequest, CancelBenefitReservationResponse, CancelRedemptionRequest, CancellationDetails, ChainOperationInProgress, CheckBenefitEligibilityByFilterRequest, CheckBenefitEligibilityRequest, CommonIdentificationData, CommonIdentificationDataIdOneOf, CommonQueryWithEntityContext, CountNumberOfPoolsInProvisioningStatusRequest, CountNumberOfPoolsInProvisioningStatusResponse, CreatePoolRequest, CreatePoolResponse, CreditConfiguration, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomPolicy, DeletePoolRequest, DeletePoolResponse, Details, DomainEvent, DomainEventBodyOneOf, EligibilityCheckResult, EligibleBenefit, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, FailureDetails, FixedIntervalPolicy, GetEligibleBenefitsRequest, GetPoolRequest, GetPoolResponse, HealPoolRequest, HealPoolResponse, HealPoolTenantRequest, HealPoolTenantResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, IdentityTypeWithLiterals, Intent, IntentWithLiterals, InvalidPoolDefinitionReference, ItemMetadata, ItemNotAvailableInPool, MaskedPool, MessageEnvelope, NotEnoughBalance, NotLatestTransaction, Policy, PolicyExpression, PolicyExpressionAnd, PolicyExpressionEvaluatedToFalse, PolicyExpressionExpressionOneOf, PolicyExpressionNot, PolicyExpressionOr, PolicyExpressionType, PolicyExpressionTypeWithLiterals, PolicyPolicyOneOf, PoolDefinitionAndProgramDefinition, PoolDefinitionLookupId, PoolDefinitionLookupIdIdOneOf, PoolEnded, PoolInfo, PoolNotActive, PoolNotFound, PoolOrigin, PoolOriginWithLiterals, PoolPaused, PoolProgramInfo, PoolProvisionJobFinished, PoolProvisioned, PoolQuerySpec, PoolRenewalAction, PoolRenewalActionActionOneOf, PoolRenewalActionType, PoolRenewalActionTypeWithLiterals, PoolRenewed, PoolResumed, PoolSelector, PoolSelectorType, PoolSelectorTypeWithLiterals, PoolStatus, PoolStatusUpdateJobFinished, PoolStatusUpdateJobFinishedContextOneOf, PoolStatusUpdateParamsPoolInfo, PoolStatusWithLiterals, PoolsQueryResult, ProgramDefinitionInfo, ProgramInfo, ProvisionPoolsForProgramRequest, ProvisionPoolsForProgramResponse, ProvisionPoolsForProgramResponseResultOneOf, ProvisionPoolsForProgramResponseType, ProvisionPoolsForProgramResponseTypeWithLiterals, QueryPoolsRequest, QueryPoolsResponse, RateLimitedPolicy, ReallocateBenefitRequest, ReallocationDetails, RedeemBenefitRequest, RedemptionAlreadyCanceled, RedemptionCanceled, RedemptionDetails, ReleaseBenefitReservationRequest, ReleaseBenefitReservationResponse, RenewPoolsForProgramRequest, RenewPoolsForProgramResponse, ReserveBenefitRequest, ReserveBenefitResponse, RestoreInfo, RolloverConfiguration, SortOrder, SortOrderWithLiterals, Sorting, SyncResult, TimePeriod, TimePeriodWithLiterals, TransactionNotFound, Type, TypeWithLiterals, Update, UpdatePoolRequest, UpdatePoolResponse, UpdatePoolStatusRequest, UpdatePoolStatusRequestPoolSelectorOneOf, UpdatePoolStatusResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeekDay, WeekDayWithLiterals, utils } from './index.typings.js'; declare function getPool$1(httpClient: HttpClient): GetPoolSignature; interface GetPoolSignature { /** * Retrieves a pool. * @param - ID of the pool to retrieve. * @returns Retrieved pool. */ (poolId: string): Promise>; } declare function updatePool$1(httpClient: HttpClient): UpdatePoolSignature; interface UpdatePoolSignature { /** * Updates a pool. * * Each time the pool is updated, * `revision` increments by 1. * The current `revision` must be passed when updating the pool. * This ensures you're working with the latest pool * and prevents unintended overwrites. * @param - Pool ID. * @returns Updated pool. */ (_id: string, pool: NonNullablePaths): Promise>; } declare function redeemBenefit$1(httpClient: HttpClient): RedeemBenefitSignature; interface RedeemBenefitSignature { /** * Redeems a specified benefit. * * Calling this method records redemption of the benefit and adjusts the pool's associated balance. You still need to handle providing the beneficiary with the item. * @param - ID of the pool that contains the benefit to redeem. */ (poolId: string, options?: NonNullablePaths): Promise & { __applicationErrorsType?: RedeemBenefitApplicationErrors; }>; } declare function reallocateBenefit$1(httpClient: HttpClient): ReallocateBenefitSignature; interface ReallocateBenefitSignature { /** * Reallocates a redeemed benefit to a new target date. * * The reallocation is recorded as a new zero-amount transaction that supersedes the specified transaction in the redemption's transaction chain. * The specified transaction must be the latest transaction in the chain. The item, count and benefit key are carried over from the original redemption; only the target date changes. * @param - ID of the latest transaction in the redemption's transaction chain. * For a redemption that has never been reallocated, this is the redemption transaction ID. */ (transactionId: string, options: NonNullablePaths): Promise & { __applicationErrorsType?: ReallocateBenefitApplicationErrors; }>; } declare function cancelRedemption$1(httpClient: HttpClient): CancelRedemptionSignature; interface CancelRedemptionSignature { /** * Cancels a redemption, crediting the redeemed amount back to the pool's available balance. * * The cancellation is recorded as a new transaction that supersedes the specified transaction and terminates the redemption's transaction chain. * The specified transaction must be the latest transaction in the chain. The credited amount is always the amount of the original redemption, regardless of any reallocations in between. * @param - ID of the latest transaction in the redemption's transaction chain. * For a redemption that has never been reallocated, this is the redemption transaction ID. */ (transactionId: string, options: NonNullablePaths): Promise & { __applicationErrorsType?: CancelRedemptionApplicationErrors; }>; } declare function checkBenefitEligibility$1(httpClient: HttpClient): CheckBenefitEligibilitySignature; interface CheckBenefitEligibilitySignature { /** * Checks if a benefit can currently be redeemed. * * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit. * @param - ID of the pool that the benefit to check belongs to. */ (poolId: string, options?: NonNullablePaths): Promise>; } declare function bulkCheckBenefitEligibility$1(httpClient: HttpClient): BulkCheckBenefitEligibilitySignature; interface BulkCheckBenefitEligibilitySignature { /** * Checks if benefits can currently be redeemed. * * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit. * * Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed. */ (options?: NonNullablePaths): Promise>; } declare function getEligibleBenefits$1(httpClient: HttpClient): GetEligibleBenefitsSignature; interface GetEligibleBenefitsSignature { /** * Retrieves benefits that can be redeemed for a specific benefit item. * * Each benefit item can only be linked to 1 benefit in 1 pool definition. However, each pool created from that pool definition contains the same benefits. * This method checks each pool containing a benefit with this benefit item, and returns the benefits that can be redeemed. * @param - Item reference. */ (itemReference: NonNullablePaths, options?: NonNullablePaths): Promise & { __applicationErrorsType?: GetEligibleBenefitsApplicationErrors; }>; } declare function bulkUpdatePools$1(httpClient: HttpClient): BulkUpdatePoolsSignature; interface BulkUpdatePoolsSignature { /** * Updates pools. */ (options?: NonNullablePaths): Promise>; } declare function checkBenefitEligibilityByFilter$1(httpClient: HttpClient): CheckBenefitEligibilityByFilterSignature; interface CheckBenefitEligibilityByFilterSignature { /** * Checks benefit eligibility across the beneficiary's pools that contain a benefit for the given item. * * Pools are matched by `itemReference` within `namespace` and must belong to `beneficiary`, which defaults to the calling identity. `poolSelector` narrows the matched pools further. * * To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit. * * Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed. * @param - Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created. */ (namespace: string, options?: NonNullablePaths): Promise & { __applicationErrorsType?: CheckBenefitEligibilityByFilterApplicationErrors; }>; } declare function customQueryPools(httpClient: HttpClient): { (query: PoolQuery, options?: QueryPoolsOptions): ReturnType; (options?: QueryPoolsOptions): PoolsQueryBuilder; }; declare const getPool: MaybeContext & typeof getPool$1>; declare const updatePool: MaybeContext & typeof updatePool$1>; declare const redeemBenefit: MaybeContext & typeof redeemBenefit$1>; declare const reallocateBenefit: MaybeContext & typeof reallocateBenefit$1>; declare const cancelRedemption: MaybeContext & typeof cancelRedemption$1>; declare const checkBenefitEligibility: MaybeContext & typeof checkBenefitEligibility$1>; declare const bulkCheckBenefitEligibility: MaybeContext & typeof bulkCheckBenefitEligibility$1>; declare const getEligibleBenefits: MaybeContext & typeof getEligibleBenefits$1>; declare const bulkUpdatePools: MaybeContext & typeof bulkUpdatePools$1>; declare const checkBenefitEligibilityByFilter: MaybeContext & typeof checkBenefitEligibilityByFilter$1>; declare const queryPools: MaybeContext & typeof customQueryPools>; export { BulkCheckBenefitEligibilityOptions, BulkCheckBenefitEligibilityResponse, BulkUpdatePoolsOptions, BulkUpdatePoolsResponse, CancelRedemptionApplicationErrors, CancelRedemptionOptions, CancelRedemptionResponse, CheckBenefitEligibilityByFilterApplicationErrors, CheckBenefitEligibilityByFilterOptions, CheckBenefitEligibilityByFilterResponse, CheckBenefitEligibilityOptions, CheckBenefitEligibilityResponse, GetEligibleBenefitsApplicationErrors, GetEligibleBenefitsOptions, GetEligibleBenefitsResponse, ItemReference, Pool, PoolQuery, PoolsQueryBuilder, QueryPoolsOptions, ReallocateBenefitApplicationErrors, ReallocateBenefitOptions, ReallocateBenefitResponse, RedeemBenefitApplicationErrors, RedeemBenefitOptions, RedeemBenefitResponse, UpdatePool, bulkCheckBenefitEligibility, bulkUpdatePools, cancelRedemption, checkBenefitEligibility, checkBenefitEligibilityByFilter, getEligibleBenefits, getPool, queryPools, reallocateBenefit, redeemBenefit, updatePool };