import type { StatsFinding, StatsSeverity } from './types.js';
import { type FacetItem } from './facets.js';
export interface MetricItem {
    label: string;
    value: string;
    hint?: string;
}
export declare function escHtml(value: string): string;
export declare function renderSection(title: string, body: string, className?: string): string;
export declare function renderDefinitionList(entries: Array<{
    label: string;
    value: string;
}>, className?: string): string;
/**
 * The single source of metadata content for every report and panel surface
 * — built from `buildFacetTable` over the actual item(s), never a
 * first-wafer-wins shortcut (e.g. `LotStatsSummary.lot`) or a per-file
 * known-key list, both of which can silently drop a field that varies
 * across the population and can drift from what the live Summary panel
 * shows (`buildMetadataInfoSection` in canvas-adapter/summaryPanel.ts,
 * which calls the same `buildFacetTable`). A population of one wafer is
 * just a facet table where every field has exactly one value, so the
 * wafer- and lot-level reports render identical content for the same
 * underlying metadata — never two independently-derived renderings.
 */
export declare function buildMetadataRows(items: FacetItem[]): Array<{
    label: string;
    value: string;
}>;
/** `buildMetadataRows` wrapped in a titled section. Returns `''` when there's nothing to show. */
export declare function renderMetadataSection(items: FacetItem[]): string;
export declare function renderMetricGrid(items: MetricItem[]): string;
export declare function renderTable(headers: string[], rows: string[][], options?: {
    className?: string;
    emptyMessage?: string;
}): string;
export declare function renderSeverityBadge(severity: StatsSeverity): string;
export declare function formatFindingDelta(finding: Pick<StatsFinding, 'effect' | 'variable'>): string;
export declare function formatFindingTooltip(finding: StatsFinding): string;
export declare function formatFindingCoverage(finding: Pick<StatsFinding, 'stats'>, total?: number): string;
export declare function reportStyles(): string;
//# sourceMappingURL=reportHtml.d.ts.map