import { type HTMLAttributes, type ReactNode } from "react";
/** Caller-provided command menu item data. */
export type CommandMenuItem = {
description?: string;
disabled?: boolean;
id: string;
label: string;
/** Key hint shown before the label, e.g. `z` in a which-key list. */
shortcut?: string;
/** Decorative leading visual, such as a thumbnail, shown before the label. */
media?: ReactNode;
};
/** Props accepted by CommandMenu. */
export type CommandMenuProps = Omit, "children" | "onSelect"> & {
items: readonly CommandMenuItem[];
/** Called after a non-disabled item is selected. */
onSelect: (id: string) => void;
/** Caller-owned selected state; distinct from local keyboard focus. */
selected?: string;
/**
* `end` (default) sets each description at the row's end. `inline` keeps the
* label at its own width and starts the description right after it,
* truncated, so long descriptions never push the row's text apart.
*/
descriptionPlacement?: "end" | "inline";
};
/** A single-focus listbox with local navigation and caller-owned selection. */
export declare const CommandMenu: import("react").ForwardRefExoticComponent, "children" | "onSelect"> & {
items: readonly CommandMenuItem[];
/** Called after a non-disabled item is selected. */
onSelect: (id: string) => void;
/** Caller-owned selected state; distinct from local keyboard focus. */
selected?: string;
/**
* `end` (default) sets each description at the row's end. `inline` keeps the
* label at its own width and starts the description right after it,
* truncated, so long descriptions never push the row's text apart.
*/
descriptionPlacement?: "end" | "inline";
} & import("react").RefAttributes>;