import type { ComponentRef, ReactNode } from 'react'; import type { TextProps } from 'react-native'; import { Text } from 'react-native'; import type { SharedValueDisableContravariance } from '../commonTypes'; import { type AnimatedComponentType } from '../createAnimatedComponent'; type AnimatedTextComplement = ComponentRef & { getNode(): ComponentRef; }; type AnimatedTextChild = ReactNode | SharedValueDisableContravariance; /** * Animated version of the React Native `Text`. Its children can be shared * values, and the text follows them on the UI thread without re-rendering. * * Pass the shared value itself as a child. Don't read its `value` during * render: it is a side effect that blocks the JS thread until the value is * fetched from the UI thread, and the text becomes a static snapshot that never * updates. * * ```tsx * // Antipattern * {sv.value}; * * // Correct * {sv}; * ``` */ export declare const AnimatedText: AnimatedComponentType>, ComponentRef, { children?: AnimatedTextChild | AnimatedTextChild[]; }>; export type AnimatedText = typeof AnimatedText & AnimatedTextComplement; export {}; //# sourceMappingURL=Text.d.ts.map