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

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

export { useGetAverageEpochsApy };
//# sourceMappingURL=use-get-average-epochs-apy.js.map
//# sourceMappingURL=use-get-average-epochs-apy.js.map