import type { Package } from './archive.js'; /** Well-known OPC relationship types (Transitional form). */ export declare const relType: { readonly OFFICE_DOCUMENT: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"; readonly STYLES: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"; readonly NUMBERING: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering"; readonly FOOTNOTES: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"; readonly ENDNOTES: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes"; }; export type TargetMode = 'internal' | 'external'; export interface Relationship { target: string; relType: string; mode: TargetMode; } export declare class Relationships { private readonly map; constructor(map?: Map); get(id: string): Relationship | undefined; internalTarget(id: string): string | undefined; entries(): IterableIterator<[string, Relationship]>; /** Internal-mode relationship of a given type, lowest id first. */ firstOfType(type: string): Relationship | undefined; } export declare function readRels(pkg: Package, part: string): Relationships; /** A loaded internal relationship target: its resolved part path and bytes. */ export type RelTarget = [string, Uint8Array]; export declare function relTargetBytes(pkg: Package, rels: Relationships, basePart: string, relId: string): RelTarget | undefined; /** Conventional rels part name for a part. */ export declare function relsPartFor(part: string): string;