UNPKG

eye-analysis

Version:

Eye Analysis - Browser-based eye tracking and screen recording library for research and experiments

17 lines 851 B
import type { ExperimentSession, GazePoint, SessionEvent } from "../recorder/types"; export interface ExperimentStore { currentSession: ExperimentSession | null; isRecording: boolean; gazeBuffer: GazePoint[]; sessionEvents: SessionEvent[]; onGazeDataCallback?: (gazePoint: GazePoint) => void; onSessionEventCallback?: (event: SessionEvent) => void; } export declare const getStore: () => ExperimentStore; export declare const updateStore: (updates: Partial<ExperimentStore>) => void; export declare const resetStore: () => void; export declare const addToGazeBuffer: (gazePoint: GazePoint) => void; export declare const clearGazeBuffer: () => GazePoint[]; export declare const addSessionEvent: (event: SessionEvent) => void; export declare const emitGazeData: (gazePoint: GazePoint) => void; //# sourceMappingURL=index.d.ts.map