/** * The text side of an encoded chart: legend entries, the generated summary, * and the fallback table. Values are formatted with the chart's encoding, so * the summary, the table and the hover labels read the same. */ import type { NumberFormatter } from './chart-svg-parts.js'; import type { ChartInput, ChartTable, LegendEntry } from './chart-types.js'; /** One entry per series, only when there are two or more (colour then carries meaning). */ export declare function seriesLegend(input: ChartInput): LegendEntry[]; /** One entry per category, for kinds that colour each category (pie, donut). */ export declare function categoryLegend(input: ChartInput): LegendEntry[]; export declare function seriesSummary(input: ChartInput, format: NumberFormatter): string; /** The original series-by-category table, with formatted values. */ export declare function seriesTable(input: ChartInput, format: NumberFormatter): ChartTable; /** The table markup; the first cell of each row is its header. */ export declare function renderTable(caption: string, table: ChartTable): string; export declare function renderLegend(entries: readonly LegendEntry[]): string; //# sourceMappingURL=chart-text.d.ts.map