@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
19 lines (18 loc) • 758 B
TypeScript
import type { PaywallData } from "../../data/entities";
import { type VariableDictionary } from "../../utils/variable-utils";
import type { ColorMode } from "../../types";
interface Props {
paywallData: PaywallData;
onPurchaseClicked?: (selectedPackageId: string) => void;
onBackClicked?: () => void;
onVisitCustomerCenterClicked?: () => void;
onRestorePurchasesClicked?: () => void;
onNavigateToUrlClicked?: (url: string) => void;
selectedLocale?: string;
variablesPerPackage?: Record<string, VariableDictionary>;
preferredColorMode?: ColorMode;
onError?: (error: unknown) => void;
}
declare const Paywall: import("svelte").Component<Props, {}, "">;
type Paywall = ReturnType<typeof Paywall>;
export default Paywall;