import type { DisplayState } from './widgetApi'; /** A single quality health check from a widget about its configuration/data. */ export interface ConfigurationHealthCheck { /** Machine-readable identifier, e.g. 'categoryCount', 'rowVariety'. */ code: string; /** Human-readable description, e.g. '12 categories — good distribution'. */ description: string; suggestions?: string; /** Quality score: 0 = terrible, 0.5 = acceptable, 1 = perfect. */ score: number; } /** Collect health checks using a push callback, filtering out undefined values. */ export declare function collectHealthChecks(fn: (push: (check: ConfigurationHealthCheck | undefined) => void) => void): ConfigurationHealthCheck[]; export interface DiagnosticsResult { displayState: keyof DisplayState; /** Per-aspect quality health checks from the widget. */ healthChecks: ConfigurationHealthCheck[]; }