import type { AnimationFunction, LayoutAnimationAndConfig } from './commonTypes'; import { BaseAnimationBuilder } from './BaseAnimationBuilder'; import type { StyleProps, EasingFunction } from '../../commonTypes'; export declare class ComplexAnimationBuilder extends BaseAnimationBuilder { easingV?: EasingFunction; rotateV?: string; type?: AnimationFunction; dampingV?: number; dampingRatioV?: number; massV?: number; stiffnessV?: number; overshootClampingV?: number; restDisplacementThresholdV?: number; restSpeedThresholdV?: number; initialValues?: StyleProps; static createInstance: (this: T) => InstanceType; /** * Lets you change the easing curve of the animation. Can be chained alongside * other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param easingFunction - An easing function which defines the animation * curve. */ static easing(this: T, easingFunction: EasingFunction): InstanceType; easing(easingFunction: EasingFunction): this; /** * Lets you rotate the element. Can be chained alongside other [layout * animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param degree - The rotation degree. */ static rotate(this: T, degree: string): InstanceType; rotate(degree: string): this; /** * Enables the spring-based animation configuration. Can be chained alongside * other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param duration - An optional duration of the spring animation (in * milliseconds). */ static springify(this: T, duration?: number): ComplexAnimationBuilder; springify(duration?: number): this; /** * Lets you adjust the spring animation damping ratio. Can be chained * alongside other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param dampingRatio - How damped the spring is. */ static dampingRatio(this: T, dampingRatio: number): InstanceType; dampingRatio(value: number): this; /** * Lets you adjust the spring animation damping. Can be chained alongside * other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param value - Decides how quickly a spring stops moving. Higher damping * means the spring will come to rest faster. */ static damping(this: T, damping: number): InstanceType; damping(damping: number): this; /** * Lets you adjust the spring animation mass. Can be chained alongside other * [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param mass - The weight of the spring. Reducing this value makes the * animation faster. */ static mass(this: T, mass: number): InstanceType; mass(mass: number): this; /** * Lets you adjust the stiffness of the spring animation. Can be chained * alongside other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param stiffness - How bouncy the spring is. */ static stiffness(this: T, stiffness: number): InstanceType; stiffness(stiffness: number): this; /** * Lets you adjust overshoot clamping of the spring. Can be chained alongside * other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param overshootClamping - Whether a spring can bounce over the final * position. */ static overshootClamping(this: T, overshootClamping: number): InstanceType; overshootClamping(overshootClamping: number): this; /** * Lets you adjust the rest displacement threshold of the spring animation. * Can be chained alongside other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param restDisplacementThreshold - The displacement below which the spring * will snap to the designated position without further oscillations. */ static restDisplacementThreshold(this: T, restDisplacementThreshold: number): InstanceType; restDisplacementThreshold(restDisplacementThreshold: number): this; /** * Lets you adjust the rest speed threshold of the spring animation. Can be * chained alongside other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param restSpeedThreshold - The speed in pixels per second from which the * spring will snap to the designated position without further * oscillations. */ static restSpeedThreshold(this: T, restSpeedThreshold: number): InstanceType; restSpeedThreshold(restSpeedThreshold: number): this; /** * Lets you override the initial config of the animation * * @param values - An object containing the styles to override. */ static withInitialValues(this: T, values: StyleProps): InstanceType; withInitialValues(values: StyleProps): this; getAnimationAndConfig(): LayoutAnimationAndConfig; } //# sourceMappingURL=ComplexAnimationBuilder.d.ts.map