import type { IRunOptions } from 'docx'; import { type DocumentRunBorder } from './work-document-run-border'; export interface DocxRunBorderPatch { marker: string; border: DocumentRunBorder; } export declare class DocxRunBorderPatchCollector { readonly patches: DocxRunBorderPatch[]; private nextMarker; private readonly usedColors; constructor(sourceHtml: string); marker(source: unknown): string | null; hasMarker(value: string | null | undefined): value is string; } export declare function documentRunBorderDocxOptions(source: unknown, collector: DocxRunBorderPatchCollector): Pick; export declare function patchDocxRunBorders(buffer: ArrayBuffer, patches: readonly DocxRunBorderPatch[]): Promise; export declare function setDocxRunBorderAttributes(document: Document, element: Element, border: DocumentRunBorder): void;