import { SharedValue } from 'react-native-reanimated'; /** * `runOnJS(_setValue)` is required because `useDerivedValue` runs on the UI thread — calling a React state setter directly from a worklet would crash. The derived value callback fires synchronously after the shared value changes, then bounces the update back to the JS thread via `runOnJS`. * * Closures inside the `useDerivedValue` callback must only reference serializable values; capturing non-serializable JS objects here will silently break on the UI thread. */ export declare function useAnimatedState(initialValue: SharedValue | T): readonly [T, (newValue: T) => void, SharedValue | (T & SharedValue)]; export declare function useAnimatedValue(initialValue: SharedValue | T): T; //# sourceMappingURL=useAnimatedState.d.ts.map