@coursebuilder/commerce-next
Version:
Commerce Functionality for Course Builder with Next.js
98 lines • 5.09 kB
TypeScript
import * as React from 'react';
import { type CountdownRenderProps } from 'react-countdown';
import { Product } from '@coursebuilder/core/schemas';
import { PricingData, PricingOptions } from '@coursebuilder/core/types';
type RootProps = {
className?: string;
asChild?: boolean;
product: Product;
couponId?: string | null | undefined;
country?: string;
options?: Partial<PricingOptions>;
userId?: string;
pricingDataLoader: Promise<PricingData>;
};
declare const Root: ({ children, ...props }: RootProps & {
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
declare const PricingProduct: ({ children, className, }: {
children: React.ReactNode;
className?: string;
}) => import("react/jsx-runtime").JSX.Element;
declare const Details: ({ children, className, }: {
children: React.ReactNode;
className?: string;
}) => import("react/jsx-runtime").JSX.Element | null;
declare const ProductImage: ({ className, children, }: {
className?: string;
children?: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element | null;
declare const Name: ({ className, children, }: {
className?: string;
children?: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element | null;
declare const Price: ({ className, children, }: {
className?: string;
children?: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
declare const TeamToggle: ({ className, children, }: {
className?: string;
children?: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element | null;
declare const TeamQuantityInput: ({ className, children, label, }: {
className?: string;
children?: React.ReactNode;
label?: string;
}) => import("react/jsx-runtime").JSX.Element | null;
declare const BuyButton: ({ className, children, asChild, }: {
className?: string;
children?: React.ReactNode;
asChild?: boolean;
}) => import("react/jsx-runtime").JSX.Element;
declare const GuaranteeBadge: ({ className, children, }: {
className?: string;
children?: React.ReactNode;
}) => string | number | bigint | true | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
declare const LiveRefundPolicy: ({ className, children, }: {
className?: string;
children?: React.ReactNode;
}) => string | number | bigint | true | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
declare const PPPToggle: ({ className, children, }: {
className?: string;
children?: React.ReactNode;
}) => string | number | bigint | true | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
declare const LiveQuantity: ({ children, className, }: {
children?: React.ReactNode;
className?: string;
}) => string | number | bigint | true | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
type PurchasedProps = {
asChild?: boolean;
className?: string;
};
declare const Purchased: ({ children, asChild, className, }: PurchasedProps & {
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element | null;
type BuyMoreSeatsToggleProps = {
asChild?: boolean;
className?: string;
children?: React.ReactNode;
};
declare const BuyMoreSeatsToggle: ({ asChild, className, children, }: BuyMoreSeatsToggleProps) => import("react/jsx-runtime").JSX.Element | null;
type BuyMoreSeatsProps = {
asChild?: boolean;
className?: string;
children?: React.ReactNode;
};
declare const BuyMoreSeats: ({ asChild, className, children }: BuyMoreSeatsProps) => import("react/jsx-runtime").JSX.Element | null;
declare const SaleCountdown: ({ className, countdownRenderer, }: {
className?: string;
countdownRenderer?: (props: CountdownRenderProps & {
className?: string;
}) => React.ReactElement;
}) => import("react/jsx-runtime").JSX.Element | null;
declare const Waitlist: ({ className, children, }: {
className?: string;
children?: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element | null;
export { Root, PricingProduct as Product, ProductImage, Name, Details, Price, TeamToggle, TeamQuantityInput, BuyButton, GuaranteeBadge, LiveRefundPolicy, PPPToggle, LiveQuantity, Purchased, BuyMoreSeatsToggle, BuyMoreSeats, SaleCountdown, Waitlist, };
//# sourceMappingURL=pricing.d.ts.map