import { getNodeCountSnapshot } from '@rss3/api-core';
import { useQuery } from '@tanstack/react-query';

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

export { useGetNodeCountSnapshot };
//# sourceMappingURL=use-get-node-count-snapshot.js.map
//# sourceMappingURL=use-get-node-count-snapshot.js.map