export declare const INSTALL_ADDON_PROBE = "(() => {\n const G = globalThis;\n if (G.__vqaAddon) return true;\n const P = G.__vqaVeh;\n const R = (v) => Math.round(v * 10000) / 10000;\n const A = {};\n const underAttach = (o) => { for (let p = o; p; p = p.parent) if (typeof p.name === 'string' && p.name.indexOf('helix-attach:') === 0) return true; return false; };\n const nodeNamed = (name) => { let hit = null; P.root().traverse((o) => { if (!hit && o.name === name && !underAttach(o)) hit = o; }); return hit; };\n const boxOf = (pts) => {\n if (!pts.length) return null;\n const mn = [Infinity, Infinity, Infinity], mx = [-Infinity, -Infinity, -Infinity];\n for (let i = 0; i < pts.length; i += 3) for (let a = 0; a < 3; a++) { mn[a] = Math.min(mn[a], pts[i + a]); mx[a] = Math.max(mx[a], pts[i + a]); }\n return { min: mn.map(R), max: mx.map(R), centre: [0, 1, 2].map((a) => R((mn[a] + mx[a]) / 2)) };\n };\n /** Every helix-attach clone: where its drawn vertices are, and the host node it hangs off. */\n A.attach = (itemIds) => {\n const root = P.root(); root.updateMatrixWorld(true); const inv = P.inv();\n const out = [];\n const clones = [];\n root.traverse((o) => { if (typeof o.name === 'string' && o.name.indexOf('helix-attach:') === 0) clones.push(o); });\n for (const c of clones) {\n const itemId = (itemIds || []).find((id) => c.name.indexOf(id) >= 0) || null;\n const pts = []; let tris = 0, meshes = 0;\n c.traverse((o) => {\n if (!o.isMesh || !o.geometry || !o.geometry.attributes || !o.geometry.attributes.position) return;\n if (!P.chainVisible(o, c)) return;\n meshes++; P.meshPoints(o, inv, 6000, pts);\n const g = o.geometry; tris += Math.round((g.index ? g.index.count : g.attributes.position.count) / 3);\n });\n const box = boxOf(pts);\n let anchor = c.parent, socketNode = null, socketPos = null;\n if (anchor && typeof anchor.name === 'string' && anchor.name.indexOf('socket:') === 0) {\n socketNode = anchor.name.slice(7);\n const n = nodeNamed(socketNode);\n socketPos = n ? P.bodyPos(n, inv).map(R) : null;\n }\n out.push({ name: c.name, itemId, socketNode, socketPos, centre: box ? box.centre : null, min: box ? box.min : null, max: box ? box.max : null, triangles: tris, meshes, originBody: P.bodyPos(c, inv).map(R) });\n }\n return out;\n };\n /** Physics wheel hubs (the wheel node the runtime moves for each contact). */\n A.hubs = () => {\n const inv = P.inv();\n return P.contacts().map((k, i) => { const n = P.wheelNode(k.id, i); return n ? { id: k.id, pos: P.bodyPos(n, inv).map(R) } : null; }).filter(Boolean);\n };\n /** The host's own rim_* nodes: the centre of what they draw (else the node origin). */\n A.rimNodes = () => {\n const root = P.root(), inv = P.inv(); const out = [];\n root.traverse((o) => {\n if (typeof o.name !== 'string' || !/^rim_/i.test(o.name) || underAttach(o)) return;\n const pts = []; o.traverse((m) => { if (m.isMesh && m.geometry && m.geometry.attributes && m.geometry.attributes.position) P.meshPoints(m, inv, 3000, pts); });\n const b = boxOf(pts);\n out.push({ name: o.name, pos: b ? b.centre : P.bodyPos(o, inv).map(R) });\n });\n return out;\n };\n /** The stock car's drawn bounds in the body frame, every add-on excluded. */\n A.carBounds = () => {\n const root = P.root(), inv = P.inv(), proxies = P.proxies(), V = P.V();\n const mn = [Infinity, Infinity, Infinity], mx = [-Infinity, -Infinity, -Infinity]; const c = new V();\n root.traverse((o) => {\n if (underAttach(o) || !P.drawn(o, proxies, root)) return;\n if (!o.geometry.boundingBox) o.geometry.computeBoundingBox();\n const b = o.geometry.boundingBox; if (!b) return;\n const M = inv.clone().multiply(o.matrixWorld);\n for (let i = 0; i < 8; i++) {\n c.set(i & 1 ? b.max.x : b.min.x, i & 2 ? b.max.y : b.min.y, i & 4 ? b.max.z : b.min.z).applyMatrix4(M);\n mn[0] = Math.min(mn[0], c.x); mn[1] = Math.min(mn[1], c.y); mn[2] = Math.min(mn[2], c.z);\n mx[0] = Math.max(mx[0], c.x); mx[1] = Math.max(mx[1], c.y); mx[2] = Math.max(mx[2], c.z);\n }\n });\n return Number.isFinite(mn[0]) ? { min: mn.map(R), max: mx.map(R) } : null;\n };\n /** Numeric leaves of the live tuning (and the land driveline spec), flat dotted paths. Arrays index by position. */\n A.tuning = () => {\n const e = P.e(); const out = {}; const seen = new Set();\n const walk = (v, path, depth) => {\n if (depth > 7 || v === null || v === undefined) return;\n if (typeof v === 'number') { if (Number.isFinite(v)) out[path] = v; return; }\n if (typeof v === 'string' || typeof v === 'boolean') { out[path] = v; return; }\n if (typeof v !== 'object' || seen.has(v)) return; seen.add(v);\n if (Array.isArray(v)) { v.slice(0, 64).forEach((x, i) => walk(x, path + '.' + i, depth + 1)); return; }\n for (const k of Object.keys(v)) { if (typeof v[k] === 'function') continue; walk(v[k], path ? path + '.' + k : k, depth + 1); }\n };\n try { walk(e.controller.tuning, '', 0); } catch (err) { /* partial */ }\n try { const d = e.controller.landDriveline; if (d && d.spec) walk(d.spec, 'landDriveline.spec', 0); } catch (err) { /* absent */ }\n return out;\n };\n /** Body-frame positions of named host nodes (null when the car has no such node). */\n A.nodes = (names) => {\n const inv = P.inv(); const out = {};\n for (const n of (names || [])) {\n const o = nodeNamed(n);\n if (!o) { out[n] = null; continue; }\n o.updateWorldMatrix(true, false);\n out[n] = { pos: P.bodyPos(o, inv).map(R), m: inv.clone().multiply(o.matrixWorld).elements.map((v) => Math.round(v * 1e6) / 1e6) };\n }\n return out;\n };\n /** Everything at once (one round trip). */\n A.read = (itemIds, names) => ({ attach: A.attach(itemIds), hubs: A.hubs(), rimNodes: A.rimNodes(), carBounds: A.carBounds(), nodes: A.nodes(names) });\n G.__vqaAddon = A;\n return true;\n})()";