1 | import type { ThrottleOptions } from '../useThrottle/throttleOptions';
|
2 | type noop = (...args: any[]) => any;
|
3 | declare function useThrottleFn<T extends noop>(fn: T, options?: ThrottleOptions): {
|
4 | run: import("lodash").DebouncedFuncLeading<(...args: Parameters<T>) => ReturnType<T>>;
|
5 | cancel: () => void;
|
6 | flush: () => ReturnType<T>;
|
7 | };
|
8 | export default useThrottleFn;
|