import { type XmlDocument } from '../xml/index.js'; import { type XmlElement } from './dom.js'; import type { DiagramConnection, DiagramDataModel } from './types.js'; /** * `transitionPointModelId -> text` for every transition point that carries non-empty text. * Generic over the point representation so pptx can feed it its object-tree points. */ export declare function collectTransitionText(points: Iterable, describe: (point: T) => { type?: string; modelId?: string; }, text: (point: T) => string): Map; /** The label of a connection: the parent transition's text, else the sibling transition's. */ export declare function connectionLabel(connection: DiagramConnection, transitionText: ReadonlyMap): string | undefined; /** Paragraphs of a `dgm:t` / `dsp:txBody` text body: the concatenated `a:t` of each `a:p`. */ export declare function textBodyParagraphs(body: XmlElement | undefined): string[]; /** Parses a data model part. Malformed XML throws; structural problems are returned as `issues`. */ export declare function parseDiagramDataModel(source: string | XmlDocument, part?: string): DiagramDataModel; //# sourceMappingURL=data-model.d.ts.map