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