/** * DOCX Module - OpenDocument Text (ODT) Format Support * * Implements reading and writing of ODT (OpenDocument Text) files. * ODT files are ZIP archives containing XML content in ODF namespaces. * * Main archive structure: * - content.xml — document body and automatic styles * - styles.xml — named styles, page layout, master pages * - meta.xml — document metadata * - META-INF/manifest.xml — manifest of all archive entries * - Pictures/ — embedded images * * @stability experimental */ import type { DocxDocument } from "../../types.js"; /** * Read an ODT file and convert to DocxDocument model. * * Extracts the ZIP archive, parses content.xml, styles.xml, and meta.xml, * and produces a unified DocxDocument representation. * * @param buffer - The ODT file as a Uint8Array. * @returns A DocxDocument representing the ODT content. * @throws {DocxParseError} If the ODT file is malformed or missing required parts. * * @stability experimental */ export declare function readOdt(buffer: Uint8Array): Promise; /** * Convert a DocxDocument to ODT (OpenDocument Text) format. * * Generates the ZIP archive structure with content.xml, styles.xml, * meta.xml, and META-INF/manifest.xml. * * @param doc - The DocxDocument to convert. * @returns A Uint8Array containing the ODT ZIP archive. * * @stability experimental */ export declare function writeOdt(doc: DocxDocument): Promise;