import type { LeafletFacet, LeafletRenderableBlock } from "./types.js"; /** * A single footnote referenced somewhere in the document body. Leaflet stores * footnotes inline on the rich-text facet feature (`#footnote`) that marks the * reference — the body isn't a separate block — so we collect them up front to * assign stable, sequential numbers and render an endnotes list. */ export interface LeafletFootnote { /** `footnoteId` from the facet feature — shared by the reference + entry. */ id: string; /** 1-based display number in document order. */ number: number; contentPlaintext: string; contentFacets?: Array; } export interface LeafletFootnoteIndex { /** Footnotes in document order, deduped by id. */ footnotes: Array; /** `footnoteId` → display number, for the inline reference renderer. */ numberById: Map; } /** * Collect every footnote in the document, numbered in reading order and deduped * by id (a footnote referenced twice keeps one entry / one number). Returns both * the ordered list (for the endnotes section) and an id→number map (for the * inline superscript references). */ export declare function collectLeafletFootnotes(blocks: Array): LeafletFootnoteIndex; //# sourceMappingURL=footnotes.d.ts.map