/** * Analytics initialization. * * Creates the AnalyticsCollector and GazeTracker based on license features, * attaches event listeners to the player, and returns a cleanup function. */ import type { FeatureFlags } from '@vizor-vr/shared'; import type { PlayerState } from '../core/player-state.js'; import type { VzEventEmitter } from '../core/event-emitter.js'; import { AnalyticsCollector } from './analytics-collector.js'; import { GazeTracker, type OrientationProvider, type ContentTimeProvider } from './gaze-tracker.js'; export interface AnalyticsOptions { contentId: string; apiEndpoint: string; apiKey?: string; features: FeatureFlags; getOrientation: OrientationProvider; getContentTime: ContentTimeProvider; } export interface AnalyticsHandle { collector: AnalyticsCollector | null; gazeTracker: GazeTracker | null; dispose: () => void; } /** * Initialize analytics subsystem. * * Attaches event listeners to state changes and player events. * Returns a handle with collector, gazeTracker, and dispose function. */ export declare function initAnalytics(state: PlayerState, events: VzEventEmitter, options: AnalyticsOptions): AnalyticsHandle; //# sourceMappingURL=index.d.ts.map