/** * Array tuple featuring the throttled function instance and its cancellation handler * @internal */ export type useThrottleReturnType = [ /** Throttled instance of the function passed through the hook payload */ (...args: T) => void, /** Cancellation handler, which will terminate any pending throttled function execution */ () => void ]; /** * Simplistic hook designed for throttling execution of pure functions based on the `window.requestAnimationFrame` API. * @returns Tuple array containing the throttled function instance and a cancel handler * @internal */ export declare function useRequestAnimationFrame( /** Function to be throttled. */ fn: (...args: T) => void): useThrottleReturnType;