import type { ContentBlock } from '../parse/index.js'; import type { LayoutContinuation } from '../types.js'; import { type ResolvedConfig, type ContentWarning, type VDTDocument } from '../vdt.js'; /** How a poem's fence numbers it: skipped (`numbered=false`), its own * interval (`interval=N`), its first line's number (`lineStart=N`). */ interface PoemNumbering { numbered: boolean; interval?: number; lineStart?: number; } /** The numbering a poem's fence asks for. */ export declare function poemNumbering(attrs: Readonly> | undefined): PoemNumbering; /** The `lineNumberOverlap` warnings of the last pass laid out as `doc`. */ export declare function lineNumberWarnings(doc: VDTDocument): ContentWarning[]; /** * Count the lines of `doc` and set the numbers of the printed ones in * `page.lineNumbers` (with `page.lineNumberMarks`), and the last number in * `doc.lastLineNumber`. `blocks` are the parsed content blocks the layout * was built from (`VDTBlock.contentIndex` points into them); * `continuation.lineNumber` is the number the count goes on from. A * vertical document gets no numbers. */ export declare function buildLineNumbers(doc: VDTDocument, blocks: readonly ContentBlock[], continuation: Pick | undefined): void; /** Recolour the numbers of the pages whose part or section palette * overrides the entry `lineNumbers.color` links to. */ export declare function recolorLineNumbers(doc: VDTDocument, palettes: readonly (Record | undefined)[]): void; /** * The number of the last line of verse in `blocks` (#621), counted from * `before` as the layout counts it, when `lineNumbers` counts verse: a * book laid out one chapter at a time hands it on (`continuationAfter`). * Undefined when the count does not depend on the text alone (line * numbers off, or every line counted, which only the layout knows), so * the caller keeps what it had. */ export declare function lastVerseLineNumber(blocks: readonly ContentBlock[], resolved: ResolvedConfig, before: number | undefined): number | undefined; export {}; //# sourceMappingURL=lineNumbers.d.ts.map