import type { VDTLine } from '../vdt.js'; /** Word-space ratio (justified over natural) past which a justified line * is set ragged instead of stretched. */ export declare const LINE_MAX_SPACE_RATIO = 3; /** * A justified line the breaker could not fill — a long link that breaks * only at its own joints, a list item whose last word cannot come up and * whose every hyphenation leaves a runt — would have its few word spaces * stretched to several times their width. Such lines are set ragged (like * a paragraph's last line): the text keeps its natural spacing and the * right edge gives instead. The ratio the line would have needed is kept * as `raggedSpaceRatio` (#732), which the layout reports as a `raggedLine` * content warning: a line left short in a justified paragraph is a thing * its author wants to know of. Lines within the threshold are left as * measured. * * A line set ragged also drops the justification tracking the breaker gave * it (`VDTLine.letterSpacing`, `bodyText.maxJustifyTracking`): its letters * go back to their natural widths too, rather than stay letter-spaced on a * ragged edge. */ export declare function raggedLooseLines(lines: VDTLine[], textAlign: string | undefined): VDTLine[]; //# sourceMappingURL=raggedLines.d.ts.map