"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/trufflehog/from-path.ts
/**
* @file `trufflehogFromPath()` — looks for `trufflehog` on the system PATH via
*   socket-lib's `which`. Returns the resolved-shape object if found; otherwise
*   `undefined`.
*/
async function trufflehogFromPath() {
	const onPath = await require_bin_which.which("trufflehog", { nothrow: true });
	/* c8 ignore start - reached only when trufflehog is NOT on PATH. */
	if (typeof onPath !== "string") return;
	/* c8 ignore stop */
	return {
		path: onPath,
		source: "path"
	};
}

//#endregion
exports.trufflehogFromPath = trufflehogFromPath;