import * as React from 'react'; import { Pressable } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; /** * A menu item that navigates somewhere. * Renders a `` with a link role. * * **Diverges from the web deliberately.** Upstream renders an `` and lets * the browser navigate. React Native has no such element and no navigator of its * own, so navigation happens in the consumer's `onPress` — this part contributes * the link role and the `link-press` reason. * * `closeOnPress` keeps upstream's `false` default, but for the opposite outcome: * on the web the browser navigates away and the menu goes with it, whereas an RN * menu is a `Modal` that would sit on top of the screen just navigated to. Set * `closeOnPress` when the press navigates within the app. */ export declare function MenuLinkItem(componentProps: MenuLinkItem.Props): React.ReactElement>; export interface MenuLinkItemState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the item is currently pressed. */ pressed: boolean; /** * The item's index in the menu. */ index: number; } export interface MenuLinkItemProps 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 false */ closeOnPress?: boolean | undefined; /** * @deprecated Use `closeOnPress`. Kept as an alias for Base UI parity. */ closeOnClick?: boolean | undefined; } export declare namespace MenuLinkItem { type State = MenuLinkItemState; type Props = MenuLinkItemProps; } //# sourceMappingURL=MenuLinkItem.d.ts.map