@namiml/web-sdk
Version:
Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing
23 lines (22 loc) • 1.05 kB
TypeScript
import { type NamiFlowEventHandler, type 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;
static finish(): void;
static pause(): void;
static isFlowOpen(): boolean;
presentFlow(campaign: NamiFlowCampaign, paywall: PaywallComponent, context?: NamiPaywallLaunchContext): NamiFlow;
finishFlow(): void;
}