import { PdfTextRun, PdfPageTextRuns } from '@embedpdf/models'; import { LayoutBlock, PageLayout } from './types'; /** * A layout block enriched with the text runs that spatially overlap it. */ export interface EnrichedLayoutBlock extends LayoutBlock { textRuns: PdfTextRun[]; } /** * Merge text runs with layout blocks based on spatial overlap. * * For each block, collects all text runs whose bounding rect intersects * the block's rect. Both are in PDF page coordinates (points). */ export declare function mergeTextRunsWithLayout(layout: PageLayout, textRuns: PdfPageTextRuns): EnrichedLayoutBlock[];