import { AnimationEasing } from './easing'; import type Timeline from '../Timeline'; type OnframeCallback = (percent: number, elapsedTime: number) => void; type OndestroyCallback = () => void; type OnrestartCallback = () => void; export interface ClipOpts { life: number; delay: number; loop: boolean; easing: AnimationEasing; playbackRatio: number; onframe: OnframeCallback; ondestroy: OndestroyCallback; onrestart: OnrestartCallback; } export default class Clip { private _life; private _delay; private _inited; private _startTime; private _pausedTime; protected _paused: boolean; timeline?: Timeline; next?: Clip; prev?: Clip; _loop: boolean; easingFunc?: (p: number) => number; onframe?: OnframeCallback; ondestroy?: OndestroyCallback; onrestart?: OnrestartCallback; constructor(opts?: Partial); step(globalTime: number, deltaTime: number): boolean; pause(): void; resume(): void; getLife(): number; setLife(life: number): void; setEasing(easing: AnimationEasing): void; } export {};