/** * Lightweight throttle implementation to replace lodash-es throttle. * Ensures the function is called at most once per `wait` milliseconds. * Includes a `cancel()` method for cleanup. */ export interface ThrottledFunction any> { (...args: Parameters): void; cancel: () => void; } export declare function throttle any>(func: T, wait: number): ThrottledFunction;