terminal-chat-ui
Version:
Shared UI components for terminal-based chat interfaces using Theater actors
38 lines (37 loc) • 1 kB
TypeScript
/**
* useKeyboardShortcuts - centralized keyboard shortcut handling
*/
import type { KeyboardShortcutsConfig } from '../types/ui.js';
/**
* Hook for managing keyboard shortcuts in terminal chat interfaces
*/
export declare function useKeyboardShortcuts(config: KeyboardShortcutsConfig): void;
/**
* Common keyboard shortcuts for Theater chat interfaces
*/
export declare const commonShortcuts: {
exit: (exitFn: () => void) => {
key: string;
ctrl: boolean;
description: string;
action: () => void;
};
clear: (clearFn: () => void) => {
key: string;
ctrl: boolean;
description: string;
action: () => void;
};
toggleTools: (toggleFn: () => void) => {
key: string;
ctrl: boolean;
description: string;
action: () => void;
};
toggleHelp: (toggleFn: () => void) => {
key: string;
ctrl: boolean;
description: string;
action: () => void;
};
};