1 | declare module "colorette" {
|
2 | type Color = (text: string | number) => string
|
3 |
|
4 | interface Colorette {
|
5 | reset: Color
|
6 | bold: Color
|
7 | dim: Color
|
8 | italic: Color
|
9 | underline: Color
|
10 | inverse: Color
|
11 | hidden: Color
|
12 | strikethrough: Color
|
13 | black: Color
|
14 | red: Color
|
15 | green: Color
|
16 | yellow: Color
|
17 | blue: Color
|
18 | magenta: Color
|
19 | cyan: Color
|
20 | white: Color
|
21 | gray: Color
|
22 | bgBlack: Color
|
23 | bgRed: Color
|
24 | bgGreen: Color
|
25 | bgYellow: Color
|
26 | bgBlue: Color
|
27 | bgMagenta: Color
|
28 | bgCyan: Color
|
29 | bgWhite: Color
|
30 | blackBright: Color
|
31 | redBright: Color
|
32 | greenBright: Color
|
33 | yellowBright: Color
|
34 | blueBright: Color
|
35 | magentaBright: Color
|
36 | cyanBright: Color
|
37 | whiteBright: Color
|
38 | bgBlackBright: Color
|
39 | bgRedBright: Color
|
40 | bgGreenBright: Color
|
41 | bgYellowBright: Color
|
42 | bgBlueBright: Color
|
43 | bgMagentaBright: Color
|
44 | bgCyanBright: Color
|
45 | bgWhiteBright: Color
|
46 | }
|
47 |
|
48 | const reset: Color
|
49 | const bold: Color
|
50 | const dim: Color
|
51 | const italic: Color
|
52 | const underline: Color
|
53 | const inverse: Color
|
54 | const hidden: Color
|
55 | const strikethrough: Color
|
56 | const black: Color
|
57 | const red: Color
|
58 | const green: Color
|
59 | const yellow: Color
|
60 | const blue: Color
|
61 | const magenta: Color
|
62 | const cyan: Color
|
63 | const white: Color
|
64 | const gray: Color
|
65 | const bgBlack: Color
|
66 | const bgRed: Color
|
67 | const bgGreen: Color
|
68 | const bgYellow: Color
|
69 | const bgBlue: Color
|
70 | const bgMagenta: Color
|
71 | const bgCyan: Color
|
72 | const bgWhite: Color
|
73 | const blackBright: Color
|
74 | const redBright: Color
|
75 | const greenBright: Color
|
76 | const yellowBright: Color
|
77 | const blueBright: Color
|
78 | const magentaBright: Color
|
79 | const cyanBright: Color
|
80 | const whiteBright: Color
|
81 | const bgBlackBright: Color
|
82 | const bgRedBright: Color
|
83 | const bgGreenBright: Color
|
84 | const bgYellowBright: Color
|
85 | const bgBlueBright: Color
|
86 | const bgMagentaBright: Color
|
87 | const bgCyanBright: Color
|
88 | const bgWhiteBright: Color
|
89 |
|
90 | const isColorSupported: boolean
|
91 |
|
92 | function createColors(options?: { useColor: boolean }): Colorette
|
93 | }
|
94 |
|
\ | No newline at end of file |