import type * as spec from '@galacean/effects-specification'; import type { StateMachineNode } from '../plugins/animation-graph'; import { Component } from './component.js'; /** * @since 2.6.0 */ export declare class Animator extends Component { private graphAsset; /** * 设置布尔类型参数 * @param name - 参数名 * @param value - 参数值 * @since 2.7.0 */ setBool(name: string, value: boolean): void; /** * 设置浮点类型参数 * @param name - 参数名 * @param value - 参数值 * @since 2.7.0 */ setFloat(name: string, value: number): void; /** * 设置触发器参数 * @since 2.7.0 * @param name - 参数名 */ setTrigger(name: string): void; /** * 重置触发器参数 * @since 2.7.0 * @param name - 参数名 */ resetTrigger(name: string): void; /** * 获取状态机节点 * @param machineName - 状态机名称 * @since 2.7.0 * @returns 状态机节点 */ getStateMachineNode(machineName: string): StateMachineNode | null; onStart(): void; onUpdate(dt: number): void; fromData(data: spec.AnimatorData): void; }