1 | import type { AnimationCallback } from '../../commonTypes';
|
2 | import type { DecayConfig } from './utils';
|
3 | export type WithDecayConfig = DecayConfig;
|
4 | type withDecayType = (userConfig: DecayConfig, callback?: AnimationCallback) => number;
|
5 | /**
|
6 | * Lets you create animations that mimic objects in motion with friction.
|
7 | *
|
8 | * @param config - The decay animation configuration - {@link DecayConfig}.
|
9 | * @param callback - A function called upon animation completion -
|
10 | * {@link AnimationCallback}.
|
11 | * @returns An [animation
|
12 | * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object)
|
13 | * which holds the current state of the animation.
|
14 | * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withDecay
|
15 | */
|
16 | export declare const withDecay: withDecayType;
|
17 | export {};
|
18 | //# sourceMappingURL=decay.d.ts.map |
\ | No newline at end of file |