
import { SpectrumValueEntry } from "../../types/dist/index.js";
//#region src/tokens/utils/spectrum.d.ts
/**
 * Validates and coerces a value to a 0-255 integer.
 * Accepts both string ("128") and numeric (128) inputs.
 * Returns null for invalid values.
 *
 * Used by toSpectrumValueEntry below, and directly
 * by spectrumColorUtils (configurator) for hex-to-rgb conversion.
 */
declare function toRgbChannel(value: unknown): number | null;
/**
 * Normalizes a spectrum value (unknown shape) into a SpectrumValueEntry.
 *
 * Returns undefined for null/undefined input.
 * Returns the original reference when already normalized to avoid
 * unnecessary object churn in memo comparators.
 *
 * Used by parseTokens (CSS variable injection), spectrumColorUtils
 * (configurator previews/comparators), elevationUtils (shadow color
 * resolution), and figma-data (Figma variable sync).
 */
declare function toSpectrumValueEntry(value: unknown): SpectrumValueEntry | undefined;
/**
 * Converts a SpectrumRGB to a space-separated string.
 * Returns null for invalid input instead of throwing.
 *
 * Used by parseTokens (CSS variable values), spectrumColorUtils (equality
 * comparators and hex/css conversion), elevationUtils (Color library input),
 * and figma-data (Figma 0-1 RGB conversion).
 */
declare function spectrumRgbToString(rgb: SpectrumValueEntry['rgb']): string | null;
//#endregion
export { spectrumRgbToString, toRgbChannel, toSpectrumValueEntry };