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

//#endregion
exports.UV_VFS_KEY = UV_VFS_KEY;
exports.uvFromVfs = uvFromVfs;