import { HNode } from '@hiberworld/code-kit';
import { IDefaultOptions } from './types';
export interface ITimelineOptions extends IDefaultOptions {
    duration: number | undefined;
}
export interface ITimelineActOptions {
    act: HNode;
    start: number;
    end: number;
}
/**
 * This helpers makes it possible to change the world over time.
 * It's done by moving objects away from the center point of the scene to a point far away not visible.
 * @example
 * ```ts
  const act1 = getGroup();
  addTo(act1, getSpinning(getPrefab({ id: 'en_p_lantern_02', p: [0, 0, 5] })));

  const act2 = getGroup();
  addTo(act2, getPrefab({ id: 'bonfire_01', p: [0, 0, 5] }));

  const act3 = getGroup();
  addTo(act3, getScape());


  // Quic way
  addTo(root, getTimeline([act1, act2, act3], { duration: 15 }));

  // Aor Advance way

  addTo(
    root,
    getTimeline(
      [
        {
          act: act1,
          start: 0,
          end: 3,
        },
        {
          act: act2,
          start: 3,
          end: 4,
        },
        {
          act: act3,
          start: 2,
          end: 5,
        },
      ],
      { duration: 5 }
    )
  );
 * ```
 */
export declare const getTimeline: (acts: ITimelineActOptions[] | HNode[], options?: Partial<ITimelineOptions>) => HNode;
//# sourceMappingURL=getTimeline.d.ts.map