import type { Node } from '@gltf-transform/core'; import { Document } from '@gltf-transform/core'; /** * `helix/avatar-face@1` -> VRM 1.0 `expressions` (+ `lookAt` when the avatar declares gaze morphs). * * The face contract and VRM share one vocabulary at the core: five vowels, two blinks, six emotions. What VRM * has no preset for - the 15 visemes, `jawOpen` - ride as custom expressions under stable names, so a VRM * imported back through `detectFaceManifest`'s aliases (`viseme_pp`, `jawOpen`) re-binds them. */ export interface FaceTargetLike { kind: 'morph' | 'bone'; name: string; mesh?: string; scale?: number; } export interface FaceManifestLike { channels: Record; expressions?: Record; /** Anything beyond the six emotions - a custom expression a newer converter declares. */ customExpressions?: Record; } export interface MorphBind { node: Node; index: number; weight: number; } export interface ExpressionSpec { name: string; preset: boolean; binds: MorphBind[]; isBinary?: boolean; overrideBlink?: 'none' | 'block' | 'blend'; overrideLookAt?: 'none' | 'block' | 'blend'; overrideMouth?: 'none' | 'block' | 'blend'; } export declare function resolveBinds(doc: Document, target: FaceTargetLike, warnings: string[], label: string): MorphBind[]; export declare function buildExpressions(doc: Document, face: FaceManifestLike, warnings: string[]): ExpressionSpec[]; export declare function expressionsJson(specs: ExpressionSpec[], indexOf: (n: Node) => number): Record;