UNPKG

@namiml/web-sdk

Version:

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

27 lines (26 loc) 1.41 kB
import { UserAction } from "../../types/components/containers"; import { NamiSKU } from "../../types/externals/sku"; import { type NamiPaywallComponentChange } from "../../types/externals/paywall"; import { PaywallContextProvider } from "../ContextProvider"; type HandleActionParams = { onTap?: UserAction; sku?: NamiSKU; componentChange?: NamiPaywallComponentChange; contextProvider: PaywallContextProvider; }; export declare const handleAction: ({ onTap, sku, componentChange, contextProvider, }?: HandleActionParams) => 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: (contextProvider: PaywallContextProvider, onTap: UserAction, sku: NamiSKU) => NamiSKU; export declare const navigateToScreen: (contextProvider: PaywallContextProvider, screen?: string) => void; export declare const setState: (contextProvider: PaywallContextProvider) => { id: string; name: string; }; export declare const selectSKU: (contextProvider: PaywallContextProvider, sku: NamiSKU) => void; export declare const purchaseSelectedSKU: (contextProvider: PaywallContextProvider, sku: NamiSKU) => void; export declare const reloadProducts: () => void; export declare function shouldHoist(onTap?: UserAction): boolean; export {};