import { AnimationDefinitionInternal, AnimationPromise, PropertyAnimation, PropertyAnimationInfo, AnimationBase } from './animation-common'; import { View } from '../core/view'; import { CubicBezierAnimationCurve } from './animation-interfaces'; import { CssAnimationProperty, Property } from '../core/properties'; import { NativeScriptUIView } from '../utils'; import { Style } from '../styling/style'; export * from './animation-common'; export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation'; declare class AnimationInfo { propertyNameToAnimate: string; subPropertiesToAnimate?: string[]; fromValue: any; toValue: any; duration: number; delay: number; repeatCount: number; animationBlock?: Function; } export declare function applyAnimationProperty(styleOrView: View, property: Property, value: any, setKeyFrame: boolean): any; export declare function applyAnimationProperty(styleOrView: Style, property: CssAnimationProperty, value: any, setKeyFrame: boolean): any; export declare function _resolveAnimationCurve(curve: string | CubicBezierAnimationCurve | CAMediaTimingFunction): CAMediaTimingFunction | string; export declare class Animation extends AnimationBase { protected _iOSAnimationFunction: (cancelled?: boolean) => void; protected _finishedAnimations: number; protected _cancelledAnimations: number; protected _mergedPropertyAnimations: Array; protected _valueSource: 'animation' | 'keyframe'; get valueSource(): "animation" | "keyframe"; protected _wasCancelled: boolean; constructor(animationDefinitions: Array, playSequentially?: boolean); animationFinishedCallback(cancelled: boolean): void; play(): AnimationPromise; cancel(): void; _resolveAnimationCurve(curve: string | CubicBezierAnimationCurve | CAMediaTimingFunction): CAMediaTimingFunction | string; protected _createiOSAnimationFunction(propertyAnimations: Array, index: number, playSequentially: boolean): (cancelled?: boolean) => void; protected _getNativeAnimationArguments(animation: PropertyAnimationInfo, duration: any, delay: any, repeatCount: any, useCABasicAnimation?: boolean): AnimationInfo; private _createBasicAnimation; usePropertyAnimator: boolean; protected _createNativeUIViewAnimation(propertyAnimations: Array, index: number, playSequentially: boolean): void; protected static _createNativeAffineTransform(animation: PropertyAnimation): CATransform3D; protected static _isAffineTransform(property: string): boolean; protected static _canBeMerged(animation1: PropertyAnimation, animation2: PropertyAnimation): boolean; protected static _mergeAffineTransformAnimations(propertyAnimations: Array): Array; protected animateNestedLayerSizeUsingBasicAnimation(nativeView: NativeScriptUIView, bounds: CGRect, animation: PropertyAnimation, args: AnimationInfo, curve: any, duration: any, delay: any, repeatCount: any): void; } export declare function _getTransformMismatchErrorMessage(view: View): string;