@office-open/docx 0.10.14 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,30 +1,3736 @@
1
- import { $ as AutoCaptionOptions, $a as PageNumberElement, $i as setTableParseChild, $n as ProofErrorTypeValue, $o as HighlightColor, $r as TextHorzOverflowType, $t as SubDocOptions, A as SubDocData, Aa as BookmarkStartOptions, Ai as Distance, An as CustomXmlBlockOptions, Ao as VerticalAlignSection, Ar as Media, At as DocPartBehavior, B as DefaultStylesOptions, Ba as RunOptions, Bi as AlignmentFrameOptions, Bn as TableRowPropertiesOptions, Bo as SdtCheckboxOptions, Br as SvgMediaData, Bt as EndnotesData, C as TargetScreenSize, Ca as MathInput, Ci as createWrapThrough, Cn as PageSizeProperties, Co as AlignmentType, Cr as BackgroundRawMediaOptions, Cs as withAltChunkOverrides, Ct as AbstractNumberingOptions, D as framesetXml, Da as MathScriptType, Di as TextWrappingType, Dn as ColumnsProperties, Do as widthPctToFiftieths, Dr as ChartOptions, Ds as bibliographyDesc, Dt as LevelFormat, E as frameXml, Ea as MathRunPropertiesOptions, Ei as TextWrappingSide, En as createDocumentGrid, Eo as widthFiftiethsToPct, Er as SmartArtOptions, Es as SourceTypeOptions, Et as parseNumberingDefinitions, F as extractStyleId, Fa as BreakClear, Fi as ParagraphPropertiesOptions, Fn as CustomXmlRunOptions, Fo as stringifyTableOfContents, Fr as GroupChildMediaData, Ft as glossaryDesc, G as TableStyleOptions, Ga as DayLong, Gi as XYFrameOptions, Gn as ExternalHyperlinkOptions, Go as SdtDateOptions, Gr as StyleMatrixReferenceOptions, Gt as SectionPropertiesOptionsBase, H as NumberingStyleOptions, Ha as AnnotationReference, Hi as FrameAnchorType, Hn as DirOptions, Ho as SdtComboBoxOptions, Hr as WpgMediaData, Ht as HeaderFooterGroup, I as parseStyleDefinitions, Ia as BreakOptions, Ii as ParagraphPropertiesOptionsBase, In as SdtCellOptions, Io as parseToc, Ir as MediaData, It as FootnoteSeparator, J as stringifyConditionalTableStyle, Ja as FootnoteReferenceElement, Ji as SpaceType, Jn as FootnoteEndnoteReferenceOptions, Jo as SdtLock, Jr as BodyPropertiesOptions, Jt as DocumentAttributeNamespace, K as TableStyleOverrideType, Ka as DayShort, Ki as HorizontalPositionAlign, Kn as HyperlinkType, Ko as SdtDropDownListOptions, Kr as WpsShapeCoreOptions, Kt as sectionMarginDefaults, L as CharacterStyleOptions, La as EMPTY_RUN_ELEMENTS, Li as ParagraphStylePropertiesOptions, Ln as TableCellOptions, Lo as parseTocFieldFromElements, Lr as MediaDataTransformation, Lt as FootnotesData, M as StylesOptions, Ma as MarkupRangeOptions, Mi as SymbolRunOptions, Mn as CustomXmlDataBindingOptions, Mo as createVerticalAlign, Mr as createTransformation, Mt as DocPartOptions, N as buildNumberingCache, Na as MoveRangeOptions, Ni as LevelParagraphStylePropertiesOptions, Nn as CustomXmlPropertiesOptions, No as CellMergeAttributes, Nr as ChartMediaData, Nt as DocPartType, O as webSettingsDesc, Oa as MathStyleType, Oi as WrapPolygon, On as ColumnProperties, Oo as SectionVerticalAlign, Or as ImageOptions, Ot as LevelSuffix, P as buildStyleCache, Pa as MoveRangeStartOptions, Pi as ParagraphPropertiesChangeOptions, Pn as CustomXmlRowOptions, Po as VerticalMergeRevisionType, Pr as ExtendedMediaData, Pt as GlossaryDocumentOptions, Q as stringifyTableStyle, Qa as NoBreakHyphen, Qi as parseTableRowPropertiesEl, Qn as ProofErrorType, Qo as TableOfContentsOptions, Qr as TextBodyWrappingType, Qt as VmlShapeStyle, R as ConditionalTableStyleOptions, Ra as PageNumber, Ri as TextAlignmentType, Rn as CnfStyleOptions, Ro as parseTocFieldInstruction, Rr as NonVisualPropertiesOptions, Rt as footnotesDesc, S as OptimizeForBrowserOptions, Sa as MathDelimiterProperties, Si as VerticalPositionRelativeFrom, Sn as PageOrientation, So as BordersOptions, Sr as BackgroundImageOptions, Ss as ensureCustomPropertiesOverride, St as ConcreteNumberingOptions, T as WebSettingsOptions, Ta as MathNaryProperties, Ti as TextWrapping, Tn as DocumentGridType, To as WidthType, Tr as SmartArtNode, Ts as BibliographyOptions, Tt as NumberingOptions, U as ParagraphStyleOptions, Ua as CarriageReturn, Ui as FrameOptions, Un as NumberedItemReferenceFormat, Uo as SdtDataBindingOptions, Ur as WpsMediaData, Ut as SectionPropertiesChangeOptions, V as DocumentDefaultsOptions, Va as breakXml, Vi as DropCapType, Vn as TableRowPropertiesOptionsBase, Vo as SdtCheckboxSymbol, Vr as WpgCommonMediaData, Vt as endnotesDesc, W as StyleOptions, Wa as ContinuationSeparator, Wi as FrameWrap, Wn as NumberedItemReferenceOptions, Wo as SdtDateMappingType, Wr as ShapeStyleOptions, Wt as SectionPropertiesOptions, X as stringifyNumberingStyle, Xa as MonthLong, Xi as parseTableCellPropertiesEl, Xn as ParagraphOptions, Xo as SdtTextOptions, Xr as NormalAutofitOptions, Xt as SectionChild, Y as stringifyDocDefaults, Ya as LastRenderedPageBreak, Yi as VerticalPositionAlign, Yn as ParagraphChild, Yo as SdtPropertiesOptions, Yr as FlatTextOptions, Yt as DocumentAttributeNamespaces, Z as stringifyParagraphStyle, Za as MonthShort, Zi as parseTablePropertiesEl, Zn as SdtRunOptions, Zo as StyleLevel, Zr as PresetTextShapeOptions, Zt as SectionOptions, _ as parseArchive, _a as RelativeVerticalPosition, _i as Floating, _n as PageBorderZOrder, _o as SpacingProperties, _r as CommentOptions, _s as ContentTypeDefault, _t as RsidsOptions, a as CustomPropertyOptions, aa as TableCellBordersOptions, ai as ChildExtent, an as HeaderFooterType, ao as ObjectControlOptions, ar as FormFieldTextOptions, as as UnderlineType, at as HyphenationOptions, b as DivBorderOptions, ba as TABLE_BORDERS_NONE, bi as Margins, bn as PageNumberTypeProperties, bo as IndentProperties, br as WpgGroupRunOptions, bs as buildContentTypesFromRegistry, bt as CompatSettingOptions, c as AppPropertiesOptions, ca as TablePropertyExChangeOptions, ci as WpgGroupCoreOptions, cn as createSectionType, co as ObjectIconImageOptions, cr as createFormFieldData, cs as ShadingProperties, ct as MailMergeDocType, d as EmbeddedFontOptionsWithKey, da as TablePropertiesOptions, di as GraphicFrameLocksOptions, dn as createLineNumberType, do as LeaderType, dr as RubyOptions, ds as BorderOptions, dt as MathPropertiesOptions, ea as tableDesc, ei as TextVertOverflowType, en as parseSectionPropertiesEl, eo as Separator, er as SmartTagRunOptions, es as ParagraphRunPropertiesOptions, et as CaptionOptions, f as BodyContext, fa as TablePropertiesOptionsBase, fi as GroupShapeLocksOptions, fn as PageTextDirectionType, fo as TabStopDefinition, fr as PositionalTabAlignment, fs as BorderStyle, ft as OdsoFieldMapDataOptions, g as DocxPartRefs, ga as RelativeHorizontalPosition, gi as createHorizontalPosition, gn as PageBorderOffsetFrom, go as LineRuleType, gr as CommentChildOptions, gs as CharacterSet, gt as RevisionViewOptions, h as DocxDocument, ha as OverlapType, hi as createVerticalPosition, hn as PageBorderDisplay, ho as HeadingLevel, hr as PositionalTabRelativeTo, hs as AltChunkData, ht as ReadModeInkLockDownOptions, i as CustomPropertiesInput, ia as TableRowOptions, ii as parseBodyProperties, in as HeaderFooterReferenceType, io as YearShort, ir as FormFieldOptions, is as TextEffect, it as FootnotePropertiesOptions, j as Styles, ja as DisplacedByCustomXml, ji as DrawingOptions, jn as CustomXmlCellOptions, jo as VerticalAlignTable, jr as MediaTransformation, jt as DocPartGallery, k as SubDocCollection, ka as BookmarkOptions, ki as WrapPolygonPoint, kn as CustomXmlAttributeOptions, ko as TableVerticalAlign, kr as createImageData, kt as LevelsOptions, l as appPropertiesDesc, la as TablePropertyExOptions, li as WpgGroupOptions, ln as LineNumberProperties, lo as ObjectLinkOptions, lr as parseFormFieldData, ls as ShadingType, lt as MailMergeOptions, m as DocxWriteContext, ma as TableLayoutType, mi as resetDrawingIdGen, mn as createPageMargin, mo as TabStopType, mr as PositionalTabOptions, ms as AltChunkCollection, mt as OdsoOptions, n as FeaturesOptions, na as HeightRule, ni as VerticalAnchor, nn as stringifySectionPropertiesXml, no as Tab, nr as DropDownListOptions, ns as RunPropertiesOptions, nt as DocumentProtectionOptions, o as customPropertiesDesc, oa as TextDirection, oi as ChildOffset, on as createHeaderFooterReference, oo as ObjectElementOptions, or as FormFieldTextType, os as FontProperties, ot as MailMergeDataType, p as DocxReadContext, pa as TableLookOptions, pi as drawingDesc, pn as PageMarginProperties, po as TabStopPosition, pr as PositionalTabLeader, ps as AltChunkOptions, pt as OdsoFieldType, q as stringifyCharacterStyle, qa as EndnoteReference, qi as NumberFormat, qn as InternalHyperlinkOptions, qo as SdtListItem, qr as WpsShapeOptions, qt as sectionPageSizeDefaults, r as corePropertiesDesc, ra as SdtRowOptions, ri as createBodyProperties, rn as HeaderFooterReferenceOptions, ro as YearLong, rr as FormFieldCommonOptions, rs as RunStylePropertiesOptions, rt as EndnotePropertiesOptions, s as AppPropertiesInput, sa as VerticalMergeType, si as GroupChild, sn as SectionType, so as ObjectEmbedOptions, sr as TextInputOptions, ss as EmphasisMarkType, st as MailMergeDest, t as DocumentOptions, ta as TableOptions, ti as TextVerticalType, tn as sectionPropertiesDesc, to as SoftHyphen, tr as CheckBoxOptions, ts as RunPropertiesChangeOptions, tt as CaptionsOptions, u as settingsDesc, ua as TablePropertiesChangeOptions, ui as DrawingDescriptorOptions, un as LineNumberRestartFormat, uo as objectDesc, ur as RubyAlign, us as parseShading, ut as MailMergeSourceType, v as parseDocument, va as TableAnchorType, vi as HorizontalPositionOptions, vn as PageBordersOptions, vo as BreakType, vr as CommentsOptions, vs as ContentTypeOverride, vt as SettingsOptions, w as WebSettingsInput, wa as MathNaryLimitLocation, wi as createWrapTight, wn as DocGridProperties, wo as TableWidthProperties, wr as DocumentBackgroundOptions, ws as withMediaDefaults, wt as Numbering, x as DivOptions, xa as TableBordersOptions, xi as VerticalPositionOptions, xn as createPageNumberType, xo as CnfConditionalOptions, xr as WpsShapeRunOptions, xs as contentTypesDesc, xt as CompatibilityOptions, y as parseDocx, ya as TableFloatOptions, yi as HorizontalPositionRelativeFrom, yn as PageNumberSeparator, yo as BreakTypeValue, yr as SimpleFieldOptions, ys as ContentTypesInput, yt as WriteProtectionOptions, z as DefaultStylesFactory, za as ParagraphRunOptions, zi as TextboxTightWrapType, zn as TableRowPropertiesChangeOptions, zo as selectTocEntryElements, zr as SmartArtMediaData, zt as EndnoteSeparator } from "./core-properties-C4tdD3KL.mjs";
2
- import { generateDocument, generateDocumentStream, generateDocumentSync } from "./generate.mjs";
3
- import { Patch, PatchComment, PatchDocumentOptions, patchDetector, patchDocument } from "./patch/index.mjs";
4
- import { CompressionOptions, OutputByType, OutputType, PackerOptions, XmlifyedFile, Zippable } from "@office-open/core";
1
+ import { AppPropertiesInput, AppPropertiesOptions, BaseMediaEntry, BasePatchOptions, BaseTableCellOptions, BaseTableOptions, BaseTableRowOptions, ChartSpaceOptions, CompressionOptions, ContentTypesInput, CorePropertiesOptions, CustomPropertiesInput, CustomPropertyOptions, DataType, EmbeddingCollection, Media, NonVisualDrawingPropertiesOptions, OutputByType, OutputByType as OutputByType$1, OutputType, OutputType as OutputType$1, PackerOptions, PackerOptions as PackerOptions$1, ParsedArchive, Percentage, PositiveUniversalMeasure, Relationships, ThemeColor, ThemeFont, UniversalMeasure, VmlShapeDefaultsOptions, VmlShapeLayoutOptions, VmlShapeStyle, XmlifyedFile, Zippable, appPropertiesDesc, customPropertiesDesc, parseArchive } from "@office-open/core";
2
+ import { BlackWhiteMode, BlipEffectsOptions, BodyPropertiesOptions, BodyPropertiesOptions as BodyPropertiesOptions$1, CustomGeometryOptions, EffectDagOptions, EffectListOptions, FillOptions, FlatTextOptions, NonVisualContentPartPropertiesOptions, NonVisualDrawingPropertiesOptions as NonVisualDrawingPropertiesOptions$1, NormalAutofitOptions, OutlineOptions, PresetGeometryOptions, PresetTextShapeOptions, Scene3DOptions, Shape3DOptions, SolidFillOptions, SourceRectangleOptions, TextBodyWrapping, TextHorzOverflow, TextVertOverflow, TextVertical, TileOptions, VerticalAnchor, bodyPropertiesDesc, parseBodyProperties } from "@office-open/core/drawing";
5
3
  import { Element } from "@office-open/xml";
6
- import { CustomDescriptor } from "@office-open/core/descriptor";
4
+ import { ChartCollection, ChartSpaceOptions as ChartSpaceOptions$1 } from "@office-open/core/chart";
5
+ import { ColorDefinitionOptions, LayoutDefinitionOptions, SmartArtCollection, StyleDefinitionOptions } from "@office-open/core/smartart";
6
+ import { CustomDescriptor, HyperlinkTarget, ReadContext, WriteContext } from "@office-open/core/descriptor";
7
7
 
