/** * Page outline ("On this page"). * * A long artifact gets a table of contents built from its top-level titled * sections. It is derived from the IR alone, so it is deterministic, and it * only appears once there is enough structure to navigate: below the threshold * an outline is noise. */ import type { IrDocument } from '../ir.js'; /** Fewest titled top-level sections that justify an outline. */ export declare const OUTLINE_MIN_SECTIONS = 3; export interface OutlineEntry { anchor: string; title: string; } /** Always-visible titled sections that are direct children of the page root, in document order. */ export declare function outlineEntries(ir: IrDocument): OutlineEntry[]; export declare function hasOutline(ir: IrDocument): boolean; /** The outline navigation landmark, or an empty string when the page is too short. */ export declare function renderOutline(ir: IrDocument): string; //# sourceMappingURL=outline.d.ts.map