import * as React from 'react'; import { Pressable } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; /** * An individual interactive item in the menu. * Renders a ``. * * Upstream exposes a `highlighted` state driven by roving focus. There is no * keyboard to rove with on React Native, so the state here is `pressed`. */ export declare function MenuItem(componentProps: MenuItem.Props): React.ReactElement>; export interface MenuItemState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the item is currently pressed. */ pressed: boolean; /** * The item's index in the menu, in visual order. */ index: number; } export interface MenuItemProps extends ZestUIComponentProps { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; /** * Whether to close the menu when the item is pressed. * @default true */ closeOnPress?: boolean | undefined; /** * @deprecated Use `closeOnPress`. Kept as an alias for Base UI parity. */ closeOnClick?: boolean | undefined; } export declare namespace MenuItem { type State = MenuItemState; type Props = MenuItemProps; } //# sourceMappingURL=MenuItem.d.ts.map