UNPKG

@namiml/web-sdk

Version:

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

14 lines (13 loc) 541 B
import { ReactiveController, ReactiveControllerHost } from 'lit'; import { TPaywallContext } from '../types/paywall'; 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;