declare const CHART_TYPES: readonly ["bar", "line", "area", "pie"]; type ChartType = (typeof CHART_TYPES)[number]; type ChartDatum = Record; interface ChartSeries { key: string; label?: string; } interface ChartValueFormat { compact?: boolean; decimals?: number; signed?: boolean; unit?: string; } interface ChartReference { label?: string; y: number; } interface ChartSpec { data: ChartDatum[]; donut?: boolean; format?: ChartValueFormat; highlight?: string; note?: string; refs?: ChartReference[]; series: ChartSeries[]; source?: string; stacked?: boolean; subtitle?: string; title?: string; type: ChartType; version: 1; x: string; xLabel?: string; y?: { max?: number; min?: number; }; } type ChartSpecResult = { ok: true; spec: ChartSpec; } | { error: string; ok: false; }; declare function parseChartSpec(input: unknown): ChartSpecResult; declare function stringifyChartSpec(spec: ChartSpec, space?: number): string; export { CHART_TYPES, ChartDatum, ChartReference, ChartSeries, ChartSpec, ChartSpecResult, ChartType, ChartValueFormat, parseChartSpec, stringifyChartSpec };