'use strict';

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

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

exports.useGetAverageEpochsApy = useGetAverageEpochsApy;
//# sourceMappingURL=use-get-average-epochs-apy.cjs.map
//# sourceMappingURL=use-get-average-epochs-apy.cjs.map