"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/synp/from-vfs.ts
/**
* @file `synpFromVfs()` — extracts synp from the smol binary's VFS. Returns
*   `undefined` when the binary doesn't carry a bundled synp.
*/
const SYNP_VFS_KEY = "synp";
async function synpFromVfs() {
	const vfs = /* @__PURE__ */ require_smol_vfs.getSmolVfs();
	if (!vfs) return;
	/* c8 ignore start - smol Node binary only. */
	if (!vfs.has("synp")) return;
	return {
		path: await vfs.extract(SYNP_VFS_KEY),
		source: "vfs"
	};
	/* c8 ignore stop */
}

//#endregion
exports.SYNP_VFS_KEY = SYNP_VFS_KEY;
exports.synpFromVfs = synpFromVfs;