export type RafThrottled void> = (( ...args: Parameters ) => void) & { cancel: () => void; }; /** Run `fn` at most once per frame; same-frame calls keep the latest arguments. */ export function rafThrottle void>( fn: Fn, ): RafThrottled;