eye-analysis
Version:
Eye Analysis - Browser-based eye tracking and screen recording library for research and experiments
48 lines • 1.68 kB
TypeScript
import type { GazePoint, MetadataJSON, SessionData, SessionEvent } from "./types";
/**
* Convert gaze data to CSV format
* Automatically removes columns that contain only undefined/null values
*/
export declare const gazeDataToCSV: (gazeData: GazePoint[], startBrowserTime?: number) => string;
/**
* Convert events data to CSV format
*/
export declare const eventsToCSV: (events: SessionEvent[], startBrowserTime?: number) => string;
/**
* Create metadata JSON (excluding time-series data)
*/
export declare const createMetadataJSON: (sessionData: SessionData) => MetadataJSON;
/**
* Download a file with given content
*/
export declare const downloadFile: (content: string | Blob, filename: string, mimeType?: string) => void;
/**
* Export all session data for research purposes
*/
export declare const exportExperimentDataset: (sessionIds: string[], options?: DownloadSessionOptions) => Promise<void>;
/**
* Download session options interface
*/
export interface DownloadSessionOptions {
include?: {
metadata?: boolean;
gaze?: boolean;
events?: boolean;
video?: boolean;
};
asZip?: boolean;
prefix?: string;
}
/**
* Download session data with flexible options
*/
export declare const downloadSession: (sessionId: string, options?: DownloadSessionOptions) => Promise<void>;
/**
* Download complete session data as multiple files (JSON + CSV + Video)
*/
export declare const downloadCompleteSessionData: (sessionId: string) => Promise<void>;
/**
* Create a summary report of the session
*/
export declare const createSessionSummaryText: (sessionData: SessionData) => string;
//# sourceMappingURL=export.d.ts.map