/** * Heading designs cut off by the page (EF-91). A heading whose reserved * height reaches past the foot of its column claims the rest of the column * (of the page, for an opener), so nothing runs under it — but a design * taller than the page itself still loses what lies past the page's foot * (an opener, painted across the page) or past its column's foot (an * in-column design, which canvas and PDF cut at its column's foot). The layout * does not report it: a cover whose design claims the page is the usual * case and loses nothing, so `VDTDocument.warnings` stays as it is. A host * that wants to know runs this check on the finished layout; the Sandbox * lists its results in the Checks panel. */ import { type VDTDocument } from '../vdt.js'; /** A heading design laid out past the foot of what can print it. */ export interface HeadingDesignCut { kind: 'headingDesignCut'; /** Page of the heading, in its document. */ pageIndex: number; /** The heading's level. */ level: number; /** `'page'`: an opener's text runs past the foot of the page (its trim); * `'column'`: an in-column design's text runs past the foot of its * column. */ where: 'page' | 'column'; /** How far the lowest baseline of the design's text lies past that * foot, in px. */ overflowPx: number; /** Source range of the heading, for an editor to point at. */ sourceStart?: number; sourceEnd?: number; } /** * The heading designs of `doc` whose text is laid out past the foot of the * page (an opener) or of the heading's column (an in-column design), by * more than half a pixel: a long lead on a small screen page, say. Part * pages and blank versos are not headings and are not checked. Pure: reads * the finished layout only. */ export declare function collectHeadingDesignCuts(doc: VDTDocument): HeadingDesignCut[]; //# sourceMappingURL=headingDesignCuts.d.ts.map