import { type ReactNode } from 'react'; import { type SharedValue } from 'react-native-reanimated'; export interface ReanimatedTrueSheetContextValue { /** * Shared value representing the current sheet position (Y offset from top of screen) */ animatedPosition: SharedValue; /** * Shared value representing the current detent index as a continuous float. * Interpolates smoothly between -1 (off-screen) and the target detent index. */ animatedIndex: SharedValue; /** * Shared value representing the current detent value (0-1 fraction of screen height). * Interpolates smoothly between detent values as the sheet is dragged. */ animatedDetent: SharedValue; } export interface ReanimatedTrueSheetProviderProps { children: ReactNode; } /** * Provider component that manages shared values for Reanimated TrueSheet. * Wrap your app or component tree with this provider to enable Reanimated integration. * * @example * ```tsx * import { ReanimatedTrueSheetProvider } from '@lodev09/react-native-true-sheet' * * function App() { * return ( * * * * ) * } * ``` */ export declare const ReanimatedTrueSheetProvider: ({ children }: ReanimatedTrueSheetProviderProps) => import("react/jsx-runtime").JSX.Element; /** * Hook to access the Reanimated TrueSheet context. * Returns the shared values for sheet position and detent index that can be used in animations. * * @throws Error if used outside of ReanimatedTrueSheetProvider * * @example * ```tsx * import { useReanimatedTrueSheet } from '@lodev09/react-native-true-sheet' * import { useAnimatedStyle } from 'react-native-reanimated' * * function MyComponent() { * const { animatedPosition, animatedIndex } = useReanimatedTrueSheet() * * const animatedStyle = useAnimatedStyle(() => ({ * transform: [{ translateY: -animatedPosition.value }] * })) * * return ... * } * ``` */ export declare const useReanimatedTrueSheet: () => ReanimatedTrueSheetContextValue; //# sourceMappingURL=ReanimatedTrueSheetProvider.d.ts.map