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

//#region src/external-tools/synp/from-download.ts
/**
* @file `synpFromDownload()` — installs the pinned synp npm package via
*   `dlx/package` and returns a `ResolvedSynp` pointing at the resolved bin
*   shim.
*/
async function synpFromDownload(opts) {
	const { integrity, version } = opts;
	const { binaryPath } = await require_dlx_package.downloadPackage({
		package: require_external_tools_synp_asset_names.getSynpPackageSpec({ version }),
		binaryName: "synp",
		...integrity ? { hash: integrity } : {}
	});
	return {
		path: binaryPath,
		source: "download"
	};
}

//#endregion
exports.synpFromDownload = synpFromDownload;