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