import { r as SummaryStrings } from "./summary-D8UEQXYr.js"; import { n as Format } from "./format-Dq02z5ZL.js"; import { CSSProperties, ReactNode } from "react"; //#region src/core/strings-confusion.d.ts type ConfusionStrings = Pick; //#endregion //#region src/charts/confusion-grid/index.d.ts interface ConfusionGridDatum { labels: readonly string[]; counts: readonly (readonly number[])[]; } interface ConfusionGridProps { data: ConfusionGridDatum; /** `"row"` = recall view (of the actual X, where did predictions go?). */ normalize?: "row" | "none" | undefined; /** `"errors"` accents the largest off-diagonal cell instead of the diagonal. */ accent?: "diagonal" | "errors" | undefined; /** Overall accuracy % in the gutter — off by default (opt-in). */ label?: "accuracy" | "none" | undefined; /** Cell shape (shared vocabulary). */ shape?: "square" | "round" | undefined; color?: string | undefined; size?: number | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: ConfusionStrings | undefined; /** Minimum in-chart label size, in viewBox units. Geometry sizes labels from * the mark and floors them at 7; this raises that floor and moves the * reserved gutter with it. A label the box cannot seat at the raised floor * drops rather than shrinking back under it. */ labelSize?: number | undefined; title?: string | undefined; summary?: string | false | undefined; id?: string | undefined; className?: string | undefined; style?: CSSProperties | undefined; children?: ReactNode | undefined; } /** Shared summary — accuracy + the worst confusion (row-normalized phrasing). * Clamps to the same k ≤ 4 the visual renders (see the component's `kk`) — * otherwise a k > 4 matrix would announce an accuracy/confusion the grid * itself never shows, a real accessible-name/visual mismatch. */ declare function confusionSummary(data: ConfusionGridDatum, strings: ConfusionStrings, /** Percent formatter (FRACTION in) for accuracy + the worst-confusion share. * Pass the same one the accuracy label renders with — a literal `${n}%` left * the accessible name in en-US while the painted label followed `locale`. */ pct?: (fraction: number) => string): string; declare function ConfusionGrid(props: ConfusionGridProps): ReactNode; /** Overall accuracy (trace / total). Used by both entries for identical gutters. */ declare function confGeoAccuracy(counts: readonly (readonly number[])[], k: number): number; //#endregion export { confusionSummary as a, confGeoAccuracy as i, ConfusionGridDatum as n, ConfusionGridProps as r, ConfusionGrid as t };