UNPKG

1.62 kBTypeScriptView Raw
1declare namespace bare {
2 export interface Format {
3 (...text: any[]): string;
4
5 readonly bold: Format;
6 readonly italic: Format;
7 readonly underline: Format;
8 readonly blink: Format;
9 readonly inverse: Format;
10 readonly strike: Format;
11
12 readonly black: Format;
13 readonly red: Format;
14 readonly green: Format;
15 readonly yellow: Format;
16 readonly blue: Format;
17 readonly magenta: Format;
18 readonly cyan: Format;
19 readonly white: Format;
20
21 readonly bgBlack: Format;
22 readonly bgRed: Format;
23 readonly bgGreen: Format;
24 readonly bgYellow: Format;
25 readonly bgBlue: Format;
26 readonly bgMagenta: Format;
27 readonly bgCyan: Format;
28 readonly bgWhite: Format;
29
30 readonly blackBright: Format;
31 readonly redBright: Format;
32 readonly greenBright: Format;
33 readonly yellowBright: Format;
34 readonly blueBright: Format;
35 readonly magentaBright: Format;
36 readonly cyanBright: Format;
37 readonly whiteBright: Format;
38
39 readonly bgBlackBright: Format;
40 readonly bgRedBright: Format;
41 readonly bgGreenBright: Format;
42 readonly bgYellowBright: Format;
43 readonly bgBlueBright: Format;
44 readonly bgMagentaBright: Format;
45 readonly bgCyanBright: Format;
46 readonly bgWhiteBright: Format;
47
48 xterm(color: number): Format;
49 bgXterm(color: number): Format;
50 readonly xtermSupported: boolean;
51 }
52}
53declare const bare: bare.Format;
54export = bare;