/**
 * @file Color conversion helpers — `isRgbTuple()` narrows a `ColorValue` to the
 *   RGB-tuple branch, and `toRgb()` resolves a named color or passes through an
 *   existing tuple.
 */
import type { ColorRgb, ColorValue } from './types';
/**
 * Type guard to check if a color value is an RGB tuple.
 *
 * @example
 *   ;```typescript
 *   isRgbTuple([255, 0, 0]) // true
 *   isRgbTuple('red') // false
 *   ```
 *
 * @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.
 *
 * @example
 *   ;```typescript
 *   toRgb('red') // [255, 0, 0]
 *   toRgb([0, 128, 0]) // [0, 128, 0]
 *   ```
 *
 * @param color - Color name or RGB tuple.
 *
 * @returns RGB tuple with values 0-255
 */
export declare function toRgb(color: ColorValue): ColorRgb;
