UNPKG

2.92 kBTypeScriptView Raw
1import * as Errors from '@oclif/core/lib/errors';
2import { ActionBase } from './action/base';
3import { config, Config } from './config';
4import { ExitError } from './exit';
5import { IPromptOptions } from './prompt';
6import * as Table from './styled/table';
7export declare const ux: {
8 config: Config;
9 warn: typeof Errors.warn;
10 error: typeof Errors.error;
11 exit: typeof Errors.exit;
12 readonly prompt: typeof import("./prompt").prompt;
13 /**
14 * "press anykey to continue"
15 */
16 readonly anykey: typeof import("./prompt").anykey;
17 readonly confirm: typeof import("./prompt").confirm;
18 readonly action: ActionBase;
19 readonly prideAction: ActionBase;
20 styledObject(obj: any, keys?: string[] | undefined): void;
21 readonly styledHeader: typeof import("./styled/header").default;
22 readonly styledJSON: typeof import("./styled/json").default;
23 readonly table: typeof Table.table;
24 readonly tree: typeof import("./styled/tree").default;
25 readonly open: typeof import("./open").default;
26 readonly wait: (ms?: number) => Promise<unknown>;
27 readonly progress: typeof import("./styled/progress").default;
28 done(): Promise<void>;
29 trace(format: string, ...args: string[]): void;
30 debug(format: string, ...args: string[]): void;
31 info(format: string, ...args: string[]): void;
32 log(format?: string | undefined, ...args: string[]): void;
33 url(text: string, uri: string, params?: {}): void;
34 annotation(text: string, annotation: string): void;
35 flush(): Promise<void>;
36};
37export default ux;
38export declare const cli: {
39 config: Config;
40 warn: typeof Errors.warn;
41 error: typeof Errors.error;
42 exit: typeof Errors.exit;
43 readonly prompt: typeof import("./prompt").prompt;
44 /**
45 * "press anykey to continue"
46 */
47 readonly anykey: typeof import("./prompt").anykey;
48 readonly confirm: typeof import("./prompt").confirm;
49 readonly action: ActionBase;
50 readonly prideAction: ActionBase;
51 styledObject(obj: any, keys?: string[] | undefined): void;
52 readonly styledHeader: typeof import("./styled/header").default;
53 readonly styledJSON: typeof import("./styled/json").default;
54 readonly table: typeof Table.table;
55 readonly tree: typeof import("./styled/tree").default;
56 readonly open: typeof import("./open").default;
57 readonly wait: (ms?: number) => Promise<unknown>;
58 readonly progress: typeof import("./styled/progress").default;
59 done(): Promise<void>;
60 trace(format: string, ...args: string[]): void;
61 debug(format: string, ...args: string[]): void;
62 info(format: string, ...args: string[]): void;
63 log(format?: string | undefined, ...args: string[]): void;
64 url(text: string, uri: string, params?: {}): void;
65 annotation(text: string, annotation: string): void;
66 flush(): Promise<void>;
67};
68export { config, ActionBase, Config, ExitError, IPromptOptions, Table, };