/** * Rate-limits `fn` to run at most once per `wait` ms: fires immediately on the * first call (leading edge), then defers any calls made before the window * elapses to fire once, with their latest arguments, when it does (trailing * edge). `.cancel()` drops a pending trailing call. */ export declare function throttle(fn: (...args: Args) => void, wait: number): ((...args: Args) => void) & { cancel: () => void; };