import type { LayoutColumns, LayoutPageGeometry } from './input.js'; import type { LayoutBlockBox, LayoutColumnBox, LayoutFootnoteBox, LayoutPageBox } from './result.js'; /** Space for the short rule above a page's footnotes. */ export declare const FOOTNOTE_SEPARATOR_PX = 12; /** * Mutable fill-position bookkeeping for one section: which page/column is * currently being filled and how much vertical space remains in it. A new * `PageCursor` is created per section (see `page-flow.ts`'s approximation * that a continuous section break still starts a fresh page). */ export declare class PageCursor { readonly pages: LayoutPageBox[]; private readonly equalColumnWidthPx; readonly columnHeightPx: number; private geometry; private columns; private columnIndex; private yPx; private readonly sectionIndex; private pageInSection; /** Height taken by footnotes (and their separator) at the bottom of the current page. */ private reservedPx; /** Footnotes of the paragraph about to be placed; they join the page its first box lands on. */ private pending; constructor(pages: LayoutPageBox[], geometry: LayoutPageGeometry, columns: LayoutColumns, sectionIndex?: number); private pushPage; get page(): LayoutPageBox; get column(): LayoutColumnBox; get columnWidthPx(): number; get y(): number; get atColumnTop(): boolean; remainingHeightPx(): number; private pendingHeightPx; /** * Reserves room for a paragraph's footnotes on whichever page its first box is placed, so the * notes print on the same page as their reference, as Word does. */ holdFootnotes(blockId: string, notes: LayoutFootnoteBox[]): void; newPage(): void; /** Advances to the next column, or a new page when the section has no more columns. */ newColumn(): void; /** Places a box at the current fill position (sets its `yPx`) and advances by `advancePx`. */ place(box: LayoutBlockBox, advancePx: number): void; } //# sourceMappingURL=page-cursor.d.ts.map