UNPKG

realm-loader-npm

Version:

A comprehensive collection of 14 beautiful circle animations with performance optimization, presets, themes, and React/Vue components

34 lines 1.08 kB
export interface PerformanceConfig { maxFPS: number; particleCount: number; quality: 'low' | 'medium' | 'high'; enableReducedMotion: boolean; enableBatterySaving: boolean; } export declare class PerformanceOptimizer { private static instance; private config; private isMobile; private isLowEndDevice; private batteryLevel; private constructor(); static getInstance(): PerformanceOptimizer; private detectMobile; private detectLowEndDevice; private getDefaultConfig; private optimizeForDevice; getOptimizedConfig(animationType: string): Partial<PerformanceConfig>; shouldReduceMotion(): boolean; getOptimalFrameRate(): number; getOptimalParticleCount(baseCount: number): number; isBatterySavingMode(): boolean; updateConfig(newConfig: Partial<PerformanceConfig>): void; getDeviceInfo(): { isMobile: boolean; isLowEnd: boolean; batteryLevel: number | null; cores: number; memory: number; }; } //# sourceMappingURL=PerformanceOptimizer.d.ts.map