import type { PdfPageContent } from '../models/PdfPageContent.js'; /** * Enhanced PdfPageComposer with structural analysis for reliable page composition. * Uses content flow analysis, typography patterns, and semantic structure detection. */ export declare class PdfPageComposer { /** * Analyze and compose pages that have continuous content flow. * @param pages Array of PDF page content * @returns Array of composed pages with merged continuous content */ static composePages(pages: PdfPageContent[]): PdfPageContent[]; /** * Check if content flows continuously from one page to the next using structural analysis. */ private static hasContentContinuity; /** * Detect if a page is a cover page (standalone). */ private static isCoverPage; /** * Detect if a page starts a new section. */ private static isNewSectionStart; /** * Analyze the content type of a page. */ private static analyzeContentType; /** * Check text flow continuity between pages. */ private static hasTextFlowContinuity; /** * Check for interview-specific flow continuity patterns. */ private static hasInterviewFlowContinuity; /** * Check typography consistency between pages. */ private static hasTypographyConsistency; /** * Get the ratio of header elements to total text elements. */ private static getHeaderRatio; /** * Check structural continuity between pages. */ private static hasStructuralContinuity; /** * Compose multiple pages into a single page with proper element ordering. * Uses the same advanced algorithm as PdfElementComposer for consistent ordering. */ private static composePageGroup; /** * Order elements spatially while preserving page context. * Elements from the same original page stay together in proper reading order. * * IMPORTANT: We preserve the original element order from PdfElementComposer, * which has already established proper column-based reading order. * We only ensure pages are concatenated in the correct sequence. */ private static orderElementsSpatially; private static getTextElements; private static getCleanPageText; private static getCleanText; private static getDominantFontCharacteristics; private static getElementTypeDistribution; } //# sourceMappingURL=PdfPageComposer.d.ts.map