eye-analysis
Version:
Eye Analysis - Browser-based eye tracking and screen recording library for research and experiments
42 lines • 1.28 kB
TypeScript
/**
* Format duration in seconds to MM:SS format
*/
export declare const formatDuration: (seconds: number) => string;
/**
* Generate timestamp string
*/
export declare const generateTimestamp: () => string;
/**
* Validate WebSocket URL
*/
export declare const isValidWebSocketUrl: (url: string) => boolean;
/**
* Generate unique session ID
*/
export declare const generateSessionId: () => string;
/**
* Generate unique event ID
*/
export declare const generateEventId: () => string;
/**
* Validate participant ID format
*/
export declare const isValidParticipantId: (id: string) => boolean;
/**
* Format file size in bytes to human readable format
*/
export declare const formatFileSize: (bytes: number) => string;
/**
* Deep clone an object
*/
export declare const deepClone: <T>(obj: T) => T;
/**
* Throttle function execution
*/
export declare const throttle: <T extends (...args: never[]) => unknown>(func: T, delay: number) => T;
/**
* Debounce function execution
*/
export declare const debounce: <T extends (...args: never[]) => unknown>(func: T, delay: number) => T;
export { getBrowserWindowInfo, getScreenInfo, screenToWindowCoordinatesSync as convertScreenToWindowCoordinates, } from "./recorder/browser-info";
//# sourceMappingURL=utils.d.ts.map