export type ColorDefinition = { ref: string; alpha?: number; } | { mix: [string, string]; weight: number; } | string; export type ThemeDefinition = { id: string; extends?: string; colors?: Record; styles?: Record; palette?: string[]; contrast?: { backdrops?: string[]; pairs?: { foreground: string; backgrounds: string[]; kind: "text" | "graphic"; }[]; }; }; /** @typedef {{ref: string, alpha?: number} | {mix: [string, string], weight: number} | string} ColorDefinition */ /** @typedef {{id: string, extends?: string, colors?: Record, styles?: Record, palette?: string[], contrast?: {backdrops?: string[], pairs?: {foreground: string, backgrounds: string[], kind: "text" | "graphic"}[]}}} ThemeDefinition */ /** @param {unknown} value */ export declare function normalizeThemeColor(value: unknown): string; /** * Resolve inheritance once and retain colour expressions for per-render overrides. * @param {readonly ThemeDefinition[]} definitions */ export declare function createThemeRegistry(definitions: readonly ThemeDefinition[]): Map>>; /** * Evaluate references after host overrides, with full dependency chains in errors. * @param {Record} definitions * @param {Record} [overrides] */ export declare function resolveColors(definitions: Record, overrides?: Record): Map;