import { Context } from './Context'; import { ConsoleApplication } from './ConsoleApplication'; export declare type ConsoleContextHelper = ConsoleContext & Props; export declare class ConsoleContext extends Context { readonly app: ConsoleApplication; readonly command: string; private commandMatched: boolean; protected readonly argv: string[]; constructor(app: ConsoleApplication, argv: string[]); /** * * Input command name and options to run specific command. * * In commands or plugins, you are recommended to use `ctx.run` instead of `ctx.app.run`. * The largest difference is `ctx.app.run` will not throw error when `app.on('error', fn)` is registered. * * Usage: * * `ctx.run()` * * `ctx.run('a:b:c')` * * `ctx.run('a:b', '--color', '--bail')` * * `ctx.run('a:b', '--name', 'Peter', '--age', '15')` */ run(...commands: string[]): Promise; protected inspect(): { app: { commandsPath: string[]; locale: string; }; command: string; argv: string[]; }; protected toJSON(): { app: { commandsPath: string[]; locale: string; }; command: string; argv: string[]; }; }