'use strict';

var apiCore = require('@rss3/api-core');
var reactQuery = require('@tanstack/react-query');

function useGetNodeCountSnapshot(params, options) {
  const queryKey = ["useGetNodeCountSnapshot", params];
  const query = reactQuery.useQuery({
    queryKey,
    queryFn: () => {
      const args = Array.isArray(params) ? params : [params];
      return apiCore.getNodeCountSnapshot(
        ...args
      );
    },
    ...options
  });
  return {
    ...query,
    queryKey
  };
}

exports.useGetNodeCountSnapshot = useGetNodeCountSnapshot;
//# sourceMappingURL=use-get-node-count-snapshot.cjs.map
//# sourceMappingURL=use-get-node-count-snapshot.cjs.map