UNPKG

2.36 kBTypeScriptView Raw
1import { Questions } from './types';
2declare function url(text: string, url: string): string;
3declare function print(text: string): Promise<void>;
4declare function prompt<A>(questions: Questions): Promise<A>;
5declare function start(text: string): Promise<void>;
6declare function stop(text: string): Promise<void>;
7declare function wait(duration: number): Promise<void>;
8declare function init(): {
9 start: typeof startProgress;
10 increment: typeof advance;
11 stop: typeof stopProgress;
12};
13declare function startProgress(length: number, initial?: number, message?: string): Promise<void>;
14declare function advance(increment?: number): Promise<void>;
15declare function stopProgress(message?: string): Promise<void>;
16declare 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};
65export default _default;