/** * Tab stops of body text (#622): reading their settings and resolving them * to px for the measurer (`measure/tabs.ts`). A stop whose position is no * length, `'end'` or percentage is left out (`collectConfigWarnings` says * so); an unknown `align` reads as `'start'`. */ import type { Dimension, TabStop, TabStopAlign, TabStopPosition } from '../types.js'; import { type TabSettings, type TabStopPx } from '../measure/tabs.js'; /** The default room between a leader and the text on either side: the * contents' `leader.gap`. */ export declare const DEFAULT_TAB_LEADER_GAP: Dimension; export declare function isTabStopAlign(value: unknown): value is TabStopAlign; /** A length written as text (`120mm`, `3.5cm`, `2em`; a bare number is in * points), or undefined. */ export declare function parseLengthText(text: string): Dimension | undefined; /** A stop's position as the config (or a `:tab{at=…}`) writes it: a * `Dimension`, `'end'`, a percentage (`'50%'`) or a length as text. */ export declare function parseTabStopPosition(value: unknown): TabStopPosition | undefined; /** The stop of `:tab{at=… align=… leader=… gap=… decimal=…}` (#622), or * undefined when `at` is missing or no position. */ export declare function tabStopFromAttrs(attrs: Readonly>): TabStop | undefined; /** One stop in px: lengths at `dpi`, `em` of the paragraph's size, the * leader gap at its default, the decimal separator the locale's. Undefined * for a stop whose position is no position. */ export declare function resolveTabStopPx(stop: TabStop, dpi: number, fontSizePx: number, locale: string | undefined): TabStopPx | undefined; /** A paragraph's tab stops and default interval in px; undefined when it * has neither. */ export declare function resolveTabSettings(stops: readonly TabStop[] | undefined, interval: Dimension | undefined, dpi: number, fontSizePx: number, locale: string | undefined): TabSettings | undefined; //# sourceMappingURL=tabStops.d.ts.map