import { DependencyList } from 'react'; import { GenericFunction } from '../types'; import { DebounceOptions } from '../utils/debounce'; /** * Accepts a function and returns a new debounced yet memoized version of that same function that delays * its invoking by the defined time. * If time is not defined, its default value will be 400ms. */ declare const useDebouncedCallback: (fn: TCallback, dependencies?: DependencyList, wait?: number, options?: DebounceOptions) => ((...args: Parameters) => void) & { cancel: () => void; flush: () => ReturnType | undefined; }; export default useDebouncedCallback;