Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / inquirer / node_modules / ansi-styles / index.d.ts
1 declare type CSSColor =
2         | 'aliceblue'
3         | 'antiquewhite'
4         | 'aqua'
5         | 'aquamarine'
6         | 'azure'
7         | 'beige'
8         | 'bisque'
9         | 'black'
10         | 'blanchedalmond'
11         | 'blue'
12         | 'blueviolet'
13         | 'brown'
14         | 'burlywood'
15         | 'cadetblue'
16         | 'chartreuse'
17         | 'chocolate'
18         | 'coral'
19         | 'cornflowerblue'
20         | 'cornsilk'
21         | 'crimson'
22         | 'cyan'
23         | 'darkblue'
24         | 'darkcyan'
25         | 'darkgoldenrod'
26         | 'darkgray'
27         | 'darkgreen'
28         | 'darkgrey'
29         | 'darkkhaki'
30         | 'darkmagenta'
31         | 'darkolivegreen'
32         | 'darkorange'
33         | 'darkorchid'
34         | 'darkred'
35         | 'darksalmon'
36         | 'darkseagreen'
37         | 'darkslateblue'
38         | 'darkslategray'
39         | 'darkslategrey'
40         | 'darkturquoise'
41         | 'darkviolet'
42         | 'deeppink'
43         | 'deepskyblue'
44         | 'dimgray'
45         | 'dimgrey'
46         | 'dodgerblue'
47         | 'firebrick'
48         | 'floralwhite'
49         | 'forestgreen'
50         | 'fuchsia'
51         | 'gainsboro'
52         | 'ghostwhite'
53         | 'gold'
54         | 'goldenrod'
55         | 'gray'
56         | 'green'
57         | 'greenyellow'
58         | 'grey'
59         | 'honeydew'
60         | 'hotpink'
61         | 'indianred'
62         | 'indigo'
63         | 'ivory'
64         | 'khaki'
65         | 'lavender'
66         | 'lavenderblush'
67         | 'lawngreen'
68         | 'lemonchiffon'
69         | 'lightblue'
70         | 'lightcoral'
71         | 'lightcyan'
72         | 'lightgoldenrodyellow'
73         | 'lightgray'
74         | 'lightgreen'
75         | 'lightgrey'
76         | 'lightpink'
77         | 'lightsalmon'
78         | 'lightseagreen'
79         | 'lightskyblue'
80         | 'lightslategray'
81         | 'lightslategrey'
82         | 'lightsteelblue'
83         | 'lightyellow'
84         | 'lime'
85         | 'limegreen'
86         | 'linen'
87         | 'magenta'
88         | 'maroon'
89         | 'mediumaquamarine'
90         | 'mediumblue'
91         | 'mediumorchid'
92         | 'mediumpurple'
93         | 'mediumseagreen'
94         | 'mediumslateblue'
95         | 'mediumspringgreen'
96         | 'mediumturquoise'
97         | 'mediumvioletred'
98         | 'midnightblue'
99         | 'mintcream'
100         | 'mistyrose'
101         | 'moccasin'
102         | 'navajowhite'
103         | 'navy'
104         | 'oldlace'
105         | 'olive'
106         | 'olivedrab'
107         | 'orange'
108         | 'orangered'
109         | 'orchid'
110         | 'palegoldenrod'
111         | 'palegreen'
112         | 'paleturquoise'
113         | 'palevioletred'
114         | 'papayawhip'
115         | 'peachpuff'
116         | 'peru'
117         | 'pink'
118         | 'plum'
119         | 'powderblue'
120         | 'purple'
121         | 'rebeccapurple'
122         | 'red'
123         | 'rosybrown'
124         | 'royalblue'
125         | 'saddlebrown'
126         | 'salmon'
127         | 'sandybrown'
128         | 'seagreen'
129         | 'seashell'
130         | 'sienna'
131         | 'silver'
132         | 'skyblue'
133         | 'slateblue'
134         | 'slategray'
135         | 'slategrey'
136         | 'snow'
137         | 'springgreen'
138         | 'steelblue'
139         | 'tan'
140         | 'teal'
141         | 'thistle'
142         | 'tomato'
143         | 'turquoise'
144         | 'violet'
145         | 'wheat'
146         | 'white'
147         | 'whitesmoke'
148         | 'yellow'
149         | 'yellowgreen';
150
151 declare namespace ansiStyles {
152         interface ColorConvert {
153                 /**
154                 The RGB color space.
155
156                 @param red - (`0`-`255`)
157                 @param green - (`0`-`255`)
158                 @param blue - (`0`-`255`)
159                 */
160                 rgb(red: number, green: number, blue: number): string;
161
162                 /**
163                 The RGB HEX color space.
164
165                 @param hex - A hexadecimal string containing RGB data.
166                 */
167                 hex(hex: string): string;
168
169                 /**
170                 @param keyword - A CSS color name.
171                 */
172                 keyword(keyword: CSSColor): string;
173
174                 /**
175                 The HSL color space.
176
177                 @param hue - (`0`-`360`)
178                 @param saturation - (`0`-`100`)
179                 @param lightness - (`0`-`100`)
180                 */
181                 hsl(hue: number, saturation: number, lightness: number): string;
182
183                 /**
184                 The HSV color space.
185
186                 @param hue - (`0`-`360`)
187                 @param saturation - (`0`-`100`)
188                 @param value - (`0`-`100`)
189                 */
190                 hsv(hue: number, saturation: number, value: number): string;
191
192                 /**
193                 The HSV color space.
194
195                 @param hue - (`0`-`360`)
196                 @param whiteness - (`0`-`100`)
197                 @param blackness - (`0`-`100`)
198                 */
199                 hwb(hue: number, whiteness: number, blackness: number): string;
200
201                 /**
202                 Use a [4-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4-bit) to set text color.
203                 */
204                 ansi(ansi: number): string;
205
206                 /**
207                 Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
208                 */
209                 ansi256(ansi: number): string;
210         }
211
212         interface CSPair {
213                 /**
214                 The ANSI terminal control sequence for starting this style.
215                 */
216                 readonly open: string;
217
218                 /**
219                 The ANSI terminal control sequence for ending this style.
220                 */
221                 readonly close: string;
222         }
223
224         interface ColorBase {
225                 readonly ansi: ColorConvert;
226                 readonly ansi256: ColorConvert;
227                 readonly ansi16m: ColorConvert;
228
229                 /**
230                 The ANSI terminal control sequence for ending this color.
231                 */
232                 readonly close: string;
233         }
234
235         interface Modifier {
236                 /**
237                 Resets the current color chain.
238                 */
239                 readonly reset: CSPair;
240
241                 /**
242                 Make text bold.
243                 */
244                 readonly bold: CSPair;
245
246                 /**
247                 Emitting only a small amount of light.
248                 */
249                 readonly dim: CSPair;
250
251                 /**
252                 Make text italic. (Not widely supported)
253                 */
254                 readonly italic: CSPair;
255
256                 /**
257                 Make text underline. (Not widely supported)
258                 */
259                 readonly underline: CSPair;
260
261                 /**
262                 Inverse background and foreground colors.
263                 */
264                 readonly inverse: CSPair;
265
266                 /**
267                 Prints the text, but makes it invisible.
268                 */
269                 readonly hidden: CSPair;
270
271                 /**
272                 Puts a horizontal line through the center of the text. (Not widely supported)
273                 */
274                 readonly strikethrough: CSPair;
275         }
276
277         interface ForegroundColor {
278                 readonly black: CSPair;
279                 readonly red: CSPair;
280                 readonly green: CSPair;
281                 readonly yellow: CSPair;
282                 readonly blue: CSPair;
283                 readonly cyan: CSPair;
284                 readonly magenta: CSPair;
285                 readonly white: CSPair;
286
287                 /**
288                 Alias for `blackBright`.
289                 */
290                 readonly gray: CSPair;
291
292                 /**
293                 Alias for `blackBright`.
294                 */
295                 readonly grey: CSPair;
296
297                 readonly blackBright: CSPair;
298                 readonly redBright: CSPair;
299                 readonly greenBright: CSPair;
300                 readonly yellowBright: CSPair;
301                 readonly blueBright: CSPair;
302                 readonly cyanBright: CSPair;
303                 readonly magentaBright: CSPair;
304                 readonly whiteBright: CSPair;
305         }
306
307         interface BackgroundColor {
308                 readonly bgBlack: CSPair;
309                 readonly bgRed: CSPair;
310                 readonly bgGreen: CSPair;
311                 readonly bgYellow: CSPair;
312                 readonly bgBlue: CSPair;
313                 readonly bgCyan: CSPair;
314                 readonly bgMagenta: CSPair;
315                 readonly bgWhite: CSPair;
316
317                 /**
318                 Alias for `bgBlackBright`.
319                 */
320                 readonly bgGray: CSPair;
321
322                 /**
323                 Alias for `bgBlackBright`.
324                 */
325                 readonly bgGrey: CSPair;
326
327                 readonly bgBlackBright: CSPair;
328                 readonly bgRedBright: CSPair;
329                 readonly bgGreenBright: CSPair;
330                 readonly bgYellowBright: CSPair;
331                 readonly bgBlueBright: CSPair;
332                 readonly bgCyanBright: CSPair;
333                 readonly bgMagentaBright: CSPair;
334                 readonly bgWhiteBright: CSPair;
335         }
336 }
337
338 declare const ansiStyles: {
339         readonly modifier: ansiStyles.Modifier;
340         readonly color: ansiStyles.ForegroundColor & ansiStyles.ColorBase;
341         readonly bgColor: ansiStyles.BackgroundColor & ansiStyles.ColorBase;
342         readonly codes: ReadonlyMap<number, number>;
343 } & ansiStyles.BackgroundColor & ansiStyles.ForegroundColor & ansiStyles.Modifier;
344
345 export = ansiStyles;