/** * Tailwind utility class expander — Spec 10. * * Expands Tailwind utility classes into normalized CSS declarations. * Uses design tokens from the config loader for value resolution. * * Three-tier resolution for values: * 1. Arbitrary values: mt-[17px] → margin-top: 17px * 2. Theme tokens: bg-blue-500 → background-color: #3b82f6 * 3. Fixed scale: rounded-lg → border-radius: 8px */ import type { NormalizedDeclaration } from './types.js'; import type { TailwindThemeTokens } from './tailwindConfigLoader.js'; /** * Expand a single Tailwind utility class into normalized declarations. * * @param className - The utility class (e.g. "bg-blue-500", "mt-4", "hover:bg-red-500") * @param tokens - Theme tokens from config loader (or defaults) * @param filePath - Source file path (for the declaration) * @param line - Line number (for the declaration) * @returns Array of NormalizedDeclaration, or empty if the class can't be expanded. */ export declare function expandUtility(className: string, tokens: TailwindThemeTokens, filePath: string, line: number): NormalizedDeclaration[]; /** * Expand variant-prefixed declarations by applying variantContext. * This is a convenience wrapper that first expands the utility, then * applies the variant context. * * @param variantPrefix - e.g. "hover", "sm:dark" * @param declarations - Declarations to apply the variant to */ export declare function expandVariant(variantPrefix: string, declarations: NormalizedDeclaration[]): NormalizedDeclaration[]; /** * Heuristic check: does this class name look like a Tailwind utility? * Used to skip non-utility class names without attempting expansion. */ export declare function looksLikeTailwind(className: string): boolean; //# sourceMappingURL=tailwindExpander.d.ts.map