/** * Leaders: a character (or a short text) repeated over a room, flush with * the room's end so the leaders of several lines line up. The contents' * rows (`pipeline/toc.ts`) and the tab stops of body text (#622, * `measure/tabs.ts`) both fit theirs here. */ /** Fewest repeats a leader is set with (#666): one dot between a title * and its page number reads as a full stop, two as a slip. A room for * fewer is left empty. */ export declare const MIN_LEADER_REPEATS = 3; /** * The leader run for `room` px: `char` repeated as often as one repeat's * width allows, or fewer times when the run, measured as a whole, is wider * than the room. A face may kern the character against itself: Public Sans * 700 sets one full stop 6.74 px wide at 25 px and a run of thirty at 7.58 * px a dot, and a leader counted from one dot then ran over the gap into * the page number (EF-148). `widthOf` measures a run as it is painted (the * leader's face, its tracking). Null when fewer than * {@link MIN_LEADER_REPEATS} fit. */ export declare function fitLeader(char: string, room: number, widthOf: (text: string) => number): { text: string; width: number; } | null; //# sourceMappingURL=leader.d.ts.map