UNPKG

@enclaved/encli

Version:

CLI utilities for working with enclaved application server for TEEs

43 lines (42 loc) 1.27 kB
/** * Configuration module for handling encli.json */ /** * Get the path to the configuration file * @returns Path to the configuration file */ export declare function getConfigPath(): string; /** * Read and parse the configuration file * @returns Parsed configuration object */ export declare function readConfig(): any; /** * Write configuration to file * @param config Configuration object to write */ export declare function writeConfig(config: any): void; /** * Get wallets from configuration * @returns Wallets object or empty object if not found */ export declare function getWallets(): Record<string, any>; /** * Get a specific wallet by name * @param name Name of the wallet to get * @returns Wallet object or undefined if not found */ export declare function getWallet(name: string): any; /** * Add a wallet to configuration * @param name Name of the wallet * @param walletData Wallet data to add * @throws Error if wallet with the same name already exists */ export declare function addWallet(name: string, walletData: any): void; /** * Remove a wallet from configuration * @param name Name of the wallet to remove * @throws Error if wallet with the given name doesn't exist */ export declare function removeWallet(name: string): void;