import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { RedeemPointsForCouponOptions, RedeemPointsForCouponResponse, RedeemCurrentMemberPointsForCouponResponse, LoyaltyCoupon, BulkGetLoyaltyCouponOptions, BulkGetLoyaltyCouponResponse, GetCurrentMemberCouponsResponse, CouponCreatedEnvelope, CouponDeletedEnvelope, LoyaltyCouponsQueryBuilder, LoyaltyCouponQuery, typedQueryLoyaltyCoupons } from './index.typings.mjs'; export { AccountInfo, AccountInfoMetadata, ActionEvent, BaseEventMetadata, BulkGetLoyaltyCouponRequest, BuyXGetY, CommonQueryWithEntityContext, CouponReference, CouponsInSite, CursorPaging, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteLoyaltyCouponRequest, DeleteLoyaltyCouponResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetCurrentMemberCouponsRequest, GetLoyaltyCouponRequest, GetLoyaltyCouponResponse, IdentificationData, IdentificationDataIdOneOf, LoyaltyCouponQuerySpec, LoyaltyCouponsQueryResult, MessageEnvelope, Paging, PagingMetadataV2, QueryLoyaltyCouponRequest, QueryLoyaltyCouponResponse, QueryV2, QueryV2PagingMethodOneOf, RedeemCurrentMemberPointsForCouponRequest, RedeemMemberPointsForDiscountAmountCouponRequest, RedeemMemberPointsForDiscountAmountCouponResponse, RedeemPointsForCouponRequest, RestoreInfo, Scope, SortOrder, SortOrderWithLiterals, Sorting, Specification, SpecificationScopeOrMinSubtotalOneOf, SpecificationTypeDetailsOneOf, Status, StatusWithLiterals, Type, TypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs'; declare function redeemPointsForCoupon$1(httpClient: HttpClient): RedeemPointsForCouponSignature; interface RedeemPointsForCouponSignature { /** * Redeems a customer's loyalty points for a loyalty reward and creates a loyalty coupon. * * Creating a loyalty coupon also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/docs/rest/business-management/marketing/coupons/coupons/coupon-object). * The customer receives the reference coupon, which they can apply to their order. The loyalty coupon and its corresponding reference coupon * are linked and the loyalty coupon's `status` reflects the current state of the reference coupon. * * Check which loyalty rewards a site has available with List Rewards in the Loyalty Rewards API. * @param - ID of the loyalty reward to redeem. See the Loyalty Rewards API for more information. */ (rewardId: string, options: NonNullablePaths): Promise>; } declare function redeemCurrentMemberPointsForCoupon$1(httpClient: HttpClient): RedeemCurrentMemberPointsForCouponSignature; interface RedeemCurrentMemberPointsForCouponSignature { /** * Redeems a current customer's loyalty points for a loyalty reward and creates a loyalty coupon. * * Creating a loyalty coupon also creates a corresponding "reference" coupon with the [Coupons API](https://dev.wix.com/docs/rest/business-management/marketing/coupons/coupons/coupon-object). * The customer receives the reference coupon, which they can apply to their order. The loyalty coupon and its corresponding reference coupon * are linked and the loyalty coupon's `status` reflects the current state of the reference coupon. * * Check which loyalty rewards a site has available with List Rewards in the Loyalty Rewards API. * * >**Note:** * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities). * @param - ID of the loyalty reward to redeem. See the Loyalty Rewards API for more information. */ (rewardId: string): Promise>; } declare function getLoyaltyCoupon$1(httpClient: HttpClient): GetLoyaltyCouponSignature; interface GetLoyaltyCouponSignature { /** * Retrieves a loyalty coupon. * @param - ID of the loyalty coupon to retrieve. * @returns Retrieved loyalty coupon. */ (loyaltyCouponId: string): Promise>; } declare function bulkGetLoyaltyCoupon$1(httpClient: HttpClient): BulkGetLoyaltyCouponSignature; interface BulkGetLoyaltyCouponSignature { /** * Retrieves a sequence of loyalty coupons. */ (options?: BulkGetLoyaltyCouponOptions): Promise>; } declare function getCurrentMemberCoupons$1(httpClient: HttpClient): GetCurrentMemberCouponsSignature; interface GetCurrentMemberCouponsSignature { /** * Retrieves the loyalty coupons for the currently logged-in member. * * >**Note:** * >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities). */ (): Promise>; } declare function deleteLoyaltyCoupon$1(httpClient: HttpClient): DeleteLoyaltyCouponSignature; interface DeleteLoyaltyCouponSignature { /** * Deletes a loyalty coupon. * * The deletion of a loyalty coupon does not impact the functionality of the corresponding coupon itself. * @param - ID of the loyalty coupon to delete. * @param - Revision number, which increments by 1 each time the loyalty coupon is updated. * * To prevent conflicting changes, the current `revision` must be passed when updating the loyalty coupon. */ (_id: string, revision: string): Promise; } declare const onCouponCreated$1: EventDefinition; declare const onCouponDeleted$1: EventDefinition; declare function customQueryLoyaltyCoupons(httpClient: HttpClient): { (): LoyaltyCouponsQueryBuilder; (query: LoyaltyCouponQuery): ReturnType; }; declare const redeemPointsForCoupon: MaybeContext & typeof redeemPointsForCoupon$1>; declare const redeemCurrentMemberPointsForCoupon: MaybeContext & typeof redeemCurrentMemberPointsForCoupon$1>; declare const getLoyaltyCoupon: MaybeContext & typeof getLoyaltyCoupon$1>; declare const bulkGetLoyaltyCoupon: MaybeContext & typeof bulkGetLoyaltyCoupon$1>; declare const getCurrentMemberCoupons: MaybeContext & typeof getCurrentMemberCoupons$1>; declare const deleteLoyaltyCoupon: MaybeContext & typeof deleteLoyaltyCoupon$1>; declare const queryLoyaltyCoupons: MaybeContext & typeof customQueryLoyaltyCoupons>; /** * Triggered when a loyalty coupon is created. */ declare const onCouponCreated: BuildEventDefinition & typeof onCouponCreated$1; /** * Triggered when a loyalty coupon is deleted. */ declare const onCouponDeleted: BuildEventDefinition & typeof onCouponDeleted$1; export { BulkGetLoyaltyCouponOptions, BulkGetLoyaltyCouponResponse, CouponCreatedEnvelope, CouponDeletedEnvelope, GetCurrentMemberCouponsResponse, LoyaltyCoupon, LoyaltyCouponQuery, LoyaltyCouponsQueryBuilder, RedeemCurrentMemberPointsForCouponResponse, RedeemPointsForCouponOptions, RedeemPointsForCouponResponse, bulkGetLoyaltyCoupon, deleteLoyaltyCoupon, getCurrentMemberCoupons, getLoyaltyCoupon, onCouponCreated, onCouponDeleted, queryLoyaltyCoupons, redeemCurrentMemberPointsForCoupon, redeemPointsForCoupon };