/** * 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 { VrmAutoBlinkOptions, VrmExpressionNames, VrmExpressions } from '../types/VrmExpressionTypes.js'; import type { VRM } from '@pixiv/three-vrm'; /** * Apply expression weights to the loaded VRM once per frame. * * Two sources are merged every frame, right before `vrm.update()`: * - the `expressions` prop (declarative; wins on conflicting keys), and * - values set with `setExpression()` (imperative; stored in a plain `Map` * without Vue reactivity, so per-frame callers such as lip sync add no * scheduling latency — the value is visible in the very next rendered frame). * * Expressions that are not mentioned by either source are left untouched (so * VRMA animations and the model's own settings keep control of them). A name * that stops being mentioned is reset to `0` once. * * When auto blink is enabled, `blink` is animated automatically unless either * source sets `blink` explicitly. * * @param getExpressions Returns the current `expressions` prop. * @param getAutoBlink Returns the current `autoBlink` prop. */ export declare function useVrmExpressions(getExpressions: () => VrmExpressions | undefined, getAutoBlink?: () => boolean | VrmAutoBlinkOptions): { apply: (vrm: VRM, deltaSeconds?: number) => void; onModelChanged: () => void; getExpressionNames: (vrm?: VRM) => VrmExpressionNames; setExpression: (name: string, weight: number) => void; resetExpressions: () => void; };