import { ContentParagraph, ContentRun, LayoutFrame } from "document-schema.js"; import { LayoutText } from "pdf-codec"; //#region src/layout/reconstruct-lines.d.ts interface TextLine { readonly items: readonly LayoutText[]; readonly baselineY: number; } declare const HALF_POINT_BUCKET_PT = 0.5; declare function clusterIntoLines(items: readonly LayoutText[]): TextLine[]; declare function textItemVerticalExtent(item: LayoutText): { ascentPt: number; descentPt: number; }; declare function textItemToContentRun(item: LayoutText): ContentRun; declare const MIN_WORD_GAP_PT = 0.5; declare function gapExceeds(previous: LayoutText, next: LayoutText, thresholdPt: number): boolean; declare function textBoxOfItem(item: LayoutText, pageIndex: number): LayoutFrame; declare function lineBox(line: TextLine, pageIndex: number): LayoutFrame; declare function pushRunsForLine(runs: ContentRun[], line: TextLine, pageIndex: number): void; declare function bucketCounts(values: readonly number[], bucketSize: number): Map; declare function modeOf(values: readonly number[], bucketSize: number): number; declare const LARGE_GAP_EM_MULTIPLIER = 2; declare function fontSizesClose(a: number, b: number): boolean; declare const PARAGRAPH_GAP_MULTIPLIER = 1.25; declare function estimateModalLineSpacing(lines: readonly TextLine[]): number; interface TextParagraph { readonly lines: TextLine[]; } declare function clusterIntoParagraphs(lines: readonly TextLine[]): TextParagraph[]; declare const LEFT_ALIGN_TOLERANCE_PT = 2; declare function paragraphToContentParagraph(paragraph: TextParagraph, pageIndex: number, headingLevel: number | undefined): ContentParagraph; //#endregion export { pushRunsForLine as _, PARAGRAPH_GAP_MULTIPLIER as a, textItemVerticalExtent as b, bucketCounts as c, estimateModalLineSpacing as d, fontSizesClose as f, paragraphToContentParagraph as g, modeOf as h, MIN_WORD_GAP_PT as i, clusterIntoLines as l, lineBox as m, LARGE_GAP_EM_MULTIPLIER as n, TextLine as o, gapExceeds as p, LEFT_ALIGN_TOLERANCE_PT as r, TextParagraph as s, HALF_POINT_BUCKET_PT as t, clusterIntoParagraphs as u, textBoxOfItem as v, textItemToContentRun as y };