UNPKG

faj-cli

Version:

FAJ - A powerful CLI resume builder with AI enhancement and multi-format export

52 lines 1.66 kB
export interface MenuChoice { name: string; value: string; short?: string; } export interface NavigableMenuOptions { message: string; choices: MenuChoice[]; backValue?: string; enterValue?: string; showHints?: boolean; } export declare class MenuNavigator { /** * Create a navigable menu with arrow key support * - Left arrow: go back (select back option if available) * - Right arrow: enter/select current option * - Up/Down arrows: navigate through options (default behavior) */ static prompt(options: NavigableMenuOptions): Promise<string>; /** * Create a standard menu with back option */ static createMenuWithBack(title: string, items: Array<{ name: string; value: string; }>, includeBack?: boolean): NavigableMenuOptions; /** * Helper to format menu items consistently */ static formatMenuItem(icon: string, text: string, value: string): MenuChoice; /** * Create a submenu that can be navigated with arrow keys */ static showSubmenu(title: string, items: MenuChoice[], onSelect: (value: string) => Promise<void>, parentMenu?: () => Promise<void>): Promise<void>; } /** * Custom inquirer plugin for enhanced keyboard navigation */ export declare function registerArrowKeyNavigation(): void; /** * Enhanced list prompt with arrow key hints */ export declare function listWithArrows(message: string, choices: Array<{ name: string; value: string; }>, options?: { showBackHint?: boolean; showEnterHint?: boolean; loop?: boolean; }): Promise<string>; //# sourceMappingURL=MenuNavigator.d.ts.map