caravan-x
Version:
A terminal-based utility for managing Caravan multisig wallets in regtest mode. This tool simplifies development and testing with Caravan by providing an easy-to-use interface
81 lines (80 loc) • 1.8 kB
TypeScript
import { CaravanRegtestManager } from "../index";
/**
* Main menu interface
*/
export declare class MainMenu {
private app;
private dockerCommands?;
private snapshotCommands;
private scenarioCommands;
private settingsCommands;
private getMainMenuCategories;
private readonly subMenus;
constructor(app: CaravanRegtestManager);
/**
* Centralized error handling method
* Displays error to user and provides option to return to main menu
*/
private handleError;
/**
* Create a formatted error box
*/
private getErrorBox;
/**
* Display the Caravan logo
*/
private displayLogo;
private originalCaravanLogo;
/**
* Execute an async task with a loading spinner
*/
private withSpinner;
/**
* Handle paginated output display
*/
private displayPaginatedOutput;
/**
* Show the main menu and process user selection
*/
showMainMenu(): Promise<void>;
/**
* Show submenu for a selected category
*/
private showSubMenu;
/**
* Get readable title for a category
*/
private getCategoryTitle;
/**
* Process the selected menu action
*/
private processAction;
/**
* Mining options menu
*/
private miningMenu;
/**
* Export menu
*/
private exportMenu;
/**
* Import menu
*/
private importMenu;
/**
* Settings menu
* @deprecated use this.settingsCommands.showSettingsMenu() instead
*/
private settingsMenu;
private updateAppDirectories;
private displayCurrentConfig;
private getModeBadge;
/**
* Show help information
*/
private showHelp;
/**
* Start the main menu interface
*/
start(): Promise<void>;
}