officeparser 5.2.1 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * OpenDocument Format (ODF) Parser
3
+ *
4
+ * **ODF Overview:**
5
+ * ODF is an open standard for office documents (ISO/IEC 26300).
6
+ * Used by LibreOffice, OpenOffice, and other applications.
7
+ *
8
+ * **File Structure:**
9
+ * ODF files are ZIP archives containing:
10
+ * - `mimetype` - File type identification
11
+ * - `content.xml` - Main document content
12
+ * - `styles.xml` - Style definitions
13
+ * - `meta.xml` - Document metadata
14
+ * - `Pictures/*` - Embedded images
15
+ *
16
+ * **Supported Formats:**
17
+ * - ODT: Text documents (application/vnd.oasis.opendocument.text)
18
+ * - ODP: Presentations (application/vnd.oasis.opendocument.presentation)
19
+ * - ODS: Spreadsheets (application/vnd.oasis.opendocument.spreadsheet)
20
+ *
21
+ * @module OpenOfficeParser
22
+ */
23
+ /// <reference types="node" />
24
+ import { OfficeParserAST, OfficeParserConfig } from '../types';
25
+ /**
26
+ * Parses an OpenOffice document (.odt, .odp, .ods) and extracts content.
27
+ *
28
+ * @param buffer - The ODF file as a Buffer
29
+ * @param config - Parser configuration
30
+ * @returns A promise resolving to the parsed AST
31
+ */
32
+ export declare const parseOpenOffice: (buffer: Buffer, config: OfficeParserConfig) => Promise<OfficeParserAST>;