@namiml/web-sdk
Version:
Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing
21 lines (20 loc) • 991 B
TypeScript
import type { NamiFlowEventHandler, NamiFlowHandoffStepHandler } from "../../types/flow";
import { NamiFlow } from "./NamiFlow";
import type { NamiFlowCampaign } from '../../types/externals/campaign';
import { NamiPaywallLaunchContext } from '../../types/externals/paywall';
import { PaywallComponent } from "../../components/Paywall";
export declare class NamiFlowManager {
private static _instance;
static get instance(): NamiFlowManager;
currentFlow?: NamiFlow;
flowOpen: boolean;
private constructor();
handoffStepHandler?: NamiFlowHandoffStepHandler;
static registerStepHandoff(handoffStepHandler?: NamiFlowHandoffStepHandler): void;
eventHandler?: NamiFlowEventHandler;
static registerEventHandler(eventHandler: NamiFlowEventHandler): void;
static resume(): void;
presentFlow(campaign: NamiFlowCampaign, paywall: PaywallComponent, context?: NamiPaywallLaunchContext): NamiFlow;
static finish(): void;
static isFlowOpen(): boolean;
}