// The payload of a analytics events. export interface Event { type: string; source: string; productCategory?: string | null; pageTitle?: string | null; pageType?: string | null; } // Public analytics API. export interface Analytics { track(event: Event): void; }