import { ContentFont, TextRun } from './content.js'; import { PdfDict } from '../pdf/objects.js'; import { PdfFile, PdfPage } from './document.js'; /** * Extract a page's text as positioned {@link TextRun}s (E-PDF EP2/EP8/EP13). * Interprets the page content stream and, recursively, the Form XObjects it * paints (EP13 — their text would otherwise be missed), then tags any run whose * origin falls inside a `/Link` annotation's `/Rect` with that link's URI (EP8) * so hyperlinks survive. * * @param file The owning {@link PdfFile}. * @param page The page to extract. * @returns The page's runs, each carrying an `href` when it sits under a link. */ export declare function extractPageText(file: PdfFile, page: PdfPage): Array; /** * The `/Font` resources of one dictionary, built into interpreter fonts. Shared * with the path and picture walks, which need them for one thing only: a Type 3 * font's glyphs are content streams (§9.6.5), and a walk that interprets with * no fonts at all cannot see that there is anything to run. * * @param file The owning file. * @param resources The resource dictionary to read `/Font` from. * @returns Resource name → font, skipping any the reader cannot build. */ export declare function buildFonts(file: PdfFile, resources: PdfDict | undefined): Map;