/** * Tailwind config loader — Spec 10. * * Loads a project's Tailwind configuration to resolve design tokens * (colors, spacing, font sizes, etc.) for utility expansion. * * Three-tier resolution: * 1. Tailwind v3 JS config (tailwind.config.js / tailwind.config.ts) * 2. Tailwind v4 CSS config (@theme blocks in CSS files) * 3. Bundled default design tokens (Tailwind v4 defaults) * * Falls back gracefully — no config means we use defaults only. */ import type { StyleToken } from './types.js'; /** Raw tailwind theme tokens extracted from config. */ export interface TailwindThemeTokens { colors: Record; spacing: Record; fontSize: Record; borderRadius: Record; } /** Config file discovery result. */ export interface TailwindConfigResult { tokens: TailwindThemeTokens; /** How the config was resolved. */ source: 'v3-js' | 'v4-css' | 'defaults' | 'none'; configPath: string | null; } /** * Load Tailwind config tokens from a project root. * Returns default tokens if no config is found — this is always graceful. */ export declare function loadTailwindConfig(projectRoot: string): TailwindConfigResult; /** * Get the tokens as StyleToken[] for storage in the style index. */ export declare function tokensToStyleTokens(result: TailwindConfigResult, projectRoot: string): StyleToken[]; //# sourceMappingURL=tailwindConfigLoader.d.ts.map