/** * The full set of named colors supported by the TUI palette. Keep * `ansiColors`, `ansiBgColors`, and `cssColors` in lock-step with this * list — a unit test enforces it. */ export declare const COLOR_NAMES: readonly ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "gray", "bright-red", "bright-green", "bright-yellow", "bright-blue", "bright-magenta", "bright-cyan", "bright-white"]; export type ColorName = (typeof COLOR_NAMES)[number]; export declare const ansiColors: Record; export declare const ansiBgColors: Record; /** * SECURITY: this map plus a strict hex-color regex are the only allowed * sources for color values in HTML output. The HTML adapter * (`render/html.ts`) MUST only emit a CSS color that is either a value * from this object (named colors) or a literal hex string matching * `^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$`. Any other value (e.g. an * attacker-controlled Style.fg/bg/borderColor/labelColor) must be * dropped silently. Do not bypass either check. */ export declare const cssColors: Record;