/** * OutputInterface */ export interface OutputInterface { log(...obj: Array): void; log(msj: string, ...obj: Array): void; error(...obj: Array): void; error(msj: string, ...obj: Array): void; } export interface FormatterInterface { format(str: string, ...replacements: Array): string; } /** * InputInterface */ export interface InputInterface{ argv: Array; exec: Array; flags: F; params: P; } /** * FlagInterface */ export interface FlagInterface { name: string; description: string; list: Array; after(input: InputInterface, output: OutputInterface): void; before(input: InputInterface, output: OutputInterface): void; parse(flag: string, input: InputInterface, output: OutputInterface): void; } /** * ParamInterface */ export interface ParamInterface

{ definition: string; after(input: InputInterface, output: OutputInterface): void; before(input: InputInterface, output: OutputInterface): void; parse(param: string, input:InputInterface, output:OutputInterface): void; } /** * CommandInterface */ export interface CommandInterface { description: string; handle(input: InputInterface, output: OutputInterface): void; } /** * QuickCommandType */ export type QuickCommandType = (input: InputInterface, output: OutputInterface) => void; /** * CommandType */ export type CommandType = string | QuickCommandType | CommandInterface;