import type { DocumentViewNode, ToonCommentMarkerMap } from './document_view-types.js'; /** * Format a single toon data line for one DocumentViewNode. * Handles table-context-aware style (th/td) and header stripping. */ export declare function formatToonDataLine(n: DocumentViewNode, options?: { compact?: boolean; commentMarkers?: ToonCommentMarkerMap; }): string; /** * Collect table marker info (dimensions) from nodes for #TABLE markers. * Column headers are NOT included in the marker — they appear once in the th() rows. */ export declare function collectTableMarkerInfo(nodes: readonly Pick[]): Map; /** * Format a #TABLE marker line from collected table info. * Headers are omitted — they appear exactly once in the th(0,N) data rows. */ export declare function formatTableMarker(info: { id: string; totalRows: number; totalCols: number; }): string; export declare function formatToonCommentLines(node: Pick): string[]; export declare function formatToonCommentEndnoteLines(node: Pick): string[]; export declare function formatToonCommentsEndnotesBlock(nodes: readonly Pick[]): string[]; /** * One footnote as rendered into the trailing `#FOOTNOTES` toon sidecar. Mirrors * the `#COMMENTS` endnote model: id, the referencing paragraph id(s), and the * body text. Multi-paragraph bodies are `\n`-joined (escaped) into one line. */ export type ToonFootnoteEndnote = { id: string; displayNumber: number; refParagraphIds: readonly string[]; paragraphs: readonly { text: string; }[]; }; /** * Build the trailing `#FOOTNOTES` sidecar block (empty when there are no * footnotes). Symmetric with {@link formatToonCommentsEndnotesBlock}: a header * marker line followed by one line per footnote, appended at the END of the * toon document. No new invariant — it is a read-only sidecar, like #COMMENTS. */ export declare function formatToonFootnotesEndnotesBlock(footnotes: readonly ToonFootnoteEndnote[]): string[]; export declare function renderToon(nodes: DocumentViewNode[], options?: { compact?: boolean; }): string; export declare function renderToonWithCommentEndnotes(nodes: DocumentViewNode[], options?: { compact?: boolean; }): string; //# sourceMappingURL=document_view-toon.d.ts.map