UNPKG

873 BTypeScriptView Raw
1import IFragment from './IFragment';
2export declare type AnsiColor = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'brightBlack' | 'brightRed' | 'brightGreen' | 'brightYellow' | 'brightBlue' | 'brightMagenta' | 'brightCyan' | 'brightWhite' | 'gray' | 'bgBlack' | 'bgRed' | 'bgGreen' | 'bgYellow' | 'bgBlue' | 'bgMagenta' | 'bgCyan' | 'bgWhite' | 'bgBrightBlack' | 'bgBrightRed' | 'bgBrightGreen' | 'bgBrightYellow' | 'bgBrightBlue' | 'bgBrightMagenta' | 'bgBrightCyan' | 'bgBrightWhite' | 'none';
3export declare function color(ansiColor: AnsiColor, ...children: Array<string | IFragment>): Color;
4export declare class Color implements IFragment {
5 private readonly color;
6 private readonly children;
7 constructor(ansiColor: AnsiColor, children: Array<string | IFragment>);
8 build(): string;
9}
10//# sourceMappingURL=Color.d.ts.map
\No newline at end of file