import { e as encodeQueryParams, a as assertOkResponseCode } from './encodeQueryParams-96e87b36.js';

const API_URL = 'https://api.wise.com/v3/comparisons';
function fetchQuotes(sourceCurrency, targetCurrency, sendAmount, midMarketRate, wiseFee, {
  providerCountry,
  sourceCountry,
  targetCountry
} = {}, providerType = undefined) {
  const query = encodeQueryParams({
    sourceCurrency,
    targetCurrency,
    sendAmount,
    midMarketRate,
    wiseFee,
    providerCountry,
    sourceCountry,
    targetCountry,
    providerType
  });
  return fetch(`${API_URL}${query}`, {
    method: 'GET'
  }).then(assertOkResponseCode).then(response => response.json());
}

export { fetchQuotes as f };
//# sourceMappingURL=fetchQuotes-31ac98ed.js.map
