import { useState, useEffect } from 'react';
export var useDebounce = (value, delay) => {
  var [debouncedValue, setDebouncedValue] = useState(value);
  useEffect(() => {
    var handler = setTimeout(() => {
      setDebouncedValue(value);
    }, delay);
    return () => {
      clearTimeout(handler);
    };
  }, [value]);
  return debouncedValue;
};
export var countMethods = tags => {
  var result = 0;
  Object.values(tags).forEach(methods => {
    result += Object.entries(methods).length;
  });
  return result;
};
export var countTypes = types => Object.entries(types).length;
//# sourceMappingURL=searchUtils.js.map