vlibras-player-webjs
Version:
Biblioteca JavaScript moderna para integração do VLibras Player com React, Vue, Angular e vanilla JS
29 lines • 888 B
TypeScript
export interface PerformanceMetrics {
translationTime: number;
loadTime: number;
memoryUsage: number;
fps: number;
cacheHitRate: number;
errorRate: number;
totalTranslations: number;
averageTranslationLength: number;
}
export interface UseVLibrasPerformanceOptions {
enableAnalytics?: boolean;
collectMetrics?: boolean;
sampleRate?: number;
}
export interface UseVLibrasPerformanceReturn {
metrics: PerformanceMetrics | null;
isCollecting: boolean;
startCollection: () => void;
stopCollection: () => void;
resetMetrics: () => void;
getReport: () => string;
exportMetrics: () => object;
}
/**
* Hook para monitoramento de performance do VLibras
*/
export declare function useVLibrasPerformance(options?: UseVLibrasPerformanceOptions): UseVLibrasPerformanceReturn;
//# sourceMappingURL=useVLibrasPerformance.d.ts.map