/** Angular */ import * as ng from "@angular/core"; /** Core */ import { Generic } from "cmf.core/src/core"; /** * AnimationSpeed */ export declare enum AnimationSpeed { Slow = 0, Normal = 1, Fast = 2 } /** * TransitionAnimator */ export declare abstract class TransitionAnimator extends Generic { private zone; protected startValue: any; protected currentValue: any; protected endValue: any; protected onUpdate: any; private _percentage; private _isRunning; readonly percentage: number; readonly isRunning: boolean; /** * Constructor */ constructor(zone: ng.NgZone); protected abstract onStart(): void; protected abstract onFinish(): void; protected abstract getCurrentValue(percentage: number): any; protected abstract checkIfAnimationFinished(): boolean; /** * To update animation * @param delta */ private update; /** * To start animation * @param startValue * @param endValue * @param onUpdate */ animate(startValue: any, endValue: any, onUpdate: any): TransitionAnimator; /** * Resume animation */ resume(): TransitionAnimator; /** * Pause animation */ pause(): TransitionAnimator; /** * Stop animation */ stop(): TransitionAnimator; /** * Destroy this transition animator */ destroy(): void; } /** * ColorTransitionAnimator */ export declare class ColorTransitionAnimator extends TransitionAnimator { /** * Constructor */ constructor(zone: ng.NgZone); /** * On start */ protected onStart(): void; /** * On finish */ protected onFinish(): void; /** * Get current value * @param percentage */ protected getCurrentValue(percentage: number): string; /** * Check if animation finished * @param percentage */ protected checkIfAnimationFinished(): boolean; } /** * ValueTransitionAnimator */ export declare class ValueTransitionAnimator extends TransitionAnimator { private direction; private difference; /** * Constructor */ constructor(zone: ng.NgZone); /** * On start */ protected onStart(): void; /** * On finish */ protected onFinish(): void; /** * Get current value * @param percentage */ protected getCurrentValue(percentage: number): any; /** * Check if animation finished * @param percentage */ protected checkIfAnimationFinished(): boolean; }