1 | import type { EntryExitAnimationFunction, AnimationFunction, LayoutAnimationFunction } from './commonTypes';
|
2 | import { ReduceMotion } from '../../commonTypes';
|
3 | export declare class BaseAnimationBuilder {
|
4 | durationV?: number;
|
5 | delayV?: number;
|
6 | reduceMotionV: ReduceMotion;
|
7 | randomizeDelay: boolean;
|
8 | callbackV?: (finished: boolean) => void;
|
9 | static createInstance: <T extends typeof BaseAnimationBuilder>(this: T) => InstanceType<T>;
|
10 | build: () => EntryExitAnimationFunction | LayoutAnimationFunction;
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | static duration<T extends typeof BaseAnimationBuilder>(this: T, durationMs: number): InstanceType<T>;
|
19 | duration(durationMs: number): this;
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | static delay<T extends typeof BaseAnimationBuilder>(this: T, delayMs: number): InstanceType<T>;
|
28 | delay(delayMs: number): this;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | static withCallback<T extends typeof BaseAnimationBuilder>(this: T, callback: (finished: boolean) => void): InstanceType<T>;
|
37 | withCallback(callback: (finished: boolean) => void): this;
|
38 | /**
|
39 | * Lets you adjust the behavior when the device's reduced motion accessibility
|
40 | * setting is turned on. Can be chained alongside other [layout animation
|
41 | * modifiers](https:
|
42 | *
|
43 | * @param reduceMotion - Determines how the animation responds to the device's
|
44 | * reduced motion accessibility setting. Default to `ReduceMotion.System` -
|
45 | * {@link ReduceMotion}.
|
46 | */
|
47 | static reduceMotion<T extends typeof BaseAnimationBuilder>(this: T, reduceMotion: ReduceMotion): InstanceType<T>;
|
48 | reduceMotion(reduceMotionV: ReduceMotion): this;
|
49 | static getDuration(): number;
|
50 | getDuration(): number;
|
51 |
|
52 | static randomDelay<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
|
53 | randomDelay(): this;
|
54 | getDelay(): number;
|
55 | getReduceMotion(): ReduceMotion;
|
56 | getDelayFunction(): AnimationFunction;
|
57 | static build<T extends typeof BaseAnimationBuilder>(this: T): EntryExitAnimationFunction | LayoutAnimationFunction;
|
58 | }
|
59 |
|
\ | No newline at end of file |