import type { AnnotationConfig } from "../annotation-input/types.js"; /** * AnnotationSummaryGroup — a collapsible group showing AGGREGATE stats over a * list of annotation values for one `AnnotationConfig` (M18). Reuses the M12 * `AnnotationConfig` contract (DRY, ADR D2) and dispatches on `config.type`: * - continuous → mean of the finite numeric values + count. * - categorical → count per option label + total count. * - freeform → count of non-empty values. * * Controlled and pure — the consumer owns `values` (fixture or backend store); * this component only summarizes. Uses a native `
`/`` for * zero-JS collapsibility; composes `Card`/`Badge`. Zero new dependency. * * */ export interface AnnotationSummaryGroupProps { /** The annotation config the values were collected against (reused from M12). */ config: AnnotationConfig; /** The collected annotation values to aggregate. */ values: (string | number)[]; /** Group heading; falls back to the config type when omitted. */ label?: string; /** Whether the group starts expanded. */ defaultOpen?: boolean; className?: string; } declare const AnnotationSummaryGroup: import("react").ForwardRefExoticComponent>; export { AnnotationSummaryGroup };