/** * Packaging a native chart's missing half, for DOCX. * * The repairs themselves — the cell references that fill an empty ``, the * series colours, the axis titles, the legend position and `c:externalData` — * are format-neutral and live in `chart-parts` in * `@json-to-office/shared/rendering`, which explains why a chart emitted by * `@office-open` needs repairing at all. A `c:chartSpace` is DrawingML: the * pptx sibling of this file makes exactly the same edits. * * What is here is only what a Word package spells its own way — `word/charts`, * `word/embeddings`, the chart's rels part, the content-type override — plus * adm-zip, which is this core's archive library. */ import type AdmZip from 'adm-zip'; import type { DocxIrChartRun } from '../../ir/types'; /** * Give every chart in the package its workbook, colours and axis titles. * * Parts are matched to IR nodes by content rather than by position: the emitter * fills its array while *building* the backend's document object and the * backend numbers its parts while *stringifying* that object, and the two walks * disagree the moment a chart sits in a header or footer. Pairing by position * handed charts another chart's workbook, so a recipient choosing "Edit Data" * saw a different chart's numbers. */ export declare function spliceChartParts(zip: AdmZip, charts: readonly DocxIrChartRun[]): void; //# sourceMappingURL=chartParts.d.ts.map