UNPKG

@ezbot-ai/javascript-sdk

Version:

The easiest way to interact with ezbot via JS (node and browser)

8 lines (7 loc) 1.15 kB
import { BrowserTracker } from '@snowplow/browser-tracker'; import { setUserId, setUserIdFromCookie, startActivityTracking, trackLinkClick, trackPageView, trackRewardEvent } from './tracking'; import { EzbotLinkClickEvent, EzbotLinkClickEventPayload, EzbotPredictionsContext, EzbotRewardEvent, EzbotRewardEventPayload, EzbotTrackerConfig, Prediction, Predictions, PredictionsResponse } from './types'; import { makeVisualChange, makeVisualChanges } from './visualChanges'; declare function initEzbot(projectId: number, userId?: string | null, _config?: EzbotTrackerConfig): Promise<BrowserTracker>; declare function initEzbotWithServerSidePredictions(projectId: number, predictions: ReadonlyArray<Prediction>, userId?: string | null, _config?: EzbotTrackerConfig): Promise<BrowserTracker>; export { trackRewardEvent, initEzbot, initEzbotWithServerSidePredictions, makeVisualChange, makeVisualChanges, startActivityTracking, trackLinkClick, trackPageView, setUserId, setUserIdFromCookie, EzbotLinkClickEvent, EzbotRewardEvent, EzbotLinkClickEventPayload, EzbotRewardEventPayload, EzbotPredictionsContext, Prediction, Predictions, PredictionsResponse, };