import EventEmitter from './EventEmitter'; import type Timeline from '../Timeline'; /** * 交互行为 */ export declare const ACTION: { /** 播放 */ readonly PLAY: "play"; /** 重播 */ readonly REPLAY: "replay"; /** 暂停 */ readonly PAUSE: "pause"; /** 上一个 */ readonly PREVIOUS: "previous"; /** 下一个 */ readonly NEXT: "next"; }; /** 交互行为事件定义 */ export declare type ActionDefinition = { [ACTION.PLAY]: () => void; [ACTION.REPLAY]: () => void; [ACTION.PAUSE]: () => void; [ACTION.PREVIOUS]: () => void; [ACTION.NEXT]: () => void; }; /** * 交互行为管理 */ export default class Action extends EventEmitter { /** 时间轴实例 */ timeline: Timeline; constructor(timeline: Timeline); }