/** * Options for PowerPoint text extraction */ export interface PowerPointExtractOptions { /** * Preserve slide structure * @default true */ preserveSlideStructure?: boolean; /** * Include speaker notes * @default false */ includeNotes?: boolean; } /** * Result of PowerPoint text extraction */ export interface PowerPointExtractResult { /** * Extracted text content */ text: string; /** * Array of slides with their content */ slides: Array<{ slideNumber: number; content: string; }>; /** * Total number of slides */ totalSlides: number; /** * Metadata if available */ metadata?: { [key: string]: any; }; } /** * Result of PowerPoint metadata extraction */ export interface PowerPointMetadataResult { fileName: string; filePath: string; fileSize: number; lastModified: Date; totalSlides: number; /** * Additional metadata from document properties */ properties?: { [key: string]: any; }; } /** * Search result from PowerPoint */ export interface PowerPointSearchResult { match: string; context: string; slideNumber: number; position: number; } /** * Parser for PowerPoint (pptx) presentations */ export declare class PowerPointParser { /** * Extract text from a PowerPoint presentation * * @param filePath - Absolute path to the .pptx file * @param options - Extraction options * @returns Extracted text and slide content * * @example * ```typescript * const parser = new PowerPointParser(); * const result = await parser.extractText('presentation.pptx'); * console.log(result.text); * console.log(result.slides); * ``` */ extractText(filePath: string, options?: PowerPointExtractOptions): Promise; /** * Extract text from a specific slide * * @param filePath - Absolute path to the .pptx file * @param slideNumber - Slide number (1-indexed) * @returns Text content of the specified slide */ extractSlide(filePath: string, slideNumber: number): Promise; /** * Get metadata from a PowerPoint presentation * * @param filePath - Absolute path to the .pptx file * @returns Presentation metadata * * @example * ```typescript * const parser = new PowerPointParser(); * const metadata = await parser.getMetadata('presentation.pptx'); * console.log(metadata.totalSlides); * ``` */ getMetadata(filePath: string): Promise; /** * Search for text in a PowerPoint presentation * * @param filePath - Absolute path to the .pptx file * @param query - Search query * @param caseSensitive - Whether the search should be case-sensitive * @returns Array of match positions and context */ searchText(filePath: string, query: string, caseSensitive?: boolean): Promise; } //# sourceMappingURL=PowerPointParser.d.ts.map