import { ParamInterface, FlagInterface, InputInterface, OutputInterface, CommandInterface } from '../interfaces'; export declare class SoftCommand implements CommandInterface { /** * Falg index */ _flags: { [option: string]: FlagInterface; }; /** * Describe command behavior */ description: string; /** * Parameter definition */ params: ParamInterface

; /** * Flag list */ flags: Array>; /** * Help flag */ helpFlag: FlagInterface; /** * @abstract */ action(input: InputInterface, output: OutputInterface): void; /** * Add option to flag index */ addFlag(flag: FlagInterface): this; consume(input: InputInterface, output: OutputInterface): void; hasToConsume(input: InputInterface, output: OutputInterface): boolean; /** * Parse input and call action method */ handle(input: InputInterface, output: OutputInterface): void; /** * Print help info from command */ help(input: InputInterface, output: OutputInterface): void; /** * Return command description */ helpDescription(): string; /** * Return usage description */ helpUsage(executable: string): string; /** * Return flags description */ helpOptions(): Array; /** * Add option list and help flags to flag index */ initialize(): void; /** * Call parse method from option in flag index */ parseFlag(flag: string, input: InputInterface, output: OutputInterface): void; /** * */ parseParam(param: string, input: InputInterface, output: OutputInterface): void; } /** * Base implementation from command */ export declare class Command extends SoftCommand implements CommandInterface { /** * Add option to flag index */ addFlag(flag: FlagInterface): this; initialize(): void; /** * Call parse method from option in flag index */ parseFlag(flag: string, input: InputInterface, output: OutputInterface): void; }