import type { CLIArgs, Command, Flags } from './command'; import type { OnCommandStartSlot } from './cli.main.runtime'; export declare const LAST_COMMAND_DETAILS_DIR: string; type CommandResult = { data: any; exitCode: number; }; export declare class CommandRunner { private command; private args; private flags; private onCommandStartSlot; private commandName; constructor(command: Command, args: CLIArgs, flags: Flags, onCommandStartSlot: OnCommandStartSlot); /** * run command using one of the handler, "json"/"report"/"render". once done, exit the process. */ runCommand(shouldReturnResult?: boolean): Promise; private bootstrapCommand; private invokeOnCommandStart; /** * this works for both, Harmony commands and Legacy commands (the legacy-command-adapter * implements json() method) */ private runJsonHandler; private runReportHandler; private persistDetails; private runWaitHandler; /** * the loader and logger.console write output to the console during the command execution. * for internals commands, such as, _put, _fetch, the command.loader = false. */ private determineConsoleWritingDuringCommand; private writeAndExit; } export declare function parseCommandName(commandName: string): string; export {};