UNPKG

@aller/blink

Version:

A library for tracking user behaviour.

13 lines (12 loc) 592 B
import { BlinkEvent } from '../types'; import { VideoWatchEvent } from '../utils/video-event-time'; import { Page } from '../selectors/get-page-state'; export interface PrepareVideoWatchEventInput { page: Page; videoId: string; playerId: string; time?: Date; } export declare function prepareSingleVideoWatchEvent(videoId: string, generalData: any, watchEvent: VideoWatchEvent): BlinkEvent; export default function prepareVideoWatchEvents(input: PrepareVideoWatchEventInput): BlinkEvent[]; export declare function getAllVideoWatchEventsPrepared(page: Page, time?: Date): any;