officeparser 5.2.2 → 6.0.2

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,33 @@
1
+ /**
2
+ * PowerPoint Presentation (PPTX) Parser
3
+ *
4
+ * **PPTX Format Overview:**
5
+ * PPTX is the default format for Microsoft PowerPoint since Office 2007, based on OOXML.
6
+ *
7
+ * **File Structure:**
8
+ * - `ppt/presentation.xml` - Presentation structure and slide list
9
+ * - `ppt/slides/slide1.xml` - Individual slide content
10
+ * - `ppt/notesSlides/notesSlide1.xml` - Speaker notes
11
+ * - `ppt/slideLayouts/*` - Slide layout definitions
12
+ * - `ppt/media/*` - Embedded images and media
13
+ *
14
+ * **Key Elements:**
15
+ * - `<p:sld>` - Slide
16
+ * - `<p:txBody>` - Text body containing paragraphs
17
+ * - `<a:p>` - Paragraph
18
+ * - `<a:r>` - Text run with formatting
19
+ * - `<a:t>` - Text content
20
+ *
21
+ * @module PowerPointParser
22
+ * @see https://www.ecma-international.org/publications-and-standards/standards/ecma-376/
23
+ */
24
+ /// <reference types="node" />
25
+ import { OfficeParserAST, OfficeParserConfig } from '../types';
26
+ /**
27
+ * Parses a PowerPoint presentation (.pptx) and extracts slides and notes.
28
+ *
29
+ * @param buffer - The PPTX file as a Buffer
30
+ * @param config - Parser configuration
31
+ * @returns A promise resolving to the parsed AST
32
+ */
33
+ export declare const parsePowerPoint: (buffer: Buffer, config: OfficeParserConfig) => Promise<OfficeParserAST>;