import { AnalyticsData } from "./analytics-data"; import { GoogleAnalytics } from "./google/google-analytics"; export declare class Analytics { private readonly _applicationID; private readonly _handlePageHide; private readonly _data; private readonly _ga; private _pageTime; origin: "production" | "staging" | "dev"; event: "track" | "pageview"; /** * Use HTTP Request to write analytics, otherwise will use beacons */ isBeacon: boolean; constructor(applicationID: string); get googleAnalytics(): GoogleAnalytics; query(query?: any | null | undefined): Promise; write(): Promise; startRecordEngagement(): void; get data(): AnalyticsData; }