import type { IRunOptions } from 'docx'; import { type DocumentRunShading } from './work-document-run-shading'; export interface DocxRunShadingPatch { marker: string; shading: DocumentRunShading; } export declare class DocxRunShadingPatchCollector { readonly patches: DocxRunShadingPatch[]; private nextMarker; private readonly usedColors; constructor(sourceHtml: string); marker(source: unknown): string | null; hasMarker(value: string | null | undefined): value is string; } export declare function documentRunShadingDocxOptions(source: unknown, collector: DocxRunShadingPatchCollector): Pick; export declare function patchDocxRunShading(buffer: ArrayBuffer, patches: readonly DocxRunShadingPatch[]): Promise; export declare function setDocxRunShadingAttributes(document: Document, element: Element, source: unknown): boolean;