import type { ComponentProps } from 'react'; import type { MotiView } from '@motify/components'; import type { ViewStyle, Insets, PressableProps } from 'react-native'; import type { MotiAnimationProp, MotiTransition } from '@motify/core'; import type Animated from 'react-native-reanimated'; export declare type MotiPressableInteractionState = { hovered: boolean; pressed: boolean; }; export declare type AnimateProp = MotiAnimationProp; declare type Interactable = (interaction: MotiPressableInteractionState) => NonNullable; declare type InteractableProp = Interactable | T; export declare type MotiPressableInteractionProp = Interactable; export declare type MotiPressableTransitionProp = InteractableProp; export declare type MotiPressableProp = InteractableProp; export declare type MotiPressableProps = { onFocus?: () => void; onBlur?: () => void; transition?: MotiPressableTransitionProp; animate?: MotiPressableProp; state?: never; onPress?: () => void; onPressIn?: () => void; onPressOut?: () => void; onHoverIn?: () => void; onHoverOut?: () => void; onLongPress?: () => void; hitSlop?: Insets; id?: string; disabled?: boolean; containerStyle?: ViewStyle; dangerouslySilenceDuplicateIdsWarning?: boolean; pressedValue?: Animated.SharedValue; hoveredValue?: Animated.SharedValue; /** * `onLayout` for the container component. */ onContainerLayout?: PressableProps['onLayout']; } & Pick, 'children' | 'exit' | 'from' | 'exitTransition' | 'style' | 'onLayout'> & Pick; export {};