import type { Datum } from "./datumTypes";
export interface Diagnosis {
    severity: "error" | "warning";
    code: string;
    message: string;
    fix: string;
}
export interface DiagnosisResult {
    ok: boolean;
    diagnoses: Diagnosis[];
}
/** WCAG contrast ratio between two hex colors. Exported for reuse by the
 *  accessibility audit (auditAccessibility.ts) — single source of truth for the
 *  contrast math. Returns null if either color isn't a parseable hex. */
export declare function contrastRatio(hex1: string, hex2: string): number | null;
export declare function diagnoseConfig(componentName: string, props: Datum): DiagnosisResult;
