import { type DocxParagraphStyleSource } from './work-docx-paragraph-styles'; import { type DocxThemeSource } from './work-docx-theme'; import { type DocxTableStyleSource } from './work-docx-table-styles'; import { type WorkDocumentEmphasisMark } from './work-document-emphasis'; import { type DocxThemeColorReference } from './work-docx-theme-reference'; import { type WorkDocumentTextCase } from './work-document-text-case'; import { type WorkDocumentUnderlineFormatting } from './work-document-underline'; import { type WorkDocumentStrikeFormatting } from './work-document-strike'; import { type WorkDocumentScriptFontSlot, type WorkDocumentScriptFonts } from './work-document-script-fonts'; import { type DocumentRunBorder } from './work-document-run-border'; import { type DocumentRunShading } from './work-document-run-shading'; import { type WorkDocumentHighlight } from './work-document-highlight'; import { type WorkDocumentProofingLanguages } from './work-document-proofing'; import { type WorkDocumentOpenTypeFeatures } from './work-document-opentype'; export interface ImportedDocxRunFormatting { bold?: boolean; italic?: boolean; underline?: WorkDocumentUnderlineFormatting; strike?: WorkDocumentStrikeFormatting; subscript?: boolean; superscript?: boolean; characterScalePercent?: number; characterPositionHalfPoints?: number; characterSpacingTwips?: number; kerningThresholdHalfPoints?: number; emphasisMark?: WorkDocumentEmphasisMark; hiddenText?: boolean; legacyTextOutline?: boolean; legacyTextShadow?: boolean; legacyTextEmboss?: boolean; legacyTextImprint?: boolean; fontFamily?: string; scriptFonts?: WorkDocumentScriptFonts; scriptFontSlot?: WorkDocumentScriptFontSlot; wordLineHeightFactor?: number; wordSnapToGrid?: boolean; fontSize?: number; color?: string; backgroundColor?: string; highlight?: WorkDocumentHighlight; themeColor?: DocxThemeColorReference; themeFill?: DocxThemeColorReference; textCase?: WorkDocumentTextCase; runBorder?: DocumentRunBorder; runShading?: DocumentRunShading; proofingLanguages?: WorkDocumentProofingLanguages; noProof?: boolean; openTypeFeatures?: WorkDocumentOpenTypeFeatures; } export interface ImportedDocxRunFormattingMarker { startMarker: string; endMarker: string; formatting: ImportedDocxRunFormatting; change?: ImportedDocxRunFormattingChange; } export interface ImportedDocxRunFormattingChange { id: string; author: string; date: string; before: string; } export interface ImportedDocxRunFormattingMarkers { runs: ImportedDocxRunFormattingMarker[]; } export interface ImportedDocxRunFormattingMarkerState { markers: ImportedDocxRunFormattingMarkers; nextMarker: number; occupiedText: string; } export declare function markDocxRunFormatting(document: Document, styleSource?: DocxParagraphStyleSource, themeSource?: DocxThemeSource, tableStyleSource?: DocxTableStyleSource): ImportedDocxRunFormattingMarkers; export declare function createImportedDocxRunFormattingMarkerState(documents: readonly Document[]): ImportedDocxRunFormattingMarkerState; export declare function markDocxRunFormattingIntoState(document: Document, state: ImportedDocxRunFormattingMarkerState, styleSource?: DocxParagraphStyleSource, themeSource?: DocxThemeSource, tableStyleSource?: DocxTableStyleSource): void; export declare function applyImportedDocxRunFormattingMarkers(document: Document, markers: ImportedDocxRunFormattingMarkers): void; export declare function hasImportedDocxRunFormattingMarkers(markers: ImportedDocxRunFormattingMarkers): boolean; export declare function isSupportedDocxRunFormattingChange(change: Element): boolean;