/** * Throttles a function so it can only be fired once per given period of * milliseconds. If the function is called during the throttling period, the * last instance of the function being called will be run once the throttling * period ends. The callback is always invoked asynchronously. * * @param func The function to be throttled. * @param msBetweenRequests The minimum time between requests. * @param abortSignal Optionally specify an abortSignal for the throttled * function. */ export declare function throttle(func: (...args: [...T]) => void, msBetweenRequests: number, abortSignal?: AbortSignal): (...args: [...T]) => void; /** * Same as `throttle()`, but optimized for animation and rendering. * * @param func The function to throttle. * @param abortSignal Optionally specify an abortSignal for the throttled * function. */ export declare function throttleAnimation(func: (...args: [...T]) => void, abortSignal?: AbortSignal): (...args: [...T]) => void;