import type { PageCursor } from './page-cursor.js'; import type { ParagraphLayoutResult } from './paragraph-layout.js'; import type { LayoutParagraph } from './input.js'; export interface ParagraphPlacement { paragraph: LayoutParagraph; layout: ParagraphLayoutResult; /** Spacing-before in px, with `w:contextualSpacing` suppression already resolved by the caller. */ spacingBeforePx: number; /** * Minimum height (including this paragraph and any `keepNext` chain after * it, as resolved by the caller) that must fit before this paragraph may * start; 0 when neither `keepNext` nor `keepLines` apply. */ requiredTogetherPx: number; /** Lays unconsumed tokens out at the cursor's new column width. */ reflow?: (startToken: number) => ParagraphLayoutResult; } /** * Places one paragraph's lines into `cursor`, splitting across page/column * boundaries as needed. Honors `pageBreakBefore`, the keep-together height * computed by the caller (chained `keepNext`/whole-paragraph `keepLines`), * default 2-line widow/orphan control, and any explicit page/column break * tokens carried on the paragraph's runs. */ export declare function placeParagraph(cursor: PageCursor, placement: ParagraphPlacement, note: (message: string) => void): void; //# sourceMappingURL=flow-paragraph.d.ts.map