UNPKG

@aller/blink

Version:

A library for tracking user behaviour.

17 lines (16 loc) 566 B
import { BlinkEvent } from '../types'; import { Page } from '../selectors/get-page-state'; export interface PrepareActiveTimeProps { page: Page; id: string; utils: { getPersistedState: (key: string) => any; }; time?: Date; } /** * Prepares a active time data selecting the right * fields to send to the server */ export default function prepareActiveTimeForSending({ page, id, utils, time, }: PrepareActiveTimeProps): BlinkEvent; export declare function getAllActiveTimeEventsPrepared(page: any, utils: any, time: Date): BlinkEvent[];