/** * Theme builder for Tailwind v4 CSS variables * Converts raw CSS variables into structured theme objects */ import type { CSSVariable, DeprecationWarning, NestingOptions, OverrideOptions, Theme, ThemeVariant } from '../../types'; import type { CSSRuleConflict } from '../analysis/conflicts'; import type { UnresolvedVariable } from '../analysis/unresolved'; import type { CSSRuleOverride } from '../extraction/rules'; /** * Builds structured Theme objects from raw CSS variables and keyframes * * Separates base theme from variants (e.g., dark mode, custom themes) * Resolves var() references from @theme to :root/:variant values * Detects and applies CSS rule overrides when safe to do so * * @param variables - Array of CSS variables resolved from parsing * @param keyframes - Map of keyframe name to CSS string * @param cssRules - Array of CSS rule overrides from variant selectors * @param defaultVariables - Optional original CSS variables from Tailwind defaults (preserves variable names for resolution) * @param overrides - Optional theme value overrides * @param nestingConfig - Optional nesting configuration for parsing variable keys * @param debug - Enable debug logging for overrides * @returns Object with base theme, variants, deprecation warnings, and conflicts */ export declare function buildThemes(variables: Array, keyframes: Map, cssRules: Array, defaultVariables?: Array, overrides?: OverrideOptions, nestingConfig?: NestingOptions, debug?: boolean): { theme: Theme; variants: Record; deprecationWarnings: Array; cssConflicts: Array; variables: Array; unresolvedVariables: Array; };