import { type LayoutFontSpec, type TextMeasurer } from './measure.js'; import type { BreakToken } from './text-breaks.js'; import type { LayoutParagraph } from './input.js'; import { type PlacedToken } from './paragraph-tokens.js'; /** Where a token's box sits relative to the baseline: its extent above and below it. */ export declare function tokenExtent(token: BreakToken, paragraph: LayoutParagraph, fonts: LayoutFontSpec[], measurer: TextMeasurer): { above: number; below: number; ascent: number; descent: number; }; /** * A line's height and baseline: the tallest extent above and below the baseline over its tokens * (inline pictures sit on the baseline), scaled by the paragraph's line spacing. Word adds extra * spacing above the text, so the baseline sits one descent above the line's bottom. */ export declare function lineMetrics(placed: PlacedToken[], fonts: LayoutFontSpec[], paragraph: LayoutParagraph, measurer: TextMeasurer): { heightPx: number; baselinePx: number; }; //# sourceMappingURL=line-metrics.d.ts.map