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

//#endregion
exports.JANUS_VFS_KEY = JANUS_VFS_KEY;
exports.janusFromVfs = janusFromVfs;