1 // Type definitions for Colors.js 1.2
2 // Project: https://github.com/Marak/colors.js
3 // Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>
4 // Definitions: https://github.com/Marak/colors.js
6 export interface Color {
7 (text: string): string;
49 export function enable(): void;
50 export function disable(): void;
51 export function setTheme(theme: any): void;
53 export let enabled: boolean;
55 export const strip: Color;
56 export const stripColors: Color;
58 export const black: Color;
59 export const red: Color;
60 export const green: Color;
61 export const yellow: Color;
62 export const blue: Color;
63 export const magenta: Color;
64 export const cyan: Color;
65 export const white: Color;
66 export const gray: Color;
67 export const grey: Color;
69 export const bgBlack: Color;
70 export const bgRed: Color;
71 export const bgGreen: Color;
72 export const bgYellow: Color;
73 export const bgBlue: Color;
74 export const bgMagenta: Color;
75 export const bgCyan: Color;
76 export const bgWhite: Color;
78 export const reset: Color;
79 export const bold: Color;
80 export const dim: Color;
81 export const italic: Color;
82 export const underline: Color;
83 export const inverse: Color;
84 export const hidden: Color;
85 export const strikethrough: Color;
87 export const rainbow: Color;
88 export const zebra: Color;
89 export const america: Color;
90 export const trap: Color;
91 export const random: Color;
92 export const zalgo: Color;
127 strikethrough: string;