import { Menu as BaseMenu } from '@base-ui/react/menu'; import { type ReactNode } from 'react'; type Styled = Omit & { className?: string | undefined; }; /** A menu's rows: `md` is the standard 14px row, `sm` a 12px one for a compact toolbar. */ export type MenuSize = 'md' | 'sm'; export interface MenuPopupProps { children: ReactNode; /** An embedded editor uses dialog semantics instead of a list of menu choices. */ role?: 'menu' | 'dialog' | undefined; /** On this popup alone, such as a wider floor: `min-w-64`. */ className?: string | undefined; side?: BaseMenu.Positioner.Props['side']; align?: BaseMenu.Positioner.Props['align']; /** What it opens against in place of its trigger, such as the point a right-click landed. */ anchor?: BaseMenu.Positioner.Props['anchor']; /** Keeps the popup's children mounted while closed, so state they own survives. */ keepMounted?: boolean; /** The rows' size; a submenu takes its parent's. */ size?: MenuSize | undefined; /** Classes on this popup and every submenu it opens, such as token overrides that give a * terminal's menus its own colors: `[--theme-app-bg:#111827] [--theme-app:#f9fafb]`. */ themeClassName?: string | undefined; /** At least as wide as the element it opens from. */ matchAnchorWidth?: boolean | undefined; /** Names the menu, where its trigger's text doesn't. */ label?: string | undefined; /** Lines above the rows that aren't choices, such as who is signed in. They stay in view * as the rows scroll, ruled off from them. */ header?: ReactNode; /** Rows under the scrolling ones, ruled off from them and always in view, such as "See all". * The arrow keys reach them last. */ footer?: ReactNode; } /** The portal, positioner and popup every menu needs. */ export declare function MenuPopup({ children, role, className, side, align, anchor, keepMounted, size, themeClassName, matchAnchorWidth, label, header, footer, }: MenuPopupProps): import("react").JSX.Element; export declare function MenuItem({ className, ...props }: Styled): import("react").JSX.Element; /** A navigation row; give it `render` for a router link. Closes the menu like any item. */ export declare function MenuLinkItem({ className, ...props }: Styled): import("react").JSX.Element; /** A choice within a Menu.RadioGroup, checked while it holds the group's value. */ export declare function MenuRadioItem({ className, children, ...props }: Styled): import("react").JSX.Element; /** An on/off choice, checked while `checked` holds; it closes the menu like any item. */ export declare function MenuCheckboxItem({ className, children, ...props }: Styled): import("react").JSX.Element; /** The row that opens a submenu, inside a Menu.SubmenuRoot. */ export declare function MenuSubmenuTrigger({ className, children, ...props }: Styled): import("react").JSX.Element; export declare function MenuSeparator({ className }: { className?: string | undefined; }): import("react").JSX.Element; export declare function MenuGroupLabel({ children }: { children: ReactNode; }): import("react").JSX.Element; export {};