/**
 * @fileoverview Color utilities for RGB color conversion and manipulation.
 * Provides type-safe color handling with named colors and RGB tuples.
 */
/**
 * Named color values supported by the library.
 * Maps to standard terminal colors with bright variants.
 */
export type ColorName = 'black' | 'blue' | 'blueBright' | 'cyan' | 'cyanBright' | 'gray' | 'green' | 'greenBright' | 'magenta' | 'magentaBright' | 'red' | 'redBright' | 'white' | 'whiteBright' | 'yellow' | 'yellowBright';
/**
 * Special 'inherit' color value that uses the current color context.
 * Used with effects like shimmer to dynamically inherit color.
 */
export type ColorInherit = 'inherit';
/**
 * RGB color tuple with values 0-255 for red, green, and blue channels.
 * @example [140, 82, 255] // Socket purple
 * @example [255, 0, 0]    // Red
 */
export type ColorRgb = readonly [number, number, number];
/**
 * Union of all supported color types: named colors or RGB tuples.
 */
export type ColorValue = ColorName | ColorRgb;
/**
 * Type guard to check if a color value is an RGB tuple.
 * @param value - Color value to check
 * @returns `true` if value is an RGB tuple, `false` if it's a color name
 */
export declare function isRgbTuple(value: ColorValue): value is ColorRgb;
/**
 * Convert a color value to RGB tuple format.
 * Named colors are looked up in the `colorToRgb` map, RGB tuples are returned as-is.
 * @param color - Color name or RGB tuple
 * @returns RGB tuple with values 0-255
 */
export declare function toRgb(color: ColorValue): ColorRgb;
