import { DependencyList } from 'react'; import { GenericFunction } from '../types'; export interface ThrottleOptions { leading?: boolean | undefined; trailing?: boolean | undefined; } /** * Accepts a function and returns a new throttled 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 300ms. */ declare const useThrottledCallback: (fn: TCallback, dependencies?: DependencyList, wait?: number, options?: ThrottleOptions) => TCallback; export default useThrottledCallback;