import { AdditionalPhonemeInfo, EmotionBehaviorCode } from '@inworld/web-core'; import { AnimationClip, Group, MeshPhysicalMaterial, Object3D, Object3DEventMap, SkinnedMesh } from 'three'; import { GLTF } from 'three-stdlib'; import { BodyMaterialLoader } from '../loaders/BodyMaterialLoader'; import { FacialMaterialLoader } from '../loaders/FacialMaterialLoader'; import { GLTFAnimationLoader } from '../loaders/GLTFAnimationLoader'; import { GLTFModelLoader } from '../loaders/GLTFModelLoader'; import { JSONFileLoader } from '../loaders/JSONFileLoader'; import { AnimationGesture, MESH_TYPE_ID, MESH_TYPES } from '../types/types'; import { InnequinAnimator } from './animator/InnequinAnimator'; import { InnequinConfiguration } from './InnequinConfiguration'; export type InnequinProps = { baseURI: string; configURI: string; dracoURI: string; skinName?: string; onLoad: (config: InnequinConfiguration) => void; onProgress: Function; }; export declare const BODY_MATERIAL_NAME_MALE = "T_pose_model_Mannequin_body"; export declare const BODY_MATERIAL_NAME_FEMALE = "T_pose_model_MannequinFemale_body"; export declare const MESH_IDS: MESH_TYPE_ID[]; export declare class Innequin { animator: InnequinAnimator | null; animationClips: { [key: string]: AnimationClip; }; animationGestures: AnimationGesture[]; animationLoaders: { [key: string]: GLTFAnimationLoader; }; baseURI: string; bodySkins: { [key: string]: BodyMaterialLoader; }; bodySkinName: string; config: InnequinConfiguration | null; configFile: JSONFileLoader; configURI: string; dracoURI: string; facialMaterialLoaders: { [key: string]: FacialMaterialLoader; }; onLoad: (config: InnequinConfiguration) => void; onProgress: Function; modelFile: GLTFModelLoader | null; modelMaterials: { [key: string]: MeshPhysicalMaterial; }; modelMeshes: { [key: string]: SkinnedMesh; }; bodySkinNameInit: string; isSkinLoading: boolean; constructor(props: InnequinProps); init(): void; getGLTF(): GLTF; getModel(): Object3D; getScene(): Group; hasGender(material: MeshPhysicalMaterial): boolean; loadAnimations(): void; loadConfig(): void; loadModel(): void; loadVismeMaterials(): void; playAnimation(animation: string): void; setEmotion(event: EmotionBehaviorCode): void; setPhonemes(phonemes: AdditionalPhonemeInfo[]): void; setSkin(skinName: string): void; updateBodySkin(): void; updateFrame(delta: number): void; addMesh(mesh: SkinnedMesh, type: MESH_TYPES): void; onLoadAnimations(): void; onLoadComplete(): void; onLoadConfig(config: InnequinConfiguration): void; onLoadModel(): void; onLoadProgress(progress: number): void; onLoadSkin(): void; onLoadVismeMaterials(): void; }