import { type WorkDocumentTableOfContentsEntry, type WorkDocumentTableOfContentsOptions } from './work-document-table-of-contents'; export interface DocxTableOfContentsPatch { options: WorkDocumentTableOfContentsOptions; entries: WorkDocumentTableOfContentsEntry[]; } export declare class DocxTableOfContentsPatchCollector { readonly patches: DocxTableOfContentsPatch[]; add(element: HTMLElement): DocxTableOfContentsPatch; } export declare function docxTableOfContents(element: HTMLElement, docx: typeof import('docx'), collector: DocxTableOfContentsPatchCollector): InstanceType; export declare function patchDocxTableOfContents(buffer: ArrayBuffer, patches: readonly DocxTableOfContentsPatch[]): Promise;