/** * Shortcut display formatting (C24). * * The palette and the settings view used to render the same shortcut two * different ways — `⌘ K` in one, `meta + k` in the other — because each had * its own inline formatting. This module is the single answer, and every * divergence below was resolved deliberately rather than by porting whichever * file was opened first: * * | Behaviour | old palette | old settings | resolved to | * | ------------ | ------------------------ | ----------------- | ------------ | * | key combos | `split(",")[0]` — 1 only | all | all | * | key symbols | `⌘ ⌃ ⇧ ⌥` | raw `meta` `ctrl` | symbols | * | scope label | `Global`, strips `panel:`| `"${scope} Scope"`| this mapping | */ /** Render one key part — `cmd` → `⌘`, `k` → `K`. */ export declare function formatKeyPart(part: string): string; /** * Split a `keys` string into its alternative combos, each already split into * parts. `"cmd+/,ctrl+/"` → `[["⌘","/"], ["⌃","/"]]`. * * All alternatives are returned. The palette used to show only the first, * which hid the non-mac binding entirely. */ export declare function formatCombos(keys: string): string[][]; /** Human-readable name for a shortcut scope. */ export declare function scopeLabel(scope: string): string; /** * Search predicate. Matches label, category, keys **and scope** — scope was * searchable in the settings view but not the palette. */ export declare function matchesQuery( entry: { label?: string; category?: string; keys: string; scope?: string; }, query: string, ): boolean;