UNPKG

eye-analysis

Version:

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

41 lines 1.09 kB
import type { GazePoint } from "../recorder/types"; /** * Add gaze data to buffer */ export declare const addToGazeBuffer: (gazePoint: GazePoint) => void; /** * Clear and return current buffer */ export declare const clearGazeBuffer: () => GazePoint[]; /** * Start automatic buffer flushing */ export declare const startBufferFlush: (onFlush: (data: GazePoint[]) => Promise<void>, onError?: (error: Error, data: GazePoint[]) => void, intervalMs?: number) => void; /** * Stop automatic buffer flushing */ export declare const stopBufferFlush: () => void; /** * Manually flush buffer */ export declare const flushGazeBuffer: () => Promise<void>; /** * Get current buffer state */ export declare const getBufferState: () => { bufferSize: number; isAutoFlushActive: boolean; flushIntervalMs: number; }; /** * Configure buffer settings */ export declare const configureBuffer: (config: { maxBufferSize?: number; flushIntervalMs?: number; }) => void; /** * Reset buffer state */ export declare const resetBuffer: () => void; //# sourceMappingURL=buffer.d.ts.map