UNPKG

@namiml/web-sdk

Version:

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

11 lines (10 loc) 705 B
import { DevicePayload, TDevice } from "../types/device"; export declare const getDeviceData: (namiCommands?: string[]) => DevicePayload; export declare const getDeviceFormFactor: () => TDevice; export declare function getDeviceScaleFactor(formFactor?: string): number; export declare function generateUUID(): string; export declare function audienceSplitPosition(uuid: string): number; export declare function bigintToUuid(v: bigint): string; export declare function randomBigInt(n: bigint): bigint; export declare function generateUuidForSplitPosition(targetPercent: number, tolerancePercent?: number): string; export declare function uuidFromSplitPosition(namiCommands?: string[]): string | undefined;