import React from "react"; import { type StyleProp, Text, type TextStyle, type ViewStyle } from "react-native"; import Animated, { type AnimationCallback, WithSpringConfig } from "react-native-reanimated"; export type DigitVariant = "sign" | "number" | "compact" | "dot" | "comma"; /** * Properties for the AnimatedDigit component. */ export interface AnimatedDigitProps extends Omit, "style"> { /** The string value to be displayed and animated. */ value: string; /** The height of each digit or notation, used for animation calculations. */ height: number; /** Style for the container wrapping the animated text. */ containerStyle?: StyleProp; /** Props for the primary text component used in the component. */ textProps?: Omit, "style"> | undefined; /** Props for the number text components. */ numberTextProps?: Omit, "style"> | undefined; /** Props for the comma text component, if used. */ commaTextProps?: Omit, "style"> | undefined; /** Props for the dot (decimal point) text component, if used. */ dotTextProps?: Omit, "style"> | undefined; /** Props for the compact notation text components (K, M, B, T). */ compactNotationTextProps?: Omit, "style"> | undefined; /** Props for the sign text component, if used. */ signTextProps?: Omit, "style"> | undefined; /** Style for the primary text component. */ textStyle?: StyleProp; /** Style for the number text components. */ numberStyle?: StyleProp; /** Style for the comma text component, if used. */ commaStyle?: StyleProp; /** Style for the dot (decimal point) text component, if used. */ dotStyle?: StyleProp; /** Style for the compact notation text components (K, M, B, T). */ compactNotationStyle?: StyleProp; /** Style for the sign text component, if used. */ signStyle?: StyleProp; /** Configuration for the animation moving the digits up and down. Defaults to a bounce animation with 500ms duration. */ spinningAnimationConfig?: WithSpringConfig | undefined; /** Callback function invoked when the animation completes. */ animationCallback?: AnimationCallback | undefined; /** Custom function to animate the value change. Defaults to a bounce animation. */ animateToNewValue?: ((newValue: number, variant?: DigitVariant) => number) | undefined; } /** * AnimatedDigit is a React component that animates numbers and compact notations (K, M, B, T) * with customizable styles and animations. */ export declare const AnimatedDigit: React.FC;