/** One entry of a `.rels` part. */ export interface DiagramRelationshipEntry { id: string; type: string; target: string; } /** What the resolver needs from the package that hosts the diagram. */ export interface DiagramPartHost { /** Relationships (id -> target) of the part that holds the `dgm:relIds` (slide, `word/document.xml`). */ hostRelationships(hostPart: string): ReadonlyMap | undefined; /** Resolves a relationship target against the part that declared it. */ resolvePath(basePart: string, target: string): string; /** Entries of a `.rels` part, or `undefined` when it is absent or unreadable; malformed XML is the host's to swallow. */ readRelationshipEntries(relsPart: string): Promise; } /** `ppt/diagrams/data1.xml` -> `ppt/diagrams/_rels/data1.xml.rels`. */ export declare function diagramRelationshipsPart(partPath: string): string; /** * Resolves the cached drawing of a diagram, in the order producers use: the `dsp:dataModelExt` * relationship id on the host part, a drawing relationship the host carries without an extension, * then a `diagramDrawing` relationship on the data part itself (older files). */ export declare function resolveDiagramDrawingPart(hostPart: string, dataRelId: string, drawingExtensionRelId: string, host: DiagramPartHost): Promise<{ relId: string; path: string; } | undefined>; /** Relationship types of the five diagram parts, in `dgm:relIds` order plus the cached drawing. */ export declare const DIAGRAM_RELATIONSHIP_TYPES: { readonly data: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData"; readonly layout: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout"; readonly quickStyle: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle"; readonly colors: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors"; readonly drawing: "http://schemas.microsoft.com/office/2007/relationships/diagramDrawing"; }; //# sourceMappingURL=relationships.d.ts.map