UNPKG

posthog-js

Version:

Posthog-js allows you to automatically capture usage and send events to PostHog.

20 lines (19 loc) • 1.02 kB
import { ProductTour } from '../posthog-product-tours-types'; import { PostHog } from '../posthog-core'; import { ActivationOutcome, EventReceiver } from './event-receiver'; import { createLogger } from '@posthog/browser-common/utils/logger'; export declare class ProductTourEventReceiver extends EventReceiver<ProductTour> { constructor(instance: PostHog); protected _getActivatedKey(): string; protected _getActivatedSessionKey(): string; protected _getShownEventName(): string; protected _getItems(callback: (items: ProductTour[]) => void): void; protected _cancelPendingItem(itemId: string): void; protected _getLogger(): ReturnType<typeof createLogger>; protected _setActivatedItems(eligibleItems: string[]): void; protected _setActivatedSession(sessionId: string): void; protected _clearActivatedSession(): void; protected _isItemPermanentlyIneligible(itemId?: string): boolean; protected _activationOutcome(event: string): ActivationOutcome; getTours(): string[]; }