faj-cli
Version:
FAJ - A powerful CLI resume builder with AI enhancement and multi-format export
82 lines • 2.08 kB
TypeScript
export declare class MenuHelper {
private static menuStack;
/**
* Push current menu to stack
*/
static pushMenu(menuName: string): void;
/**
* Pop from menu stack
*/
static popMenu(): string | undefined;
/**
* Get current menu depth
*/
static getDepth(): number;
/**
* Clear menu stack
*/
static clearStack(): void;
/**
* Show breadcrumb navigation
*/
static showBreadcrumb(): void;
/**
* Show navigation hints based on menu level
*/
static showNavigationHints(isMainMenu?: boolean): void;
/**
* Format menu choices with consistent styling
*/
static formatChoices(choices: Array<{
name: string;
value: string;
icon?: string;
}>, includeBack?: boolean, backText?: string): any[];
/**
* Create a standard submenu
*/
static showSubmenu(title: string, choices: Array<{
name: string;
value: string;
icon?: string;
}>, options?: {
parentMenu?: string;
includeBack?: boolean;
backText?: string;
pageSize?: number;
}): Promise<string>;
/**
* Quick action menu with shortcuts
*/
static quickActionMenu(title: string, actions: Array<{
key: string;
name: string;
value: string;
icon?: string;
}>): Promise<string>;
/**
* Create a wizard-style navigation
*/
static createWizard(steps: string[]): {
current: () => number;
next: () => boolean;
previous: () => boolean;
isFirst: () => boolean;
isLast: () => boolean;
getStepName: () => string;
showProgress: () => void;
};
}
/**
* Helper function to create consistent menu separators
*/
export declare function menuSeparator(text?: string): any;
/**
* Helper to create menu item with icon
*/
export declare function menuItem(icon: string, name: string, value: string): {
name: string;
value: string;
short: string;
};
//# sourceMappingURL=MenuHelper.d.ts.map