1 | import { ICommand } from './command';
|
2 | import { ICLIConfig } from './config';
|
3 | import { IPlugin } from './plugin';
|
4 | export interface Hooks {
|
5 | init: {
|
6 | id: string;
|
7 | };
|
8 | update: {};
|
9 | 'command_not_found': {
|
10 | id: string;
|
11 | };
|
12 | 'plugins:parse': {
|
13 | pjson: IPlugin;
|
14 | };
|
15 | prerun: {
|
16 | Command: ICommand;
|
17 | argv: string[];
|
18 | };
|
19 | }
|
20 | export declare type IHook<T extends {}> = (options: T & {
|
21 | config: ICLIConfig;
|
22 | }) => any;
|