import { MathNode } from '../core/document-model/index.js'; import { TextRun } from './content.js'; /** A matrix found on the page: what to draw, where, and which runs it used. */ export interface MathBlock { /** The math object — a row of delimiters and whatever stands between them. */ readonly math: MathNode; /** The top baseline it was drawn on, for ordering the page's blocks. */ readonly top: number; /** Where it stands across the page. */ readonly x: number; readonly width: number; /** The runs it consumed, which the prose reading must not read again. */ readonly used: ReadonlySet; } /** * The matrices a page's rows hold (§22.1.2.68 `m:m`). * * @param runs The column's runs. * @param fontSize The text's own size, which says how far apart the lines of * PROSE stand — a display's sub-lines stand closer. * @returns One entry per matrix found, in page order. */ export declare function matrixBlocks(runs: ReadonlyArray, fontSize: number): Array;