import "./Menu.css"; import { AriaLabelingProps, DomProps } from "../../shared"; import { CollectionNode as CollectionNodeAliasForDocumentation } from "../../collection"; import { ComponentProps, ElementType, ForwardedRef, ReactNode, SyntheticEvent } from "react"; export declare type SelectionMode = "none" | "single" | "multiple"; export declare const ItemKeyProp = "data-o-ui-key"; interface CollectionNode extends CollectionNodeAliasForDocumentation { } export interface InnerMenuProps extends DomProps, AriaLabelingProps { /** * A controlled set of the selected item keys. */ selectedKeys?: string[] | null; /** * The initial value of `selectedKeys` when uncontrolled. */ defaultSelectedKeys?: string[]; /** * Whether or not the menu should display as "valid" or "invalid". */ validationState?: "valid" | "invalid"; /** * Called when the selected keys change. * @param {SyntheticEvent} event - React's original event. * @param {String[]} keys - The keys of the selected items.. * @returns {void} */ onSelectionChange?: (event: SyntheticEvent, keys: string[]) => void; /** * The type of selection that is allowed. */ selectionMode?: SelectionMode; /** * A collection of nodes to render instead of children. It should only be used if you embed a Menu inside another component. */ nodes?: CollectionNode[]; /** * Whether or not the menu should autofocus on render. */ autoFocus?: boolean | number; /** * Default focus target when enabling autofocus. */ defaultFocusTarget?: string; /** * Whether or not the listbox take up the width of its container. */ fluid?: boolean; /** * An HTML element type or a custom React element type to render as. */ as?: ElementType; /** * React children. */ children: ReactNode; /** * @ignore */ forwardedRef: ForwardedRef; } export declare function InnerMenu({ id, selectedKeys: selectedKeysProp, defaultSelectedKeys, validationState, onSelectionChange, selectionMode, nodes: nodesProp, autoFocus, defaultFocusTarget, fluid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, as, children, forwardedRef, ...rest }: InnerMenuProps): JSX.Element; export declare const Menu: import("../../shared").OrbitComponent; export declare type MenuProps = ComponentProps; export {};