/** * Single source of truth for the Sessions page keyboard shortcuts. * * The same registry drives (a) the keydown handler, (b) the cheatsheet * overlay, and (c) the command palette — so a shortcut and its help text * can never drift apart. Each entry carries a display string (platform * neutral) plus the action to run. */ export type ShortcutCategory = 'Tabs' | 'View' | 'Navigation' | 'Actions' | 'Help'; export declare const SHORTCUT_CATEGORY_ORDER: ShortcutCategory[]; export interface SessionShortcut { id: string; /** Platform-neutral key display, e.g. "⌘/Ctrl + T". */ keysDisplay: string; description: string; category: ShortcutCategory; /** Action to run. Display-only entries (e.g. tab digits) omit it. */ run?: () => void; } export interface SessionShortcutHandlers { newSession: () => void; newSessionWithOptions: () => void; renameActiveTab: () => void; openActiveInNewTab: () => void; closeActiveTab: () => void; openPalette: () => void; openCheatsheet: () => void; focusSearch: () => void; cycleView: () => void; groupByNone: () => void; groupByAgent: () => void; groupByTarget: () => void; groupByVibe: () => void; groupByStatus: () => void; reconnectActive: () => void; toggleFullscreen: () => void; toggleInfoPanel: () => void; openActiveAgent: () => void; openActiveTarget: () => void; } type Tr = (key: string, fallback: string) => string; /** * Build the shortcut registry. Key-event → id matching lives in the page's * keydown handler; this provides the canonical id/description/action set. */ export declare function buildSessionShortcuts(h: SessionShortcutHandlers, tr: Tr): SessionShortcut[]; /** Group a registry into ordered [category, shortcuts] pairs for display. */ export declare function groupShortcutsByCategory(shortcuts: SessionShortcut[]): Array<[ShortcutCategory, SessionShortcut[]]>; export {};