import { ClassAttributes, ComponentProps, ComponentType } from "react"; import { Pressable as NativePressable, StyleProp, PressableStateCallbackType as NativePressableStateCallbackType } from "react-native"; import { ViewStyle } from "./View"; declare type NativePressableProps = ComponentProps & ClassAttributes; export declare type PressableStateCallbackType = NativePressableStateCallbackType & { readonly pressed: boolean; /** @platform web */ readonly hovered: boolean; /** @platform web */ readonly focused: boolean; }; export declare type WebPressableProps = { /** * Either children or a render prop that receives a boolean reflecting whether * the component is currently pressed. */ children?: React.ReactNode | ((state: PressableStateCallbackType) => React.ReactNode); /** * Either view styles or a function that receives a boolean reflecting whether * the component is currently pressed and returns view styles. */ style?: StyleProp | ((state: PressableStateCallbackType) => StyleProp); }; export declare type PressableProps = Omit & WebPressableProps; export declare const Pressable: ComponentType; export {};