"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const node_1 = require("node-fetch-native/node");
const proxy_1 = require("node-fetch-native/proxy");
const proxy = (0, proxy_1.createProxy)();
// The correct proxy `Agent` implementation to use will be determined
// via the `http_proxy` / `https_proxy` / `no_proxy` / etc. env vars
// https://github.com/unjs/node-fetch-native?tab=readme-ov-file#proxy-support
function fetchWithProxy(url, options = {}) {
    return (0, node_1.fetch)(url, { ...options, ...proxy });
}
exports.default = fetchWithProxy;
