interface ThrottleOptions { leading?: boolean; trailing?: boolean; maxWait?: number; } export type ThrottleResult = T & { cancel: () => any; }; declare function throttle any>( fun: T, wait?: number, options?: ThrottleOptions ): ThrottleResult; export default throttle;