import { PdfFile } from './document.js'; import { Reconstruction } from './flow-build.js'; /** * Reconstruct a {@link Reconstruction} from a tagged PDF's logical structure * (E-PDF EP3 — the honest inverse of the tagged PDF Ream writes). Walks the * structure tree ({@link readStructTree}), pulls each element's text from the * per-page MCID → text map the content interpreter produced (EP2), and rebuilds * headings (`H1`–`H6` → outline level), paragraphs, tables (`Table` → `TR` → * `TH`/`TD`), list items (each `LI` → label + body) and figures (EP6 — each * `/Figure`'s MCID resolves to a lifted image carrying its `/Alt`). Images no * `/Figure` claims are appended in page + top-down order so nothing is lost. * * @returns The reconstructed document and image losses, or `undefined` when the * PDF carries no structure tree or yields no body content. */ export declare function reconstructTaggedPdf(file: PdfFile): Reconstruction | undefined;