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

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

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