import type { FileChild, ParagraphChild } from 'docx'; import { type WorkDocumentIndexGeneratedEntry, type WorkDocumentIndexOptions } from './work-document-index'; export interface DocxIndexPatch { marker: string; options: WorkDocumentIndexOptions; entries: WorkDocumentIndexGeneratedEntry[]; } export declare class DocxIndexPatchCollector { readonly patches: DocxIndexPatch[]; add(element: HTMLElement): DocxIndexPatch; } export declare function docxDocumentIndex(element: HTMLElement, docx: typeof import('docx'), collector: DocxIndexPatchCollector): FileChild[]; export declare function docxIndexEntryRun(element: HTMLElement, docx: typeof import('docx')): ParagraphChild | null; export declare function patchDocxIndexes(buffer: ArrayBuffer, patches: readonly DocxIndexPatch[]): Promise;