1 | import { Questions } from './types';
|
2 | declare function url(text: string, url: string): string;
|
3 | declare function print(text: string): Promise<void>;
|
4 | declare function prompt<A>(questions: Questions): Promise<A>;
|
5 | declare function start(text: string): Promise<void>;
|
6 | declare function stop(text: string): Promise<void>;
|
7 | declare function wait(duration: number): Promise<void>;
|
8 | declare function init(): {
|
9 | start: typeof startProgress;
|
10 | increment: typeof advance;
|
11 | stop: typeof stopProgress;
|
12 | };
|
13 | declare function startProgress(length: number, initial?: number, message?: string): Promise<void>;
|
14 | declare function advance(increment?: number): Promise<void>;
|
15 | declare function stopProgress(message?: string): Promise<void>;
|
16 | declare const _default: {
|
17 | print: typeof print;
|
18 | prompt: typeof prompt;
|
19 | colors: import("chalk").Chalk & {
|
20 | supportsColor: import("chalk").ColorSupport;
|
21 | } & {
|
22 | callOutCyan: import("chalk").Chalk & {
|
23 | supportsColor: import("chalk").ColorSupport;
|
24 | };
|
25 | actionBlue: import("chalk").Chalk & {
|
26 | supportsColor: import("chalk").ColorSupport;
|
27 | };
|
28 | primary: import("chalk").Chalk & {
|
29 | supportsColor: import("chalk").ColorSupport;
|
30 | };
|
31 | secondary: import("chalk").Chalk & {
|
32 | supportsColor: import("chalk").ColorSupport;
|
33 | };
|
34 | tertiary: import("chalk").Chalk & {
|
35 | supportsColor: import("chalk").ColorSupport;
|
36 | };
|
37 | successGreen: import("chalk").Chalk & {
|
38 | supportsColor: import("chalk").ColorSupport;
|
39 | };
|
40 | errorRed: import("chalk").Chalk & {
|
41 | supportsColor: import("chalk").ColorSupport;
|
42 | };
|
43 | multiPurple: import("chalk").Chalk & {
|
44 | supportsColor: import("chalk").ColorSupport;
|
45 | };
|
46 | multiBlue: import("chalk").Chalk & {
|
47 | supportsColor: import("chalk").ColorSupport;
|
48 | };
|
49 | multiOrange: import("chalk").Chalk & {
|
50 | supportsColor: import("chalk").ColorSupport;
|
51 | };
|
52 | };
|
53 | spinner: {
|
54 | start: typeof start;
|
55 | stop: typeof stop;
|
56 | };
|
57 | wait: typeof wait;
|
58 | url: typeof url;
|
59 | table: typeof import("cli-ux/lib/styled/table").table;
|
60 | tree: typeof import("cli-ux/lib/styled/tree").default;
|
61 | progress: {
|
62 | init: typeof init;
|
63 | };
|
64 | };
|
65 | export default _default;
|