export type ThrottledFunction any> = { (...args: Parameters): ReturnType | undefined; cancel(): void; flush(): ReturnType | undefined; }; export declare function throttle any>(func: T, wait?: number, options?: { leading?: boolean; trailing?: boolean; }): ThrottledFunction; export default throttle;