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

//#region src/external-tools/trufflehog/asset-names.ts
/**
* @file Upstream TruffleHog release asset-name mapping per `platform-arch`.
*   TruffleHog publishes a single tar.gz per platform-arch under
*   https://github.com/trufflesecurity/trufflehog/releases/download/v<X.Y.Z>/.
*   Asset names follow `trufflehog_<X.Y.Z>_<os>_<arch>.tar.gz`.
*/
const TRUFFLEHOG_ASSET_MAP = require_primordials_object.ObjectFreeze({
	__proto__: null,
	"darwin-arm64": require_primordials_object.ObjectFreeze({
		__proto__: null,
		suffix: "darwin_arm64.tar.gz"
	}),
	"darwin-x64": require_primordials_object.ObjectFreeze({
		__proto__: null,
		suffix: "darwin_amd64.tar.gz"
	}),
	"linux-arm64": require_primordials_object.ObjectFreeze({
		__proto__: null,
		suffix: "linux_arm64.tar.gz"
	}),
	"linux-x64": require_primordials_object.ObjectFreeze({
		__proto__: null,
		suffix: "linux_amd64.tar.gz"
	}),
	"win-arm64": require_primordials_object.ObjectFreeze({
		__proto__: null,
		suffix: "windows_arm64.tar.gz"
	}),
	"win-x64": require_primordials_object.ObjectFreeze({
		__proto__: null,
		suffix: "windows_amd64.tar.gz"
	})
});
function getTrufflehogAssetEntry(platformArch) {
	return TRUFFLEHOG_ASSET_MAP[platformArch];
}
/**
* Build the GitHub release-asset download URL for an upstream TruffleHog
* binary. Returns `undefined` when no entry exists for the requested
* platform-arch.
*
* Reference: https://github.com/trufflesecurity/trufflehog/releases.
*/
function getTrufflehogDownloadUrl(opts) {
	const { platformArch, version } = opts;
	const entry = TRUFFLEHOG_ASSET_MAP[platformArch];
	if (!entry) return;
	return `https://github.com/trufflesecurity/trufflehog/releases/download/v${version}/trufflehog_${version}_${entry.suffix}`;
}

//#endregion
exports.TRUFFLEHOG_ASSET_MAP = TRUFFLEHOG_ASSET_MAP;
exports.getTrufflehogAssetEntry = getTrufflehogAssetEntry;
exports.getTrufflehogDownloadUrl = getTrufflehogDownloadUrl;