export interface OoxmlRelationship { id: string; target: string; type: string; targetMode?: string; } export declare class OoxmlPackage { private readonly zip; private readonly textCache; private constructor(); static load(buffer: ArrayBuffer): Promise; has(partPath: string): boolean; paths(prefix: string): string[]; text(partPath: string): Promise; xml(partPath: string): Promise; bytes(partPath: string): Promise; relationships(sourcePart: string): Promise>; } export declare function parseXml(source: string, label?: string): Document; /** * Checks raw XML for selected element names before paying the cost of a full * DOM tree. False positives are safe because they only select the slower * parser path; the tag boundary prevents cell values and longer tag names * from selecting it accidentally. */ export declare function xmlContainsAnyElement(source: string, localNames: readonly string[]): boolean; export declare function attribute(element: Element, name: string): string | null; export declare function xmlNamespacePrefix(element: Element, namespace: string | null): string | null; export declare function directChildren(parent: ParentNode, localName?: string): Element[]; export declare function directChild(parent: ParentNode, localName: string): Element | undefined; export declare function descendants(parent: ParentNode, localName: string): Element[]; export declare function firstDescendant(parent: ParentNode | null | undefined, localName: string): Element | undefined; export declare function childPath(parent: ParentNode | null | undefined, ...localNames: string[]): Element | undefined; export declare function resolvePartTarget(sourcePart: string, target: string): string; export declare function contentTypeForPart(partPath: string): string; export declare function bytesToDataUrl(bytes: Uint8Array, contentType: string): string;