2020-09-21 08:14:06 +03:00
|
|
|
export declare function getProgressBar(action: string): (percent: number) => void;
|
|
|
|
export declare type ColorifyFunc = (text: string) => string;
|
|
|
|
export declare const colorify: {
|
|
|
|
[format: string]: ColorifyFunc;
|
|
|
|
};
|
2020-09-23 05:54:48 +03:00
|
|
|
export declare type PromptOptions = {
|
|
|
|
choice?: Array<string>;
|
|
|
|
defaultChoice?: string;
|
|
|
|
mask?: string;
|
|
|
|
};
|
2020-10-03 09:20:50 +03:00
|
|
|
export declare function getPrompt(prompt: string, options?: PromptOptions): Promise<string>;
|
2020-09-23 05:54:48 +03:00
|
|
|
export declare function getPassword(prompt: string): Promise<string>;
|