/** * Performance Optimization Utilities * * Utilities for optimizing performance on low-end devices (Android TV, etc.) */ /** * Check if running in production mode */ export declare const isProduction: () => boolean; /** * Conditional console.log - only logs in development */ export declare const devLog: (...args: any[]) => void; /** * Conditional console.warn - only warns in development */ export declare const devWarn: (...args: any[]) => void; /** * Conditional console.error - always logs errors */ export declare const devError: (...args: any[]) => void; /** * Throttle function for performance * Only executes once per animation frame */ export declare const rafThrottle: any>(fn: T) => T; /** * Debounce function for performance */ export declare const debounce: any>(fn: T, delay: number) => T; /** * Memory-efficient array comparison * Returns true if arrays are shallowly equal */ export declare const shallowArrayEqual: (arr1: T[], arr2: T[]) => boolean; /** * Check if device is low-end (for conditional optimizations) */ export declare const isLowEndDevice: () => boolean; /** * Request idle callback polyfill */ export declare const requestIdleCallback: ((callback: IdleRequestCallback, options?: IdleRequestOptions) => number) & typeof globalThis.requestIdleCallback; /** * Cancel idle callback polyfill */ export declare const cancelIdleCallback: ((handle: number) => void) & typeof globalThis.cancelIdleCallback; /** * Optimize CSS for GPU acceleration */ export declare const getGPUOptimizedStyle: () => React.CSSProperties; /** * Batch DOM updates using DocumentFragment */ export declare const batchDOMUpdates: (container: HTMLElement, updates: (fragment: DocumentFragment) => void) => void;