1 | import type { StyleLayoutAnimation } from './commonTypes';
|
2 | import { ReduceMotion } from '../commonTypes';
|
3 | import type { SharedValue, AnimatableValue, AnimationObject, EasingFunction } from '../commonTypes';
|
4 | import type { EasingFunctionFactory } from '../Easing';
|
5 | export declare function assertEasingIsWorklet(easing: EasingFunction | EasingFunctionFactory): void;
|
6 | export declare function initialUpdaterRun<T>(updater: () => T): T;
|
7 | interface RecognizedPrefixSuffix {
|
8 | prefix?: string;
|
9 | suffix?: string;
|
10 | strippedValue: number;
|
11 | }
|
12 | export declare function recognizePrefixSuffix(value: string | number): RecognizedPrefixSuffix;
|
13 | export declare function getReduceMotionFromConfig(config?: ReduceMotion): boolean;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function getReduceMotionForAnimation(config?: ReduceMotion): boolean | undefined;
|
19 | type AnimationToDecoration<T extends AnimationObject | StyleLayoutAnimation, U extends AnimationObject | StyleLayoutAnimation> = T extends StyleLayoutAnimation ? Record<string, unknown> : U | (() => U) | AnimatableValue;
|
20 | export declare function defineAnimation<T extends AnimationObject | StyleLayoutAnimation, // type that's supposed to be returned
|
21 | U extends AnimationObject | StyleLayoutAnimation = T>(starting: AnimationToDecoration<T, U>, factory: () => T): T;
|
22 | /**
|
23 | * Lets you cancel a running animation paired to a shared value.
|
24 | *
|
25 | * @param sharedValue - The shared value of a running animation that you want to
|
26 | * cancel.
|
27 | * @see https://docs.swmansion.com/react-native-reanimated/docs/core/cancelAnimation
|
28 | */
|
29 | export declare function cancelAnimation<T>(sharedValue: SharedValue<T>): void;
|
30 | export {};
|
31 | //# sourceMappingURL=util.d.ts.map |
\ | No newline at end of file |