/** * Resolves a CSS variable reference to a 6-character hex string at runtime. * * Uses `getComputedStyle` on `` to read the token value the browser has * already computed. Works for any CSS custom property registered on `:root`. * * @param cssVar - A CSS var() expression, e.g. 'var(--tailwind-colors-blue-700)'. * @returns A '#rrggbb' hex string, or null if the variable cannot be resolved * or its value is not a recognisable color format. * * @example * resolveCssVarToHex('var(--tailwind-colors-blue-700)') // → '#1d4ed8' * resolveCssVarToHex('#2563eb') // → null (not a var()) * resolveCssVarToHex('var(--unknown)') // → null (not defined) */ declare const resolveCssVarToHex: (cssVar: string) => string | null; export default resolveCssVarToHex;