UNPKG

@namiml/web-sdk

Version:

Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing

19 lines (18 loc) 985 B
import { UserAction } from "../../types/components/containers"; import { NamiSKU } from "../../types/externals/sku"; import { NamiPaywallComponentChange } from "../../types/externals/paywall"; export declare const handleAction: (onTap?: UserAction, sku?: NamiSKU, componentChange?: NamiPaywallComponentChange | undefined) => void; export declare const closePaywallHandler: () => void; export declare const restorePurchase: () => void; export declare const signIn: () => void; export declare const deepLink: (url?: string) => void; export declare const buySKU: (onTap: UserAction, sku: NamiSKU) => NamiSKU; export declare const navigateToScreen: (screen?: string) => void; export declare const setState: () => { id: string; name: string; }; export declare const selectSKU: (sku: NamiSKU) => void; export declare const purchaseSelectedSKU: (sku: NamiSKU) => void; export declare const reloadProducts: () => void; export declare function shouldHoist(onTap?: UserAction): boolean;