UNPKG

1.3 kBTypeScriptView Raw
1declare function print(input: string | boolean | number): string;
2declare function print(input: undefined | void): undefined;
3declare function print(input: null): null;
4type Colorize = typeof print;
5
6export declare const $: { enabled: boolean };
7
8// Colors
9export declare const black: Colorize;
10export declare const red: Colorize;
11export declare const green: Colorize;
12export declare const yellow: Colorize;
13export declare const blue: Colorize;
14export declare const magenta: Colorize;
15export declare const cyan: Colorize;
16export declare const white: Colorize;
17export declare const gray: Colorize;
18export declare const grey: Colorize;
19
20// Backgrounds
21export declare const bgBlack: Colorize;
22export declare const bgRed: Colorize;
23export declare const bgGreen: Colorize;
24export declare const bgYellow: Colorize;
25export declare const bgBlue: Colorize;
26export declare const bgMagenta: Colorize;
27export declare const bgCyan: Colorize;
28export declare const bgWhite: Colorize;
29
30// Modifiers
31export declare const reset: Colorize;
32export declare const bold: Colorize;
33export declare const dim: Colorize;
34export declare const italic: Colorize;
35export declare const underline: Colorize;
36export declare const inverse: Colorize;
37export declare const hidden: Colorize;
38export declare const strikethrough: Colorize;