import * as React from 'react'; import { MenuRoot } from '../root/MenuRoot'; /** * Groups all parts of a submenu. * Doesn't render its own element. * * A submenu is an ordinary `Menu.Root` that remembers its parent, so its Portal * is a `Modal` nested inside the parent's — which React Native supports, and * which keeps the whole menu tree in one React tree. * * **Not ported from upstream.** `openOnHover` and its delays: there is no hover * on a touch screen, so a submenu opens when its trigger is pressed. */ export declare function MenuSubmenuRoot(props: MenuSubmenuRoot.Props): React.JSX.Element; export interface MenuSubmenuRootState { } export interface MenuSubmenuRootProps extends MenuRoot.Props { /** * Whether closing this submenu with the Escape key (or the Android back * button) also closes the menu it belongs to. * @default false */ closeParentOnEsc?: boolean | undefined; } export declare namespace MenuSubmenuRoot { type State = MenuSubmenuRootState; type Props = MenuSubmenuRootProps; type ChangeEventReason = MenuRoot.ChangeEventReason; type ChangeEventDetails = MenuRoot.ChangeEventDetails; } //# sourceMappingURL=MenuSubmenuRoot.d.ts.map