1 | export declare type IPromptListOption = {
|
2 | name: string;
|
3 | value?: any;
|
4 | };
|
5 | export declare type IPrompt = {
|
6 | text: PromptText;
|
7 | list: PromptList;
|
8 | };
|
9 | export declare type PromptText = (args: {
|
10 | message: string;
|
11 | default?: string;
|
12 | }) => Promise<string>;
|
13 | export declare type PromptList = <V = string>(args: {
|
14 | message: string;
|
15 | items: (string | IPromptListOption)[];
|
16 | pageSize?: number;
|
17 | type?: 'list' | 'checkbox';
|
18 | }) => Promise<V>;
|