/** * throttle:函数节流 * @params * func「function,required」:最后要执行的函数 * wait「number」:设定的频发触发的频率时间,默认值是300 * @return * func执行的返回结果 * @describe 连续触发事件但是在 n 秒中只执行一次函数。 */ export interface ThrottleOptions { delay: number; leading?: boolean; trailing?: boolean; } export declare const isThrottleOptions: (arg: ThrottleOptions | number) => arg is ThrottleOptions; export declare function throttle(options: ThrottleOptions | number, callback: any): { (this: any, ...args: any[]): void; cancel: () => void; };