UNPKG

@namiml/web-sdk

Version:

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

22 lines (21 loc) 893 B
import { IPaywall } from "../../types/paywall"; /** * Get initial paywalls from storage service. * @returns An array of initial paywalls from storage service. */ export declare const getInitialPaywalls: () => IPaywall[]; /** * Get all API paywalls from storage service. * @returns An array of API paywalls from storage service. */ export declare const getApiPaywalls: () => IPaywall[]; /** * Get all paywalls from both API and Initial sources, ensuring uniqueness. * This function combines paywalls from both sources and filters out duplicates. * API Data takes precedence over Initial Data. * * @returns A combined list of unique paywalls based on both API and Initial data. */ export declare const allPaywalls: () => IPaywall[]; export declare const getPaywall: (paywallId: string) => IPaywall | undefined; export declare const hasAllPaywalls: (paywallIds: string[]) => boolean;