import type { LineBoxFn } from './paragraph-layout.js'; import type { LayoutPageBox } from './result.js'; /** Where text may not go on a page, in page coordinates (CSS pixels). */ export interface Exclusion { xPx: number; yPx: number; widthPx: number; heightPx: number; /** Top-and-bottom wrapping keeps both sides empty. */ topAndBottom: boolean; } /** Areas that wrapped floating pictures take from the text, per page index. */ export declare function wrapExclusions(pages: LayoutPageBox[]): Map; /** Whether two exclusion maps place the same areas (to stop re-laying out once floats settle). */ export declare function sameExclusions(a: Map, b: Map): boolean; /** * Line boxes for a paragraph whose first line starts at `topPx` (page coordinates) in a column * spanning `columnLeftPx`..`columnLeftPx + columnWidthPx`: lines beside a picture use the wider * side of it (Word's "largest side"), and lines that cannot fit beside it move below it. */ export declare function lineBoxesFor(exclusions: readonly Exclusion[], topPx: number, columnLeftPx: number, columnWidthPx: number): LineBoxFn; //# sourceMappingURL=wrap.d.ts.map