import { ExtractedContent } from './types'; /** * ContentExtractor - Extracts text, structure, and metadata from document buffers */ export declare class ContentExtractor { /** * Extract text content from a buffer * @param buffer - The document buffer * @param mimeType - MIME type of the document * @param language - Optional language/type identifier * @returns Extracted content with text, structure, and metadata */ extractText(buffer: Buffer, mimeType: string, language?: string): ExtractedContent; /** * Extract markdown structure from text (headers → sections) * @param text - Markdown text content * @returns Array of sections */ private extractMarkdownStructure; /** * Extract code structure (functions, classes) using regex * @param text - Code text content * @param language - Programming language * @returns Array of sections */ private extractCodeStructure; /** * Extract TypeScript/JavaScript functions and classes */ private extractTypeScriptStructure; /** * Extract Python functions and classes */ private extractPythonStructure; /** * Check if a language is a code language */ private isCodeLanguage; /** * Calculate word count from text */ private calculateWordCount; /** * Calculate line count from text */ private calculateLineCount; } //# sourceMappingURL=content-extractor.d.ts.map