8
- //#region src/parts/footnotes/footnote/footnote.d.ts
9
- declare const FootnoteType: {
10
- readonly SEPERATOR: "separator";
11
- readonly CONTINUATION_SEPERATOR: "continuationSeparator";
8
+ //#region src/parts/paragraph/formatting/alignment.d.ts
9
+ declare const AlignmentType: {
10
+ readonly START: "start";
11
+ readonly CENTER: "center";
12
+ readonly END: "end";
13
+ readonly BOTH: "both";
14
+ readonly MEDIUM_KASHIDA: "mediumKashida";
15
+ readonly DISTRIBUTE: "distribute";
16
+ readonly NUM_TAB: "numTab";
17
+ readonly HIGH_KASHIDA: "highKashida";
18
+ readonly LOW_KASHIDA: "lowKashida";
19
+ readonly THAI_DISTRIBUTE: "thaiDistribute";
20
+ readonly LEFT: "left";
21
+ readonly RIGHT: "right";
22
+ readonly JUSTIFIED: "both";
12
23
  };
13
- interface FootnoteOptions {
24
+ //#endregion
25
+ //#region src/shared/border.d.ts
26
+ interface BorderOptions {
27
+ style: (typeof BorderStyle)[keyof typeof BorderStyle];
28
+ color?: string;
29
+ themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
30
+ themeTint?: string;
31
+ themeShade?: string;
32
+ shadow?: boolean;
33
+ frame?: boolean;
34
+ size?: number;
35
+ space?: number;
36
+ }
37
+ declare const BorderStyle: {
38
+ readonly SINGLE: "single";
39
+ readonly DASH_DOT_STROKED: "dashDotStroked";
40
+ readonly DASHED: "dashed";
41
+ readonly DASH_SMALL_GAP: "dashSmallGap";
42
+ readonly DOT_DASH: "dotDash";
43
+ readonly DOT_DOT_DASH: "dotDotDash";
44
+ readonly DOTTED: "dotted";
45
+ readonly DOUBLE: "double";
46
+ readonly DOUBLE_WAVE: "doubleWave";
47
+ readonly INSET: "inset";
48
+ readonly NIL: "nil";
49
+ readonly NONE: "none";
50
+ readonly OUTSET: "outset";
51
+ readonly THICK: "thick";
52
+ readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
53
+ readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
54
+ readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
55
+ readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
56
+ readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
57
+ readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
58
+ readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
59
+ readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
60
+ readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
61
+ readonly THREE_D_EMBOSS: "threeDEmboss";
62
+ readonly THREE_D_ENGRAVE: "threeDEngrave";
63
+ readonly TRIPLE: "triple";
64
+ readonly WAVE: "wave";
65
+ };
66
+ //#endregion
67
+ //#region src/parts/paragraph/formatting/border.d.ts
68
+ interface BordersOptions {
69
+ top?: BorderOptions;
70
+ bottom?: BorderOptions;
71
+ left?: BorderOptions;
72
+ right?: BorderOptions;
73
+ between?: BorderOptions;
74
+ bar?: BorderOptions;
75
+ }
76
+ //#endregion
77
+ //#region src/parts/paragraph/formatting/cnf-style.d.ts
78
+ interface CnfConditionalOptions {
79
+ firstRow?: boolean;
80
+ lastRow?: boolean;
81
+ firstColumn?: boolean;
82
+ lastColumn?: boolean;
83
+ oddVBand?: boolean;
84
+ evenVBand?: boolean;
85
+ oddHBand?: boolean;
86
+ evenHBand?: boolean;
87
+ firstRowFirstColumn?: boolean;
88
+ firstRowLastColumn?: boolean;
89
+ lastRowFirstColumn?: boolean;
90
+ lastRowLastColumn?: boolean;
91
+ }
92
+ //#endregion
93
+ //#region src/parts/paragraph/formatting/indent.d.ts
94
+ interface IndentProperties {
95
+ start?: number | UniversalMeasure;
96
+ startChars?: number;
97
+ end?: number | UniversalMeasure;
98
+ endChars?: number;
99
+ left?: number | UniversalMeasure;
100
+ leftChars?: number;
101
+ right?: number | UniversalMeasure;
102
+ rightChars?: number;
103
+ hanging?: number | PositiveUniversalMeasure;
104
+ hangingChars?: number;
105
+ firstLine?: number | PositiveUniversalMeasure;
106
+ firstLineChars?: number;
107
+ }
108
+ //#endregion
109
+ //#region src/parts/paragraph/formatting/break.d.ts
110
+ declare const BreakType: {
111
+ readonly COLUMN: "column";
112
+ readonly PAGE: "page";
113
+ };
114
+ type BreakTypeValue = (typeof BreakType)[keyof typeof BreakType];
115
+ //#endregion
116
+ //#region src/parts/paragraph/formatting/spacing.d.ts
117
+ declare const LineRuleType: {
118
+ readonly AT_LEAST: "atLeast";
119
+ readonly EXACTLY: "exactly";
120
+ readonly EXACT: "exact";
121
+ readonly AUTO: "auto";
122
+ };
123
+ interface SpacingProperties {
124
+ after?: number | PositiveUniversalMeasure;
125
+ before?: number | PositiveUniversalMeasure;
126
+ line?: number | PositiveUniversalMeasure;
127
+ lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
128
+ beforeAutoSpacing?: boolean;
129
+ afterAutoSpacing?: boolean;
130
+ beforeLines?: number;
131
+ afterLines?: number;
132
+ }
133
+ //#endregion
134
+ //#region src/parts/paragraph/formatting/style.d.ts
135
+ declare const HeadingLevel: {
136
+ readonly HEADING_1: "Heading1";
137
+ readonly HEADING_2: "Heading2";
138
+ readonly HEADING_3: "Heading3";
139
+ readonly HEADING_4: "Heading4";
140
+ readonly HEADING_5: "Heading5";
141
+ readonly HEADING_6: "Heading6";
142
+ readonly TITLE: "Title";
143
+ };
144
+ //#endregion
145
+ //#region src/parts/paragraph/formatting/tab-stop.d.ts
146
+ interface TabStopDefinition {
147
+ type: (typeof TabStopType)[keyof typeof TabStopType];
148
+ position: number | UniversalMeasure;
149
+ leader?: (typeof LeaderType)[keyof typeof LeaderType];
150
+ }
151
+ declare const TabStopType: {
152
+ readonly LEFT: "left";
153
+ readonly RIGHT: "right";
154
+ readonly CENTER: "center";
155
+ readonly BAR: "bar";
156
+ readonly CLEAR: "clear";
157
+ readonly DECIMAL: "decimal";
158
+ readonly END: "end";
159
+ readonly NUM: "num";
160
+ readonly START: "start";
161
+ };
162
+ declare const LeaderType: {
163
+ readonly DOT: "dot";
164
+ readonly HEAVY: "heavy";
165
+ readonly HYPHEN: "hyphen";
166
+ readonly MIDDLE_DOT: "middleDot";
167
+ readonly NONE: "none";
168
+ readonly UNDERSCORE: "underscore";
169
+ };
170
+ declare const TabStopPosition: {
171
+ readonly MAX: 9026;
172
+ };
173
+ //#endregion
174
+ //#region src/shared/shading.d.ts
175
+ interface ShadingProperties {
176
+ fill?: string;
177
+ color?: string;
178
+ type?: (typeof ShadingType)[keyof typeof ShadingType];
179
+ themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
180
+ themeTint?: string;
181
+ themeShade?: string;
182
+ themeFill?: (typeof ThemeColor)[keyof typeof ThemeColor];
183
+ themeFillTint?: string;
184
+ themeFillShade?: string;
185
+ }
186
+ declare const ShadingType: {
187
+ readonly CLEAR: "clear";
188
+ readonly DIAGONAL_CROSS: "diagCross";
189
+ readonly DIAGONAL_STRIPE: "diagStripe";
190
+ readonly HORIZONTAL_CROSS: "horzCross";
191
+ readonly HORIZONTAL_STRIPE: "horzStripe";
192
+ readonly NIL: "nil";
193
+ readonly PERCENT_10: "pct10";
194
+ readonly PERCENT_12: "pct12";
195
+ readonly PERCENT_15: "pct15";
196
+ readonly PERCENT_20: "pct20";
197
+ readonly PERCENT_25: "pct25";
198
+ readonly PERCENT_30: "pct30";
199
+ readonly PERCENT_35: "pct35";
200
+ readonly PERCENT_37: "pct37";
201
+ readonly PERCENT_40: "pct40";
202
+ readonly PERCENT_45: "pct45";
203
+ readonly PERCENT_5: "pct5";
204
+ readonly PERCENT_50: "pct50";
205
+ readonly PERCENT_55: "pct55";
206
+ readonly PERCENT_60: "pct60";
207
+ readonly PERCENT_62: "pct62";
208
+ readonly PERCENT_65: "pct65";
209
+ readonly PERCENT_70: "pct70";
210
+ readonly PERCENT_75: "pct75";
211
+ readonly PERCENT_80: "pct80";
212
+ readonly PERCENT_85: "pct85";
213
+ readonly PERCENT_87: "pct87";
214
+ readonly PERCENT_90: "pct90";
215
+ readonly PERCENT_95: "pct95";
216
+ readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagStripe";
217
+ readonly SOLID: "solid";
218
+ readonly THIN_DIAGONAL_CROSS: "thinDiagCross";
219
+ readonly THIN_DIAGONAL_STRIPE: "thinDiagStripe";
220
+ readonly THIN_HORIZONTAL_CROSS: "thinHorzCross";
221
+ readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagStripe";
222
+ readonly THIN_VERTICAL_STRIPE: "thinVertStripe";
223
+ readonly VERTICAL_STRIPE: "vertStripe";
224
+ };
225
+ declare function parseShading(shd: Element): ShadingProperties | undefined;
226
+ //#endregion
227
+ //#region src/shared/track-revision/track-revision.d.ts
228
+ interface ChangedProperties {
14
229
  id: number;
15
- type?: (typeof FootnoteType)[keyof typeof FootnoteType];
16
- children: (ParagraphOptions | string)[];
230
+ author: string;
231
+ date: string;
232
+ }
233
+ //#endregion
234
+ //#region src/parts/paragraph/run/east-asian-layout.d.ts
235
+ declare const CombineBracketsType: {
236
+ readonly NONE: "none";
237
+ readonly ROUND: "round";
238
+ readonly SQUARE: "square";
239
+ readonly ANGLE: "angle";
240
+ readonly CURLY: "curly";
241
+ };
242
+ interface EastAsianLayoutOptions {
243
+ id?: number;
244
+ combine?: boolean;
245
+ combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
246
+ vertical?: boolean;
247
+ verticalCompress?: boolean;
248
+ }
249
+ //#endregion
250
+ //#region src/parts/paragraph/run/emphasis-mark.d.ts
251
+ declare const EmphasisMarkType: {
252
+ readonly NONE: "none";
253
+ readonly COMMA: "comma";
254
+ readonly CIRCLE: "circle";
255
+ readonly DOT: "dot";
256
+ readonly UNDER_DOT: "underDot";
257
+ };
258
+ //#endregion
259
+ //#region src/parts/paragraph/run/formatting.d.ts
260
+ interface ColorOptions {
261
+ val?: string;
262
+ themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
263
+ themeTint?: string;
264
+ themeShade?: string;
265
+ }
266
+ //#endregion
267
+ //#region src/parts/paragraph/run/language.d.ts
268
+ interface LanguageOptions {
269
+ value?: string;
270
+ eastAsia?: string;
271
+ bidirectional?: string;
272
+ }
273
+ //#endregion
274
+ //#region src/parts/paragraph/run/run-fonts.d.ts
275
+ interface FontProperties {
276
+ ascii?: string;
277
+ complexScript?: string;
278
+ eastAsia?: string;
279
+ hAnsi?: string;
280
+ hint?: string;
281
+ asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
282
+ hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
283
+ eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
284
+ complexScriptTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
285
+ }
286
+ //#endregion
287
+ //#region src/parts/paragraph/run/underline.d.ts
288
+ declare const UnderlineType: {
289
+ readonly SINGLE: "single";
290
+ readonly WORDS: "words";
291
+ readonly DOUBLE: "double";
292
+ readonly THICK: "thick";
293
+ readonly DOTTED: "dotted";
294
+ readonly DOTTEDHEAVY: "dottedHeavy";
295
+ readonly DASH: "dash";
296
+ readonly DASHEDHEAVY: "dashedHeavy";
297
+ readonly DASHLONG: "dashLong";
298
+ readonly DASHLONGHEAVY: "dashLongHeavy";
299
+ readonly DOTDASH: "dotDash";
300
+ readonly DASHDOTHEAVY: "dashDotHeavy";
301
+ readonly DOTDOTDASH: "dotDotDash";
302
+ readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
303
+ readonly WAVE: "wave";
304
+ readonly WAVYHEAVY: "wavyHeavy";
305
+ readonly WAVYDOUBLE: "wavyDouble";
306
+ readonly NONE: "none";
307
+ };
308
+ //#endregion
309
+ //#region src/parts/paragraph/run/properties.d.ts
310
+ interface RunFontReference {
311
+ name: string;
312
+ hint?: string;
313
+ }
314
+ declare const TextEffect: {
315
+ readonly BLINK_BACKGROUND: "blinkBackground";
316
+ readonly LIGHTS: "lights";
317
+ readonly ANTS_BLACK: "antsBlack";
318
+ readonly ANTS_RED: "antsRed";
319
+ readonly SHIMMER: "shimmer";
320
+ readonly SPARKLE: "sparkle";
321
+ readonly NONE: "none";
322
+ };
323
+ declare const HighlightColor: {
324
+ readonly BLACK: "black";
325
+ readonly BLUE: "blue";
326
+ readonly CYAN: "cyan";
327
+ readonly DARK_BLUE: "darkBlue";
328
+ readonly DARK_CYAN: "darkCyan";
329
+ readonly DARK_GRAY: "darkGray";
330
+ readonly DARK_GREEN: "darkGreen";
331
+ readonly DARK_MAGENTA: "darkMagenta";
332
+ readonly DARK_RED: "darkRed";
333
+ readonly DARK_YELLOW: "darkYellow";
334
+ readonly GREEN: "green";
335
+ readonly LIGHT_GRAY: "lightGray";
336
+ readonly MAGENTA: "magenta";
337
+ readonly NONE: "none";
338
+ readonly RED: "red";
339
+ readonly WHITE: "white";
340
+ readonly YELLOW: "yellow";
341
+ };
342
+ interface RunStylePropertiesOptions {
343
+ noProof?: boolean;
344
+ bold?: boolean;
345
+ boldComplexScript?: boolean;
346
+ italic?: boolean;
347
+ italicComplexScript?: boolean;
348
+ underline?: {
349
+ color?: string;
350
+ type?: (typeof UnderlineType)[keyof typeof UnderlineType];
351
+ };
352
+ effect?: (typeof TextEffect)[keyof typeof TextEffect];
353
+ emphasisMark?: {
354
+ type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
355
+ };
356
+ color?: string | ColorOptions;
357
+ kern?: number;
358
+ position?: string;
359
+ size?: number;
360
+ sizeComplexScript?: number;
361
+ rightToLeft?: boolean;
362
+ smallCaps?: boolean;
363
+ allCaps?: boolean;
364
+ strike?: boolean;
365
+ doubleStrike?: boolean;
366
+ subScript?: boolean;
367
+ superScript?: boolean;
368
+ font?: string | RunFontReference | FontProperties;
369
+ highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
370
+ highlightComplexScript?: string;
371
+ characterSpacing?: number | UniversalMeasure;
372
+ shading?: ShadingProperties;
373
+ emboss?: boolean;
374
+ imprint?: boolean;
375
+ revision?: RunPropertiesChangeOptions;
376
+ language?: LanguageOptions;
377
+ border?: BorderOptions;
378
+ snapToGrid?: boolean;
379
+ vanish?: boolean;
380
+ specVanish?: boolean;
381
+ scale?: number;
382
+ math?: boolean;
383
+ outline?: boolean;
384
+ shadow?: boolean;
385
+ webHidden?: boolean;
386
+ fitText?: number;
387
+ complexScript?: boolean;
388
+ eastAsianLayout?: EastAsianLayoutOptions;
389
+ contentPartRId?: string;
390
+ w14RawXml?: string;
391
+ }
392
+ type RunPropertiesOptions = {
393
+ style?: string;
394
+ } & RunStylePropertiesOptions;
395
+ type RunPropertiesChangeOptions = {} & RunPropertiesOptions & ChangedProperties;
396
+ type ParagraphRunPropertiesOptions = {
397
+ insertion?: ChangedProperties;
398
+ deletion?: ChangedProperties;
399
+ } & RunPropertiesOptions;
400
+ //#endregion
401
+ //#region src/parts/alt-chunk/alt-chunk.d.ts
402
+ interface AltChunkOptions {
403
+ data: Uint8Array | string;
404
+ contentType: "text/html" | "application/rtf" | "text/plain";
405
+ extension: "html" | "rtf" | "txt";
406
+ matchSource?: boolean;
407
+ }
408
+ //#endregion
409
+ //#region src/parts/alt-chunk/alt-chunk-collection.d.ts
410
+ interface AltChunkData {
411
+ key: string;
412
+ data: Uint8Array;
413
+ path: string;
414
+ extension: string;
415
+ contentType: string;
416
+ }
417
+ declare class AltChunkCollection {
418
+ private map;
419
+ constructor();
420
+ addAltChunk(key: string, data: AltChunkData): void;
421
+ get array(): AltChunkData[];
422
+ }
423
+ //#endregion
424
+ //#region src/parts/bibliography.d.ts
425
+ interface SourceTypeOptions {
426
+ type?: string;
427
+ title?: string;
428
+ author?: string;
429
+ year?: string;
430
+ month?: string;
431
+ day?: string;
432
+ bookTitle?: string;
433
+ journal?: string;
434
+ volume?: string;
435
+ issue?: string;
436
+ pages?: string;
437
+ publisher?: string;
438
+ city?: string;
439
+ url?: string;
440
+ edition?: string;
441
+ institution?: string;
17
442
  }
443
+ interface BibliographyOptions {
444
+ sources: SourceTypeOptions[];
445
+ styleName?: string;
446
+ }
447
+ declare const bibliographyDesc: CustomDescriptor<BibliographyOptions>;
448
+ //#endregion
449
+ //#region src/parts/fonts/font.d.ts
450
+ declare const CharacterSet: {
451
+ readonly ANSI: "00";
452
+ readonly ARABIC: "B2";
453
+ readonly BALTIC: "BA";
454
+ readonly CHINESEBIG5: "88";
455
+ readonly DEFAULT: "01";
456
+ readonly EASTEUROPE: "EE";
457
+ readonly GB_2312: "86";
458
+ readonly GREEK: "A1";
459
+ readonly HANGUL: "81";
460
+ readonly HEBREW: "B1";
461
+ readonly JIS: "80";
462
+ readonly JOHAB: "82";
463
+ readonly MAC: "4D";
464
+ readonly OEM: "FF";
465
+ readonly RUSSIAN: "CC";
466
+ readonly SYMBOL: "02";
467
+ readonly THAI: "DE";
468
+ readonly TURKISH: "A2";
469
+ readonly VIETNAMESE: "A3";
470
+ };
18
471
  //#endregion
19
- //#region src/parts/endnotes/endnote/endnote.d.ts
20
- declare const EndnoteType: {
21
- readonly CONTINUATION_SEPARATOR: "continuationSeparator";
22
- readonly SEPARATOR: "separator";
472
+ //#region src/parts/fonts/font-wrapper.d.ts
473
+ type EmbeddedFontOptionsWithKey = EmbeddedFontOptions & {
474
+ fontKey: string;
475
+ embedRid?: string;
476
+ data?: Uint8Array;
23
477
  };
24
- interface EndnoteOptions {
478
+ declare class FontWrapper implements ViewWrapper {
479
+ options: EmbeddedFontOptions[];
480
+ relationships: Relationships;
481
+ fontOptionsWithKey: EmbeddedFontOptionsWithKey[];
482
+ constructor(options: EmbeddedFontOptions[]);
483
+ }
484
+ //#endregion
485
+ //#region src/parts/fonts/font-table.d.ts
486
+ interface FontSignature {
487
+ usb0: string;
488
+ usb1: string;
489
+ usb2: string;
490
+ usb3: string;
491
+ csb0: string;
492
+ csb1: string;
493
+ }
494
+ interface EmbeddedFontOptions {
495
+ name: string;
496
+ data?: DataType;
497
+ characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
498
+ characterSetName?: string;
499
+ family?: string;
500
+ pitch?: string;
501
+ panose1?: string;
502
+ altName?: string;
503
+ sig?: FontSignature;
504
+ rawOdttf?: boolean;
505
+ odttfPath?: string;
506
+ fontKey?: string;
507
+ subsetted?: boolean;
508
+ }
509
+ //#endregion
510
+ //#region src/parts/glossary-document.d.ts
511
+ declare const DocPartGallery: {
512
+ readonly PLACEHOLDER: "placeholder";
513
+ readonly DEFAULT: "default";
514
+ readonly DOC_PARTS: "docParts";
515
+ readonly COVER_PAGE: "coverPg";
516
+ readonly EQUATIONS: "eq";
517
+ readonly FOOTERS: "ftrs";
518
+ readonly HEADERS: "hdrs";
519
+ readonly PAGE_NUMBERS: "pgNum";
520
+ readonly TABLES: "tbls";
521
+ readonly WATERMARKS: "watermarks";
522
+ readonly AUTO_TEXT: "autoTxt";
523
+ readonly TEXT_BOX: "txtBox";
524
+ readonly PAGE_NUMBERS_TOP: "pgNumT";
525
+ readonly PAGE_NUMBERS_BOTTOM: "pgNumB";
526
+ readonly PAGE_NUMBERS_MARGIN: "pgNumMargins";
527
+ readonly TABLE_OF_CONTENTS: "tblOfContents";
528
+ readonly BIBLIOGRAPHY: "bib";
529
+ readonly CUSTOM_QUICK_PARTS: "custQuickParts";
530
+ readonly CUSTOM_COVER_PAGE: "custCoverPg";
531
+ readonly CUSTOM_EQUATIONS: "custEq";
532
+ readonly CUSTOM_FOOTERS: "custFtrs";
533
+ readonly CUSTOM_HEADERS: "custHdrs";
534
+ readonly CUSTOM_PAGE_NUMBERS: "custPgNum";
535
+ readonly CUSTOM_TABLES: "custTbls";
536
+ readonly CUSTOM_WATERMARKS: "custWatermarks";
537
+ readonly CUSTOM_AUTO_TEXT: "custAutoTxt";
538
+ readonly CUSTOM_TEXT_BOX: "custTxtBox";
539
+ readonly CUSTOM_PAGE_NUMBERS_TOP: "custPgNumT";
540
+ readonly CUSTOM_PAGE_NUMBERS_BOTTOM: "custPgNumB";
541
+ readonly CUSTOM_PAGE_NUMBERS_MARGIN: "custPgNumMargins";
542
+ readonly CUSTOM_TABLE_OF_CONTENTS: "custTblOfContents";
543
+ readonly CUSTOM_BIBLIOGRAPHY: "custBib";
544
+ readonly CUSTOM1: "custom1";
545
+ readonly CUSTOM2: "custom2";
546
+ readonly CUSTOM3: "custom3";
547
+ readonly CUSTOM4: "custom4";
548
+ readonly CUSTOM5: "custom5";
549
+ };
550
+ type DocPartGallery = (typeof DocPartGallery)[keyof typeof DocPartGallery];
551
+ declare const DocPartType: {
552
+ readonly NONE: "none";
553
+ readonly NORMAL: "normal";
554
+ readonly AUTO_EXPAND: "autoExp";
555
+ readonly TOOLBAR: "toolbar";
556
+ readonly SPELLER: "speller";
557
+ readonly FORM_FIELD: "formFld";
558
+ readonly BUILDING_BLOCK_PLACEHOLDER: "bbPlcHdr";
559
+ };
560
+ type DocPartType = (typeof DocPartType)[keyof typeof DocPartType];
561
+ declare const DocPartBehavior: {
562
+ readonly CONTENT: "content";
563
+ readonly PARAGRAPH: "p";
564
+ readonly PAGE: "pg";
565
+ };
566
+ type DocPartBehavior = (typeof DocPartBehavior)[keyof typeof DocPartBehavior];
567
+ interface DocPartOptions {
568
+ name: string;
569
+ gallery: DocPartGallery;
570
+ category?: string;
571
+ types?: DocPartType[];
572
+ allTypes?: boolean;
573
+ behaviors?: DocPartBehavior[];
574
+ description?: string;
575
+ guid?: string;
576
+ decorated?: boolean;
577
+ children: SectionChild[];
578
+ }
579
+ interface GlossaryDocumentOptions {
580
+ parts: DocPartOptions[];
581
+ }
582
+ declare const glossaryDesc: CustomDescriptor<GlossaryDocumentOptions, BodyContext>;
583
+ //#endregion
584
+ //#region src/parts/object/object-element.d.ts
585
+ interface ObjectEmbedOptions {
586
+ data: Uint8Array | string;
587
+ progId?: string;
588
+ drawAspect?: "content" | "icon";
589
+ shapeId?: string;
590
+ objectId?: string;
591
+ fieldCodes?: string;
592
+ }
593
+ interface ObjectLinkOptions extends ObjectEmbedOptions {
594
+ updateMode: "always" | "onCall";
595
+ lockedField?: boolean;
596
+ }
597
+ interface ObjectControlOptions {
598
+ name?: string;
599
+ shapeid?: string;
600
+ rId: string;
601
+ }
602
+ interface ObjectIconImageOptions {
603
+ data: Uint8Array | string;
604
+ type: string;
605
+ title?: string;
606
+ }
607
+ interface ObjectElementOptions {
608
+ dxaOrig?: number;
609
+ dyaOrig?: number;
610
+ shapeId?: string;
611
+ width?: number | UniversalMeasure;
612
+ height?: number | UniversalMeasure;
613
+ iconImage?: ObjectIconImageOptions;
614
+ embed?: ObjectEmbedOptions;
615
+ link?: ObjectLinkOptions;
616
+ control?: ObjectControlOptions;
617
+ movie?: string;
618
+ }
619
+ declare const objectDesc: CustomDescriptor<ObjectElementOptions, BodyContext>;
620
+ //#endregion
621
+ //#region src/parts/paragraph/run/run.d.ts
622
+ type BreakClear = "none" | "left" | "right" | "all";
623
+ interface BreakOptions {
624
+ count?: number;
625
+ clear?: BreakClear;
626
+ }
627
+ declare function breakXml(breakOpt: number | BreakOptions | undefined): string;
628
+ declare const EMPTY_RUN_ELEMENTS: Record<string, string>;
629
+ interface RunOptionsBase {
630
+ children?: ((typeof PageNumber)[keyof typeof PageNumber] | string | {
631
+ tab: true;
632
+ } | {
633
+ noBreakHyphen: true;
634
+ } | {
635
+ softHyphen: true;
636
+ } | {
637
+ dayShort: true;
638
+ } | {
639
+ monthShort: true;
640
+ } | {
641
+ yearShort: true;
642
+ } | {
643
+ dayLong: true;
644
+ } | {
645
+ monthLong: true;
646
+ } | {
647
+ yearLong: true;
648
+ } | {
649
+ annotationRef: true;
650
+ } | {
651
+ footnoteRef: true;
652
+ } | {
653
+ endnoteRef: true;
654
+ } | {
655
+ separator: true;
656
+ } | {
657
+ continuationSeparator: true;
658
+ } | {
659
+ pgNum: true;
660
+ } | {
661
+ carriageReturn: true;
662
+ } | {
663
+ lastRenderedPageBreak: true;
664
+ } | {
665
+ object: ObjectElementOptions;
666
+ } | Record<string, unknown>)[];
667
+ break?: number | BreakOptions;
668
+ text?: string;
669
+ }
670
+ type RunOptions = RunOptionsBase & RunPropertiesOptions & {
671
+ rsid?: string;
672
+ runPropertiesRsid?: string;
673
+ deletionRsid?: string;
674
+ };
675
+ type ParagraphRunOptions = RunOptionsBase & ParagraphRunPropertiesOptions;
676
+ declare const PageNumber: {
677
+ readonly CURRENT: "CURRENT";
678
+ readonly TOTAL_PAGES: "TOTAL_PAGES";
679
+ readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
680
+ readonly CURRENT_SECTION: "SECTION";
681
+ };
682
+ //#endregion
683
+ //#region src/parts/paragraph/run/comment-run.d.ts
684
+ interface CommentOptions {
25
685
  id: number;
26
- type?: (typeof EndnoteType)[keyof typeof EndnoteType];
686
+ children: (string | ParagraphOptions)[];
687
+ initials?: string;
688
+ author?: string;
689
+ date?: Date | string;
690
+ }
691
+ interface CommentsOptions {
692
+ children: CommentOptions[];
693
+ }
694
+ interface CommentChildOptions {
695
+ author?: string;
696
+ initials?: string;
697
+ date?: Date | string;
698
+ children: (string | ParagraphOptions)[];
699
+ wrap?: (string | RunOptions)[];
700
+ }
701
+ //#endregion
702
+ //#region src/parts/settings/compatibility.d.ts
703
+ interface CompatibilityOptions {
704
+ version?: number;
705
+ useSingleBorderforContiguousCells?: boolean;
706
+ wordPerfectJustification?: boolean;
707
+ noTabStopForHangingIndent?: boolean;
708
+ noLeading?: boolean;
709
+ spaceForUnderline?: boolean;
710
+ noColumnBalance?: boolean;
711
+ balanceSingleByteDoubleByteWidth?: boolean;
712
+ noExtraLineSpacing?: boolean;
713
+ doNotLeaveBackslashAlone?: boolean;
714
+ underlineTrailingSpaces?: boolean;
715
+ doNotExpandShiftReturn?: boolean;
716
+ spacingInWholePoints?: boolean;
717
+ lineWrapLikeWord6?: boolean;
718
+ printBodyTextBeforeHeader?: boolean;
719
+ printColorsBlack?: boolean;
720
+ spaceWidth?: boolean;
721
+ showBreaksInFrames?: boolean;
722
+ subFontBySize?: boolean;
723
+ suppressBottomSpacing?: boolean;
724
+ suppressTopSpacing?: boolean;
725
+ suppressSpacingAtTopOfPage?: boolean;
726
+ suppressTopSpacingWP?: boolean;
727
+ suppressSpBfAfterPgBrk?: boolean;
728
+ swapBordersFacingPages?: boolean;
729
+ convertMailMergeEsc?: boolean;
730
+ truncateFontHeightsLikeWP6?: boolean;
731
+ macWordSmallCaps?: boolean;
732
+ usePrinterMetrics?: boolean;
733
+ doNotSuppressParagraphBorders?: boolean;
734
+ wrapTrailSpaces?: boolean;
735
+ footnoteLayoutLikeWW8?: boolean;
736
+ shapeLayoutLikeWW8?: boolean;
737
+ alignTablesRowByRow?: boolean;
738
+ forgetLastTabAlignment?: boolean;
739
+ adjustLineHeightInTable?: boolean;
740
+ autoSpaceLikeWord95?: boolean;
741
+ noSpaceRaiseLower?: boolean;
742
+ doNotUseHTMLParagraphAutoSpacing?: boolean;
743
+ layoutRawTableWidth?: boolean;
744
+ layoutTableRowsApart?: boolean;
745
+ useWord97LineBreakRules?: boolean;
746
+ doNotBreakWrappedTables?: boolean;
747
+ doNotSnapToGridInCell?: boolean;
748
+ selectFieldWithFirstOrLastCharacter?: boolean;
749
+ applyBreakingRules?: boolean;
750
+ doNotWrapTextWithPunctuation?: boolean;
751
+ doNotUseEastAsianBreakRules?: boolean;
752
+ useWord2002TableStyleRules?: boolean;
753
+ growAutofit?: boolean;
754
+ useFELayout?: boolean;
755
+ useNormalStyleForList?: boolean;
756
+ doNotUseIndentAsNumberingTabStop?: boolean;
757
+ useAlternateEastAsianLineBreakRules?: boolean;
758
+ allowSpaceOfSameStyleInTable?: boolean;
759
+ doNotSuppressIndentation?: boolean;
760
+ doNotAutofitConstrainedTables?: boolean;
761
+ autofitToFirstFixedWidthCell?: boolean;
762
+ underlineTabInNumberingList?: boolean;
763
+ displayHangulFixedWidth?: boolean;
764
+ splitPgBreakAndParaMark?: boolean;
765
+ doNotVerticallyAlignCellWithSp?: boolean;
766
+ doNotBreakConstrainedForcedTable?: boolean;
767
+ ignoreVerticalAlignmentInTextboxes?: boolean;
768
+ useAnsiKerningPairs?: boolean;
769
+ cachedColumnBalance?: boolean;
770
+ overrideTableStyleFontSizeAndJustification?: boolean;
771
+ enableOpenTypeFeatures?: boolean;
772
+ doNotFlipMirrorIndents?: boolean;
773
+ compatSettings?: CompatSettingOptions[];
774
+ }
775
+ interface CompatSettingOptions {
776
+ name: string;
777
+ val: string;
778
+ uri?: string;
779
+ }
780
+ //#endregion
781
+ //#region src/parts/settings/settings.d.ts
782
+ interface ShapeDefaultsOptions {
783
+ shapedefaults?: VmlShapeDefaultsOptions;
784
+ shapelayout?: VmlShapeLayoutOptions;
785
+ }
786
+ interface SettingsOptions {
787
+ rawXml?: string;
788
+ rootAttributes?: Record<string, string>;
789
+ evenAndOddHeaders?: boolean;
790
+ trackRevisions?: boolean;
791
+ doNotTrackFormatting?: boolean;
792
+ doNotTrackMoves?: boolean;
793
+ revisionView?: RevisionViewOptions;
794
+ updateFields?: boolean;
795
+ compatibility?: CompatibilityOptions | false;
796
+ defaultTabStop?: number;
797
+ hyphenation?: HyphenationOptions;
798
+ characterSpacingControl?: "compressPunctuation" | "doNotCompress";
799
+ documentProtection?: DocumentProtectionOptions;
800
+ view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
801
+ zoom?: {
802
+ percent?: number;
803
+ val?: "none" | "fullPage" | "bestFit" | "textFit";
804
+ };
805
+ writeProtection?: WriteProtectionOptions;
806
+ displayBackgroundShape?: boolean;
807
+ doNotDisplayPageBoundaries?: boolean;
808
+ embedTrueTypeFonts?: boolean;
809
+ embedSystemFonts?: boolean;
810
+ saveSubsetFonts?: boolean;
811
+ docVars?: {
812
+ name: string;
813
+ val: string;
814
+ }[];
815
+ mailMerge?: MailMergeOptions;
816
+ colorSchemeMapping?: {
817
+ bg1?: string;
818
+ t1?: string;
819
+ bg2?: string;
820
+ t2?: string;
821
+ accent1?: string;
822
+ accent2?: string;
823
+ accent3?: string;
824
+ accent4?: string;
825
+ accent5?: string;
826
+ accent6?: string;
827
+ hyperlink?: string;
828
+ followedHyperlink?: string;
829
+ };
830
+ attachedTemplate?: string;
831
+ themeFontLang?: {
832
+ val?: string;
833
+ eastAsia?: string;
834
+ bidi?: string;
835
+ };
836
+ hideSpellingErrors?: boolean;
837
+ hideGrammaticalErrors?: boolean;
838
+ noPunctuationKerning?: boolean;
839
+ removePersonalInformation?: boolean;
840
+ removeDateAndTime?: boolean;
841
+ printPostScriptOverText?: boolean;
842
+ printFractionalCharacterWidth?: boolean;
843
+ printFormsData?: boolean;
844
+ saveFormsData?: boolean;
845
+ mirrorMargins?: boolean;
846
+ alignBordersAndEdges?: boolean;
847
+ bordersDoNotSurroundHeader?: boolean;
848
+ bordersDoNotSurroundFooter?: boolean;
849
+ gutterAtTop?: boolean;
850
+ formsDesign?: boolean;
851
+ linkStyles?: boolean;
852
+ autoFormatOverride?: boolean;
853
+ styleLockTheme?: boolean;
854
+ styleLockQFSet?: boolean;
855
+ showEnvelope?: boolean;
856
+ printTwoOnOne?: boolean;
857
+ strictFirstAndLastChars?: boolean;
858
+ savePreviewPicture?: boolean;
859
+ doNotValidateAgainstSchema?: boolean;
860
+ saveInvalidXml?: boolean;
861
+ ignoreMixedContent?: boolean;
862
+ alwaysShowPlaceholderText?: boolean;
863
+ doNotDemarcateInvalidXml?: boolean;
864
+ saveXmlDataOnly?: boolean;
865
+ useXSLTWhenSaving?: boolean;
866
+ doNotEmbedSmartTags?: boolean;
867
+ doNotAutoCompressPictures?: boolean;
868
+ doNotIncludeSubdocsInStats?: boolean;
869
+ bookFoldPrinting?: boolean;
870
+ bookFoldRevPrinting?: boolean;
871
+ defaultTableStyle?: string;
872
+ decimalSymbol?: string;
873
+ listSeparator?: string;
874
+ w14DocId?: string;
875
+ w15ChartTrackingRefBased?: boolean;
876
+ w15DocId?: string;
877
+ clickAndTypeStyle?: string;
878
+ summaryLength?: number;
879
+ bookFoldPrintingSheets?: number;
880
+ drawingGridHorizontalSpacing?: number;
881
+ drawingGridVerticalSpacing?: number;
882
+ displayHorizontalDrawingGridEvery?: number;
883
+ displayVerticalDrawingGridEvery?: number;
884
+ drawingGridHorizontalOrigin?: number;
885
+ drawingGridVerticalOrigin?: number;
886
+ footnotePr?: DocumentFootnotePropertiesOptions;
887
+ endnotePr?: DocumentEndnotePropertiesOptions;
888
+ rsids?: RsidsOptions;
889
+ readModeInkLockDown?: ReadModeInkLockDownOptions;
890
+ captions?: CaptionsOptions;
891
+ mathPr?: MathPropertiesOptions;
892
+ activeWritingStyle?: {
893
+ lang?: string;
894
+ vendorID?: string;
895
+ dllVersion?: string;
896
+ nlCheck?: boolean;
897
+ checkStyle?: boolean;
898
+ appCheck?: string;
899
+ appName?: string;
900
+ }[];
901
+ proofState?: {
902
+ spelling?: "clean" | "dirty";
903
+ grammar?: "clean" | "dirty";
904
+ };
905
+ stylePaneFormatFilter?: {
906
+ allStyles?: boolean;
907
+ customStyles?: boolean;
908
+ stylesInUse?: boolean;
909
+ headingStyles?: boolean;
910
+ numberingStyles?: boolean;
911
+ tableStyles?: boolean;
912
+ directFormattingOnRuns?: boolean;
913
+ directFormattingOnParagraphs?: boolean;
914
+ directFormattingOnNumbering?: boolean;
915
+ directFormattingOnTables?: boolean;
916
+ clearFormatting?: boolean;
917
+ top3HeadingStyles?: boolean;
918
+ visibleStyles?: boolean;
919
+ alternateStyleNames?: boolean;
920
+ latentStyles?: boolean;
921
+ };
922
+ stylePaneSortMethod?: "name" | "priority" | "default" | "font";
923
+ documentType?: "letter" | "eMail" | "notSpecified";
924
+ doNotUseMarginsForDrawingGridOrigin?: boolean;
925
+ doNotShadeFormData?: boolean;
926
+ noLineBreaksAfter?: {
927
+ lang?: string;
928
+ val?: string;
929
+ };
930
+ noLineBreaksBefore?: {
931
+ lang?: string;
932
+ val?: string;
933
+ };
934
+ saveThroughXslt?: {
935
+ id?: string;
936
+ val?: string;
937
+ solutionID?: string;
938
+ };
939
+ showXMLTags?: boolean;
940
+ alwaysMergeEmptyNamespace?: boolean;
941
+ hdrShapeDefaults?: ShapeDefaultsOptions;
942
+ attachedSchema?: string[];
943
+ forceUpgrade?: boolean;
944
+ smartTagType?: {
945
+ namespace?: string;
946
+ namespaceuri?: string;
947
+ name?: string;
948
+ url?: string;
949
+ }[];
950
+ shapeDefaults?: ShapeDefaultsOptions;
951
+ }
952
+ interface RevisionViewOptions {
953
+ markup?: boolean;
954
+ comments?: boolean;
955
+ insDel?: boolean;
956
+ formatting?: boolean;
957
+ inkAnnotations?: boolean;
958
+ }
959
+ interface DocumentProtectionOptions {
960
+ edit?: "none" | "readOnly" | "comments" | "trackedChanges" | "forms";
961
+ formatting?: boolean;
962
+ password?: string;
963
+ hashValue?: string;
964
+ saltValue?: string;
965
+ hash?: string;
966
+ salt?: string;
967
+ spinCount?: number;
968
+ algorithmName?: string;
969
+ cryptoAlgorithmClass?: string;
970
+ cryptoAlgorithmSid?: number;
971
+ cryptoAlgorithmType?: string;
972
+ cryptoProvider?: string;
973
+ cryptoProviderType?: string;
974
+ cryptoProviderTypeExtension?: number;
975
+ cryptoProviderTypeExtensionSource?: string;
976
+ algorithmExtensionId?: number;
977
+ algorithmExtensionSource?: string;
978
+ cryptoSpinCount?: number;
979
+ }
980
+ interface WriteProtectionOptions {
981
+ password?: string;
982
+ hashValue?: string;
983
+ saltValue?: string;
984
+ hash?: string;
985
+ salt?: string;
986
+ spinCount?: number;
987
+ algorithmName?: string;
988
+ recommended?: boolean;
989
+ cryptoAlgorithmClass?: string;
990
+ cryptoAlgorithmSid?: number;
991
+ cryptoAlgorithmType?: string;
992
+ cryptoProvider?: string;
993
+ cryptoProviderType?: string;
994
+ cryptoProviderTypeExtension?: number;
995
+ cryptoProviderTypeExtensionSource?: string;
996
+ algorithmExtensionId?: number;
997
+ algorithmExtensionSource?: string;
998
+ cryptoSpinCount?: number;
999
+ }
1000
+ type MailMergeDocType = "catalog" | "envelopes" | "mailingLabels" | "formLetters" | "email" | "fax";
1001
+ type MailMergeDest = "newDocument" | "printer" | "email" | "fax";
1002
+ type MailMergeDataType = "textFile" | "database" | "spreadsheet" | "email" | "odbc" | "native" | "addressBook" | "legacy" | "master";
1003
+ type MailMergeSourceType = "database" | "addressBook" | "document1" | "document2" | "text" | "email" | "native" | "legacy" | "master";
1004
+ type OdsoFieldType = "null" | "dbColumn";
1005
+ interface OdsoFieldMapDataOptions {
1006
+ type?: OdsoFieldType;
1007
+ name?: string;
1008
+ mappedName?: string;
1009
+ column?: number;
1010
+ lid?: string;
1011
+ dynamicAddress?: boolean;
1012
+ }
1013
+ interface OdsoOptions {
1014
+ udl?: string;
1015
+ table?: string;
1016
+ src?: string;
1017
+ colDelim?: number;
1018
+ type?: MailMergeSourceType;
1019
+ fHdr?: boolean;
1020
+ fieldMapData?: OdsoFieldMapDataOptions[];
1021
+ recipientData?: string[];
1022
+ uniqueTag?: string;
1023
+ }
1024
+ interface MailMergeOptions {
1025
+ mainDocumentType: MailMergeDocType;
1026
+ dataType: MailMergeDataType;
1027
+ destination?: MailMergeDest;
1028
+ connectString?: string;
1029
+ query?: string;
1030
+ dataSource?: string;
1031
+ headerSource?: string;
1032
+ doNotSuppressBlankLines?: boolean;
1033
+ addressFieldName?: string;
1034
+ mailSubject?: string;
1035
+ mailAsAttachment?: boolean;
1036
+ viewMergedData?: boolean;
1037
+ activeRecord?: number;
1038
+ checkErrors?: number;
1039
+ linkToQuery?: boolean;
1040
+ odso?: OdsoOptions;
1041
+ active?: boolean;
1042
+ recipients?: string;
1043
+ }
1044
+ interface HyphenationOptions {
1045
+ autoHyphenation?: boolean;
1046
+ hyphenationZone?: number;
1047
+ consecutiveHyphenLimit?: number;
1048
+ doNotHyphenateCaps?: boolean;
1049
+ }
1050
+ interface DocumentFootnotePropertiesOptions {
1051
+ pos?: "pageBottom" | "beneathText" | "sectEnd" | "docEnd";
1052
+ numFmt?: string;
1053
+ format?: string;
1054
+ numStart?: number;
1055
+ numRestart?: string;
1056
+ }
1057
+ interface DocumentEndnotePropertiesOptions {
1058
+ pos?: "sectEnd" | "docEnd";
1059
+ numFmt?: string;
1060
+ format?: string;
1061
+ numStart?: number;
1062
+ numRestart?: string;
1063
+ }
1064
+ interface RsidsOptions {
1065
+ rsidRoot?: string;
1066
+ rsids?: string[];
1067
+ }
1068
+ interface ReadModeInkLockDownOptions {
1069
+ actualPg?: boolean;
1070
+ w: number;
1071
+ h: number;
1072
+ fontSz: number;
1073
+ }
1074
+ interface CaptionOptions {
1075
+ name: string;
1076
+ pos?: "above" | "below";
1077
+ chapNum?: boolean;
1078
+ heading?: number;
1079
+ noLabel?: boolean;
1080
+ numFmt?: string;
1081
+ sep?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
1082
+ }
1083
+ interface AutoCaptionOptions {
1084
+ name: string;
1085
+ caption: string;
1086
+ }
1087
+ interface CaptionsOptions {
1088
+ captions: CaptionOptions[];
1089
+ autoCaptions?: AutoCaptionOptions[];
1090
+ }
1091
+ interface MathPropertiesOptions {
1092
+ mathFont?: string;
1093
+ binaryOperatorBreak?: "before" | "after" | "repeat";
1094
+ binaryOperatorBreakSubtraction?: "--" | "-+" | "+-";
1095
+ smallFractions?: boolean;
1096
+ displayDefaults?: boolean;
1097
+ leftMargin?: number;
1098
+ rightMargin?: number;
1099
+ defaultJustification?: "left" | "right" | "center" | "centerGroup";
1100
+ preSpacing?: number;
1101
+ postSpacing?: number;
1102
+ interSpacing?: number;
1103
+ intraSpacing?: number;
1104
+ wrapIndent?: number;
1105
+ wrapRight?: boolean;
1106
+ integralLimitLocation?: "subSup" | "undOvr";
1107
+ naryLimitLocation?: "subSup" | "undOvr";
1108
+ }
1109
+ //#endregion
1110
+ //#region src/parts/settings/descriptor.d.ts
1111
+ declare const settingsDesc: CustomDescriptor<SettingsOptions>;
1112
+ //#endregion
1113
+ //#region src/parts/document/document-attributes.d.ts
1114
+ declare const DocumentAttributeNamespaces: {
1115
+ aink: string;
1116
+ am3d: string;
1117
+ cp: string;
1118
+ cx: string;
1119
+ cx1: string;
1120
+ cx2: string;
1121
+ cx3: string;
1122
+ cx4: string;
1123
+ cx5: string;
1124
+ cx6: string;
1125
+ cx7: string;
1126
+ cx8: string;
1127
+ dc: string;
1128
+ dcmitype: string;
1129
+ dcterms: string;
1130
+ m: string;
1131
+ mc: string;
1132
+ o: string;
1133
+ r: string;
1134
+ v: string;
1135
+ w: string;
1136
+ w10: string;
1137
+ w14: string;
1138
+ w15: string;
1139
+ w16: string;
1140
+ w16cex: string;
1141
+ w16cid: string;
1142
+ w16sdtdh: string;
1143
+ w16se: string;
1144
+ wne: string;
1145
+ wp: string;
1146
+ wp14: string;
1147
+ wpc: string;
1148
+ wpg: string;
1149
+ wpi: string;
1150
+ wps: string;
1151
+ xsi: string;
1152
+ };
1153
+ type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
1154
+ declare const documentNamespaceAttributes: (keys: readonly DocumentAttributeNamespace[]) => string;
1155
+ declare const documentNamespaceRecord: (keys: readonly DocumentAttributeNamespace[]) => Record<string, string>;
1156
+ //#endregion
1157
+ //#region src/parts/document/document-background/document-background.d.ts
1158
+ interface BackgroundImageOptions {
1159
+ data: DataType;
1160
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1161
+ }
1162
+ interface DocumentBackgroundOptions {
1163
+ color?: string;
1164
+ themeColor?: string;
1165
+ themeShade?: string;
1166
+ themeTint?: string;
1167
+ image?: BackgroundImageOptions;
1168
+ rawXml?: string;
1169
+ rawMedia?: BackgroundRawMediaOptions[];
1170
+ }
1171
+ interface BackgroundRawMediaOptions {
1172
+ fileName: string;
1173
+ data: DataType;
1174
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1175
+ }
1176
+ //#endregion
1177
+ //#region src/parts/endnotes/descriptor.d.ts
1178
+ interface EndnoteSeparator {
1179
+ id: number;
1180
+ paragraphs: (ParagraphOptions | string)[];
1181
+ }
1182
+ interface EndnotesData {
1183
+ notes: Map<number, (ParagraphOptions | string)[]>;
1184
+ separator?: EndnoteSeparator;
1185
+ continuationSeparator?: EndnoteSeparator;
1186
+ }
1187
+ declare const endnotesDesc: CustomDescriptor<EndnotesData, BodyContext>;
1188
+ //#endregion
1189
+ //#region src/parts/footnotes/descriptor.d.ts
1190
+ interface FootnoteSeparator {
1191
+ id: number;
1192
+ paragraphs: (ParagraphOptions | string)[];
1193
+ }
1194
+ interface FootnotesData {
1195
+ notes: Map<number, (ParagraphOptions | string)[]>;
1196
+ separator?: FootnoteSeparator;
1197
+ continuationSeparator?: FootnoteSeparator;
1198
+ }
1199
+ declare const footnotesDesc: CustomDescriptor<FootnotesData, BodyContext>;
1200
+ //#endregion
1201
+ //#region src/parts/table/grid.d.ts
1202
+ interface TableGridChangeOptions {
1203
+ id: number;
1204
+ columnWidths: number[] | PositiveUniversalMeasure[];
1205
+ }
1206
+ //#endregion
1207
+ //#region src/parts/table/table-cell-spacing.d.ts
1208
+ declare const CellSpacingType: {
1209
+ readonly DXA: "dxa";
1210
+ readonly NIL: "nil";
1211
+ readonly PERCENTAGE: "pct";
1212
+ };
1213
+ interface TableCellSpacingProperties {
1214
+ size: number | Percentage | UniversalMeasure;
1215
+ type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
1216
+ }
1217
+ //#endregion
1218
+ //#region src/parts/table/table-width.d.ts
1219
+ declare const WidthType: {
1220
+ readonly AUTO: "auto";
1221
+ readonly DXA: "dxa";
1222
+ readonly NIL: "nil";
1223
+ readonly PERCENTAGE: "pct";
1224
+ };
1225
+ interface TableWidthProperties {
1226
+ size: number | Percentage | UniversalMeasure;
1227
+ type?: (typeof WidthType)[keyof typeof WidthType];
1228
+ }
1229
+ declare const widthPctToFiftieths: (size: number | Percentage | UniversalMeasure) => number | Percentage | UniversalMeasure;
1230
+ declare const widthFiftiethsToPct: (size: number | string | undefined, type: string | undefined) => number | string | undefined;
1231
+ //#endregion
1232
+ //#region src/parts/table/table-properties/table-borders.d.ts
1233
+ interface TableBordersOptions {
1234
+ top?: BorderOptions;
1235
+ bottom?: BorderOptions;
1236
+ left?: BorderOptions;
1237
+ right?: BorderOptions;
1238
+ insideHorizontal?: BorderOptions;
1239
+ insideVertical?: BorderOptions;
1240
+ }
1241
+ declare const TABLE_BORDERS_NONE: TableBordersOptions;
1242
+ //#endregion
1243
+ //#region src/parts/table/table-properties/table-cell-margin.d.ts
1244
+ interface TableCellMarginOptions {
1245
+ top?: TableWidthProperties;
1246
+ start?: TableWidthProperties;
1247
+ left?: TableWidthProperties;
1248
+ bottom?: TableWidthProperties;
1249
+ end?: TableWidthProperties;
1250
+ right?: TableWidthProperties;
1251
+ }
1252
+ //#endregion
1253
+ //#region src/parts/table/table-properties/table-float-properties.d.ts
1254
+ declare const TableAnchorType: {
1255
+ readonly MARGIN: "margin";
1256
+ readonly PAGE: "page";
1257
+ readonly TEXT: "text";
1258
+ };
1259
+ declare const RelativeHorizontalPosition: {
1260
+ readonly CENTER: "center";
1261
+ readonly INSIDE: "inside";
1262
+ readonly LEFT: "left";
1263
+ readonly OUTSIDE: "outside";
1264
+ readonly RIGHT: "right";
1265
+ };
1266
+ declare const RelativeVerticalPosition: {
1267
+ readonly BOTTOM: "bottom";
1268
+ readonly CENTER: "center";
1269
+ readonly INLINE: "inline";
1270
+ readonly INSIDE: "inside";
1271
+ readonly OUTSIDE: "outside";
1272
+ readonly TOP: "top";
1273
+ };
1274
+ declare const OverlapType: {
1275
+ readonly NEVER: "never";
1276
+ readonly OVERLAP: "overlap";
1277
+ };
1278
+ interface TableFloatOptions {
1279
+ horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1280
+ absoluteHorizontalPosition?: number;
1281
+ relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
1282
+ verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1283
+ absoluteVerticalPosition?: number;
1284
+ relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
1285
+ bottomFromText?: number;
1286
+ topFromText?: number;
1287
+ leftFromText?: number;
1288
+ rightFromText?: number;
1289
+ overlap?: (typeof OverlapType)[keyof typeof OverlapType];
1290
+ }
1291
+ //#endregion
1292
+ //#region src/parts/table/table-properties/table-layout.d.ts
1293
+ declare const TableLayoutType: {
1294
+ readonly AUTOFIT: "autofit";
1295
+ readonly FIXED: "fixed";
1296
+ };
1297
+ //#endregion
1298
+ //#region src/parts/table/table-properties/table-look.d.ts
1299
+ interface TableLookOptions {
1300
+ firstRow?: boolean;
1301
+ lastRow?: boolean;
1302
+ firstColumn?: boolean;
1303
+ lastColumn?: boolean;
1304
+ noHBand?: boolean;
1305
+ noVBand?: boolean;
1306
+ }
1307
+ //#endregion
1308
+ //#region src/parts/table/table-properties/table-properties.d.ts
1309
+ interface TablePropertiesOptionsBase {
1310
+ width?: TableWidthProperties;
1311
+ indent?: TableWidthProperties;
1312
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1313
+ borders?: TableBordersOptions;
1314
+ float?: TableFloatOptions;
1315
+ shading?: ShadingProperties;
1316
+ style?: string;
1317
+ alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1318
+ cellMargin?: TableCellMarginOptions;
1319
+ visuallyRightToLeft?: boolean;
1320
+ tableLook?: TableLookOptions;
1321
+ cellSpacing?: TableCellSpacingProperties;
1322
+ styleRowBandSize?: number;
1323
+ styleColBandSize?: number;
1324
+ caption?: string;
1325
+ description?: string;
1326
+ }
1327
+ type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedProperties;
1328
+ type TablePropertiesOptions = {
1329
+ revision?: TablePropertiesChangeOptions;
1330
+ includeIfEmpty?: boolean;
1331
+ } & TablePropertiesOptionsBase;
1332
+ //#endregion
1333
+ //#region src/parts/table/table-properties/table-property-exceptions.d.ts
1334
+ interface TablePropertyExOptions {
1335
+ width?: TableWidthProperties;
1336
+ indent?: TableWidthProperties;
1337
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1338
+ borders?: TableBordersOptions;
1339
+ shading?: ShadingProperties;
1340
+ alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1341
+ cellMargin?: TableCellMarginOptions;
1342
+ tableLook?: TableLookOptions;
1343
+ cellSpacing?: TableCellSpacingProperties;
1344
+ tblPrExChange?: TablePropertyExChangeOptions;
1345
+ }
1346
+ type TablePropertyExChangeOptions = Omit<TablePropertyExOptions, "tblPrExChange"> & ChangedProperties;
1347
+ //#endregion
1348
+ //#region src/parts/table/table-cell/table-cell-components.d.ts
1349
+ interface TableCellBordersOptions {
1350
+ top?: BorderOptions;
1351
+ start?: BorderOptions;
1352
+ left?: BorderOptions;
1353
+ bottom?: BorderOptions;
1354
+ end?: BorderOptions;
1355
+ right?: BorderOptions;
1356
+ insideHorizontal?: BorderOptions;
1357
+ insideVertical?: BorderOptions;
1358
+ topLeftToBottomRight?: BorderOptions;
1359
+ topRightToBottomLeft?: BorderOptions;
1360
+ }
1361
+ declare const VerticalMergeType: {
1362
+ readonly CONTINUE: "continue";
1363
+ readonly RESTART: "restart";
1364
+ };
1365
+ declare const TextDirection: {
1366
+ readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
1367
+ readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
1368
+ readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
1369
+ };
1370
+ //#endregion
1371
+ //#region src/parts/table/table-row/table-row-height.d.ts
1372
+ declare const HeightRule: {
1373
+ readonly AUTO: "auto";
1374
+ readonly ATLEAST: "atLeast";
1375
+ readonly EXACT: "exact";
1376
+ };
1377
+ //#endregion
1378
+ //#region src/parts/table/table-row/table-row-properties.d.ts
1379
+ interface CnfStyleOptions {
1380
+ val?: string;
1381
+ firstRow?: boolean;
1382
+ lastRow?: boolean;
1383
+ firstColumn?: boolean;
1384
+ lastColumn?: boolean;
1385
+ oddVBand?: boolean;
1386
+ evenVBand?: boolean;
1387
+ oddHBand?: boolean;
1388
+ evenHBand?: boolean;
1389
+ firstRowFirstColumn?: boolean;
1390
+ firstRowLastColumn?: boolean;
1391
+ lastRowFirstColumn?: boolean;
1392
+ lastRowLastColumn?: boolean;
1393
+ }
1394
+ interface TableRowPropertiesOptionsBase {
1395
+ cnfStyle?: CnfStyleOptions;
1396
+ cantSplit?: boolean;
1397
+ tableHeader?: boolean;
1398
+ height?: {
1399
+ value: number | PositiveUniversalMeasure;
1400
+ rule?: (typeof HeightRule)[keyof typeof HeightRule];
1401
+ };
1402
+ cellSpacing?: TableCellSpacingProperties;
1403
+ divId?: number;
1404
+ gridBefore?: number;
1405
+ gridAfter?: number;
1406
+ widthBefore?: TableWidthProperties;
1407
+ widthAfter?: TableWidthProperties;
1408
+ rowAlignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1409
+ hidden?: boolean;
1410
+ }
1411
+ type TableRowPropertiesOptions = TableRowPropertiesOptionsBase & {
1412
+ insertion?: ChangedProperties;
1413
+ deletion?: ChangedProperties;
1414
+ revision?: TableRowPropertiesChangeOptions;
1415
+ includeIfEmpty?: boolean;
1416
+ };
1417
+ type TableRowPropertiesChangeOptions = TableRowPropertiesOptionsBase & ChangedProperties;
1418
+ //#endregion
1419
+ //#region src/parts/table/table-row/table-row.d.ts
1420
+ interface SdtRowOptions {
1421
+ properties: SdtPropertiesOptions;
1422
+ rows?: TableRowOptions[];
1423
+ endProperties?: RunPropertiesOptions;
1424
+ }
1425
+ interface TableRowOptions extends BaseTableRowOptions<TableCellOptions | {
1426
+ sdt: SdtCellOptions;
1427
+ } | {
1428
+ customXml: CustomXmlCellOptions;
1429
+ }>, TableRowPropertiesOptions {
1430
+ propertyExceptions?: TablePropertyExOptions;
1431
+ runPropertiesRsid?: string;
1432
+ rsid?: string;
1433
+ deletionRsid?: string;
1434
+ tableRowRsid?: string;
1435
+ }
1436
+ //#endregion
1437
+ //#region src/parts/table/table.d.ts
1438
+ interface TableOptions extends BaseTableOptions<TableRowOptions | {
1439
+ sdt: SdtRowOptions;
1440
+ } | {
1441
+ customXml: CustomXmlRowOptions;
1442
+ }> {
1443
+ width?: TableWidthProperties;
1444
+ columnWidthsRevision?: TableGridChangeOptions;
1445
+ margins?: TableCellMarginOptions;
1446
+ indent?: TableWidthProperties;
1447
+ float?: TableFloatOptions;
1448
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1449
+ style?: string;
1450
+ borders?: TableBordersOptions;
1451
+ alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1452
+ visuallyRightToLeft?: boolean;
1453
+ cellSpacing?: TableCellSpacingProperties;
1454
+ styleRowBandSize?: number;
1455
+ styleColBandSize?: number;
1456
+ caption?: string;
1457
+ description?: string;
1458
+ revision?: TablePropertiesChangeOptions;
1459
+ shading?: ShadingProperties;
1460
+ }
1461
+ //#endregion
1462
+ //#region src/shared/track-revision/track-revision-components/cell-merge.d.ts
1463
+ declare const VerticalMergeRevisionType: {
1464
+ readonly CONTINUE: "continue";
1465
+ readonly RESTART: "restart";
1466
+ };
1467
+ type CellMergeAttributes = ChangedProperties & {
1468
+ verticalMerge?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
1469
+ verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
1470
+ };
1471
+ //#endregion
1472
+ //#region src/shared/vertical-align.d.ts
1473
+ declare const VerticalAlignTable: {
1474
+ readonly BOTTOM: "bottom";
1475
+ readonly CENTER: "center";
1476
+ readonly TOP: "top";
1477
+ };
1478
+ declare const VerticalAlignSection: {
1479
+ readonly BOTH: "both";
1480
+ readonly BOTTOM: "bottom";
1481
+ readonly CENTER: "center";
1482
+ readonly TOP: "top";
1483
+ };
1484
+ type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
1485
+ type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
1486
+ declare const createVerticalAlign: (value: TableVerticalAlign | SectionVerticalAlign) => string;
1487
+ //#endregion
1488
+ //#region src/parts/table/table-cell/table-cell-properties.d.ts
1489
+ interface TableCellPropertiesOptionsBase {
1490
+ cnfStyle?: CnfStyleOptions;
1491
+ shading?: ShadingProperties;
1492
+ margins?: TableCellMarginOptions;
1493
+ verticalAlign?: TableVerticalAlign;
1494
+ textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
1495
+ verticalMerge?: "continue" | "restart";
1496
+ width?: TableWidthProperties;
1497
+ columnSpan?: number;
1498
+ rowSpan?: number;
1499
+ borders?: TableCellBordersOptions;
1500
+ horizontalMerge?: "continue" | "restart";
1501
+ noWrap?: boolean;
1502
+ fitText?: boolean;
1503
+ hideMark?: boolean;
1504
+ headers?: string[];
1505
+ insertion?: ChangedProperties;
1506
+ deletion?: ChangedProperties;
1507
+ cellMerge?: CellMergeAttributes;
1508
+ }
1509
+ type TableCellPropertiesOptions = {
1510
+ revision?: TableCellPropertiesChangeOptions;
1511
+ includeIfEmpty?: boolean;
1512
+ } & TableCellPropertiesOptionsBase;
1513
+ type TableCellPropertiesChangeOptions = TableCellPropertiesOptionsBase & ChangedProperties;
1514
+ //#endregion
1515
+ //#region src/parts/table/descriptor.d.ts
1516
+ declare const tableDesc: CustomDescriptor<TableOptions, BodyContext>;
1517
+ type ParseChildFn = (el: Element, ctx: DocxReadContext) => SectionChild;
1518
+ declare function setTableParseChild(fn: ParseChildFn): void;
1519
+ declare function parseTablePropertiesEl(el: Element): TablePropertiesOptions;
1520
+ declare function parseTableRowPropertiesEl(el: Element): TableRowPropertiesOptions;
1521
+ declare function parseTableCellPropertiesEl(el: Element): TableCellPropertiesOptions;
1522
+ //#endregion
1523
+ //#region src/shared/constants.d.ts
1524
+ declare const HorizontalPositionAlign: {
1525
+ readonly CENTER: "center";
1526
+ readonly INSIDE: "inside";
1527
+ readonly LEFT: "left";
1528
+ readonly OUTSIDE: "outside";
1529
+ readonly RIGHT: "right";
1530
+ };
1531
+ declare const VerticalPositionAlign: {
1532
+ readonly BOTTOM: "bottom";
1533
+ readonly CENTER: "center";
1534
+ readonly INSIDE: "inside";
1535
+ readonly OUTSIDE: "outside";
1536
+ readonly TOP: "top";
1537
+ };
1538
+ declare const NumberFormat: {
1539
+ readonly AIUEO: "aiueo";
1540
+ readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
1541
+ readonly ARABIC_ABJAD: "arabicAbjad";
1542
+ readonly ARABIC_ALPHA: "arabicAlpha";
1543
+ readonly BAHT_TEXT: "bahtText";
1544
+ readonly BULLET: "bullet";
1545
+ readonly CARDINAL_TEXT: "cardinalText";
1546
+ readonly CHICAGO: "chicago";
1547
+ readonly CHINESE_COUNTING: "chineseCounting";
1548
+ readonly CHINESE_COUNTING_TEN_THOUSAND: "chineseCountingThousand";
1549
+ readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
1550
+ readonly CHOSUNG: "chosung";
1551
+ readonly DECIMAL: "decimal";
1552
+ readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
1553
+ readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
1554
+ readonly DECIMAL_ENCLOSED_FULL_STOP: "decimalEnclosedFullstop";
1555
+ readonly DECIMAL_ENCLOSED_PAREN: "decimalEnclosedParen";
1556
+ readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
1557
+ readonly DECIMAL_FULL_WIDTH_2: "decimalFullWidth2";
1558
+ readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
1559
+ readonly DECIMAL_ZERO: "decimalZero";
1560
+ readonly DOLLAR_TEXT: "dollarText";
1561
+ readonly GANADA: "ganada";
1562
+ readonly HEBREW_1: "hebrew1";
1563
+ readonly HEBREW_2: "hebrew2";
1564
+ readonly HEX: "hex";
1565
+ readonly HINDI_CONSONANTS: "hindiConsonants";
1566
+ readonly HINDI_COUNTING: "hindiCounting";
1567
+ readonly HINDI_NUMBERS: "hindiNumbers";
1568
+ readonly HINDI_VOWELS: "hindiVowels";
1569
+ readonly IDEOGRAPH_DIGITAL: "ideographDigital";
1570
+ readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
1571
+ readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
1572
+ readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
1573
+ readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
1574
+ readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
1575
+ readonly IROHA: "iroha";
1576
+ readonly IROHA_FULL_WIDTH: "irohaFullWidth";
1577
+ readonly JAPANESE_COUNTING: "japaneseCounting";
1578
+ readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
1579
+ readonly JAPANESE_LEGAL: "japaneseLegal";
1580
+ readonly KOREAN_COUNTING: "koreanCounting";
1581
+ readonly KOREAN_DIGITAL: "koreanDigital";
1582
+ readonly KOREAN_DIGITAL_2: "koreanDigital2";
1583
+ readonly KOREAN_LEGAL: "koreanLegal";
1584
+ readonly LOWER_LETTER: "lowerLetter";
1585
+ readonly LOWER_ROMAN: "lowerRoman";
1586
+ readonly NONE: "none";
1587
+ readonly NUMBER_IN_DASH: "numberInDash";
1588
+ readonly ORDINAL: "ordinal";
1589
+ readonly ORDINAL_TEXT: "ordinalText";
1590
+ readonly RUSSIAN_LOWER: "russianLower";
1591
+ readonly RUSSIAN_UPPER: "russianUpper";
1592
+ readonly TAIWANESE_COUNTING: "taiwaneseCounting";
1593
+ readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
1594
+ readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
1595
+ readonly THAI_COUNTING: "thaiCounting";
1596
+ readonly THAI_LETTERS: "thaiLetters";
1597
+ readonly THAI_NUMBERS: "thaiNumbers";
1598
+ readonly UPPER_LETTER: "upperLetter";
1599
+ readonly UPPER_ROMAN: "upperRoman";
1600
+ readonly VIETNAMESE_COUNTING: "vietnameseCounting";
1601
+ };
1602
+ declare const SpaceType: {
1603
+ readonly DEFAULT: "default";
1604
+ readonly PRESERVE: "preserve";
1605
+ };
1606
+ //#endregion
1607
+ //#region src/parts/paragraph/frame/frame-properties.d.ts
1608
+ declare const DropCapType: {
1609
+ readonly NONE: "none";
1610
+ readonly DROP: "drop";
1611
+ readonly MARGIN: "margin";
1612
+ };
1613
+ declare const FrameAnchorType: {
1614
+ readonly MARGIN: "margin";
1615
+ readonly PAGE: "page";
1616
+ readonly TEXT: "text";
1617
+ };
1618
+ declare const FrameWrap: {
1619
+ readonly AROUND: "around";
1620
+ readonly AUTO: "auto";
1621
+ readonly NONE: "none";
1622
+ readonly NOT_BESIDE: "notBeside";
1623
+ readonly THROUGH: "through";
1624
+ readonly TIGHT: "tight";
1625
+ };
1626
+ interface BaseFrameOptions {
1627
+ anchorLock?: boolean;
1628
+ dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
1629
+ width?: number | UniversalMeasure;
1630
+ height?: number | UniversalMeasure;
1631
+ wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
1632
+ lines?: number;
1633
+ anchor?: {
1634
+ horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
1635
+ vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
1636
+ };
1637
+ space?: {
1638
+ horizontal: number | UniversalMeasure;
1639
+ vertical: number | UniversalMeasure;
1640
+ };
1641
+ rule?: (typeof HeightRule)[keyof typeof HeightRule];
1642
+ }
1643
+ type XYFrameOptions = {
1644
+ type: "absolute";
1645
+ position: {
1646
+ x: number | UniversalMeasure;
1647
+ y: number | UniversalMeasure;
1648
+ };
1649
+ } & BaseFrameOptions;
1650
+ type AlignmentFrameOptions = {
1651
+ type: "alignment";
1652
+ alignment: {
1653
+ x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
1654
+ y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
1655
+ };
1656
+ } & BaseFrameOptions;
1657
+ type FrameOptions = XYFrameOptions | AlignmentFrameOptions;
1658
+ //#endregion
1659
+ //#region src/parts/paragraph/properties.d.ts
1660
+ declare const TextAlignmentType: {
1661
+ readonly TOP: "top";
1662
+ readonly CENTER: "center";
1663
+ readonly BASELINE: "baseline";
1664
+ readonly BOTTOM: "bottom";
1665
+ readonly AUTO: "auto";
1666
+ };
1667
+ declare const TextboxTightWrapType: {
1668
+ readonly NONE: "none";
1669
+ readonly ALL_LINES: "allLines";
1670
+ readonly FIRST_AND_LAST_LINE: "firstAndLastLine";
1671
+ readonly FIRST_LINE_ONLY: "firstLineOnly";
1672
+ readonly LAST_LINE_ONLY: "lastLineOnly";
1673
+ };
1674
+ interface LevelParagraphStylePropertiesOptions {
1675
+ alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1676
+ bidirectional?: boolean;
1677
+ pageBreakBefore?: boolean;
1678
+ tabStops?: TabStopDefinition[];
1679
+ thematicBreak?: boolean;
1680
+ widowControl?: boolean;
1681
+ contextualSpacing?: boolean;
1682
+ rightTabStop?: number;
1683
+ leftTabStop?: number;
1684
+ indent?: IndentProperties;
1685
+ spacing?: SpacingProperties;
1686
+ keepNext?: boolean;
1687
+ keepLines?: boolean;
1688
+ frame?: FrameOptions;
1689
+ suppressLineNumbers?: boolean;
1690
+ wordWrap?: boolean;
1691
+ overflowPunctuation?: boolean;
1692
+ autoSpaceEastAsianText?: boolean;
1693
+ suppressOverlap?: boolean;
1694
+ suppressAutoHyphens?: boolean;
1695
+ adjustRightInd?: boolean;
1696
+ snapToGrid?: boolean;
1697
+ mirrorIndents?: boolean;
1698
+ kinsoku?: boolean;
1699
+ topLinePunct?: boolean;
1700
+ autoSpaceDE?: boolean;
1701
+ textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
1702
+ textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
1703
+ textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
1704
+ outlineLevel?: number;
1705
+ divId?: number;
1706
+ cnfStyle?: CnfConditionalOptions;
1707
+ }
1708
+ type ParagraphStylePropertiesOptions = {
1709
+ style?: string;
1710
+ heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
1711
+ border?: BordersOptions;
1712
+ shading?: ShadingProperties;
1713
+ numbering?: {
1714
+ reference: string;
1715
+ level: number;
1716
+ instance?: number;
1717
+ custom?: boolean;
1718
+ numberingChange?: {
1719
+ original: string;
1720
+ id: string;
1721
+ author: string;
1722
+ date?: string;
1723
+ };
1724
+ } | false;
1725
+ } & LevelParagraphStylePropertiesOptions;
1726
+ type ParagraphPropertiesOptionsBase = {
1727
+ heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
1728
+ style?: string;
1729
+ bullet?: {
1730
+ level: number;
1731
+ };
1732
+ run?: ParagraphRunOptions;
1733
+ } & ParagraphStylePropertiesOptions;
1734
+ type ParagraphPropertiesChangeOptions = ChangedProperties & ParagraphPropertiesOptionsBase;
1735
+ type ParagraphPropertiesOptions = {
1736
+ revision?: ParagraphPropertiesChangeOptions;
1737
+ includeIfEmpty?: boolean;
1738
+ } & ParagraphPropertiesOptionsBase;
1739
+ //#endregion
1740
+ //#region src/parts/numbering/level.d.ts
1741
+ declare const LevelFormat: {
1742
+ readonly DECIMAL: "decimal";
1743
+ readonly UPPER_ROMAN: "upperRoman";
1744
+ readonly LOWER_ROMAN: "lowerRoman";
1745
+ readonly UPPER_LETTER: "upperLetter";
1746
+ readonly LOWER_LETTER: "lowerLetter";
1747
+ readonly ORDINAL: "ordinal";
1748
+ readonly CARDINAL_TEXT: "cardinalText";
1749
+ readonly ORDINAL_TEXT: "ordinalText";
1750
+ readonly HEX: "hex";
1751
+ readonly CHICAGO: "chicago";
1752
+ readonly IDEOGRAPH__DIGITAL: "ideographDigital";
1753
+ readonly JAPANESE_COUNTING: "japaneseCounting";
1754
+ readonly AIUEO: "aiueo";
1755
+ readonly IROHA: "iroha";
1756
+ readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
1757
+ readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
1758
+ readonly JAPANESE_LEGAL: "japaneseLegal";
1759
+ readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
1760
+ readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
1761
+ readonly DECIMAL_FULL_WIDTH2: "decimalFullWidth2";
1762
+ readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
1763
+ readonly IROHA_FULL_WIDTH: "irohaFullWidth";
1764
+ readonly DECIMAL_ZERO: "decimalZero";
1765
+ readonly BULLET: "bullet";
1766
+ readonly GANADA: "ganada";
1767
+ readonly CHOSUNG: "chosung";
1768
+ readonly DECIMAL_ENCLOSED_FULLSTOP: "decimalEnclosedFullstop";
1769
+ readonly DECIMAL_ENCLOSED_PARENTHESES: "decimalEnclosedParen";
1770
+ readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
1771
+ readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
1772
+ readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
1773
+ readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
1774
+ readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
1775
+ readonly TAIWANESE_COUNTING: "taiwaneseCounting";
1776
+ readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
1777
+ readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
1778
+ readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
1779
+ readonly CHINESE_COUNTING: "chineseCounting";
1780
+ readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
1781
+ readonly CHINESE_COUNTING_THOUSAND: "chineseCountingThousand";
1782
+ readonly KOREAN_DIGITAL: "koreanDigital";
1783
+ readonly KOREAN_COUNTING: "koreanCounting";
1784
+ readonly KOREAN_LEGAL: "koreanLegal";
1785
+ readonly KOREAN_DIGITAL2: "koreanDigital2";
1786
+ readonly VIETNAMESE_COUNTING: "vietnameseCounting";
1787
+ readonly RUSSIAN_LOWER: "russianLower";
1788
+ readonly RUSSIAN_UPPER: "russianUpper";
1789
+ readonly NONE: "none";
1790
+ readonly NUMBER_IN_DASH: "numberInDash";
1791
+ readonly HEBREW1: "hebrew1";
1792
+ readonly HEBREW2: "hebrew2";
1793
+ readonly ARABIC_ALPHA: "arabicAlpha";
1794
+ readonly ARABIC_ABJAD: "arabicAbjad";
1795
+ readonly HINDI_VOWELS: "hindiVowels";
1796
+ readonly HINDI_CONSONANTS: "hindiConsonants";
1797
+ readonly HINDI_NUMBERS: "hindiNumbers";
1798
+ readonly HINDI_COUNTING: "hindiCounting";
1799
+ readonly THAI_LETTERS: "thaiLetters";
1800
+ readonly THAI_NUMBERS: "thaiNumbers";
1801
+ readonly THAI_COUNTING: "thaiCounting";
1802
+ readonly BAHT_TEXT: "bahtText";
1803
+ readonly DOLLAR_TEXT: "dollarText";
1804
+ readonly CUSTOM: "custom";
1805
+ };
1806
+ declare const LevelSuffix: {
1807
+ readonly NOTHING: "nothing";
1808
+ readonly SPACE: "space";
1809
+ readonly TAB: "tab";
1810
+ };
1811
+ interface LevelsOptions {
1812
+ level: number;
1813
+ format?: (typeof LevelFormat)[keyof typeof LevelFormat];
1814
+ text?: string;
1815
+ textNull?: boolean;
1816
+ alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1817
+ start?: number;
1818
+ suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
1819
+ isLegalNumberingStyle?: boolean;
1820
+ levelRestart?: number;
1821
+ paragraphStyle?: string;
1822
+ levelPictureBulletId?: number;
1823
+ templateCode?: string;
1824
+ tentative?: boolean;
1825
+ w15Tentative?: boolean;
1826
+ legacy?: {
1827
+ enabled?: boolean;
1828
+ space?: number;
1829
+ indent?: number;
1830
+ };
1831
+ style?: {
1832
+ run?: RunStylePropertiesOptions;
1833
+ paragraph?: LevelParagraphStylePropertiesOptions;
1834
+ };
1835
+ }
1836
+ //#endregion
1837
+ //#region src/parts/numbering/numbering.d.ts
1838
+ interface NumberingOptions {
1839
+ config: {
1840
+ levels: LevelsOptions[];
1841
+ reference: string;
1842
+ extraOptions?: AbstractNumberingExtraOptions;
1843
+ }[];
1844
+ numIdMacAtCleanup?: number;
1845
+ numPicBullets?: {
1846
+ numPicBulletId: number;
1847
+ pict?: string;
1848
+ drawing?: string;
1849
+ }[];
1850
+ }
1851
+ declare class Numbering {
1852
+ private abstractNumberingData;
1853
+ private concreteNumberingData;
1854
+ private referenceConfigMap;
1855
+ private abstractNumUniqueNumericId;
1856
+ private concreteNumUniqueNumericId;
1857
+ private _numIdMacAtCleanup?;
1858
+ private _numPicBullets?;
1859
+ constructor(options: NumberingOptions);
1860
+ serialize(): string;
1861
+ createConcreteNumberingInstance(reference: string, instance: number): void;
1862
+ get concreteNumbering(): {
1863
+ numId: number;
1864
+ reference: string;
1865
+ instance: number;
1866
+ }[];
1867
+ get referenceConfig(): LevelsOptions[][];
1868
+ }
1869
+ interface AbstractNumberingExtraOptions {
1870
+ nsid?: string;
1871
+ multiLevelType?: string;
1872
+ restartNumberingAfterBreak?: boolean;
1873
+ tmpl?: string;
1874
+ name?: string;
1875
+ styleLink?: string;
1876
+ numStyleLink?: string;
1877
+ }
1878
+ declare function parseNumberingDefinitions(el: Element, parseParagraphProperties: (el: Element, ctx: DocxReadContext) => Partial<ParagraphPropertiesOptions>, ctx: DocxReadContext): NumberingOptions | undefined;
1879
+ //#endregion
1880
+ //#region src/parts/styles/factory.d.ts
1881
+ interface DefaultStylesOptions {
1882
+ document?: DocumentDefaultsOptions;
1883
+ title?: ParagraphStyleOptions;
1884
+ subtitle?: ParagraphStyleOptions;
1885
+ heading1?: ParagraphStyleOptions;
1886
+ heading2?: ParagraphStyleOptions;
1887
+ heading3?: ParagraphStyleOptions;
1888
+ heading4?: ParagraphStyleOptions;
1889
+ heading5?: ParagraphStyleOptions;
1890
+ heading6?: ParagraphStyleOptions;
1891
+ heading7?: ParagraphStyleOptions;
1892
+ heading8?: ParagraphStyleOptions;
1893
+ heading9?: ParagraphStyleOptions;
1894
+ strong?: ParagraphStyleOptions;
1895
+ emphasis?: ParagraphStyleOptions;
1896
+ listParagraph?: ParagraphStyleOptions;
1897
+ quote?: ParagraphStyleOptions;
1898
+ intenseQuote?: ParagraphStyleOptions;
1899
+ hyperlink?: CharacterStyleOptions;
1900
+ footnoteReference?: CharacterStyleOptions;
1901
+ footnoteText?: ParagraphStyleOptions;
1902
+ footnoteTextChar?: CharacterStyleOptions;
1903
+ endnoteReference?: CharacterStyleOptions;
1904
+ endnoteText?: ParagraphStyleOptions;
1905
+ endnoteTextChar?: CharacterStyleOptions;
1906
+ }
1907
+ interface DocumentDefaultsOptions {
1908
+ paragraph?: ParagraphStylePropertiesOptions | null;
1909
+ run?: RunStylePropertiesOptions | null;
1910
+ }
1911
+ interface StyleOptions {
1912
+ name?: string;
1913
+ aliases?: string;
1914
+ basedOn?: string;
1915
+ next?: string;
1916
+ link?: string;
1917
+ autoRedefine?: boolean;
1918
+ uiPriority?: number;
1919
+ semiHidden?: boolean;
1920
+ unhideWhenUsed?: boolean;
1921
+ quickFormat?: boolean;
1922
+ locked?: boolean;
1923
+ personal?: boolean;
1924
+ personalCompose?: boolean;
1925
+ personalReply?: boolean;
1926
+ hidden?: boolean;
1927
+ rsid?: string;
1928
+ default?: boolean;
1929
+ customStyle?: boolean;
1930
+ }
1931
+ type ParagraphStyleOptions = {
1932
+ paragraph?: ParagraphStylePropertiesOptions;
1933
+ run?: RunStylePropertiesOptions;
1934
+ } & StyleOptions & {
1935
+ id?: string;
1936
+ };
1937
+ type CharacterStyleOptions = {
1938
+ run?: RunStylePropertiesOptions;
1939
+ } & StyleOptions & {
1940
+ id?: string;
1941
+ };
1942
+ declare function stringifyParagraphStyle(opts: StyleOptions & {
1943
+ id: string;
1944
+ paragraph?: ParagraphStylePropertiesOptions;
1945
+ run?: RunStylePropertiesOptions;
1946
+ }): string;
1947
+ declare function stringifyCharacterStyle(opts: StyleOptions & {
1948
+ id: string;
1949
+ run?: RunStylePropertiesOptions;
1950
+ }): string;
1951
+ type TableStyleOverrideType = "wholeTable" | "firstRow" | "lastRow" | "firstCol" | "lastCol" | "band1Vert" | "band2Vert" | "band1Horz" | "band2Horz" | "neCell" | "nwCell" | "seCell" | "swCell";
1952
+ interface ConditionalTableStyleOptions {
1953
+ type: TableStyleOverrideType;
1954
+ paragraph?: ParagraphStylePropertiesOptions;
1955
+ run?: RunStylePropertiesOptions;
1956
+ table?: TablePropertiesOptions;
1957
+ row?: TableRowPropertiesOptions;
1958
+ cell?: TableCellPropertiesOptions;
1959
+ }
1960
+ type TableStyleOptions = {
1961
+ paragraph?: ParagraphStylePropertiesOptions;
1962
+ run?: RunStylePropertiesOptions;
1963
+ table?: TablePropertiesOptions;
1964
+ row?: TableRowPropertiesOptions;
1965
+ cell?: TableCellPropertiesOptions;
1966
+ conditionalFormats?: ConditionalTableStyleOptions[];
1967
+ } & StyleOptions & {
1968
+ id: string;
1969
+ };
1970
+ type NumberingStyleOptions = {
1971
+ paragraph?: ParagraphStylePropertiesOptions;
1972
+ run?: RunStylePropertiesOptions;
1973
+ } & StyleOptions & {
1974
+ id: string;
1975
+ };
1976
+ declare function stringifyConditionalTableStyle(opts: ConditionalTableStyleOptions): string;
1977
+ declare function stringifyTableStyle(opts: TableStyleOptions): string;
1978
+ declare function stringifyNumberingStyle(opts: NumberingStyleOptions): string;
1979
+ declare function stringifyDocDefaults(opts: DocumentDefaultsOptions, injectDefaults?: boolean): string;
1980
+ declare class DefaultStylesFactory {
1981
+ newInstance(options?: DefaultStylesOptions): StylesOptions;
1982
+ private build;
1983
+ }
1984
+ //#endregion
1985
+ //#region src/parts/styles/styles.d.ts
1986
+ interface StylesOptions {
1987
+ default?: DefaultStylesOptions;
1988
+ initialAttributes?: Record<string, string>;
1989
+ importedStyles?: {
1990
+ _raw: string;
1991
+ }[];
1992
+ paragraphStyles?: (ParagraphStyleOptions & {
1993
+ id: string;
1994
+ })[];
1995
+ characterStyles?: (CharacterStyleOptions & {
1996
+ id: string;
1997
+ })[];
1998
+ tableStyles?: TableStyleOptions[];
1999
+ numberingStyles?: NumberingStyleOptions[];
2000
+ latentStylesXml?: string;
2001
+ docDefaultsXml?: string;
2002
+ roundTripped?: boolean;
2003
+ }
2004
+ declare function extractStyleId(raw: string): string | undefined;
2005
+ declare class Styles {
2006
+ private attributes;
2007
+ private parts;
2008
+ constructor(options: StylesOptions);
2009
+ serialize(): string;
2010
+ }
2011
+ declare function buildStyleCache(stylesEl: Element | undefined): Map<string, Element>;
2012
+ declare function buildNumberingCache(numberingEl: Element | undefined): Map<string, Element>;
2013
+ declare function parseStyleDefinitions(el: Element, parseParagraphProperties: (el: Element, ctx: DocxReadContext) => Partial<ParagraphPropertiesOptions>, ctx: DocxReadContext): StylesOptions | undefined;
2014
+ //#endregion
2015
+ //#region src/parts/frameset.d.ts
2016
+ interface WebFrameOptions {
2017
+ size?: string;
2018
+ name?: string;
2019
+ title?: string;
2020
+ sourceRId?: string;
2021
+ marginWidth?: number;
2022
+ marginHeight?: number;
2023
+ scrollbar?: "on" | "off" | "auto";
2024
+ noResizeAllowed?: boolean;
2025
+ linkedToFile?: boolean;
2026
+ longDescRId?: string;
2027
+ }
2028
+ interface FramesetSplitbarOptions {
2029
+ width?: number;
2030
+ color?: string;
2031
+ noBorder?: boolean;
2032
+ flatBorders?: boolean;
2033
+ }
2034
+ interface FramesetOptions {
2035
+ size?: string;
2036
+ splitbar?: FramesetSplitbarOptions;
2037
+ layout?: "rows" | "cols";
2038
+ title?: string;
2039
+ children?: (FramesetOptions | WebFrameOptions)[];
2040
+ }
2041
+ //#endregion
2042
+ //#region src/parts/web-settings.d.ts
2043
+ interface DivBorderOptions {
2044
+ top?: {
2045
+ style: string;
2046
+ color?: string;
2047
+ size?: number;
2048
+ };
2049
+ left?: {
2050
+ style: string;
2051
+ color?: string;
2052
+ size?: number;
2053
+ };
2054
+ bottom?: {
2055
+ style: string;
2056
+ color?: string;
2057
+ size?: number;
2058
+ };
2059
+ right?: {
2060
+ style: string;
2061
+ color?: string;
2062
+ size?: number;
2063
+ };
2064
+ }
2065
+ interface DivOptions {
2066
+ id: number;
2067
+ marginLeft: number | UniversalMeasure;
2068
+ marginRight: number | UniversalMeasure;
2069
+ marginTop: number | UniversalMeasure;
2070
+ marginBottom: number | UniversalMeasure;
2071
+ blockQuote?: boolean;
2072
+ bodyDiv?: boolean;
2073
+ border?: DivBorderOptions;
2074
+ children?: DivOptions[];
2075
+ }
2076
+ declare const TargetScreenSize: {
2077
+ readonly SIZE_544X376: "544x376";
2078
+ readonly SIZE_640X480: "640x480";
2079
+ readonly SIZE_720X512: "720x512";
2080
+ readonly SIZE_800X600: "800x600";
2081
+ readonly SIZE_1024X768: "1024x768";
2082
+ readonly SIZE_1152X882: "1152x882";
2083
+ readonly SIZE_1152X900: "1152x900";
2084
+ readonly SIZE_1280X1024: "1280x1024";
2085
+ readonly SIZE_1600X1200: "1600x1200";
2086
+ readonly SIZE_1800X1440: "1800x1440";
2087
+ readonly SIZE_1920X1200: "1920x1200";
2088
+ };
2089
+ interface OptimizeForBrowserOptions {
2090
+ value?: boolean;
2091
+ target?: string;
2092
+ }
2093
+ interface WebSettingsOptions {
2094
+ frameset?: FramesetOptions;
2095
+ divs?: DivOptions[];
2096
+ encoding?: string;
2097
+ optimizeForBrowser?: boolean | OptimizeForBrowserOptions;
2098
+ relyOnVML?: boolean;
2099
+ allowPNG?: boolean;
2100
+ doNotRelyOnCSS?: boolean;
2101
+ doNotSaveAsSingleFile?: boolean;
2102
+ doNotOrganizeInFolder?: boolean;
2103
+ doNotUseLongFileNames?: boolean;
2104
+ pixelsPerInch?: number;
2105
+ targetScreenSize?: (typeof TargetScreenSize)[keyof typeof TargetScreenSize] | string;
2106
+ saveSmartTagsAsXml?: boolean;
2107
+ }
2108
+ interface WebSettingsInput {
2109
+ frameset?: FramesetOptions;
2110
+ divs?: DivOptions[];
2111
+ encoding?: string;
2112
+ optimizeForBrowser?: boolean | OptimizeForBrowserOptions;
2113
+ relyOnVML?: boolean;
2114
+ allowPNG?: boolean;
2115
+ doNotRelyOnCSS?: boolean;
2116
+ doNotSaveAsSingleFile?: boolean;
2117
+ doNotOrganizeInFolder?: boolean;
2118
+ doNotUseLongFileNames?: boolean;
2119
+ pixelsPerInch?: number;
2120
+ targetScreenSize?: string;
2121
+ saveSmartTagsAsXml?: boolean;
2122
+ }
2123
+ declare function framesetXml(fs: FramesetOptions): string;
2124
+ declare function frameXml(f: WebFrameOptions): string;
2125
+ declare const webSettingsDesc: CustomDescriptor<WebSettingsInput>;
2126
+ //#endregion
2127
+ //#region src/parts/core-properties.d.ts
2128
+ interface FeaturesOptions {
2129
+ trackRevisions?: boolean;
2130
+ updateFields?: boolean;
2131
+ documentProtection?: DocumentProtectionOptions;
2132
+ }
2133
+ interface DocumentOptions extends CorePropertiesOptions {
2134
+ sections: SectionOptions[];
2135
+ externalStyles?: string;
2136
+ styles?: StylesOptions;
2137
+ numbering?: NumberingOptions;
2138
+ comments?: CommentsOptions;
2139
+ bibliography?: BibliographyOptions;
2140
+ footnotes?: Record<string, {
2141
+ children: (ParagraphOptions | string)[];
2142
+ }> & {
2143
+ separator?: FootnoteSeparator;
2144
+ continuationSeparator?: FootnoteSeparator;
2145
+ };
2146
+ endnotes?: Record<string, {
2147
+ children: (ParagraphOptions | string)[];
2148
+ }> & {
2149
+ separator?: EndnoteSeparator;
2150
+ continuationSeparator?: EndnoteSeparator;
2151
+ };
2152
+ background?: DocumentBackgroundOptions;
2153
+ features?: FeaturesOptions;
2154
+ compatibility?: CompatibilityOptions;
2155
+ customProperties?: CustomPropertyOptions[];
2156
+ evenAndOddHeaderAndFooters?: boolean;
2157
+ defaultTabStop?: number;
2158
+ fonts?: EmbeddedFontOptions[];
2159
+ hyphenation?: HyphenationOptions;
2160
+ conformance?: "strict" | "transitional";
2161
+ characterSpacingControl?: "compressPunctuation" | "doNotCompress";
2162
+ view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
2163
+ zoom?: {
2164
+ percent?: number;
2165
+ val?: "none" | "fullPage" | "bestFit" | "textFit";
2166
+ };
2167
+ writeProtection?: WriteProtectionOptions;
2168
+ displayBackgroundShape?: boolean;
2169
+ embedTrueTypeFonts?: boolean;
2170
+ embedSystemFonts?: boolean;
2171
+ saveSubsetFonts?: boolean;
2172
+ docVars?: {
2173
+ name: string;
2174
+ val: string;
2175
+ }[];
2176
+ colorSchemeMapping?: SettingsOptions["colorSchemeMapping"];
2177
+ mailMerge?: SettingsOptions["mailMerge"];
2178
+ glossary?: GlossaryDocumentOptions;
2179
+ settings?: SettingsOptions;
2180
+ webSettings?: WebSettingsOptions;
2181
+ contentTypes?: ContentTypesInput;
2182
+ rawParts?: {
2183
+ path: string;
2184
+ data: DataType;
2185
+ }[];
2186
+ appProperties?: AppPropertiesOptions;
2187
+ }
2188
+ declare const corePropertiesDesc: CustomDescriptor<CorePropertiesOptions>;
2189
+ //#endregion
2190
+ //#region src/parts/sub-doc/sub-doc-collection.d.ts
2191
+ interface SubDocData {
2192
+ data: Uint8Array;
2193
+ path: string;
2194
+ }
2195
+ declare class SubDocCollection {
2196
+ private map;
2197
+ constructor();
2198
+ addSubDoc(key: string, data: SubDocData): void;
2199
+ get array(): SubDocData[];
2200
+ }
2201
+ //#endregion
2202
+ //#region src/parts/drawing/doc-properties/doc-properties.d.ts
2203
+ interface HyperlinkOptions {
2204
+ click?: string;
2205
+ hover?: string;
2206
+ }
2207
+ interface DocPropertiesOptions extends NonVisualDrawingPropertiesOptions {
2208
+ name: string;
2209
+ id?: string;
2210
+ hyperlink?: HyperlinkOptions;
2211
+ }
2212
+ //#endregion
2213
+ //#region src/parts/drawing/drawing.d.ts
2214
+ interface Distance {
2215
+ distT?: number;
2216
+ distB?: number;
2217
+ distL?: number;
2218
+ distR?: number;
2219
+ }
2220
+ //#endregion
2221
+ //#region src/parts/drawing/text-wrap/text-wrapping.d.ts
2222
+ declare const TextWrappingType: {
2223
+ readonly NONE: 0;
2224
+ readonly SQUARE: 1;
2225
+ readonly TIGHT: 2;
2226
+ readonly TOP_AND_BOTTOM: 3;
2227
+ readonly THROUGH: 4;
2228
+ };
2229
+ declare const TextWrappingSide: {
2230
+ readonly BOTH_SIDES: "bothSides";
2231
+ readonly LEFT: "left";
2232
+ readonly RIGHT: "right";
2233
+ readonly LARGEST: "largest";
2234
+ };
2235
+ interface WrapPolygonPoint {
2236
+ x: number;
2237
+ y: number;
2238
+ }
2239
+ interface WrapPolygon {
2240
+ edited?: boolean;
2241
+ points: WrapPolygonPoint[];
2242
+ }
2243
+ interface TextWrapping {
2244
+ type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
2245
+ side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
2246
+ margins?: Distance;
2247
+ polygon?: WrapPolygon;
2248
+ }
2249
+ //#endregion
2250
+ //#region src/parts/drawing/text-wrap/wrap-tight.d.ts
2251
+ declare const createWrapTight: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
2252
+ x: number;
2253
+ y: number;
2254
+ }) => string;
2255
+ //#endregion
2256
+ //#region src/parts/drawing/text-wrap/wrap-through.d.ts
2257
+ declare const createWrapThrough: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
2258
+ x: number;
2259
+ y: number;
2260
+ }) => string;
2261
+ //#endregion
2262
+ //#region src/parts/drawing/floating/floating-position.d.ts
2263
+ declare const HorizontalPositionRelativeFrom: {
2264
+ readonly CHARACTER: "character";
2265
+ readonly COLUMN: "column";
2266
+ readonly INSIDE_MARGIN: "insideMargin";
2267
+ readonly LEFT_MARGIN: "leftMargin";
2268
+ readonly MARGIN: "margin";
2269
+ readonly OUTSIDE_MARGIN: "outsideMargin";
2270
+ readonly PAGE: "page";
2271
+ readonly RIGHT_MARGIN: "rightMargin";
2272
+ };
2273
+ declare const VerticalPositionRelativeFrom: {
2274
+ readonly BOTTOM_MARGIN: "bottomMargin";
2275
+ readonly INSIDE_MARGIN: "insideMargin";
2276
+ readonly LINE: "line";
2277
+ readonly MARGIN: "margin";
2278
+ readonly OUTSIDE_MARGIN: "outsideMargin";
2279
+ readonly PAGE: "page";
2280
+ readonly PARAGRAPH: "paragraph";
2281
+ readonly TOP_MARGIN: "topMargin";
2282
+ };
2283
+ interface HorizontalPositionOptions {
2284
+ relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
2285
+ align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
2286
+ offset?: number | UniversalMeasure;
2287
+ }
2288
+ interface VerticalPositionOptions {
2289
+ relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
2290
+ align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
2291
+ offset?: number | UniversalMeasure;
2292
+ }
2293
+ interface Margins {
2294
+ left?: number | UniversalMeasure;
2295
+ bottom?: number | UniversalMeasure;
2296
+ top?: number | UniversalMeasure;
2297
+ right?: number | UniversalMeasure;
2298
+ }
2299
+ interface Floating {
2300
+ horizontalPosition: HorizontalPositionOptions;
2301
+ verticalPosition: VerticalPositionOptions;
2302
+ allowOverlap?: boolean;
2303
+ lockAnchor?: boolean;
2304
+ behindDocument?: boolean;
2305
+ layoutInCell?: boolean;
2306
+ margins?: Margins;
2307
+ wrap?: TextWrapping;
2308
+ zIndex?: number;
2309
+ }
2310
+ //#endregion
2311
+ //#region src/parts/drawing/floating/horizontal-position.d.ts
2312
+ declare const createHorizontalPosition: ({
2313
+ relative,
2314
+ align,
2315
+ offset
2316
+ }: HorizontalPositionOptions) => string;
2317
+ //#endregion
2318
+ //#region src/parts/drawing/floating/vertical-position.d.ts
2319
+ declare const createVerticalPosition: ({
2320
+ relative,
2321
+ align,
2322
+ offset
2323
+ }: VerticalPositionOptions) => string;
2324
+ //#endregion
2325
+ //#region src/parts/drawing/descriptor.d.ts
2326
+ interface GraphicFrameLocksOptions {
2327
+ noGrp?: boolean;
2328
+ noDrilldown?: boolean;
2329
+ noSelect?: boolean;
2330
+ noChangeAspect?: boolean;
2331
+ noMove?: boolean;
2332
+ noResize?: boolean;
2333
+ }
2334
+ interface GroupShapeLocksOptions {
2335
+ noGrp?: boolean;
2336
+ noUngrp?: boolean;
2337
+ noSelect?: boolean;
2338
+ noRot?: boolean;
2339
+ noChangeAspect?: boolean;
2340
+ noMove?: boolean;
2341
+ noResize?: boolean;
2342
+ }
2343
+ interface DrawingDescriptorOptions {
2344
+ mediaData: ExtendedMediaData;
2345
+ docProperties?: DocPropertiesOptions;
2346
+ floating?: Floating;
2347
+ outline?: OutlineOptions;
2348
+ fill?: FillOptions;
2349
+ effects?: EffectListOptions;
2350
+ blipEffects?: BlipEffectsOptions;
2351
+ tile?: TileOptions;
2352
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
2353
+ }
2354
+ declare const resetDrawingIdGen: () => void;
2355
+ declare const drawingDesc: CustomDescriptor<DrawingDescriptorOptions, BodyContext>;
2356
+ //#endregion
2357
+ //#region src/parts/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
2358
+ interface ChildOffset {
2359
+ x: number;
2360
+ y: number;
2361
+ }
2362
+ interface ChildExtent {
2363
+ cx: number;
2364
+ cy: number;
2365
+ }
2366
+ //#endregion
2367
+ //#region src/parts/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
2368
+ declare const createBodyProperties: (options?: BodyPropertiesOptions$1) => string;
2369
+ //#endregion
2370
+ //#region src/parts/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.d.ts
2371
+ interface NonVisualShapePropertiesOptions {
2372
+ id?: number;
2373
+ name?: string;
2374
+ description?: string;
2375
+ title?: string;
2376
+ textBox?: string;
2377
+ connector?: boolean;
2378
+ }
2379
+ //#endregion
2380
+ //#region src/parts/drawing/inline/graphic/graphic-data/wps/wps-shape.d.ts
2381
+ interface ShapeStyleReferenceOptions {
2382
+ idx: string;
2383
+ color?: SolidFillOptions;
2384
+ }
2385
+ interface ShapeStyleOptions {
2386
+ lineReference?: ShapeStyleReferenceOptions;
2387
+ fillReference?: ShapeStyleReferenceOptions;
2388
+ effectReference?: ShapeStyleReferenceOptions;
2389
+ fontReference?: ShapeStyleReferenceOptions;
2390
+ }
2391
+ interface ShapeCoreOptions {
27
2392
  children: (ParagraphOptions | string)[];
2393
+ nonVisualProperties?: NonVisualShapePropertiesOptions;
2394
+ bodyProperties?: BodyPropertiesOptions;
2395
+ outline?: OutlineOptions;
2396
+ fill?: FillOptions;
2397
+ customGeometry?: CustomGeometryOptions;
2398
+ presetGeometry?: PresetGeometryOptions;
2399
+ effectDag?: EffectDagOptions;
2400
+ effects?: EffectListOptions;
2401
+ scene3d?: Scene3DOptions;
2402
+ shape3d?: Shape3DOptions;
2403
+ style?: ShapeStyleOptions;
2404
+ linkedTextBox?: {
2405
+ id: number;
2406
+ sequence: number;
2407
+ };
2408
+ normalEastAsianFlow?: boolean;
2409
+ }
2410
+ //#endregion
2411
+ //#region src/shared/media/data.d.ts
2412
+ interface MediaDataTransformation {
2413
+ offset?: {
2414
+ pixels: {
2415
+ x: number;
2416
+ y: number;
2417
+ };
2418
+ emus?: {
2419
+ x: number;
2420
+ y: number;
2421
+ };
2422
+ };
2423
+ pixels: {
2424
+ x: number;
2425
+ y: number;
2426
+ };
2427
+ emus: {
2428
+ x: number;
2429
+ y: number;
2430
+ };
2431
+ flip?: {
2432
+ vertical?: boolean;
2433
+ horizontal?: boolean;
2434
+ };
2435
+ rotation?: number;
2436
+ effectExtent?: {
2437
+ l: number;
2438
+ t: number;
2439
+ r: number;
2440
+ b: number;
2441
+ };
2442
+ }
2443
+ interface NonVisualPropertiesOptions extends NonVisualDrawingPropertiesOptions$1 {
2444
+ id?: number;
2445
+ preferRelativeResize?: boolean;
2446
+ }
2447
+ interface CoreMediaData extends BaseMediaEntry {
2448
+ transformation: MediaDataTransformation;
2449
+ sourceRectangle?: SourceRectangleOptions;
2450
+ nonVisualProperties?: NonVisualPropertiesOptions;
2451
+ useLocalDpi?: boolean;
2452
+ }
2453
+ interface RegularMediaData {
2454
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
2455
+ }
2456
+ interface SvgMediaData {
2457
+ type: "svg";
2458
+ fallback: RegularMediaData & CoreMediaData;
2459
+ }
2460
+ interface ShapeMediaData {
2461
+ type: "wps";
2462
+ transformation: MediaDataTransformation;
2463
+ data: ShapeCoreOptions;
2464
+ }
2465
+ interface GroupCommonMediaData {
2466
+ outline?: OutlineOptions;
2467
+ fill?: FillOptions;
2468
+ }
2469
+ type GroupChildMediaData = (ShapeMediaData | MediaData | GroupMediaData | ChartMediaData | ContentPartMediaData) & GroupCommonMediaData;
2470
+ interface GroupMediaData {
2471
+ type: "wpg";
2472
+ transformation: MediaDataTransformation;
2473
+ children: GroupChildMediaData[];
2474
+ childOffset?: ChildOffset;
2475
+ childExtent?: ChildExtent;
2476
+ fill?: FillOptions;
2477
+ effects?: EffectListOptions;
2478
+ groupShapeLocks?: GroupShapeLocksOptions;
2479
+ }
2480
+ interface ChartMediaData {
2481
+ type: "chart";
2482
+ transformation: MediaDataTransformation;
2483
+ chartKey?: string;
2484
+ chartOptions?: ChartSpaceOptions;
2485
+ nonVisualProperties?: NonVisualPropertiesOptions;
2486
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
2487
+ }
2488
+ interface ContentPartOptions {
2489
+ referenceId: string;
2490
+ transformation?: MediaDataTransformation;
2491
+ nonVisualProperties?: NonVisualPropertiesOptions & {
2492
+ contentPart?: NonVisualContentPartPropertiesOptions;
2493
+ };
2494
+ blackWhiteMode?: BlackWhiteMode;
2495
+ }
2496
+ interface ContentPartMediaData extends ContentPartOptions {
2497
+ type: "contentPart";
2498
+ transformation: MediaDataTransformation;
2499
+ }
2500
+ interface SmartArtMediaData {
2501
+ type: "smartart";
2502
+ transformation: MediaDataTransformation;
2503
+ smartArtKey: string;
2504
+ }
2505
+ type ExtendedMediaData = MediaData | ShapeMediaData | GroupMediaData | ChartMediaData | SmartArtMediaData | ContentPartMediaData;
2506
+ type MediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
2507
+ //#endregion
2508
+ //#region src/shared/media/media.d.ts
2509
+ interface MediaTransformation {
2510
+ offset?: {
2511
+ top?: number | UniversalMeasure;
2512
+ left?: number | UniversalMeasure;
2513
+ };
2514
+ width: number | UniversalMeasure;
2515
+ height: number | UniversalMeasure;
2516
+ flip?: {
2517
+ vertical?: boolean;
2518
+ horizontal?: boolean;
2519
+ };
2520
+ rotation?: number;
2521
+ effectExtent?: {
2522
+ l: number;
2523
+ t: number;
2524
+ r: number;
2525
+ b: number;
2526
+ };
2527
+ }
2528
+ declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
2529
+ //#endregion
2530
+ //#region src/parse.d.ts
2531
+ interface DocxPartRefs {
2532
+ headers: Map<string, string>;
2533
+ footers: Map<string, string>;
2534
+ footnotes?: string;
2535
+ endnotes?: string;
2536
+ comments?: string;
2537
+ hyperlinks: Map<string, string>;
2538
+ charts: Map<string, string>;
2539
+ diagramData: Map<string, string>;
2540
+ diagramLayout: Map<string, string>;
2541
+ diagramQuickStyle: Map<string, string>;
2542
+ diagramColors: Map<string, string>;
2543
+ media: Map<string, string>;
2544
+ partMedia: Map<string, Map<string, string>>;
2545
+ afChunks: Map<string, string>;
2546
+ subDocs: Map<string, string>;
2547
+ bibliography?: string;
2548
+ glossary?: string;
2549
+ }
2550
+ interface DocxDocument {
2551
+ doc: ParsedArchive;
2552
+ documentRoot: Element;
2553
+ body: Element;
2554
+ background?: Element;
2555
+ styles?: Element;
2556
+ numbering?: Element;
2557
+ settings?: Element;
2558
+ fontTable?: Element;
2559
+ webSettings?: Element;
2560
+ partRefs: DocxPartRefs;
2561
+ coreProps?: string;
2562
+ appProps?: string;
2563
+ customProps?: string;
2564
+ contentTypes?: Element;
2565
+ }
2566
+ declare function parseDocument(data: DataType): DocumentOptions;
2567
+ declare function parseDocx(data: DataType): DocxDocument;
2568
+ //#endregion
2569
+ //#region src/context.d.ts
2570
+ interface ViewWrapper {
2571
+ relationships: Relationships;
2572
+ }
2573
+ interface BodyContext extends WriteContext {
2574
+ fileData: DocxWriteContext;
2575
+ file: DocxWriteContext;
2576
+ viewWrapper: {
2577
+ relationships: Relationships;
2578
+ };
2579
+ stringifyChild: (child: SectionChild) => string;
2580
+ }
2581
+ declare class DocxWriteContext implements WriteContext {
2582
+ private _currentRelationshipId;
2583
+ document: {
2584
+ relationships: Relationships;
2585
+ };
2586
+ numbering: Numbering;
2587
+ media: Media<MediaData>;
2588
+ charts: ChartCollection;
2589
+ smartArts: SmartArtCollection;
2590
+ embeddings: EmbeddingCollection;
2591
+ altChunks: AltChunkCollection;
2592
+ subDocs: SubDocCollection;
2593
+ comments: {
2594
+ relationships: Relationships;
2595
+ entries: CommentOptions[];
2596
+ nextId: number;
2597
+ };
2598
+ markupIds: {
2599
+ rangeNext: number;
2600
+ moveRunNext: number;
2601
+ };
2602
+ footNotes: {
2603
+ relationships: Relationships;
2604
+ notes: Map<number, (ParagraphOptions | string)[]>;
2605
+ separator?: FootnoteSeparator;
2606
+ continuationSeparator?: FootnoteSeparator;
2607
+ };
2608
+ endnotes: {
2609
+ relationships: Relationships;
2610
+ notes: Map<number, (ParagraphOptions | string)[]>;
2611
+ separator?: EndnoteSeparator;
2612
+ continuationSeparator?: EndnoteSeparator;
2613
+ };
2614
+ fileRelationships: Relationships;
2615
+ _settingsOptions: SettingsOptions;
2616
+ styles: Styles;
2617
+ fontTable: FontWrapper;
2618
+ glossaryOptions: GlossaryDocumentOptions | undefined;
2619
+ webSettings: WebSettingsOptions | undefined;
2620
+ private _sectionProperties;
2621
+ get sectionProperties(): readonly SectionPropertiesOptions[];
2622
+ private readonly _hasFootnotes;
2623
+ private readonly _hasEndnotes;
2624
+ private readonly _hasNumbering;
2625
+ get hasFootnotes(): boolean;
2626
+ get hasEndnotes(): boolean;
2627
+ get hasNumbering(): boolean;
2628
+ addRelationship(_type: string, _target: string, _mode?: string): string;
2629
+ addMedia(data: Uint8Array, type: string): string;
2630
+ addHyperlink(_key: string, _target: HyperlinkTarget): void;
2631
+ private _headers;
2632
+ private _footers;
2633
+ _options: DocumentOptions;
2634
+ private _hasCommentSugar;
2635
+ constructor(options: DocumentOptions);
2636
+ get headers(): HeaderFooterEntry[];
2637
+ get footers(): HeaderFooterEntry[];
2638
+ private addSection;
2639
+ private createHeader;
2640
+ private createFooter;
2641
+ private addHeaderToDocument;
2642
+ private addFooterToDocument;
2643
+ private addDefaultRelationships;
2644
+ }
2645
+ declare class DocxReadContext implements ReadContext {
2646
+ docx: DocxDocument;
2647
+ styleCache: Map<string, Element>;
2648
+ numberingCache: Map<string, Element>;
2649
+ currentPart: string;
2650
+ constructor(docx: DocxDocument, styleCache: Map<string, Element>, numberingCache: Map<string, Element>);
2651
+ resolveRelationship(rId: string): string | undefined;
2652
+ withPart<T>(partPath: string, fn: () => T): T;
2653
+ getPart(path: string): Element | undefined;
2654
+ getRaw(path: string): Uint8Array | undefined;
2655
+ }
2656
+ //#endregion
2657
+ //#region src/parts/header-footer.d.ts
2658
+ interface HeaderFooterReference {
2659
+ referenceId: number;
2660
+ }
2661
+ interface HeaderFooterEntry extends HeaderFooterReference {
2662
+ children: SectionChild[];
2663
+ relationships: Relationships;
2664
+ }
2665
+ //#endregion
2666
+ //#region src/parts/document/body/section-properties/properties/column.d.ts
2667
+ interface ColumnProperties {
2668
+ width: number | PositiveUniversalMeasure;
2669
+ space?: number | PositiveUniversalMeasure;
2670
+ }
2671
+ //#endregion
2672
+ //#region src/parts/document/body/section-properties/properties/columns.d.ts
2673
+ interface ColumnsProperties {
2674
+ space?: number | PositiveUniversalMeasure;
2675
+ count?: number;
2676
+ separate?: boolean;
2677
+ equalWidth?: boolean;
2678
+ children?: ColumnProperties[];
2679
+ }
2680
+ //#endregion
2681
+ //#region src/parts/document/body/section-properties/properties/doc-grid.d.ts
2682
+ declare const DocumentGridType: {
2683
+ readonly DEFAULT: "default";
2684
+ readonly LINES: "lines";
2685
+ readonly LINES_AND_CHARS: "linesAndChars";
2686
+ readonly SNAP_TO_CHARS: "snapToChars";
2687
+ };
2688
+ interface DocGridProperties {
2689
+ type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
2690
+ linePitch: number;
2691
+ charSpace?: number;
2692
+ }
2693
+ declare const createDocumentGrid: ({
2694
+ type,
2695
+ linePitch,
2696
+ charSpace
2697
+ }: DocGridProperties) => string;
2698
+ //#endregion
2699
+ //#region src/parts/document/body/section-properties/properties/footnote-endnote-properties.d.ts
2700
+ declare const FootnotePositionType: {
2701
+ readonly PAGE_BOTTOM: "pageBottom";
2702
+ readonly BENEATH_TEXT: "beneathText";
2703
+ readonly SECT_END: "sectEnd";
2704
+ readonly DOC_END: "docEnd";
2705
+ };
2706
+ declare const EndnotePositionType: {
2707
+ readonly SECT_END: "sectEnd";
2708
+ readonly DOC_END: "docEnd";
2709
+ };
2710
+ declare const NumberRestartType: {
2711
+ readonly CONTINUOUS: "continuous";
2712
+ readonly EACH_SECT: "eachSect";
2713
+ readonly EACH_PAGE: "eachPage";
2714
+ };
2715
+ interface NumberPropertiesOptions {
2716
+ formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
2717
+ format?: string;
2718
+ numStart?: number;
2719
+ numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
2720
+ }
2721
+ interface FootnotePropertiesOptions extends NumberPropertiesOptions {
2722
+ pos?: (typeof FootnotePositionType)[keyof typeof FootnotePositionType];
2723
+ }
2724
+ interface EndnotePropertiesOptions extends NumberPropertiesOptions {
2725
+ pos?: (typeof EndnotePositionType)[keyof typeof EndnotePositionType];
2726
+ }
2727
+ //#endregion
2728
+ //#region src/parts/document/body/section-properties/properties/line-number.d.ts
2729
+ declare const LineNumberRestartFormat: {
2730
+ readonly NEW_PAGE: "newPage";
2731
+ readonly NEW_SECTION: "newSection";
2732
+ readonly CONTINUOUS: "continuous";
2733
+ };
2734
+ interface LineNumberProperties {
2735
+ countBy?: number;
2736
+ start?: number;
2737
+ restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
2738
+ distance?: number | PositiveUniversalMeasure;
2739
+ }
2740
+ declare const createLineNumberType: ({
2741
+ countBy,
2742
+ start,
2743
+ restart,
2744
+ distance
2745
+ }: LineNumberProperties) => string;
2746
+ //#endregion
2747
+ //#region src/parts/document/body/section-properties/properties/page-borders.d.ts
2748
+ declare const PageBorderDisplay: {
2749
+ readonly ALL_PAGES: "allPages";
2750
+ readonly FIRST_PAGE: "firstPage";
2751
+ readonly NOT_FIRST_PAGE: "notFirstPage";
2752
+ };
2753
+ declare const PageBorderOffsetFrom: {
2754
+ readonly PAGE: "page";
2755
+ readonly TEXT: "text";
2756
+ };
2757
+ declare const PageBorderZOrder: {
2758
+ readonly BACK: "back";
2759
+ readonly FRONT: "front";
2760
+ };
2761
+ interface PageBordersOptions {
2762
+ display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
2763
+ offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
2764
+ zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
2765
+ top?: BorderOptions;
2766
+ right?: BorderOptions;
2767
+ bottom?: BorderOptions;
2768
+ left?: BorderOptions;
2769
+ }
2770
+ //#endregion
2771
+ //#region src/parts/document/body/section-properties/properties/page-margin.d.ts
2772
+ interface PageMarginProperties {
2773
+ top?: number | UniversalMeasure;
2774
+ right?: number | PositiveUniversalMeasure;
2775
+ bottom?: number | UniversalMeasure;
2776
+ left?: number | PositiveUniversalMeasure;
2777
+ header?: number | PositiveUniversalMeasure;
2778
+ footer?: number | PositiveUniversalMeasure;
2779
+ gutter?: number | PositiveUniversalMeasure;
2780
+ }
2781
+ declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => string;
2782
+ //#endregion
2783
+ //#region src/parts/document/body/section-properties/properties/page-number.d.ts
2784
+ declare const PageNumberSeparator: {
2785
+ readonly HYPHEN: "hyphen";
2786
+ readonly PERIOD: "period";
2787
+ readonly COLON: "colon";
2788
+ readonly EM_DASH: "emDash";
2789
+ readonly EN_DASH: "enDash";
2790
+ };
2791
+ interface PageNumberTypeProperties {
2792
+ start?: number;
2793
+ formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
2794
+ separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
2795
+ chapStyle?: number;
2796
+ }
2797
+ declare const createPageNumberType: ({
2798
+ start,
2799
+ formatType,
2800
+ separator,
2801
+ chapStyle
2802
+ }: PageNumberTypeProperties) => string;
2803
+ //#endregion
2804
+ //#region src/parts/document/body/section-properties/properties/page-size.d.ts
2805
+ declare const PageOrientation: {
2806
+ readonly PORTRAIT: "portrait";
2807
+ readonly LANDSCAPE: "landscape";
2808
+ };
2809
+ interface PageSizeProperties {
2810
+ width?: number | PositiveUniversalMeasure;
2811
+ height?: number | PositiveUniversalMeasure;
2812
+ orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
2813
+ code?: number;
2814
+ }
2815
+ //#endregion
2816
+ //#region src/parts/document/body/section-properties/properties/page-text-direction.d.ts
2817
+ declare const PageTextDirectionType: {
2818
+ readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
2819
+ readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
2820
+ };
2821
+ //#endregion
2822
+ //#region src/parts/document/body/section-properties/properties/section-type.d.ts
2823
+ declare const SectionType: {
2824
+ readonly NEXT_PAGE: "nextPage";
2825
+ readonly NEXT_COLUMN: "nextColumn";
2826
+ readonly CONTINUOUS: "continuous";
2827
+ readonly EVEN_PAGE: "evenPage";
2828
+ readonly ODD_PAGE: "oddPage";
2829
+ };
2830
+ declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => string;
2831
+ //#endregion
2832
+ //#region src/parts/document/body/section-properties/section-properties.d.ts
2833
+ interface HeaderFooterGroup<T> {
2834
+ default?: T;
2835
+ first?: T;
2836
+ even?: T;
2837
+ }
2838
+ interface SectionPropertiesOptionsBase {
2839
+ runPropertiesRsid?: string;
2840
+ deletionRsid?: string;
2841
+ rsid?: string;
2842
+ sectionRsid?: string;
2843
+ page?: {
2844
+ size?: PageSizeProperties;
2845
+ margin?: PageMarginProperties;
2846
+ pageNumbers?: PageNumberTypeProperties;
2847
+ borders?: PageBordersOptions;
2848
+ textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
2849
+ };
2850
+ grid?: DocGridProperties | false;
2851
+ headerWrapperGroup?: HeaderFooterGroup<HeaderFooterReference>;
2852
+ footerWrapperGroup?: HeaderFooterGroup<HeaderFooterReference>;
2853
+ lineNumbers?: LineNumberProperties;
2854
+ titlePage?: boolean;
2855
+ verticalAlign?: SectionVerticalAlign;
2856
+ column?: ColumnsProperties;
2857
+ type?: (typeof SectionType)[keyof typeof SectionType];
2858
+ noEndnote?: boolean;
2859
+ formProtection?: boolean;
2860
+ bidi?: boolean;
2861
+ rtlGutter?: boolean;
2862
+ paperSrc?: {
2863
+ first?: number;
2864
+ other?: number;
2865
+ };
2866
+ footnotePr?: FootnotePropertiesOptions;
2867
+ endnotePr?: EndnotePropertiesOptions;
2868
+ printerSettingsId?: string;
2869
+ }
2870
+ type SectionPropertiesChangeOptions = ChangedProperties & SectionPropertiesOptionsBase;
2871
+ type SectionPropertiesOptions = {
2872
+ revision?: SectionPropertiesChangeOptions;
2873
+ } & SectionPropertiesOptionsBase;
2874
+ declare const sectionMarginDefaults: {
2875
+ TOP: number;
2876
+ RIGHT: number;
2877
+ BOTTOM: number;
2878
+ LEFT: number;
2879
+ HEADER: number;
2880
+ FOOTER: number;
2881
+ GUTTER: number;
2882
+ };
2883
+ declare const sectionPageSizeDefaults: {
2884
+ WIDTH: number;
2885
+ HEIGHT: number;
2886
+ ORIENTATION: "portrait";
2887
+ };
2888
+ //#endregion
2889
+ //#region src/parts/document/body/section-properties/descriptor.d.ts
2890
+ declare const sectionPropertiesDesc: CustomDescriptor<SectionPropertiesOptions, BodyContext>;
2891
+ declare function stringifySectionPropertiesXml(opts: SectionPropertiesOptions): string;
2892
+ declare function parseSectionPropertiesEl(el: Element): SectionPropertiesOptions;
2893
+ //#endregion
2894
+ //#region src/parts/paragraph/links/bookmark.d.ts
2895
+ type DisplacedByCustomXml = "before" | "after";
2896
+ interface MarkupRangeOptions {
2897
+ id: number;
2898
+ displacedByCustomXml?: DisplacedByCustomXml;
2899
+ }
2900
+ interface BookmarkStartOptions extends MarkupRangeOptions {
2901
+ name: string;
2902
+ colFirst?: number;
2903
+ colLast?: number;
2904
+ }
2905
+ interface MoveRangeStartOptions {
2906
+ id: number;
2907
+ name?: string;
2908
+ author?: string;
2909
+ date?: string;
2910
+ displacedByCustomXml?: DisplacedByCustomXml;
2911
+ colFirst?: number;
2912
+ colLast?: number;
2913
+ }
2914
+ interface BookmarkOptions {
2915
+ name: string;
2916
+ wrap?: (string | RunOptions)[];
2917
+ displacedByCustomXml?: DisplacedByCustomXml;
2918
+ colFirst?: number;
2919
+ colLast?: number;
2920
+ }
2921
+ interface MoveRangeOptions {
2922
+ author: string;
2923
+ date: string;
2924
+ wrap?: (string | RunOptions)[];
2925
+ name: string;
2926
+ displacedByCustomXml?: DisplacedByCustomXml;
2927
+ colFirst?: number;
2928
+ colLast?: number;
2929
+ }
2930
+ //#endregion
2931
+ //#region src/parts/sub-doc/sub-doc.d.ts
2932
+ interface SubDocOptions {
2933
+ data: DataType;
2934
+ }
2935
+ //#endregion
2936
+ //#region src/shared/section.d.ts
2937
+ type SectionChild = {
2938
+ paragraph: string | ParagraphOptions;
2939
+ } | {
2940
+ table: TableOptions;
2941
+ } | {
2942
+ toc: TableOfContentsOptions & {
2943
+ alias?: string;
2944
+ };
2945
+ } | {
2946
+ textbox: Omit<ParagraphOptions, "style" | "children"> & {
2947
+ style?: VmlShapeStyle;
2948
+ children?: SectionChild[];
2949
+ };
2950
+ } | {
2951
+ sdt: {
2952
+ properties: SdtPropertiesOptions;
2953
+ children?: SectionChild[];
2954
+ };
2955
+ } | {
2956
+ altChunk: AltChunkOptions;
2957
+ } | {
2958
+ subDoc: SubDocOptions;
2959
+ } | {
2960
+ customXml: CustomXmlBlockOptions;
2961
+ } | {
2962
+ bookmarkStart: BookmarkStartOptions;
2963
+ } | {
2964
+ bookmarkEnd: MarkupRangeOptions;
2965
+ } | {
2966
+ rawXml: string;
2967
+ };
2968
+ interface SectionOptions {
2969
+ headers?: {
2970
+ default?: SectionChild[];
2971
+ first?: SectionChild[];
2972
+ even?: SectionChild[];
2973
+ };
2974
+ footers?: {
2975
+ default?: SectionChild[];
2976
+ first?: SectionChild[];
2977
+ even?: SectionChild[];
2978
+ };
2979
+ properties?: SectionPropertiesOptions;
2980
+ children: SectionChild[];
2981
+ }
2982
+ //#endregion
2983
+ //#region src/parts/table-of-contents/table-of-contents-properties.d.ts
2984
+ declare class StyleLevel {
2985
+ styleName: string;
2986
+ level: number;
2987
+ constructor(styleName: string, level: number);
2988
+ }
2989
+ interface TableOfContentsOptions {
2990
+ captionLabel?: string;
2991
+ entriesFromBookmark?: string;
2992
+ captionLabelIncludingNumbers?: string;
2993
+ sequenceAndPageNumbersSeparator?: string;
2994
+ tcFieldIdentifier?: string;
2995
+ hyperlink?: boolean;
2996
+ tcFieldLevelRange?: string;
2997
+ pageNumbersEntryLevelsRange?: string;
2998
+ headingStyleRange?: string;
2999
+ entryAndPageNumberSeparator?: string;
3000
+ seqFieldIdentifierForPrefix?: string;
3001
+ stylesWithLevels?: StyleLevel[];
3002
+ useAppliedParagraphOutlineLevel?: boolean;
3003
+ preserveTabInEntries?: boolean;
3004
+ preserveNewLineInEntries?: boolean;
3005
+ hideTabAndPageNumbersInWebView?: boolean;
3006
+ entries?: SectionChild[];
3007
+ }
3008
+ //#endregion
3009
+ //#region src/parts/table-of-contents/sdt-properties.d.ts
3010
+ declare const SdtLock: {
3011
+ readonly SDT_LOCKED: "sdtLocked";
3012
+ readonly CONTENT_LOCKED: "contentLocked";
3013
+ readonly UNLOCKED: "unlocked";
3014
+ readonly SDT_CONTENT_LOCKED: "sdtContentLocked";
3015
+ };
3016
+ interface SdtListItem {
3017
+ displayText?: string;
3018
+ value?: string;
3019
+ }
3020
+ interface SdtComboBoxOptions {
3021
+ items?: SdtListItem[];
3022
+ lastValue?: string;
3023
+ }
3024
+ interface SdtDropDownListOptions {
3025
+ items?: SdtListItem[];
3026
+ lastValue?: string;
3027
+ }
3028
+ declare const SdtDateMappingType: {
3029
+ readonly TEXT: "text";
3030
+ readonly DATE: "date";
3031
+ readonly DATE_TIME: "dateTime";
3032
+ };
3033
+ interface SdtDateOptions {
3034
+ dateFormat?: string;
3035
+ languageId?: string;
3036
+ storeMappedDataAs?: (typeof SdtDateMappingType)[keyof typeof SdtDateMappingType];
3037
+ calendar?: string;
3038
+ fullDate?: string;
3039
+ }
3040
+ interface SdtTextOptions {
3041
+ multiLine?: boolean;
3042
+ }
3043
+ interface SdtCheckboxSymbol {
3044
+ val: string;
3045
+ font?: string;
3046
+ }
3047
+ interface SdtCheckboxOptions {
3048
+ checked?: boolean;
3049
+ checkedState?: SdtCheckboxSymbol;
3050
+ uncheckedState?: SdtCheckboxSymbol;
3051
+ }
3052
+ interface SdtDataBindingOptions {
3053
+ prefixMappings?: string;
3054
+ xpath: string;
3055
+ storeItemID: string;
3056
+ }
3057
+ interface SdtPropertiesOptions {
3058
+ alias?: string;
3059
+ tag?: string;
3060
+ id?: number;
3061
+ lock?: (typeof SdtLock)[keyof typeof SdtLock];
3062
+ temporary?: boolean;
3063
+ showingPlaceholder?: boolean;
3064
+ dataBinding?: SdtDataBindingOptions;
3065
+ label?: number;
3066
+ tabIndex?: number;
3067
+ equation?: boolean;
3068
+ comboBox?: SdtComboBoxOptions;
3069
+ date?: SdtDateOptions;
3070
+ docPartObj?: {
3071
+ gallery?: string;
3072
+ category?: string;
3073
+ unique?: boolean;
3074
+ };
3075
+ docPartList?: {
3076
+ gallery?: string;
3077
+ category?: string;
3078
+ unique?: boolean;
3079
+ };
3080
+ dropDownList?: SdtDropDownListOptions;
3081
+ picture?: boolean;
3082
+ richText?: boolean;
3083
+ text?: SdtTextOptions;
3084
+ citation?: boolean;
3085
+ group?: boolean;
3086
+ bibliography?: boolean;
3087
+ checkbox?: SdtCheckboxOptions;
3088
+ }
3089
+ //#endregion
3090
+ //#region src/parts/table-of-contents/toc-parse.d.ts
3091
+ declare function parseToc(el: Element, ctx: DocxReadContext, parseChildren?: (elements: Element[], ctx: DocxReadContext) => SectionChild[]): ({
3092
+ alias?: string;
3093
+ } & TableOfContentsOptions) | undefined;
3094
+ declare function parseTocFieldInstruction(instruction: string, opts: Record<string, unknown>): void;
3095
+ declare function parseTocFieldFromElements(els: Element[]): TableOfContentsOptions;
3096
+ declare function selectTocEntryElements(els: Element[]): Element[];
3097
+ //#endregion
3098
+ //#region src/parts/table-of-contents/descriptor.d.ts
3099
+ declare function stringifyTableOfContents(alias?: string, options?: TableOfContentsOptions, entriesXml?: string): string;
3100
+ //#endregion
3101
+ //#region src/parts/table/table-cell/table-cell.d.ts
3102
+ interface TableCellOptions extends BaseTableCellOptions, TableCellPropertiesOptions {
3103
+ children: SectionChild[];
3104
+ }
3105
+ interface SdtCellOptions {
3106
+ properties: SdtPropertiesOptions;
3107
+ cells?: TableCellOptions[];
3108
+ endProperties?: RunPropertiesOptions;
3109
+ }
3110
+ //#endregion
3111
+ //#region src/parts/custom-xml/custom-xml.d.ts
3112
+ interface CustomXmlDataBindingOptions {
3113
+ xpath: string;
3114
+ storeItemID: string;
3115
+ prefixMappings?: string;
3116
+ }
3117
+ interface CustomXmlAttributeOptions {
3118
+ name: string;
3119
+ val: string;
3120
+ uri?: string;
3121
+ }
3122
+ interface CustomXmlPropertiesOptions {
3123
+ placeholder?: string;
3124
+ attributes?: CustomXmlAttributeOptions[];
3125
+ }
3126
+ interface CustomXmlRunOptions {
3127
+ element: string;
3128
+ uri?: string;
3129
+ customXmlPr?: CustomXmlPropertiesOptions;
3130
+ }
3131
+ type CustomXmlBlockOptions = CustomXmlRunOptions & {
3132
+ children?: SectionChild[];
3133
+ };
3134
+ type CustomXmlRowOptions = CustomXmlRunOptions & {
3135
+ children?: TableRowOptions[];
3136
+ };
3137
+ type CustomXmlCellOptions = CustomXmlRunOptions & {
3138
+ children?: TableCellOptions[];
3139
+ };
3140
+ //#endregion
3141
+ //#region src/parts/paragraph/math.d.ts
3142
+ type MathScriptType = "roman" | "script" | "fraktur" | "double-struck" | "sans-serif" | "monospace";
3143
+ type MathStyleType = "p" | "b" | "i" | "bi";
3144
+ interface MathRunPropertiesOptions {
3145
+ lit?: boolean;
3146
+ normal?: boolean;
3147
+ script?: MathScriptType;
3148
+ style?: MathStyleType;
3149
+ breakAlignment?: number;
3150
+ align?: boolean;
3151
+ }
3152
+ interface MathDelimiterProperties {
3153
+ beginCharacter?: string;
3154
+ endCharacter?: string;
3155
+ separatorCharacter?: string;
3156
+ grow?: boolean;
3157
+ shape?: "centered" | "match";
3158
+ }
3159
+ type MathNaryLimitLocation = "subSup" | "undOvr";
3160
+ interface MathNaryProperties {
3161
+ limitLocation?: MathNaryLimitLocation;
3162
+ grow?: boolean;
3163
+ }
3164
+ type MathInput = string | {
3165
+ text: string;
3166
+ properties?: MathRunPropertiesOptions;
3167
+ } | {
3168
+ fraction: {
3169
+ numerator: MathInput[];
3170
+ denominator: MathInput[];
3171
+ fractionType?: string;
3172
+ numeratorArgumentSize?: number;
3173
+ denominatorArgumentSize?: number;
3174
+ };
3175
+ } | {
3176
+ superScript: {
3177
+ children: MathInput[];
3178
+ superScript: MathInput[];
3179
+ };
3180
+ } | {
3181
+ subScript: {
3182
+ children: MathInput[];
3183
+ subScript: MathInput[];
3184
+ };
3185
+ } | {
3186
+ subSuperScript: {
3187
+ children: MathInput[];
3188
+ subScript: MathInput[];
3189
+ superScript: MathInput[];
3190
+ alignScript?: boolean;
3191
+ };
3192
+ } | {
3193
+ preSubSuperScript: {
3194
+ children: MathInput[];
3195
+ subScript: MathInput[];
3196
+ superScript: MathInput[];
3197
+ };
3198
+ } | {
3199
+ radical: {
3200
+ children: MathInput[];
3201
+ degree?: MathInput[];
3202
+ };
3203
+ } | {
3204
+ sum: {
3205
+ children: MathInput[];
3206
+ subScript?: MathInput[];
3207
+ superScript?: MathInput[];
3208
+ properties?: MathNaryProperties;
3209
+ };
3210
+ } | {
3211
+ integral: {
3212
+ children: MathInput[];
3213
+ subScript?: MathInput[];
3214
+ superScript?: MathInput[];
3215
+ properties?: MathNaryProperties;
3216
+ };
3217
+ } | {
3218
+ limitLower: {
3219
+ children: MathInput[];
3220
+ limit: MathInput[];
3221
+ properties?: Record<string, unknown>;
3222
+ };
3223
+ } | {
3224
+ limitUpper: {
3225
+ children: MathInput[];
3226
+ limit: MathInput[];
3227
+ properties?: Record<string, unknown>;
3228
+ };
3229
+ } | {
3230
+ function: {
3231
+ children: MathInput[];
3232
+ name: MathInput[];
3233
+ properties?: Record<string, unknown>;
3234
+ };
3235
+ } | {
3236
+ matrix: {
3237
+ rows: MathInput[][];
3238
+ properties?: Record<string, unknown>;
3239
+ };
3240
+ } | {
3241
+ roundBrackets: MathInput[] | {
3242
+ children: MathInput[];
3243
+ properties?: MathDelimiterProperties;
3244
+ };
3245
+ } | {
3246
+ curlyBrackets: MathInput[] | {
3247
+ children: MathInput[];
3248
+ properties?: MathDelimiterProperties;
3249
+ };
3250
+ } | {
3251
+ angledBrackets: MathInput[] | {
3252
+ children: MathInput[];
3253
+ properties?: MathDelimiterProperties;
3254
+ };
3255
+ } | {
3256
+ squareBrackets: MathInput[] | {
3257
+ children: MathInput[];
3258
+ properties?: MathDelimiterProperties;
3259
+ };
3260
+ } | {
3261
+ borderBox: {
3262
+ children: MathInput[];
3263
+ properties?: Record<string, unknown>;
3264
+ };
3265
+ } | {
3266
+ box: {
3267
+ children: MathInput[];
3268
+ properties?: Record<string, unknown>;
3269
+ };
3270
+ } | {
3271
+ groupChr: {
3272
+ children: MathInput[];
3273
+ properties?: Record<string, unknown>;
3274
+ };
3275
+ } | {
3276
+ phant: {
3277
+ children: MathInput[];
3278
+ properties?: Record<string, unknown>;
3279
+ };
3280
+ } | {
3281
+ eqArr: {
3282
+ rows: MathInput[][];
3283
+ properties?: Record<string, unknown>;
3284
+ };
3285
+ } | {
3286
+ accent: {
3287
+ children: MathInput[];
3288
+ accentCharacter?: string;
3289
+ };
3290
+ } | {
3291
+ bar: {
3292
+ children: MathInput[];
3293
+ type: "top" | "bot";
3294
+ };
3295
+ };
3296
+ //#endregion
3297
+ //#region src/parts/paragraph/run/symbol-run.d.ts
3298
+ type SymbolRunOptions = {
3299
+ char: string;
3300
+ symbolFont?: string;
3301
+ } & RunOptions;
3302
+ //#endregion
3303
+ //#region src/parts/paragraph/run/picture-run.d.ts
3304
+ interface CorePictureOptions {
3305
+ transformation: MediaTransformation;
3306
+ floating?: Floating;
3307
+ altText?: DocPropertiesOptions;
3308
+ outline?: OutlineOptions;
3309
+ fill?: FillOptions;
3310
+ effects?: EffectListOptions;
3311
+ blipEffects?: BlipEffectsOptions;
3312
+ sourceRectangle?: SourceRectangleOptions;
3313
+ tile?: TileOptions;
3314
+ nonVisualProperties?: NonVisualPropertiesOptions;
3315
+ runProperties?: RunPropertiesOptions;
3316
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
3317
+ useLocalDpi?: boolean;
3318
+ }
3319
+ interface RegularPictureOptions {
3320
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
3321
+ data: DataType;
3322
+ }
3323
+ interface SvgMediaOptions {
3324
+ type: "svg";
3325
+ data: DataType;
3326
+ fallback: RegularPictureOptions;
3327
+ }
3328
+ type PictureOptions = (RegularPictureOptions | SvgMediaOptions) & CorePictureOptions;
3329
+ declare const createPictureData: (data: Uint8Array, transformation: MediaTransformation, key: string, sourceRectangle?: SourceRectangleOptions, nonVisualProperties?: NonVisualPropertiesOptions) => Pick<MediaData, "data" | "fileName" | "transformation" | "sourceRectangle" | "nonVisualProperties">;
3330
+ //#endregion
3331
+ //#region src/parts/paragraph/run/chart-run.d.ts
3332
+ interface ChartOptions extends ChartSpaceOptions$1 {
3333
+ transformation: MediaTransformation;
3334
+ floating?: Floating;
3335
+ altText?: DocPropertiesOptions;
3336
+ }
3337
+ //#endregion
3338
+ //#region src/parts/paragraph/run/smartart-run.d.ts
3339
+ interface SmartArtNode {
3340
+ text: string;
3341
+ children?: SmartArtNode[];
3342
+ }
3343
+ interface SmartArtOptions {
3344
+ data: {
3345
+ nodes: SmartArtNode[];
3346
+ };
3347
+ transformation: MediaTransformation;
3348
+ floating?: Floating;
3349
+ altText?: DocPropertiesOptions;
3350
+ layout?: string | LayoutDefinitionOptions;
3351
+ style?: string | StyleDefinitionOptions;
3352
+ color?: string | ColorDefinitionOptions;
3353
+ }
3354
+ //#endregion
3355
+ //#region src/parts/paragraph/run/wps-shape-run.d.ts
3356
+ interface ShapeRunOptions {
3357
+ transformation: MediaTransformation;
3358
+ floating?: Floating;
3359
+ altText?: DocPropertiesOptions;
3360
+ vmlFallback?: string;
3361
+ vmlFallbackMedia?: BackgroundRawMediaOptions[];
3362
+ mcChoiceRequires?: string;
3363
+ runProperties?: RunPropertiesOptions;
3364
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
3365
+ }
3366
+ type ShapeOptions = ShapeCoreOptions & ShapeRunOptions;
3367
+ //#endregion
3368
+ //#region src/parts/paragraph/run/wpg-group-run.d.ts
3369
+ interface GroupOptions {
3370
+ children: GroupChildMediaData[];
3371
+ transformation: MediaTransformation;
3372
+ childOffset?: ChildOffset;
3373
+ childExtent?: ChildExtent;
3374
+ fill?: FillOptions;
3375
+ effects?: EffectListOptions;
3376
+ floating?: Floating;
3377
+ altText?: DocPropertiesOptions;
3378
+ vmlFallback?: string;
3379
+ vmlFallbackMedia?: BackgroundRawMediaOptions[];
3380
+ mcChoiceRequires?: string;
3381
+ runProperties?: RunPropertiesOptions;
3382
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
3383
+ groupShapeLocks?: GroupShapeLocksOptions;
3384
+ }
3385
+ //#endregion
3386
+ //#region src/parts/paragraph/run/simple-field.d.ts
3387
+ interface SimpleFieldOptions {
3388
+ instruction: string;
3389
+ cachedValue?: string;
3390
+ fieldLock?: boolean;
3391
+ dirty?: boolean;
3392
+ }
3393
+ //#endregion
3394
+ //#region src/parts/paragraph/run/positional-tab.d.ts
3395
+ declare const PositionalTabAlignment: {
3396
+ readonly LEFT: "left";
3397
+ readonly CENTER: "center";
3398
+ readonly RIGHT: "right";
3399
+ };
3400
+ declare const PositionalTabRelativeTo: {
3401
+ readonly MARGIN: "margin";
3402
+ readonly INDENT: "indent";
3403
+ };
3404
+ declare const PositionalTabLeader: {
3405
+ readonly NONE: "none";
3406
+ readonly DOT: "dot";
3407
+ readonly HYPHEN: "hyphen";
3408
+ readonly UNDERSCORE: "underscore";
3409
+ readonly MIDDLE_DOT: "middleDot";
3410
+ };
3411
+ interface PositionalTabOptions {
3412
+ alignment: (typeof PositionalTabAlignment)[keyof typeof PositionalTabAlignment];
3413
+ relativeTo: (typeof PositionalTabRelativeTo)[keyof typeof PositionalTabRelativeTo];
3414
+ leader: (typeof PositionalTabLeader)[keyof typeof PositionalTabLeader];
3415
+ }
3416
+ //#endregion
3417
+ //#region src/parts/paragraph/run/ruby.d.ts
3418
+ declare const RubyAlign: {
3419
+ readonly CENTER: "center";
3420
+ readonly DISTRIBUTE_LETTER: "distributeLetter";
3421
+ readonly DISTRIBUTE_SPACE: "distributeSpace";
3422
+ readonly LEFT: "left";
3423
+ readonly RIGHT: "right";
3424
+ readonly RIGHT_VERTICAL: "rightVertical";
3425
+ };
3426
+ interface RubyOptions {
3427
+ text: string;
3428
+ base: string;
3429
+ alignment?: (typeof RubyAlign)[keyof typeof RubyAlign];
3430
+ fontSize?: number;
3431
+ raise?: number;
3432
+ baseFontSize?: number;
3433
+ languageId?: string;
3434
+ dirty?: boolean;
3435
+ }
3436
+ //#endregion
3437
+ //#region src/parts/paragraph/run/form-field.d.ts
3438
+ declare const FormFieldTextType: {
3439
+ readonly REGULAR: "regular";
3440
+ readonly NUMBER: "number";
3441
+ readonly DATE: "date";
3442
+ readonly CURRENT_TIME: "currentTime";
3443
+ readonly CURRENT_DATE: "currentDate";
3444
+ readonly CALCULATED: "calculated";
3445
+ };
3446
+ interface CheckBoxOptions {
3447
+ size?: number;
3448
+ sizeAuto?: boolean;
3449
+ default?: boolean;
3450
+ checked?: boolean;
3451
+ }
3452
+ interface DropDownListOptions {
3453
+ entries: string[];
3454
+ result?: number;
3455
+ default?: number;
3456
+ }
3457
+ interface TextInputOptions {
3458
+ type?: (typeof FormFieldTextType)[keyof typeof FormFieldTextType];
3459
+ default?: string;
3460
+ value?: string;
3461
+ maxLength?: number;
3462
+ format?: string;
3463
+ }
3464
+ interface FormFieldTextOptions {
3465
+ type: "text" | "autoText";
3466
+ value: string;
3467
+ }
3468
+ interface FormFieldCommonOptions {
3469
+ name?: string;
3470
+ label?: number;
3471
+ tabIndex?: number;
3472
+ enabled?: boolean;
3473
+ calcOnExit?: boolean;
3474
+ entryMacro?: string;
3475
+ exitMacro?: string;
3476
+ helpText?: FormFieldTextOptions;
3477
+ statusText?: FormFieldTextOptions;
3478
+ }
3479
+ interface FormFieldOptions extends FormFieldCommonOptions {
3480
+ checkBox?: CheckBoxOptions;
3481
+ dropDownList?: DropDownListOptions;
3482
+ textInput?: TextInputOptions;
3483
+ }
3484
+ declare const createFormFieldData: (options: FormFieldOptions) => string;
3485
+ declare function parseFormFieldData(el: Element): FormFieldOptions;
3486
+ //#endregion
3487
+ //#region src/parts/paragraph/run/smart-tag-run.d.ts
3488
+ interface SmartTagRunOptions {
3489
+ uri?: string;
3490
+ element: string;
3491
+ properties?: {
3492
+ uri: string;
3493
+ name: string;
3494
+ val: string;
3495
+ }[];
3496
+ }
3497
+ //#endregion
3498
+ //#region src/parts/paragraph/run/proof-error.d.ts
3499
+ declare const ProofErrorType: {
3500
+ readonly SPELL_START: "spellStart";
3501
+ readonly SPELL_END: "spellEnd";
3502
+ readonly GRAM_START: "gramStart";
3503
+ readonly GRAM_END: "gramEnd";
3504
+ };
3505
+ type ProofErrorTypeValue = (typeof ProofErrorType)[keyof typeof ProofErrorType];
3506
+ //#endregion
3507
+ //#region src/parts/paragraph/paragraph.d.ts
3508
+ interface SdtRunOptions {
3509
+ properties: SdtPropertiesOptions;
3510
+ children?: (ParagraphChild | string)[];
3511
+ endProperties?: RunPropertiesOptions;
3512
+ }
3513
+ interface FootnoteEndnoteReferenceOptions {
3514
+ id: number;
3515
+ customMarkFollows?: boolean;
3516
+ }
3517
+ type ParagraphChild = {
3518
+ chart: ChartOptions;
3519
+ } | {
3520
+ smartArt: SmartArtOptions;
3521
+ } | {
3522
+ picture: PictureOptions;
3523
+ } | {
3524
+ math: {
3525
+ children?: MathInput[];
3526
+ };
3527
+ } | {
3528
+ symbolRun: SymbolRunOptions;
3529
+ } | {
3530
+ footnoteReference: number | FootnoteEndnoteReferenceOptions;
3531
+ } | {
3532
+ endnoteReference: number | FootnoteEndnoteReferenceOptions;
3533
+ } | {
3534
+ pageBreak: true;
3535
+ } | {
3536
+ columnBreak: true;
3537
+ } | {
3538
+ commentRangeStart: MarkupRangeOptions;
3539
+ } | {
3540
+ commentRangeEnd: MarkupRangeOptions;
3541
+ } | {
3542
+ commentReference: number;
3543
+ } | {
3544
+ comment: CommentChildOptions;
3545
+ } | {
3546
+ insertion: ChangedProperties & {
3547
+ children: (RunOptions | string)[];
3548
+ };
3549
+ } | {
3550
+ deletion: ChangedProperties & {
3551
+ children: (RunOptions | string)[];
3552
+ };
3553
+ } | {
3554
+ hyperlink: {
3555
+ url?: string;
3556
+ anchor?: string;
3557
+ tooltip?: string;
3558
+ targetFrame?: string;
3559
+ docLocation?: string;
3560
+ history?: boolean;
3561
+ children?: (RunOptions | string)[];
3562
+ };
3563
+ text?: string;
3564
+ } | {
3565
+ bookmarkStart: BookmarkStartOptions;
3566
+ } | {
3567
+ bookmarkEnd: MarkupRangeOptions;
3568
+ } | {
3569
+ bookmark: BookmarkOptions;
3570
+ } | {
3571
+ wpsShape: ShapeOptions;
3572
+ } | {
3573
+ wpgGroup: GroupOptions;
3574
+ } | {
3575
+ object: ObjectElementOptions;
3576
+ } | {
3577
+ contentPart: ContentPartOptions;
3578
+ } | {
3579
+ proofErr: "spellStart" | "spellEnd" | "gramStart" | "gramEnd";
3580
+ } | {
3581
+ positionalTab: {
3582
+ alignment: string;
3583
+ leader: string;
3584
+ relativeTo: string;
3585
+ };
3586
+ } | {
3587
+ permStart: {
3588
+ id: number | string;
3589
+ editor?: string;
3590
+ editGroup?: string;
3591
+ colFirst?: number;
3592
+ colLast?: number;
3593
+ };
3594
+ } | {
3595
+ permEnd: number | string;
3596
+ } | {
3597
+ moveFromRangeStart: MoveRangeStartOptions;
3598
+ } | {
3599
+ moveFromRangeEnd: MarkupRangeOptions;
3600
+ } | {
3601
+ moveToRangeStart: MoveRangeStartOptions;
3602
+ } | {
3603
+ moveToRangeEnd: MarkupRangeOptions;
3604
+ } | {
3605
+ movedFrom: ChangedProperties & {
3606
+ children: (RunOptions | string)[];
3607
+ };
3608
+ } | {
3609
+ movedTo: ChangedProperties & {
3610
+ children: (RunOptions | string)[];
3611
+ };
3612
+ } | {
3613
+ moveFrom: MoveRangeOptions;
3614
+ } | {
3615
+ moveTo: MoveRangeOptions;
3616
+ } | {
3617
+ customXmlInsRangeStart: {
3618
+ id: number;
3619
+ author?: string;
3620
+ date?: string;
3621
+ };
3622
+ } | {
3623
+ customXmlInsRangeEnd: number;
3624
+ } | {
3625
+ customXmlDelRangeStart: {
3626
+ id: number;
3627
+ author?: string;
3628
+ date?: string;
3629
+ };
3630
+ } | {
3631
+ customXmlDelRangeEnd: number;
3632
+ } | {
3633
+ customXmlMoveFromRangeStart: {
3634
+ id: number;
3635
+ author?: string;
3636
+ date?: string;
3637
+ };
3638
+ } | {
3639
+ customXmlMoveFromRangeEnd: number;
3640
+ } | {
3641
+ customXmlMoveToRangeStart: {
3642
+ id: number;
3643
+ author?: string;
3644
+ date?: string;
3645
+ };
3646
+ } | {
3647
+ customXmlMoveToRangeEnd: number;
3648
+ } | {
3649
+ ruby: RubyOptions;
3650
+ } | {
3651
+ simpleField: SimpleFieldOptions;
3652
+ } | {
3653
+ formField: FormFieldOptions;
3654
+ } | {
3655
+ complexField: {
3656
+ instruction: string;
3657
+ result?: string;
3658
+ rPrXml?: string;
3659
+ resultRPrXml?: string;
3660
+ };
3661
+ } | {
3662
+ seqIdentifier: string;
3663
+ } | {
3664
+ pageReference: {
3665
+ bookmarkId: string;
3666
+ hyperlink?: boolean;
3667
+ useRelativePosition?: boolean;
3668
+ };
3669
+ } | {
3670
+ dir: {
3671
+ val: "ltr" | "rtl";
3672
+ children?: (ParagraphChild | string)[];
3673
+ };
3674
+ } | {
3675
+ bdo: {
3676
+ val: "ltr" | "rtl";
3677
+ children?: (ParagraphChild | string)[];
3678
+ };
3679
+ } | {
3680
+ smartTag: {
3681
+ uri?: string;
3682
+ element: string;
3683
+ properties?: Array<{
3684
+ uri?: string;
3685
+ name: string;
3686
+ val: string;
3687
+ }>;
3688
+ children?: (ParagraphChild | string)[];
3689
+ };
3690
+ } | {
3691
+ customXml: CustomXmlRunOptions & {
3692
+ children?: (ParagraphChild | string)[];
3693
+ };
3694
+ } | {
3695
+ sdt: SdtRunOptions;
3696
+ } | RunOptions;
3697
+ type ParagraphOptions = {
3698
+ text?: string;
3699
+ children?: (ParagraphChild | string)[];
3700
+ rsid?: string;
3701
+ defaultRunRsid?: string;
3702
+ propertiesRsid?: string;
3703
+ runPropertiesRsid?: string;
3704
+ deletionRsid?: string;
3705
+ paraId?: string;
3706
+ textId?: string;
3707
+ } & ParagraphPropertiesOptions;
3708
+ //#endregion
3709
+ //#region src/parts/paragraph/links/hyperlink.d.ts
3710
+ declare const HyperlinkType: {
3711
+ readonly INTERNAL: "INTERNAL";
3712
+ readonly EXTERNAL: "EXTERNAL";
3713
+ };
3714
+ interface InternalHyperlinkOptions {
3715
+ anchor: string;
3716
+ tooltip?: string;
3717
+ }
3718
+ interface ExternalHyperlinkOptions {
3719
+ url: string;
3720
+ tooltip?: string;
3721
+ targetFrame?: string;
3722
+ }
3723
+ //#endregion
3724
+ //#region src/parts/paragraph/links/numbered-item-ref.d.ts
3725
+ type NumberedItemReferenceFormat = "none" | "relative" | "no_context" | "full_context";
3726
+ interface NumberedItemReferenceOptions {
3727
+ hyperlink?: boolean;
3728
+ referenceFormat?: NumberedItemReferenceFormat;
3729
+ }
3730
+ //#endregion
3731
+ //#region src/parts/paragraph/links/bidi.d.ts
3732
+ interface DirOptions {
3733
+ val: "ltr" | "rtl";
28
3734
  }
