"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_external_tools_bazel_asset_names = require('./asset-names.js');

//#region src/external-tools/bazel/resolve-asset-url.ts
/**
* @file `resolveBazelAssetUrl(version, platformArch)` — builds the upstream
*   GitHub Releases download URL for a Bazel binary. Returns `undefined` if the
*   platform-arch isn't in our asset map. Bazel publishes to
*   https://github.com/bazelbuild/bazel/releases/download/<X.Y.Z>/bazel-<X.Y.Z>-<suffix>
*   where `<suffix>` is one of `darwin-arm64`, `darwin-x86_64`, `linux-arm64`,
*   `linux-x86_64`, `windows-x86_64.exe`.
*/
function resolveBazelAssetUrl(version, platformArch) {
	const entry = require_external_tools_bazel_asset_names.getBazelAssetEntry(platformArch);
	if (!entry) return;
	const filename = `bazel-${version}-${entry.suffix}`;
	return {
		url: `https://github.com/bazelbuild/bazel/releases/download/${version}/${filename}`,
		filename,
		native: entry.native
	};
}

//#endregion
exports.resolveBazelAssetUrl = resolveBazelAssetUrl;