@tomisakae/tomibot
Version:
TomiBot - AI Chatbot CLI với Google Genkit. Một chatbot AI thông minh chạy trên command line với giao diện đẹp.
17 lines • 964 B
TypeScript
import { MenuOption, UIComponent } from '../../core/types';
export declare class MenuComponent implements UIComponent {
private logger;
constructor();
showMainMenu(): Promise<string>;
showConfigMenu(): Promise<string>;
showMenu(message: string, choices: MenuOption[], defaultChoice?: string): Promise<string>;
showCheckboxMenu(message: string, choices: MenuOption[], defaultChoices?: string[]): Promise<string[]>;
confirmAction(message: string, defaultValue?: boolean): Promise<boolean>;
promptText(message: string, defaultValue?: string, validator?: (input: string) => string | boolean): Promise<string>;
promptPassword(message: string, validator?: (input: string) => string | boolean): Promise<string>;
render(): string;
update(data: any): void;
pauseForUser(message?: string): Promise<void>;
showLoadingMessage(message: string, duration?: number): Promise<void>;
}
//# sourceMappingURL=menu.component.d.ts.map