import { BlendAnimator, BlendAnimatorOpts, BlendAnimatorTarget } from './BlendAnimator'; interface Blend1DAnimatorInput { position: number; offset: number; animator: BlendAnimatorTarget; } interface Blend1DAnimatorOpts extends BlendAnimatorOpts { output: BlendAnimatorTarget; inputs: Blend1DAnimatorInput[]; playbackRatio?: number; } /** * 1d blending node in animation blend tree. * output clip must have blend1D and copy method */ declare class Blend1DAnimator extends BlendAnimator { position: number; private _cacheKey; private _cachePosition; protected _output?: BlendAnimatorTarget; protected _inputs: Blend1DAnimatorInput[]; constructor(opts?: Partial); addInput(position: number, inputAnimator: BlendAnimatorTarget, offset: number): Blend1DAnimatorInput; setTime(time: number): void; /** * Clone a new Blend1D clip * @param {boolean} cloneInputs True if clone the input clips * @return {clay.animation.Blend1DAnimator} */ _findKey(position: number): number; } export default Blend1DAnimator;