/*! Strand UI | MIT License | dillingerstaffing.com */ import type { JSX } from "preact"; export interface CommandPaletteItem { /** Stable identity, used for keys and the active-descendant id. */ id: string; label: string; sublabel?: string; /** Short trailing token, such as a category or shortcut hint. */ badge?: string; } export interface CommandPaletteProps extends Omit, "onSelect" | "onInput" | "open" | "title"> { open: boolean; onClose: () => void; /** Already filtered and ranked by the caller. */ items: CommandPaletteItem[]; query: string; onQueryChange: (query: string) => void; /** Chosen by Enter or click. */ onSelect: (item: CommandPaletteItem) => void; placeholder?: string; emptyLabel?: string; /** Accessible name. */ label?: string; } /** * Search-and-jump overlay driven from the keyboard: combobox, listbox, active descendant, wrapping arrows. Composes `Dialog`; filtering belongs to the caller. * * @example * navigate(item.id)} /> */ export declare const CommandPalette: import("preact").FunctionalComponent & { ref?: import("preact").Ref | undefined; }>; //# sourceMappingURL=CommandPalette.d.ts.map