/** Every drawn skinned primitive's material: exists, which maps it samples and whether each decoded, how much it emits * without an emissive map, and how many triangles it covers (the shape avatarMath.judgeMaterials reads). */ export declare const MATERIALS_EXPR = "(() => {\n const A = globalThis.__vqaAp; const L = A && A.locate(); if (!L) return null;\n const rows = []; let tris = 0;\n const SLOTS = ['map', 'normalMap', 'emissiveMap', 'roughnessMap', 'metalnessMap', 'aoMap', 'alphaMap'];\n const decoded = (t) => {\n if (!t) return null; const img = t.image; const mips = t.mipmaps;\n if (t.isCompressedTexture || (mips && mips.length && mips[0] && mips[0].data)) return !!(mips && mips.length && mips[0] && mips[0].data && mips[0].data.length) || !!(img && img.width > 0);\n if (img && (img.width > 0 || img.videoWidth > 0 || (img.data && img.data.length))) return true;\n return false;\n };\n const vis = (o) => { for (let p = o; p; p = p.parent) { if (p.visible === false) return false; if (p === L.scene) break; } return true; };\n for (const o of L.meshes) {\n if (!vis(o)) continue;\n const g = o.geometry; const pos = g.attributes.position; const n = Math.floor((g.index ? g.index.count : pos.count) / 3);\n const groups = Array.isArray(o.material) && g.groups && g.groups.length ? g.groups : null;\n const ms = Array.isArray(o.material) ? o.material : [o.material];\n ms.forEach((mt, i) => {\n const t = groups ? Math.floor((groups.filter((gr) => gr.materialIndex === i).reduce((s, gr) => s + Math.min(gr.count, (g.index ? g.index.count : pos.count)), 0)) / 3) : (i === 0 ? n : 0);\n tris += t;\n if (!mt) { rows.push({ mesh: o.name || o.uuid.slice(0, 8), material: null, tris: t, missing: true }); return; }\n if (mt.visible === false || mt.colorWrite === false || (mt.transparent && (mt.opacity ?? 1) < 0.02)) { tris -= t; return; }\n const maps = {}; for (const k of SLOTS) { const d = decoded(mt[k]); if (d !== null) maps[k] = d; }\n const e = mt.emissive ? Math.max(mt.emissive.r, mt.emissive.g, mt.emissive.b) * (mt.emissiveIntensity ?? 1) : 0;\n rows.push({ mesh: o.name || o.uuid.slice(0, 8), material: mt.name || mt.type, type: mt.type, tris: t, maps, emissive: Math.round(e * 1000) / 1000, color: mt.color && mt.color.getHexString ? mt.color.getHexString() : null, metalness: mt.metalness ?? null, unlit: mt.type === 'MeshBasicMaterial' });\n });\n }\n return { tris, rows };\n})()";