export declare const RESET = "\u001B[0m"; export declare const colors: { readonly black: "\u001B[30m"; readonly red: "\u001B[31m"; readonly green: "\u001B[32m"; readonly yellow: "\u001B[33m"; readonly blue: "\u001B[34m"; readonly magenta: "\u001B[35m"; readonly cyan: "\u001B[36m"; readonly white: "\u001B[37m"; readonly brightBlack: "\u001B[90m"; readonly brightRed: "\u001B[91m"; readonly brightGreen: "\u001B[92m"; readonly brightYellow: "\u001B[93m"; readonly brightBlue: "\u001B[94m"; readonly brightMagenta: "\u001B[95m"; readonly brightCyan: "\u001B[96m"; readonly brightWhite: "\u001B[97m"; readonly darkBlack: "\u001B[38;5;232m"; }; export declare const bgColors: { readonly bgBlack: "\u001B[40m"; readonly bgRed: "\u001B[41m"; readonly bgGreen: "\u001B[42m"; readonly bgYellow: "\u001B[43m"; readonly bgBlue: "\u001B[44m"; readonly bgMagenta: "\u001B[45m"; readonly bgCyan: "\u001B[46m"; readonly bgWhite: "\u001B[47m"; readonly bgBrightBlack: "\u001B[100m"; readonly bgBrightRed: "\u001B[101m"; readonly bgBrightGreen: "\u001B[102m"; readonly bgBrightYellow: "\u001B[103m"; readonly bgBrightBlue: "\u001B[104m"; readonly bgBrightMagenta: "\u001B[105m"; readonly bgBrightCyan: "\u001B[106m"; readonly bgBrightWhite: "\u001B[107m"; }; export declare const modifiers: { readonly bold: "\u001B[1m"; readonly dim: "\u001B[2m"; readonly italic: "\u001B[3m"; readonly underline: "\u001B[4m"; readonly strikethrough: "\u001B[9m"; }; export declare const styles: { readonly bold: "\u001B[1m"; readonly dim: "\u001B[2m"; readonly italic: "\u001B[3m"; readonly underline: "\u001B[4m"; readonly strikethrough: "\u001B[9m"; readonly bgBlack: "\u001B[40m"; readonly bgRed: "\u001B[41m"; readonly bgGreen: "\u001B[42m"; readonly bgYellow: "\u001B[43m"; readonly bgBlue: "\u001B[44m"; readonly bgMagenta: "\u001B[45m"; readonly bgCyan: "\u001B[46m"; readonly bgWhite: "\u001B[47m"; readonly bgBrightBlack: "\u001B[100m"; readonly bgBrightRed: "\u001B[101m"; readonly bgBrightGreen: "\u001B[102m"; readonly bgBrightYellow: "\u001B[103m"; readonly bgBrightBlue: "\u001B[104m"; readonly bgBrightMagenta: "\u001B[105m"; readonly bgBrightCyan: "\u001B[106m"; readonly bgBrightWhite: "\u001B[107m"; readonly black: "\u001B[30m"; readonly red: "\u001B[31m"; readonly green: "\u001B[32m"; readonly yellow: "\u001B[33m"; readonly blue: "\u001B[34m"; readonly magenta: "\u001B[35m"; readonly cyan: "\u001B[36m"; readonly white: "\u001B[37m"; readonly brightBlack: "\u001B[90m"; readonly brightRed: "\u001B[91m"; readonly brightGreen: "\u001B[92m"; readonly brightYellow: "\u001B[93m"; readonly brightBlue: "\u001B[94m"; readonly brightMagenta: "\u001B[95m"; readonly brightCyan: "\u001B[96m"; readonly brightWhite: "\u001B[97m"; readonly darkBlack: "\u001B[38;5;232m"; }; type StyleName = keyof typeof styles; type ColorMethods = { hex(value: string): ColorFunction; bgHex(value: string): ColorFunction; rgb(r: number, g: number, b: number): ColorFunction; bgRgb(r: number, g: number, b: number): ColorFunction; }; export type ColorFunction = ((...args: any[]) => string) & { [K in StyleName]: ColorFunction; } & ColorMethods; /** * Main color object for terminal text styling * * @example * ```ts * import { color } from 'termcolors'; * console.log(color.blue("this text is blue!")); * console.log(color.green.bold("this text is green and bold!")); * console.log(color.green.bgYellow("this text is green with a yellow background!")); * console.log(color.green("a", "lot", "of", "words!")); * ``` */ export declare const color: ColorFunction; /** * The same shape as `color`, but it never emits ANSI codes. Pass it where a * caller has already decided that output should be plain (a test, or a * command whose color setting resolved to off). */ export declare const plainColor: ColorFunction; /** * Like `color`, but emits no ANSI codes when standard output is not a * terminal (output piped to a file or another process). It asks the * default host on its first use. * * @example * ```ts * import { ttyColor } from 'termcolors'; * console.log(ttyColor.green("colored on a terminal, plain when piped")); * ``` */ export declare const ttyColor: ColorFunction; /** * Whether to emit ANSI color for an `"auto"` setting: the default host's * `terminal.supportsColor()`, which on Node honours `NO_COLOR` and * `FORCE_COLOR` before looking at whether stdout is a terminal, since the * TTY flag alone is lost through some nested spawns. For a CLI command, * which has no run; a stdlib helper asks the current host instead. */ export declare function autoUseColor(): boolean; export {};