/** * footnotes — OOXML footnote bootstrapping, CRUD, and display numbering. * * Creates footnote XML parts when missing, inserts footnote reference runs, * and supports reading, updating, and deleting footnotes. */ import { DocxZip } from './zip.js'; import { type RevisionContext } from './track-changes-emitter.js'; export type Footnote = { id: number; displayNumber: number; text: string; anchoredParagraphId: string | null; }; export type AddFootnoteParams = { paragraphEl: Element; afterText?: string; text: string; }; export type AddFootnoteResult = { noteId: number; }; export type BootstrapFootnoteResult = { partsCreated: string[]; }; export declare function isReservedFootnote(footnoteEl: Element): boolean; export declare function bootstrapFootnoteParts(zip: DocxZip): Promise; export declare function getFootnotes(zip: DocxZip, documentXml: Document): Promise; export declare function getFootnote(zip: DocxZip, documentXml: Document, noteId: number): Promise; export declare function addFootnote(documentXml: Document, zip: DocxZip, params: AddFootnoteParams, ctx?: RevisionContext): Promise; export declare function updateFootnoteText(zip: DocxZip, params: { noteId: number; newText: string; }, ctx?: RevisionContext): Promise; export declare function deleteFootnote(documentXml: Document, zip: DocxZip, params: { noteId: number; }, ctx?: RevisionContext): Promise; //# sourceMappingURL=footnotes.d.ts.map