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

//#region src/external-tools/sbt/from-path.ts
/**
* @file `sbtFromPath()` — looks for the `sbt` shell script on the system PATH.
*   Returns it as a direct-executable launcher (the script knows how to find a
*   JRE itself, so the caller doesn't need to resolve one). Returns `undefined`
*   if `sbt` isn't on PATH.
*/
async function sbtFromPath() {
	const sbt = await require_bin_which.which("sbt", { nothrow: true });
	if (typeof sbt !== "string") return;
	/* c8 ignore start - reached only when sbt is on PATH. */
	return {
		path: sbt,
		isJar: false,
		source: "path"
	};
	/* c8 ignore stop */
}

//#endregion
exports.sbtFromPath = sbtFromPath;