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 5 6export interface Color { 7 (text: string): string; 8 9 strip: Color; 10 stripColors: Color; 11 12 black: Color; 13 red: Color; 14 green: Color; 15 yellow: Color; 16 blue: Color; 17 magenta: Color; 18 cyan: Color; 19 white: Color; 20 gray: Color; 21 grey: Color; 22 23 bgBlack: Color; 24 bgRed: Color; 25 bgGreen: Color; 26 bgYellow: Color; 27 bgBlue: Color; 28 bgMagenta: Color; 29 bgCyan: Color; 30 bgWhite: Color; 31 32 reset: Color; 33 bold: Color; 34 dim: Color; 35 italic: Color; 36 underline: Color; 37 inverse: Color; 38 hidden: Color; 39 strikethrough: Color; 40 41 rainbow: Color; 42 zebra: Color; 43 america: Color; 44 trap: Color; 45 random: Color; 46 zalgo: Color; 47} 48 49export function enable(): void; 50export function disable(): void; 51export function setTheme(theme: any): void; 52 53export let enabled: boolean; 54 55export const strip: Color; 56export const stripColors: Color; 57 58export const black: Color; 59export const red: Color; 60export const green: Color; 61export const yellow: Color; 62export const blue: Color; 63export const magenta: Color; 64export const cyan: Color; 65export const white: Color; 66export const gray: Color; 67export const grey: Color; 68 69export const bgBlack: Color; 70export const bgRed: Color; 71export const bgGreen: Color; 72export const bgYellow: Color; 73export const bgBlue: Color; 74export const bgMagenta: Color; 75export const bgCyan: Color; 76export const bgWhite: Color; 77 78export const reset: Color; 79export const bold: Color; 80export const dim: Color; 81export const italic: Color; 82export const underline: Color; 83export const inverse: Color; 84export const hidden: Color; 85export const strikethrough: Color; 86 87export const rainbow: Color; 88export const zebra: Color; 89export const america: Color; 90export const trap: Color; 91export const random: Color; 92export const zalgo: Color; 93 94declare global { 95 interface String { 96 strip: string; 97 stripColors: string; 98 99 black: string; 100 red: string; 101 green: string; 102 yellow: string; 103 blue: string; 104 magenta: string; 105 cyan: string; 106 white: string; 107 gray: string; 108 grey: string; 109 110 bgBlack: string; 111 bgRed: string; 112 bgGreen: string; 113 bgYellow: string; 114 bgBlue: string; 115 bgMagenta: string; 116 bgCyan: string; 117 bgWhite: string; 118 119 reset: string; 120 // @ts-ignore 121 bold: string; 122 dim: string; 123 italic: string; 124 underline: string; 125 inverse: string; 126 hidden: string; 127 strikethrough: string; 128 129 rainbow: string; 130 zebra: string; 131 america: string; 132 trap: string; 133 random: string; 134 zalgo: string; 135 } 136} 137