UNPKG

@namiml/web-sdk

Version:

Subscription monetization infrastructure — drop-in SDK with no-code paywalls, onboarding flows, A/B testing for web

14 lines (13 loc) 541 B
import { ReactiveController, ReactiveControllerHost } from 'lit'; import { TPaywallContext } from '@namiml/sdk-core'; import { PaywallContextProvider } from './ContextProvider'; declare class ContextConsumer implements ReactiveController { private host; state: TPaywallContext; contextProvider: PaywallContextProvider; constructor(host: ReactiveControllerHost, contextProvider: PaywallContextProvider); handleStateChange(): void; hostConnected(): void; hostDisconnected(): void; } export default ContextConsumer;