import type { Rule } from "../types.js"; /** * Counts compliant (tokenized) color usages that should be counted as * opportunities without being counted as findings. This gives the score * formula a proper denominator so compliant repos score > 0. * * Counts: * - hsl/hsla/rgb/rgba/oklch wrapping a var() ref (CSS variable theming pattern) * - standalone var(--token) in CSS declaration position * - theme.colors.X / theme.palette.X / palette.X.Y / tokens.color.X in TS/TSX/JSX * - Tailwind utility color classes: bg-slate-900, text-white, border-red-500, etc. */ export declare function countCompliantColorUses(source: string, fileExt: string): number; export declare function detectInText(source: string, _path?: string, isCssSource?: boolean): { match: string; index: number; }[]; export declare const rule: Rule;