import { type DiagramPartHost } from './relationships.js'; import type { DiagramColorsDefinition, DiagramDataModel, DiagramDrawing, DiagramIssue, DiagramLayoutSummary, DiagramQuickStyleDefinition, DiagramRelationshipIds } from './types.js'; /** A part host that can also read part text. */ export interface DiagramPackageHost extends DiagramPartHost { /** The text of a part, or `undefined` when the package has no such part. */ readText(partPath: string): Promise; } /** Package paths of the diagram parts that could be resolved. */ export interface DiagramPartPaths { data?: string; layout?: string; quickStyle?: string; colors?: string; drawing?: string; } /** Every part of a diagram, parsed, with the problems met on the way. */ export interface LoadedDiagram { relationshipIds: DiagramRelationshipIds; paths: DiagramPartPaths; /** Relationship id (in the host part) of the cached drawing, when one was found. */ drawingRelId?: string; data?: DiagramDataModel; layout?: DiagramLayoutSummary; colors?: DiagramColorsDefinition; quickStyle?: DiagramQuickStyleDefinition; /** The cached layout. Absent when the producer wrote none: only the data model then describes the diagram. */ drawing?: DiagramDrawing; issues: DiagramIssue[]; } /** * Resolves and parses the five parts of a diagram referenced by `relationshipIds` from * `hostPart` (a slide, `word/document.xml`, a header...). Missing relationships, missing parts and * parse failures become `issues`; the other parts still load. */ export declare function loadDiagram(hostPart: string, relationshipIds: DiagramRelationshipIds, host: DiagramPackageHost): Promise; //# sourceMappingURL=load.d.ts.map