import type { CommandPaletteItem, CommandPaletteItemInput } from './command-palette.types'; export type CommandPaletteRow = { group: string; type: 'group'; } | { idx: number; item: CommandPaletteItem; type: 'item'; }; export declare function parseSlottedItems(elements: Element[]): CommandPaletteItem[]; /** * Splits a display-only shortcut hint into individual keys so each can be rendered in its * own ``. Keys are separated with `+` (e.g. `"⌘+N"` → `["⌘", "N"]`); a shortcut with no * `+` renders as a single key, unchanged. A literal `+` key can't be represented this way — * spell it out instead (e.g. `"Ctrl+Plus"`). */ export declare function splitShortcutKeys(shortcut: string): string[]; export declare function normalizeItem(input: CommandPaletteItemInput): CommandPaletteItem; export declare function filterItems(items: CommandPaletteItem[], query: string, noFilter: boolean): CommandPaletteItem[]; /** Groups items by `group` (first-seen order) and flattens into index-addressable rows. */ export declare function buildRows(items: CommandPaletteItem[]): CommandPaletteRow[]; //# sourceMappingURL=command-palette-items.d.ts.map