UNPKG

@coursebuilder/commerce-next

Version:

Commerce Functionality for Course Builder with Next.js

26 lines 1.05 kB
import * as React from 'react'; import { Product } from '@coursebuilder/core/schemas'; export declare const CouponContext: React.Context<any>; export declare const CouponProvider: ({ children, getProduct, getCouponForCode, }: { children: React.ReactNode; getProduct: (id: string) => Promise<Product | null>; getCouponForCode: (id: string | null) => Promise<undefined | { maxUses: number; redeemedBulkCouponPurchases?: any; expires: Date | null; code?: string | null | undefined; isValid: boolean; merchantCouponId?: string | null | undefined; createdAt: Date | null; bulkPurchaseId?: string | null | undefined; isRedeemable: boolean; default: boolean; percentageDiscount: number; restrictedToProductId?: string | null | undefined; id: string; fields: Record<string, any>; usedCount: number; status: number; }>; }) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=coupon-context.d.ts.map