import * as React from 'react'; import { Pressable } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; /** * A menu item that opens a submenu. * Renders a ``. * * It sits in the parent's popup but drives the submenu's store, so it registers * with the parent's `CompositeList` for its index while opening the submenu it * belongs to — and doubles as the element the submenu is positioned against. * * **Diverges from the web deliberately.** Upstream opens on hover after a delay, * with arrow keys as the keyboard path. A touch screen has neither, so this opens * on press. Unlike `Menu.Item`, pressing it never closes the menu. */ export declare function MenuSubmenuTrigger(componentProps: MenuSubmenuTrigger.Props): React.ReactElement>; export interface MenuSubmenuTriggerState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the submenu is currently open. */ open: boolean; /** * Whether the trigger is currently pressed. */ pressed: boolean; /** * The trigger's index in the parent menu. */ index: number; } export interface MenuSubmenuTriggerProps extends ZestUIComponentProps { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; } export declare namespace MenuSubmenuTrigger { type State = MenuSubmenuTriggerState; type Props = MenuSubmenuTriggerProps; } //# sourceMappingURL=MenuSubmenuTrigger.d.ts.map