import { CollectorOptions } from './collector'; import { PageDefault } from './page/page-info'; import { Session } from './session'; import { UserStore } from './user'; export interface EventOptions { source?: string; } export interface Context { page?: PageDefault; userAgent?: string; platform?: { name?: string; deviceType?: string; }; locale?: string; library?: { name: string; version?: string; }; session?: Session; timezone?: string; [key: string]: any; } export declare class EventContext { options: CollectorOptions; user: UserStore; constructor(options?: CollectorOptions); session(): Session; current: (type: 'page' | 'event' | 'metric' | 'identify' | 'submit') => Context; }