type throttledFn = (...args: any[]) => void; type throttledCancelFn = { cancel: () => void; }; declare function throttleByAnimationFrame(fn: (...args: T) => void): throttledFn & throttledCancelFn; export default throttleByAnimationFrame;