UNPKG

854 BTypeScriptView Raw
1import { LoggerLevel } from './logger';
2export declare type ColorFunction = (...text: string[]) => string;
3export declare type LoggerColors = {
4 [L in LoggerLevel]: ColorFunction;
5};
6export interface Colors {
7 /**
8 * Used to mark text as important. Comparable to HTML's <strong>.
9 */
10 strong: ColorFunction;
11 /**
12 * Used to mark text as less important.
13 */
14 weak: ColorFunction;
15 /**
16 * Used to mark text as input such as commands, inputs, options, etc.
17 */
18 input: ColorFunction;
19 /**
20 * Used to mark text as successful.
21 */
22 success: ColorFunction;
23 /**
24 * Used to mark text as failed.
25 */
26 failure: ColorFunction;
27 /**
28 * Used to mark text as ancillary or supportive.
29 */
30 ancillary: ColorFunction;
31 log: LoggerColors;
32}
33export declare const NO_COLORS: Colors;