import type { EntryExitAnimationFunction, AnimationFunction, LayoutAnimationFunction } from './commonTypes'; import { ReduceMotion } from '../../commonTypes'; export declare class BaseAnimationBuilder { durationV?: number; delayV?: number; reduceMotionV: ReduceMotion; randomizeDelay: boolean; callbackV?: (finished: boolean) => void; static createInstance: (this: T) => InstanceType; build: () => EntryExitAnimationFunction | LayoutAnimationFunction; /** * Lets you adjust the animation duration. Can be chained alongside other * [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param durationMs - Length of the animation (in milliseconds). */ static duration(this: T, durationMs: number): InstanceType; duration(durationMs: number): this; /** * Lets you adjust the delay before the animation starts (in milliseconds). * Can be chained alongside other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param delayMs - Delay before the animation starts (in milliseconds). */ static delay(this: T, delayMs: number): InstanceType; delay(delayMs: number): this; /** * The callback that will fire after the animation ends. Can be chained * alongside other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param callback - Callback that will fire after the animation ends. */ static withCallback(this: T, callback: (finished: boolean) => void): InstanceType; withCallback(callback: (finished: boolean) => void): this; /** * Lets you adjust the behavior when the device's reduced motion accessibility * setting is turned on. Can be chained alongside other [layout animation * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). * * @param reduceMotion - Determines how the animation responds to the device's * reduced motion accessibility setting. Default to `ReduceMotion.System` - * {@link ReduceMotion}. */ static reduceMotion(this: T, reduceMotion: ReduceMotion): InstanceType; reduceMotion(reduceMotionV: ReduceMotion): this; static getDuration(): number; getDuration(): number; /** @deprecated Use `.delay()` with `Math.random()` instead */ static randomDelay(this: T): InstanceType; randomDelay(): this; getDelay(): number; getReduceMotion(): ReduceMotion; getDelayFunction(): AnimationFunction; static build(this: T): EntryExitAnimationFunction | LayoutAnimationFunction; } //# sourceMappingURL=BaseAnimationBuilder.d.ts.map