import { Context } from '@artus/pipeline'; export interface CommandInput { params: { argv: string[]; env: Record; cwd: string; }; } export interface CommandOutput { data: { result: T; }; } /** * Command Context, store `argv`/`env`/`cwd`/`match result` ... */ export declare class CommandContext = Record, OutputResult = any> extends Context { private readonly parsedCommands; /** matched result */ private matchResult; env: Record; cwd: string; input: CommandInput; output: CommandOutput; init(): this; /** * same as argv in process.argv * using `raw` instead of `argv` to avoid feeling confusing between `argv` and `args` */ get raw(): string[]; set raw(val: string[]); get commands(): Map; get rootCommand(): import("./parsed_command").ParsedCommand; get args(): InputArgs; get fuzzyMatched(): import("./parsed_command").ParsedCommand; get matched(): import("./parsed_command").ParsedCommand | undefined; get error(): import("..").ArtusCliError | undefined; private parse; }