import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { BulkGetLoyaltyCouponOptions, BulkGetLoyaltyCouponResponse, BulkGetLoyaltyCouponResponseNonNullableFields, CouponCreatedEnvelope, CouponDeletedEnvelope, GetCurrentMemberCouponsResponse, GetCurrentMemberCouponsResponseNonNullableFields, LoyaltyCoupon, LoyaltyCouponNonNullableFields, LoyaltyCouponsQueryBuilder, RedeemCurrentMemberPointsForCouponResponse, RedeemCurrentMemberPointsForCouponResponseNonNullableFields, RedeemPointsForCouponOptions, RedeemPointsForCouponResponse, RedeemPointsForCouponResponseNonNullableFields } from './loyalty-v1-coupon-coupons.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function redeemPointsForCoupon(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/api/rest/coupons/about-wix-coupons). * 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](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/list-rewards). * @param - ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem. */ (rewardId: string, options: RedeemPointsForCouponOptions): Promise; } export declare function redeemCurrentMemberPointsForCoupon(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/api/rest/coupons/about-wix-coupons). * 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](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/list-rewards). * * >**Note:** * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions). * @param - ID of the [loyalty reward](https://dev.wix.com/docs/rest/crm/loyalty-program/rewards/reward-object) to redeem. */ (rewardId: string): Promise; } export declare function getLoyaltyCoupon(httpClient: HttpClient): GetLoyaltyCouponSignature; interface GetLoyaltyCouponSignature { /** * Retrieves a loyalty coupon. * @param - ID of the loyalty coupon to retrieve. * @returns Retrieved loyalty coupon. */ (loyaltyCouponId: string): Promise; } export declare function bulkGetLoyaltyCoupon(httpClient: HttpClient): BulkGetLoyaltyCouponSignature; interface BulkGetLoyaltyCouponSignature { /** * Retrieves a sequence of loyalty coupons */ (options?: BulkGetLoyaltyCouponOptions | undefined): Promise; } export declare function getCurrentMemberCoupons(httpClient: HttpClient): GetCurrentMemberCouponsSignature; interface GetCurrentMemberCouponsSignature { /** * Retrieves the loyalty coupons for the currently logged-in member. * * >**Note:** * >This endpoint requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions). */ (): Promise; } export declare function queryLoyaltyCoupons(httpClient: HttpClient): QueryLoyaltyCouponsSignature; interface QueryLoyaltyCouponsSignature { /** * Retrieves a list of loyalty coupons, given the provided paging, filtering, and sorting. */ (): LoyaltyCouponsQueryBuilder; } export declare function deleteLoyaltyCoupon(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; } export declare const onCouponCreated: EventDefinition; export declare const onCouponDeleted: EventDefinition; export { ActionEvent, BaseEventMetadata, BulkGetLoyaltyCouponOptions, BulkGetLoyaltyCouponRequest, BulkGetLoyaltyCouponResponse, BulkGetLoyaltyCouponResponseNonNullableFields, BuyXGetY, CouponCreatedEnvelope, CouponDeletedEnvelope, CouponReference, CouponsInSite, CursorPaging, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteLoyaltyCouponRequest, DeleteLoyaltyCouponResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetCurrentMemberCouponsRequest, GetCurrentMemberCouponsResponse, GetCurrentMemberCouponsResponseNonNullableFields, GetLoyaltyCouponRequest, GetLoyaltyCouponResponse, GetLoyaltyCouponResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, LoyaltyCoupon, LoyaltyCouponNonNullableFields, LoyaltyCouponsQueryBuilder, LoyaltyCouponsQueryResult, MessageEnvelope, Paging, PagingMetadataV2, QueryLoyaltyCouponRequest, QueryLoyaltyCouponResponse, QueryLoyaltyCouponResponseNonNullableFields, QueryV2, QueryV2PagingMethodOneOf, RedeemCurrentMemberPointsForCouponRequest, RedeemCurrentMemberPointsForCouponResponse, RedeemCurrentMemberPointsForCouponResponseNonNullableFields, RedeemMemberPointsForDiscountAmountCouponRequest, RedeemMemberPointsForDiscountAmountCouponResponse, RedeemPointsForCouponOptions, RedeemPointsForCouponRequest, RedeemPointsForCouponResponse, RedeemPointsForCouponResponseNonNullableFields, RestoreInfo, Scope, SortOrder, Sorting, Specification, SpecificationScopeOrMinSubtotalOneOf, SpecificationTypeDetailsOneOf, Status, Type, WebhookIdentityType, } from './loyalty-v1-coupon-coupons.universal.js';