import type { Document } from '@gltf-transform/core'; /** * Per-slot shading hints for the item-rt compiler (revision 3). The hint lives in the source GLB material extras * (`extras.helixShading = { parent?, role? }`), inside the sealed closure, so the compiler reads explicit data and never a name. * Mirrors helix-manifest `ITEM_RT_SHADING_EXTRAS_KEY`, `ITEM_RT_PARENT_IDS` and the internal parent list. */ export declare const HELIX_SHADING_EXTRAS_KEY = "helixShading"; export declare const SHADING_PARENT_IDS: readonly ["pbr", "cloth", "cloth_aniso", "clearcoat", "transmission", "iridescent", "hair_cards"]; /** Written as `role`; only HELIX's own publisher may use them (the backend compiler enforces its owner allowlist too). */ export declare const SHADING_ROLES: readonly ["skin", "eye"]; /** Publisher accounts that may stamp `skin`/`eye` (the server-side allowlist is the authority). */ export declare const HELIX_SHADING_PUBLISHER_USERNAMES: readonly string[]; export type ShadingHint = { parent?: string; role?: 'skin' | 'eye'; }; export declare function parseShaderFlag(flag: string): { material: string; value: string; }; /** Turns a `--shader` value into a hint, refusing unknown parents and internal ones for a creator publish. */ export declare function shaderHintFor(value: string, internalAllowed: boolean): ShadingHint; /** * Writes `extras.helixShading` on the named materials by editing the GLB JSON chunk only: the BIN chunk and every other * byte of the JSON stay as they were, so geometry, textures and compression are untouched. */ export declare function stampGlbShading(glb: Uint8Array, flags: readonly string[], options: { internalAllowed: boolean; }): { bytes: Uint8Array; stamped: Array<{ material: string; hint: ShadingHint; }>; }; /** * Base Male composer: stamps `role: 'skin'` on the opaque materials of the BodyMesh/FaceMesh nodes and `role: 'eye'` on the * eye materials it selects. This is the publisher writing explicit data, not the compiler reading names. It must run after * `sanitizeBakedEmissive`, which wipes material extras. */ export declare function stampBaseMaleRoles(document: Document): { skin: string[]; eye: string[]; };