/** * Rynex Performance Utilities * Performance optimization helpers */ /** * Debounce function execution * Delays execution until after wait time has elapsed since last call */ export declare function debounce any>(func: T, wait: number): (...args: Parameters) => void; /** * Throttle function execution * Ensures function is called at most once per specified time period */ export declare function throttle any>(func: T, limit: number): (...args: Parameters) => void; /** * Preload component or resource * Loads resource in advance for better performance */ export declare function preload(loader: () => Promise): Promise; /** * Get preloaded resource * Retrieves previously preloaded resource */ export declare function getPreloaded(loader: () => Promise): Promise | null; /** * Request idle callback wrapper * Executes callback during browser idle time */ export declare function onIdle(callback: () => void, options?: { timeout?: number; }): number; /** * Cancel idle callback */ export declare function cancelIdle(id: number): void; //# sourceMappingURL=performance.d.ts.map