UNPKG

eye-analysis

Version:

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

64 lines 2.09 kB
import type { GazePoint, GazePointInput, RecordingConfig, RecordingMode, SessionConfig, SessionEvent, SessionInfo, ScreenInfo, WindowInfo, WindowState } from "./types"; /** * Initialize the recording system */ export declare const initialize: () => Promise<void>; /** * Create a new recording session */ export declare const createSession: (config: SessionConfig, recordingConfig?: RecordingConfig, includeMetadata?: boolean, options?: { recordingMode?: RecordingMode; screenInfo?: ScreenInfo; windowInfo?: WindowInfo; }) => Promise<string>; /** * Start screen recording */ export declare const startRecording: () => Promise<void>; /** * Stop screen recording */ export declare const stopRecording: () => Promise<SessionInfo | null>; /** * Add gaze data point with automatic browser/screen info collection */ export declare const addGazeData: (gazeInput: GazePointInput, options?: { getWindowState?: () => WindowState; }) => Promise<GazePoint>; /** * Add custom event */ export declare const addEvent: (type: string, data?: Record<string, unknown>) => Promise<SessionEvent>; /** * Export session data as ZIP */ export declare const exportSessionData: (sessionId?: string) => Promise<Blob>; /** * Download session data as file (legacy single JSON export) */ export declare const downloadSessionData: (sessionId?: string, filename?: string) => Promise<void>; /** * Download complete session data as multiple files (JSON + CSV + Video) */ export declare const downloadCompleteSession: (sessionId?: string) => Promise<void>; /** * Reset the system to initial state */ export declare const reset: () => void; /** * Get current recording state */ export declare const getCurrentState: () => import("./types").RecorderState; /** * Check if currently recording */ export declare const isRecording: () => boolean; /** * Get current session info */ export declare const getCurrentSession: () => SessionInfo | null; /** * Get current recording stream */ export declare const getRecordingStream: () => MediaStream | null; //# sourceMappingURL=core.d.ts.map