import type { KeyEvent } from "@opentui/core"; import { type TextOverflowMode } from "./text-layout.js"; export interface MenuItem { key: string; label: string; description?: string; disabled?: boolean; } export interface MenuProps { title?: string; items: MenuItem[]; onSelect?: (key: string) => void; initialIndex?: number; scopeId?: string; keyboardEnabled?: boolean; maxLineWidth?: number; overflow?: TextOverflowMode; boxed?: boolean; onKeyPress?: (key: KeyEvent, context: { index: number; items: MenuItem[]; setIndex: (nextIndex: number) => void; select: (itemKey: string) => void; }) => boolean; } export declare function Menu({ title, items, onSelect, initialIndex, scopeId, keyboardEnabled, maxLineWidth, overflow, boxed, onKeyPress }: MenuProps): import("react").ReactNode; //# sourceMappingURL=menu.d.ts.map