import type { VDTLine, VDTLineSegment } from '../vdt.js'; import type { TextAlign } from '../types.js'; import { type MeasuredBlock, type MeasureBlockOptions } from './types.js'; /** * Whether a Knuth–Plass line runs past its measure even with its spaces * removed: a word wider than the whole line has no feasible break around * it, and the search then sets it — with everything before it back to the * last feasible break — on one overfull line. A ragged line's spaces do not * shrink (`rigidSpaces`): they count. */ export declare function hasOverfullLine(lines: VDTLine[], lineWidth: (lineIndex: number) => number, rigidSpaces?: boolean): boolean; /** The painted word-space ratio of a justified line that is not the last * (`VDTLine.justifiedSpaceRatio`); the breakers call `justifiedSpaceRatios`, * which gives the ratio the limits bound too (#704). */ export declare function computeJustifiedSpaceRatio(segments: VDTLineSegment[], lineMaxWidth: number, normalSpaceWidth: number, textAlign: TextAlign, isLastLine: boolean): number | undefined; /** * Measure a text block: break it into lines within maxWidthPx * and return VDTLine data with bounding boxes. * * The returned lines have bbox positions relative to the block origin (0,0). * The pipeline will offset them to absolute page coordinates later. */ export declare function measureBlock(text: string, font: string, maxWidthPx: number, lineHeightPx: number, options?: MeasureBlockOptions): MeasuredBlock; //# sourceMappingURL=plain.d.ts.map