UNPKG

aura-glass

Version:

A comprehensive glassmorphism design system for React applications with 142+ production-ready components

85 lines 2.87 kB
/** * Consciousness Interface Performance Optimization Utilities */ export declare const OPTIMIZATION_STRATEGIES: { readonly LAZY_LOADING: "lazy"; readonly WEB_WORKER: "worker"; readonly DEBOUNCING: "debounce"; readonly THROTTLING: "throttle"; readonly CACHING: "cache"; readonly BATCHING: "batch"; }; declare class ConsciousnessResourcePool { private eyeTrackingWorkers; private biometricProcessors; private predictiveAnalyzers; private spatialAudioContexts; initialize(): void; getEyeTrackingWorker(): Worker | null; returnEyeTrackingWorker(worker: Worker): void; getBiometricProcessor(): Worker | null; returnBiometricProcessor(worker: Worker): void; getSpatialAudioContext(): AudioContext | null; returnSpatialAudioContext(context: AudioContext): void; cleanup(): void; } /** * Get or create the consciousness resource pool * Call this from useEffect or component initialization */ export declare function getConsciousnessResourcePool(): ConsciousnessResourcePool; /** * @deprecated Use getConsciousnessResourcePool() instead * Kept for backward compatibility - will lazy-initialize on first access */ export declare const consciousnessResourcePool: ConsciousnessResourcePool; export declare const useOptimizedEyeTracking: (enabled: boolean, onGazeChange: (data: any) => void, options?: { throttleMs?: number; }) => { isActive: boolean; }; export declare const useOptimizedBiometricMonitoring: (enabled: boolean, onBiometricChange: (data: any) => void, options?: { batchSize?: number; intervalMs?: number; }) => { addBiometricData: (data: any) => void; bufferSize: number; isActive: boolean; }; export declare const useOptimizedPredictiveAnalysis: (enabled: boolean, patterns: any[], options?: { cacheSize?: number; debounceMs?: number; }) => { getCachedResult: (patterns: any[]) => any; cacheSize: number; runAnalysis: (patterns: any[]) => Promise<any>; }; export declare const useOptimizedSpatialAudio: (enabled: boolean, position: { x: number; y: number; z: number; }, options?: { maxSources?: number; }) => { playSound: (audioUrl: string, volume?: number) => Promise<void>; updateListenerPosition: (listenerPos: { x: number; y: number; z: number; }) => void; activeSourcesCount: number; isActive: boolean; }; export declare const useConsciousnessPerformanceOptimization: (componentName: string) => { measureRender: () => () => void; measureConsciousnessOperation: (operation: string) => () => void; getPerformanceReport: () => { component: string; avgRenderTime: number; maxRenderTime: number; consciousness: Record<string, any>; timestamp: number; }; }; export {}; //# sourceMappingURL=consciousnessOptimization.d.ts.map