import * as React from 'react'; export interface CommandMenuNavItem { title: string; url?: string; items?: CommandMenuNavItem[]; } export interface CommandMenuNavGroup { title: string; items: CommandMenuNavItem[]; } export type CommandMenuTheme = 'light' | 'dark' | 'system'; export interface CommandMenuProps { /** Whether the dialog is open. */ open: boolean; /** Toggle the dialog. */ onOpenChange: (open: boolean) => void; /** Navigation groups to render. Translation keys are passed through `t()`. */ navGroups: CommandMenuNavGroup[]; /** * Navigation callback invoked when a nav item is selected. * Consumers usually wire this to their router (tanstack `useNavigate`, `next/link`, etc.). */ onNavigate: (url: string) => void; /** Optional theme switcher callback. If omitted, theme group is hidden. */ onThemeChange?: (theme: CommandMenuTheme) => void; } /** * Keyboard-driven command palette. Framework-agnostic: consumer injects nav groups * and a navigation callback (e.g. a wrapper around a router). The theme section is * optional and collapses when `onThemeChange` is not provided. */ export declare function CommandMenu({ open, onOpenChange, navGroups, onNavigate, onThemeChange, }: CommandMenuProps): React.JSX.Element; //# sourceMappingURL=command-menu.d.ts.map