///
declare type noop = (...args: any) => any;
export interface ThrottleOptions {
wait?: number;
leading?: boolean;
trailing?: boolean;
}
declare function useThrottleFn(fn: T, options?: ThrottleOptions): {
run: import("lodash").DebouncedFunc<(...args: Parameters) => ReturnType>;
cancel: () => void;
flush: () => ReturnType | undefined;
};
export default useThrottleFn;