UNPKG

3.05 kBTypeScriptView Raw
1export declare const enum SupportLevel {
2 none = 0,
3 ansi = 1,
4 ansi256 = 2
5}
6export declare let options: {
7 enabled: boolean;
8 supportLevel: SupportLevel;
9};
10export declare function stripColors(str: string | number): string;
11export declare const reset: (str: string | number) => string;
12export declare const bold: (str: string | number) => string;
13export declare const dim: (str: string | number) => string;
14export declare const italic: (str: string | number) => string;
15export declare const underline: (str: string | number) => string;
16export declare const inverse: (str: string | number) => string;
17export declare const hidden: (str: string | number) => string;
18export declare const strikethrough: (str: string | number) => string;
19export declare const black: (str: string | number) => string;
20export declare const red: (str: string | number) => string;
21export declare const green: (str: string | number) => string;
22export declare const yellow: (str: string | number) => string;
23export declare const blue: (str: string | number) => string;
24export declare const magenta: (str: string | number) => string;
25export declare const cyan: (str: string | number) => string;
26export declare const white: (str: string | number) => string;
27export declare const gray: (str: string | number) => string;
28export declare const lightGray: (str: string | number) => string;
29export declare const lightRed: (str: string | number) => string;
30export declare const lightGreen: (str: string | number) => string;
31export declare const lightYellow: (str: string | number) => string;
32export declare const lightBlue: (str: string | number) => string;
33export declare const lightMagenta: (str: string | number) => string;
34export declare const lightCyan: (str: string | number) => string;
35export declare const bgBlack: (str: string | number) => string;
36export declare const bgRed: (str: string | number) => string;
37export declare const bgGreen: (str: string | number) => string;
38export declare const bgYellow: (str: string | number) => string;
39export declare const bgBlue: (str: string | number) => string;
40export declare const bgMagenta: (str: string | number) => string;
41export declare const bgCyan: (str: string | number) => string;
42export declare const bgWhite: (str: string | number) => string;
43export declare const bgGray: (str: string | number) => string;
44export declare const bgLightRed: (str: string | number) => string;
45export declare const bgLightGreen: (str: string | number) => string;
46export declare const bgLightYellow: (str: string | number) => string;
47export declare const bgLightBlue: (str: string | number) => string;
48export declare const bgLightMagenta: (str: string | number) => string;
49export declare const bgLightCyan: (str: string | number) => string;
50export declare const bgLightGray: (str: string | number) => string;
51export declare const ansi256: (n: number) => (str: string | number) => string;
52export declare const ansi256Bg: (n: number) => (str: string | number) => string;
53export declare function link(text: string, url: string): string;