declare function throttle(func: (...args: any[]) => any, wait: number, options?: { leading?: boolean; trailing?: boolean; maxWait?: number; }): { (this: any, ...args: any[]): any; cancel: () => void; flush: () => any; pending: () => boolean; }; export default throttle;