import { AdditionalPhonemeInfo, EmotionBehaviorCode } from '@inworld/web-core'; import { AnimationClip, AnimationMixer, Clock, Object3D, SkinnedMesh } from 'three'; import { FacialMaterialLoader } from '../../loaders/FacialMaterialLoader'; import { ANIMATION_TYPE, AnimationGesture, EMOTIONS_BODY } from '../../types/types'; import { InnequinAnimationType } from '../InnequinConfiguration'; import { InnequinFacial } from './facial/InnequinFacial'; export type InnequinAnimatorProps = { animations: { [key: string]: InnequinAnimationType | null; }; animationClips: { [key: string]: AnimationClip | null; }; animationGestures: AnimationGesture[]; defaultAnimation: string; defaultEmotion: EmotionBehaviorCode; facialMaterials: { [key: string]: FacialMaterialLoader | null; }; model: Object3D; modelMeshes: { [key: string]: SkinnedMesh | null; }; }; export declare class InnequinAnimator { animations: { [key: string]: InnequinAnimationType; }; animationMixer: AnimationMixer; animationName: string; animatorReady: boolean; animationState: ANIMATION_TYPE; clock: Clock; emotion: EMOTIONS_BODY; emotionState: EMOTIONS_BODY; emotionStateOld: EMOTIONS_BODY; facial: InnequinFacial; gesture: string; gestureDebounce: number; gestureOld: string; isPlaying: Boolean; isReady: Boolean; isModelLoaded: Boolean; phonemeData: AdditionalPhonemeInfo[]; props: InnequinAnimatorProps; talkingCurrentTime: number; constructor(props: InnequinAnimatorProps); init(): void; playAnimation(animation: string): void; randomGesture(maxDuration: number): void; onPlayGesture(): void; onPlayHello(): void; onPlayIdle(): void; onPlayIntro(): void; onPlayOutro(): void; onReady(): void; setEmotion(emotion: EmotionBehaviorCode): void; setPhonemes(phonemes: AdditionalPhonemeInfo[]): void; updateEmotion(): void; updateFrame(delta: number): void; updateGesture(): void; }