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

//#region src/external-tools/trufflehog/from-vfs.ts
/**
* @file `trufflehogFromVfs()` — extracts the TruffleHog binary from the smol
*   binary's VFS. Returns `undefined` when the binary doesn't have TruffleHog
*   bundled.
*/
/**
* Relative VFS key for the bundled TruffleHog binary.
*/
const TRUFFLEHOG_VFS_KEY = "trufflehog";
async function trufflehogFromVfs() {
	const vfs = /* @__PURE__ */ require_smol_vfs.getSmolVfs();
	if (!vfs) return;
	/* c8 ignore start - smol Node binary only. */
	if (!vfs.has("trufflehog")) return;
	return {
		path: await vfs.extract(TRUFFLEHOG_VFS_KEY),
		source: "vfs"
	};
	/* c8 ignore stop */
}

//#endregion
exports.TRUFFLEHOG_VFS_KEY = TRUFFLEHOG_VFS_KEY;
exports.trufflehogFromVfs = trufflehogFromVfs;