UNPKG

posthog-js

Version:

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

15 lines (14 loc) • 1.23 kB
import { DisplaySurveyOptions, Survey, SurveyType } from '../posthog-surveys-types'; export { doesSurveyActivateByEvent, getSurveyInteractionProperty, isSurveyIterationBased } from '@posthog/core/surveys'; export declare const SURVEY_LOGGER: import("@posthog/browser-common/utils/logger").PosthogJsLogger; export declare function isSurveyRunning(survey: Survey): boolean; export declare function doesSurveyActivateByAction(survey: Pick<Survey, 'conditions'>): boolean; export declare const SURVEY_SEEN_PREFIX = "seenSurvey_"; export declare const SURVEY_IN_PROGRESS_PREFIX = "inProgressSurvey_"; export declare const SURVEY_ABANDONED_PREFIX = "abandonedSurvey_"; export declare const getSurveyStorageKey: (prefix: string, survey: Pick<Survey, "id" | "current_iteration">) => string; export declare const getSurveySeenKey: (survey: Pick<Survey, "id" | "current_iteration">) => string; export declare const getSurveyAbandonedKey: (survey: Pick<Survey, "id" | "current_iteration">) => string; export declare const setSurveySeenOnLocalStorage: (survey: Pick<Survey, "id" | "current_iteration">) => void; export declare const IN_APP_SURVEY_TYPES: SurveyType[]; export declare const DEFAULT_DISPLAY_SURVEY_OPTIONS: DisplaySurveyOptions;