import type { DesignTokens, ThemeVariables } from "./types.ts"; export declare function normalizeColor(value: string): string | null; /** * Extract design tokens from CSS text. * When `resolvedCssVars` is provided (from Playwright getComputedStyle), * var() references are resolved to actual values before normalization. */ export declare function extractDesignTokens(css: string, resolvedCssVars?: Record): DesignTokens; export declare function mapToThemeVariables(tokens: DesignTokens): ThemeVariables; /** * Override theme variables with actual computed CSS values from section specs. * Computed styles (from getComputedStyle in the browser) are more reliable than * CSS regex extraction, especially for CMS sites using CSS variables/inline styles. */ export declare function augmentThemeFromComputedStyles(theme: ThemeVariables, sectionStyles: Array<{ container: Record; heading?: Record; bodyText?: Record; cta?: Record; }>, hoverStates?: Array<{ triggerTarget: string; changedStyles: Record; }>): ThemeVariables;