UNPKG

@namiml/web-sdk

Version:

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

9 lines (8 loc) 660 B
import { ExtendedPlatformInfo, InitialConfig, InitialConfigCompressed } from "../types/config"; export declare const getBaseUrl: (namiCommands?: string[]) => string; export declare const getExtendedClientInfo: (namiCommands: string[]) => ExtendedPlatformInfo; export declare const hasCapability: (capability: string) => boolean; export declare const hasPurchaseManagement: (messagePrefix?: string) => boolean; export declare const shouldValidateProductGroups: () => boolean; export declare function tryParseJson(str: string): InitialConfig | InitialConfigCompressed | undefined; export declare function tryParseB64Gzip(str: string): InitialConfig | undefined;