29
3735
  //#endregion
30
3736
  //#region src/parts/sdt/sdt-parse.d.ts
@@ -47,8 +3753,8 @@ declare const EditGroupType: {
47
3753
  type EditGroup = (typeof EditGroupType)[keyof typeof EditGroupType];
48
3754
  interface PermStartOptions {
49
3755
  id: string | number;
50
- edGroup?: EditGroup;
51
- ed?: string;
3756
+ editGroup?: EditGroup;
3757
+ editor?: string;
52
3758
  colFirst?: number;
53
3759
  colLast?: number;
54
3760
  }
@@ -73,18 +3779,6 @@ declare function stringifyRunInline(opts: RunOptions, ctx: BodyContext): string;
73
3779
  declare function stringifyChildDispatch(child: ParagraphChild, ctx: BodyContext): string | string[] | undefined;
74
3780
  declare function stringifyParagraphInline(opts: string | ParagraphOptions, ctx: BodyContext): string;
75
3781
  //#endregion
76
- //#region src/parts/relationships.d.ts
77
- interface RelationshipEntry {
78
- id: number | string;
79
- type: string;
80
- target: string;
81
- targetMode?: string;
82
- }
83
- interface RelationshipsInput {
84
- relationships: RelationshipEntry[];
85
- }
86
- declare const relationshipsDesc: CustomDescriptor<RelationshipsInput>;
87
- //#endregion
88
3782
  //#region src/parts/bodychildren.d.ts
89
3783
  declare const altChunkDesc: CustomDescriptor<AltChunkOptions, BodyContext>;
90
3784
  declare const subDocDesc: CustomDescriptor<SubDocOptions, BodyContext>;
@@ -112,8 +3806,55 @@ declare function stringifyCustomXmlShell(opts: {
112
3806
  }, contentXml: string): string;
113
3807
  declare const customXmlBlockDesc: CustomDescriptor<CustomXmlBlockDescriptorOptions, BodyContext>;
114
3808
  //#endregion
3809
+ //#region src/patch/from-docx.d.ts
3810
+ type PatchComment = Omit<CommentOptions, "id">;
3811
+ type Patch = {
3812
+ type: "paragraph";
3813
+ children: (string | RunOptions | ParagraphChild)[];
3814
+ } | {
3815
+ type: "document";
3816
+ children: SectionChild[];
3817
+ };
3818
+ interface PatchDocumentOptions<T extends OutputType$1 = OutputType$1> extends BasePatchOptions<T> {
3819
+ placeholders?: Readonly<Record<string, Patch>>;
3820
+ findReplace?: Readonly<Record<string, Patch>>;
3821
+ coreProperties?: Partial<CorePropertiesOptions>;
3822
+ keepOriginalStyles?: boolean;
3823
+ recursive?: boolean;
3824
+ append?: SectionChild[];
3825
+ comments?: {
3826
+ paragraphs?: Readonly<Record<number, PatchComment[]>>;
3827
+ placeholders?: Readonly<Record<string, PatchComment[]>>;
3828
+ };
3829
+ }
3830
+ declare const patchDocument: <T extends OutputType$1 = OutputType$1>({
3831
+ outputType,
3832
+ data,
3833
+ placeholders,
3834
+ findReplace,
3835
+ coreProperties,
3836
+ append,
3837
+ comments,
3838
+ keepOriginalStyles,
3839
+ placeholderDelimiters,
3840
+ recursive
3841
+ }: PatchDocumentOptions<T>) => Promise<OutputByType$1[T]>;
3842
+ //#endregion
3843
+ //#region src/patch/patch-detector.d.ts
3844
+ interface PatchDetectorOptions {
3845
+ data: DataType;
3846
+ }
3847
+ declare const patchDetector: ({
3848
+ data
3849
+ }: PatchDetectorOptions) => Promise<string[]>;
3850
+ //#endregion
3851
+ //#region src/generate.d.ts
3852
+ declare function generateDocument<T extends OutputType$1 = "nodebuffer">(options: DocumentOptions, packerOptions?: PackerOptions$1<T>): Promise<OutputByType$1[T]>;
3853
+ declare function generateDocumentSync<T extends OutputType$1 = "nodebuffer">(options: DocumentOptions, packerOptions?: PackerOptions$1<T>): OutputByType$1[T];
3854
+ declare function generateDocumentStream(options: DocumentOptions, packerOptions?: PackerOptions$1): ReadableStream<Uint8Array>;
3855
+ //#endregion
115
3856
  //#region src/compiler.d.ts
116
3857
  declare function compileDocument(options: DocumentOptions, overrides?: XmlifyedFile[], mediaLevel?: number): Zippable;
117
3858
  //#endregion
118
- export { AbstractNumberingOptions, AlignmentFrameOptions, AlignmentType, AltChunkCollection, AltChunkData, AltChunkOptions, AnnotationReference, type AppPropertiesInput, type AppPropertiesOptions, AutoCaptionOptions, BackgroundImageOptions, BackgroundRawMediaOptions, BibliographyOptions, type BodyContext, BodyPropertiesOptions, BookmarkOptions, BookmarkStartOptions, BorderOptions, BorderStyle, BordersOptions, BreakClear, BreakOptions, BreakType, BreakTypeValue, CaptionOptions, CaptionsOptions, CarriageReturn, CellMergeAttributes, CharacterSet, CharacterStyleOptions, ChartMediaData, ChartOptions, CheckBoxOptions, ChildExtent, ChildOffset, CnfConditionalOptions, CnfStyleOptions, ColumnProperties, ColumnsProperties, CommentChildOptions, CommentOptions, CommentsOptions, type CompatSettingOptions, type CompatibilityOptions, type CompressionOptions, ConcreteNumberingOptions, ConditionalTableStyleOptions, ContentTypeDefault, ContentTypeOverride, ContentTypesInput, ContinuationSeparator, type CustomPropertiesInput, type CustomPropertyOptions, type CustomXmlAttributeOptions, CustomXmlBlockDescriptorOptions, type CustomXmlBlockOptions, type CustomXmlCellOptions, type CustomXmlDataBindingOptions, type CustomXmlPropertiesOptions, type CustomXmlRowOptions, type CustomXmlRunOptions, DayLong, DayShort, DefaultStylesFactory, DefaultStylesOptions, DirOptions, DisplacedByCustomXml, Distance, DivBorderOptions, DivOptions, DocGridProperties, DocPartBehavior, DocPartGallery, DocPartOptions, DocPartType, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackgroundOptions, DocumentDefaultsOptions, DocumentGridType, DocumentOptions, DocumentProtectionOptions, DocxDocument, DocxPartRefs, DocxReadContext, DocxWriteContext, DrawingDescriptorOptions, DrawingOptions, DropCapType, DropDownListOptions, EMPTY_RUN_ELEMENTS, EditGroup, EditGroupType, EmphasisMarkType, EndnoteOptions, EndnotePropertiesOptions, EndnoteReference, EndnoteSeparator, EndnoteType, EndnotesData, ExtendedMediaData, ExternalHyperlinkOptions, FeaturesOptions, FlatTextOptions, Floating, FontProperties, FontTableInput, FootnoteEndnoteReferenceOptions, FootnoteOptions, FootnotePropertiesOptions, FootnoteReferenceElement, FootnoteSeparator, FootnoteType, FootnotesData, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FrameAnchorType, FrameOptions, FrameWrap, GlossaryDocumentOptions, GraphicFrameLocksOptions, GroupChild, GroupChildMediaData, GroupShapeLocksOptions, HeaderFooterGroup, HeaderFooterReferenceOptions, HeaderFooterReferenceType, HeaderFooterType, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, HyphenationOptions, ImageOptions, IndentProperties, InternalHyperlinkOptions, LastRenderedPageBreak, LeaderType, LevelFormat, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberProperties, LineNumberRestartFormat, LineRuleType, MailMergeDataType, MailMergeDest, MailMergeDocType, MailMergeOptions, MailMergeSourceType, Margins, MarkupRangeOptions, MathDelimiterProperties, MathInput, MathNaryLimitLocation, MathNaryProperties, MathPropertiesOptions, MathRunPropertiesOptions, MathScriptType, MathStyleType, Media, MediaData, MediaDataTransformation, MediaTransformation, MonthLong, MonthShort, MoveRangeOptions, MoveRangeStartOptions, NoBreakHyphen, NonVisualPropertiesOptions, NormalAutofitOptions, NumberFormat, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingOptions, NumberingStyleOptions, type ObjectControlOptions, type ObjectElementOptions, type ObjectEmbedOptions, type ObjectIconImageOptions, type ObjectLinkOptions, OdsoFieldMapDataOptions, OdsoFieldType, OdsoOptions, OptimizeForBrowserOptions, type OutputByType, type OutputType, OverlapType, type PackerOptions, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBordersOptions, PageMarginProperties, PageNumber, PageNumberElement, PageNumberSeparator, PageNumberTypeProperties, PageOrientation, PageSizeProperties, PageTextDirectionType, ParagraphChild, ParagraphOptions, ParagraphPropertiesChangeOptions, ParagraphPropertiesOptions, ParagraphPropertiesOptionsBase, ParagraphRunOptions, ParagraphRunPropertiesOptions, ParagraphStyleOptions, ParagraphStylePropertiesOptions, Patch, PatchComment, PatchDocumentOptions, PermStartOptions, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, ProofErrorType, ProofErrorTypeValue, ReadModeInkLockDownOptions, RelationshipEntry, RelationshipsInput, RelativeHorizontalPosition, RelativeVerticalPosition, RevisionViewOptions, RsidsOptions, RubyAlign, RubyOptions, RunOptions, RunPropertiesChangeOptions, RunPropertiesOptions, RunStylePropertiesOptions, SdtBlockOptions, SdtCellOptions, SdtCheckboxOptions, SdtCheckboxSymbol, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionPropertiesChangeOptions, SectionPropertiesOptions, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, Separator, SettingsOptions, ShadingProperties, ShadingType, ShapeStyleOptions, SimpleFieldOptions, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartTagRunOptions, SoftHyphen, SourceTypeOptions, SpaceType, SpacingProperties, StyleLevel, StyleMatrixReferenceOptions, StyleOptions, Styles, StylesOptions, SubDocCollection, SubDocData, SubDocOptions, SvgMediaData, SymbolRunOptions, TABLE_BORDERS_NONE, Tab, TabStopDefinition, TabStopPosition, TabStopType, TableAnchorType, TableBordersOptions, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableLayoutType, TableLookOptions, TableOfContentsOptions, TableOptions, TablePropertiesChangeOptions, TablePropertiesOptions, TablePropertiesOptionsBase, TablePropertyExChangeOptions, TablePropertyExOptions, TableRowOptions, TableRowPropertiesChangeOptions, TableRowPropertiesOptions, TableRowPropertiesOptionsBase, TableStyleOptions, TableStyleOverrideType, TableVerticalAlign, TableWidthProperties, TargetScreenSize, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextVertOverflowType, TextVerticalType, TextWrapping, TextWrappingSide, TextWrappingType, TextboxOptions, TextboxTightWrapType, UnderlineType, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WebSettingsInput, WebSettingsOptions, WidthType, WpgCommonMediaData, WpgGroupCoreOptions, WpgGroupOptions, WpgGroupRunOptions, WpgMediaData, WpsMediaData, WpsShapeCoreOptions, WpsShapeOptions, WpsShapeRunOptions, WrapPolygon, WrapPolygonPoint, WriteProtectionOptions, XYFrameOptions, YearLong, YearShort, altChunkDesc, appPropertiesDesc, bibliographyDesc, breakXml, buildContentTypesFromRegistry, buildNumberingCache, buildStyleCache, checkboxSymbolRunInner, commentsDesc, compileDocument, contentTypesDesc, corePropertiesDesc, createBodyProperties, createDocumentGrid, createFormFieldData, createHeaderFooterReference, createHorizontalPosition, createImageData, createLineNumberType, createPageMargin, createPageNumberType, createSectionType, createTransformation, createVerticalAlign, createVerticalPosition, createWrapThrough, createWrapTight, customPropertiesDesc, customXmlBlockDesc, drawingDesc, endnotesDesc, ensureCustomPropertiesOverride, extractStyleId, fontTableDesc, footnotesDesc, frameXml, framesetXml, generateDocument, generateDocumentStream, generateDocumentSync, glossaryDesc, objectDesc, parseArchive, parseBodyProperties, parseCustomXmlProperties, parseDocument, parseDocx, parseFormFieldData, parseNumberingDefinitions, parseSdtBlock, parseSdtProperties, parseSectionPropertiesEl, parseShading, parseStyleDefinitions, parseTableCellPropertiesEl, parseTablePropertiesEl, parseTableRowPropertiesEl, parseToc, parseTocFieldFromElements, parseTocFieldInstruction, patchDetector, patchDocument, relationshipsDesc, resetDrawingIdGen, sdtBlockDesc, sectionMarginDefaults, sectionPageSizeDefaults, sectionPropertiesDesc, selectTocEntryElements, setBodyParseChild, setTableParseChild, settingsDesc, stringifyCharacterStyle, stringifyChildDispatch, stringifyConditionalTableStyle, stringifyCustomXmlShell, stringifyDocDefaults, stringifyNumberingStyle, stringifyParagraphInline, stringifyParagraphStyle, stringifyRunInline, stringifySdtPr, stringifySdtShell, stringifySectionPropertiesXml, stringifyTableOfContents, stringifyTableStyle, subDocDesc, tableDesc, webSettingsDesc, widthFiftiethsToPct, widthPctToFiftieths, withAltChunkOverrides, withMediaDefaults };
3859
+ export { AlignmentFrameOptions, AlignmentType, AltChunkCollection, AltChunkData, AltChunkOptions, type AppPropertiesInput, type AppPropertiesOptions, AutoCaptionOptions, BackgroundImageOptions, BackgroundRawMediaOptions, BibliographyOptions, type BodyContext, type BodyPropertiesOptions, BookmarkOptions, BookmarkStartOptions, BorderOptions, BorderStyle, BordersOptions, BreakClear, BreakOptions, BreakType, BreakTypeValue, CaptionOptions, CaptionsOptions, CellMergeAttributes, CharacterSet, CharacterStyleOptions, ChartMediaData, ChartOptions, CheckBoxOptions, ChildExtent, ChildOffset, CnfConditionalOptions, CnfStyleOptions, ColumnProperties, ColumnsProperties, CommentChildOptions, CommentOptions, CommentsOptions, type CompatSettingOptions, type CompatibilityOptions, type CompressionOptions, ConditionalTableStyleOptions, ContentPartMediaData, ContentPartOptions, type CustomPropertiesInput, type CustomPropertyOptions, type CustomXmlAttributeOptions, CustomXmlBlockDescriptorOptions, type CustomXmlBlockOptions, type CustomXmlCellOptions, type CustomXmlDataBindingOptions, type CustomXmlPropertiesOptions, type CustomXmlRowOptions, type CustomXmlRunOptions, DefaultStylesFactory, DefaultStylesOptions, DirOptions, DisplacedByCustomXml, Distance, DivBorderOptions, DivOptions, DocGridProperties, DocPartBehavior, DocPartGallery, DocPartOptions, DocPartType, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackgroundOptions, DocumentDefaultsOptions, DocumentEndnotePropertiesOptions, DocumentFootnotePropertiesOptions, DocumentGridType, DocumentOptions, DocumentProtectionOptions, DocxDocument, DocxPartRefs, DocxReadContext, DocxWriteContext, DrawingDescriptorOptions, DropCapType, DropDownListOptions, EMPTY_RUN_ELEMENTS, EditGroup, EditGroupType, EmphasisMarkType, EndnoteSeparator, EndnotesData, ExtendedMediaData, ExternalHyperlinkOptions, FeaturesOptions, type FlatTextOptions, Floating, FontProperties, FontTableInput, FootnoteEndnoteReferenceOptions, FootnoteSeparator, FootnotesData, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FrameAnchorType, FrameOptions, FrameWrap, GlossaryDocumentOptions, GraphicFrameLocksOptions, GroupChildMediaData, GroupCommonMediaData, GroupMediaData, GroupOptions, GroupShapeLocksOptions, HeaderFooterGroup, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, HyphenationOptions, IndentProperties, InternalHyperlinkOptions, LeaderType, LevelFormat, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberProperties, LineNumberRestartFormat, LineRuleType, MailMergeDataType, MailMergeDest, MailMergeDocType, MailMergeOptions, MailMergeSourceType, Margins, MarkupRangeOptions, MathDelimiterProperties, MathInput, MathNaryLimitLocation, MathNaryProperties, MathPropertiesOptions, MathRunPropertiesOptions, MathScriptType, MathStyleType, Media, MediaData, MediaDataTransformation, MediaTransformation, MoveRangeOptions, MoveRangeStartOptions, NonVisualPropertiesOptions, type NormalAutofitOptions, NumberFormat, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingOptions, NumberingStyleOptions, type ObjectControlOptions, type ObjectElementOptions, type ObjectEmbedOptions, type ObjectIconImageOptions, type ObjectLinkOptions, OdsoFieldMapDataOptions, OdsoFieldType, OdsoOptions, OptimizeForBrowserOptions, type OutputByType, type OutputType, OverlapType, type PackerOptions, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBordersOptions, PageMarginProperties, PageNumber, PageNumberSeparator, PageNumberTypeProperties, PageOrientation, PageSizeProperties, PageTextDirectionType, ParagraphChild, ParagraphOptions, ParagraphPropertiesChangeOptions, ParagraphPropertiesOptions, ParagraphPropertiesOptionsBase, ParagraphRunOptions, ParagraphRunPropertiesOptions, ParagraphStyleOptions, ParagraphStylePropertiesOptions, Patch, PatchComment, PatchDocumentOptions, PermStartOptions, PictureOptions, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, type PresetTextShapeOptions, ProofErrorType, ProofErrorTypeValue, ReadModeInkLockDownOptions, RelativeHorizontalPosition, RelativeVerticalPosition, RevisionViewOptions, RsidsOptions, RubyAlign, RubyOptions, RunOptions, RunPropertiesChangeOptions, RunPropertiesOptions, RunStylePropertiesOptions, SdtBlockOptions, SdtCellOptions, SdtCheckboxOptions, SdtCheckboxSymbol, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionPropertiesChangeOptions, SectionPropertiesOptions, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, SettingsOptions, ShadingProperties, ShadingType, ShapeCoreOptions, ShapeDefaultsOptions, ShapeMediaData, ShapeOptions, ShapeStyleOptions, ShapeStyleReferenceOptions, SimpleFieldOptions, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartTagRunOptions, SourceTypeOptions, SpaceType, SpacingProperties, StyleLevel, StyleOptions, Styles, StylesOptions, SubDocCollection, SubDocData, SubDocOptions, SvgMediaData, SymbolRunOptions, TABLE_BORDERS_NONE, TabStopDefinition, TabStopPosition, TabStopType, TableAnchorType, TableBordersOptions, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableLayoutType, TableLookOptions, TableOfContentsOptions, TableOptions, TablePropertiesChangeOptions, TablePropertiesOptions, TablePropertiesOptionsBase, TablePropertyExChangeOptions, TablePropertyExOptions, TableRowOptions, TableRowPropertiesChangeOptions, TableRowPropertiesOptions, TableRowPropertiesOptionsBase, TableStyleOptions, TableStyleOverrideType, TableVerticalAlign, TableWidthProperties, TargetScreenSize, TextAlignmentType, type TextBodyWrapping, TextDirection, TextEffect, type TextHorzOverflow, TextInputOptions, type TextVertOverflow, type TextVertical, TextWrapping, TextWrappingSide, TextWrappingType, TextboxOptions, TextboxTightWrapType, UnderlineType, VerticalAlignSection, VerticalAlignTable, type VerticalAnchor, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WebSettingsInput, WebSettingsOptions, WidthType, WrapPolygon, WrapPolygonPoint, WriteProtectionOptions, XYFrameOptions, altChunkDesc, appPropertiesDesc, bibliographyDesc, bodyPropertiesDesc, breakXml, buildNumberingCache, buildStyleCache, checkboxSymbolRunInner, commentsDesc, compileDocument, corePropertiesDesc, createBodyProperties, createDocumentGrid, createFormFieldData, createHorizontalPosition, createLineNumberType, createPageMargin, createPageNumberType, createPictureData, createSectionType, createTransformation, createVerticalAlign, createVerticalPosition, createWrapThrough, createWrapTight, customPropertiesDesc, customXmlBlockDesc, documentNamespaceAttributes, documentNamespaceRecord, drawingDesc, endnotesDesc, extractStyleId, fontTableDesc, footnotesDesc, frameXml, framesetXml, generateDocument, generateDocumentStream, generateDocumentSync, glossaryDesc, objectDesc, parseArchive, parseBodyProperties, parseCustomXmlProperties, parseDocument, parseDocx, parseFormFieldData, parseNumberingDefinitions, parseSdtBlock, parseSdtProperties, parseSectionPropertiesEl, parseShading, parseStyleDefinitions, parseTableCellPropertiesEl, parseTablePropertiesEl, parseTableRowPropertiesEl, parseToc, parseTocFieldFromElements, parseTocFieldInstruction, patchDetector, patchDocument, resetDrawingIdGen, sdtBlockDesc, sectionMarginDefaults, sectionPageSizeDefaults, sectionPropertiesDesc, selectTocEntryElements, setBodyParseChild, setTableParseChild, settingsDesc, stringifyCharacterStyle, stringifyChildDispatch, stringifyConditionalTableStyle, stringifyCustomXmlShell, stringifyDocDefaults, stringifyNumberingStyle, stringifyParagraphInline, stringifyParagraphStyle, stringifyRunInline, stringifySdtPr, stringifySdtShell, stringifySectionPropertiesXml, stringifyTableOfContents, stringifyTableStyle, subDocDesc, tableDesc, webSettingsDesc, widthFiftiethsToPct, widthPctToFiftieths };
119
3860
  //# sourceMappingURL=index.d.mts.map