/** * vue-vrm * * @description Vrm viewer component for Vue 3 / WebComponents. * @author Logue * @license MIT * @version 0.4.0 * @see {@link https://github.com/logue/vue-vrm} */ import { type AnimationMixer } from 'three'; import { type ShallowRef } from 'vue'; import type { AnimationData, VrmModelCallbacks, VrmModelDependencies, VrmModelOptions } from '../types/VrmModelTypes.js'; import type { VRM } from '@pixiv/three-vrm'; /** * Manage the loaded VRM model and its AnimationMixer: loading/unloading the * model, loading and blending VRMA animations, and playback control. * * @param options Reactive getters for model/animation-related props. * @param dependencies Getter for state owned by other composables (the scene). * @param callbacks Optional hooks invoked on load/playback lifecycle events. */ export declare function useVrmModel(options: VrmModelOptions, dependencies: VrmModelDependencies, callbacks?: VrmModelCallbacks): { vrm: ShallowRef; mixer: ShallowRef; init: () => Promise; dispose: () => void; loadAnimation: (data?: AnimationData, weights?: number[]) => Promise; pauseAnimation: () => void; resumeAnimation: () => void; stopAnimation: () => void; update: (deltaSeconds: number, beforeVrmUpdate?: (vrm: VRM, deltaSeconds: number) => void) => void; };