export type RelsMap = Map; /** * Parse a document.xml.rels DOM and return a Map for external hyperlinks only. * Returns an empty map when the rels document is null (e.g. file missing from the DOCX archive). */ export declare function parseDocumentRels(relsDoc: Document | null): RelsMap; /** * Parse a document.xml.rels DOM into a Map covering every * hyperlink relationship — external URLs and internal (same-package) targets * alike. The value folds in the target mode so an external and an internal * relationship that happen to share a target string never collide. * * Used to salt atom identity with a hyperlink's *resolved* destination rather * than its raw r:id: Word keeps the same relationship id when a link's target * is edited in place (only the rels Target changes), so hashing the r:id alone * would miss the retarget. * * @conformance ECMA-376 edition 5, Part 1 § 17.16.22 * @see https://github.com/UseJunior/safe-docx/issues/376 */ export declare function parseHyperlinkRelTargets(relsDoc: Document | null): RelsMap; /** A hyperlink relationship's shippable destination. */ export interface HyperlinkRelEntry { target: string; /** True for `TargetMode="External"` (URLs); false for internal targets. */ external: boolean; } /** * Parse hyperlink relationships into structured entries keyed by rId, retaining * the target and its mode so a relationship can be re-emitted verbatim into a * merged package (issue #376, piece 2). */ export declare function parseHyperlinkRelEntries(relsDoc: Document | null): Map; /** * Collect every relationship id declared in a document.xml.rels DOM, so a * freshly-allocated id can be guaranteed collision-free against ALL existing * relationships (not just hyperlinks). Returns an empty set for a null doc. */ export declare function listRelationshipIds(relsDoc: Document | null): Set; //# sourceMappingURL=relationships.d.ts.map