@office-open/docx 0.2.0 → 0.3.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,1648 +1,722 @@
1
+ import { AppProperties, AttributeData, AttributeMap, AttributePayload, BaseXmlComponent, BuilderElement, EMPTY_OBJECT, EmptyElement, HpsMeasureElement, IContext as IContext$1, IXmlableObject, IgnoreIfEmptyXmlComponent, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, NextAttributeComponent, NumberValueElement, OnOffElement, Relationships, StringContainer, StringEnumValueElement, StringValueElement, UniqueNumericIdCreator, XmlAttributeComponent, XmlAttributeComponent as XmlAttributeComponent$1, XmlComponent, XmlComponent as XmlComponent$1, chartAttr, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, hashedId, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl } from "@office-open/core";
1
2
  import { DataType } from "undio";
3
+ import { BlipEffectsOptions, CustomGeometryOptions, EffectDagOptions, EffectListOptions, FillOptions, OutlineOptions, Scene3DOptions, Shape3DOptions, SourceRectangleOptions, TileOptions } from "@office-open/core/drawingml";
4
+ import { ChartCollection, ChartType, IChartData } from "@office-open/core/chart";
5
+ import { COLOR_CATEGORIES, ISmartArtData, ITreeNode, LAYOUT_CATEGORIES, STYLE_CATEGORIES, SmartArtCollection, createDataModel } from "@office-open/core/smartart";
2
6
  import { Readable } from "stream";
3
7
  import { Buffer } from "\u0000polyfill-node.buffer";
8
+ export * from "@office-open/core/values";
9
+ export * from "@office-open/core/smartart";
4
10
 
5
11
  //#region src/file/file-child.d.ts
6
- declare class FileChild extends XmlComponent {
12
+ interface FileChild extends BaseXmlComponent {
7
13
  readonly fileChild: symbol;
8
14
  }
9
15
  //#endregion
10
- //#region src/util/values.d.ts
11
- type UniversalMeasure = `${"-" | ""}${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
12
- type PositiveUniversalMeasure = `${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
13
- type Percentage = `${"-" | ""}${number}%`;
14
- type PositivePercentage = `${number}%`;
15
- type RelativeMeasure = `${"-" | ""}${number}${"em" | "ex"}`;
16
- declare const decimalNumber: (val: number) => number;
17
- declare const unsignedDecimalNumber: (val: number) => number;
18
- declare const longHexNumber: (val: string) => string;
19
- declare const shortHexNumber: (val: string) => string;
20
- declare const uCharHexNumber: (val: string) => string;
21
- declare const universalMeasureValue: (val: UniversalMeasure) => UniversalMeasure;
22
- declare const positiveUniversalMeasureValue: (val: PositiveUniversalMeasure) => PositiveUniversalMeasure;
23
- declare const hexColorValue: (val: string) => string;
24
- declare const signedTwipsMeasureValue: (val: UniversalMeasure | number) => UniversalMeasure | number;
25
- declare const hpsMeasureValue: (val: PositiveUniversalMeasure | number) => string | number;
26
- declare const signedHpsMeasureValue: (val: UniversalMeasure | number) => string | number;
27
- declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
28
- declare const percentageValue: (val: Percentage) => Percentage;
29
- declare const measurementOrPercentValue: (val: number | Percentage | UniversalMeasure) => number | UniversalMeasure | Percentage;
30
- declare const eighthPointMeasureValue: (val: number) => number;
31
- declare const pointMeasureValue: (val: number) => number;
32
- declare const dateTimeValue: (val: Date) => string;
33
- declare const ThemeColor: {
34
- readonly DARK1: "dark1";
35
- readonly LIGHT1: "light1";
36
- readonly DARK2: "dark2";
37
- readonly LIGHT2: "light2";
38
- readonly ACCENT1: "accent1";
39
- readonly ACCENT2: "accent2";
40
- readonly ACCENT3: "accent3";
41
- readonly ACCENT4: "accent4";
42
- readonly ACCENT5: "accent5";
43
- readonly ACCENT6: "accent6";
44
- readonly HYPERLINK: "hyperlink";
45
- readonly FOLLOWED_HYPERLINK: "followedHyperlink";
46
- readonly NONE: "none";
47
- readonly BACKGROUND1: "background1";
48
- readonly TEXT1: "text1";
49
- readonly BACKGROUND2: "background2";
50
- readonly TEXT2: "text2";
51
- };
52
- declare const ThemeFont: {
53
- readonly MAJOR_EAST_ASIA: "majorEastAsia";
54
- readonly MAJOR_BIDI: "majorBidi";
55
- readonly MAJOR_ASCII: "majorAscii";
56
- readonly MAJOR_H_ANSI: "majorHAnsi";
57
- readonly MINOR_EAST_ASIA: "minorEastAsia";
58
- readonly MINOR_BIDI: "minorBidi";
59
- readonly MINOR_ASCII: "minorAscii";
60
- readonly MINOR_H_ANSI: "minorHAnsi";
61
- };
62
- //#endregion
63
- //#region src/file/table/grid.d.ts
64
- interface ITableGridChangeOptions {
65
- readonly id: number;
66
- readonly columnWidths: readonly number[] | readonly PositiveUniversalMeasure[];
16
+ //#region src/file/footer/footer.d.ts
17
+ declare class Footer$1 extends InitializableXmlComponent {
18
+ private readonly refId;
19
+ constructor(referenceNumber: number, initContent?: XmlComponent);
20
+ get ReferenceId(): number;
21
+ add(item: FileChild): void;
67
22
  }
68
23
  //#endregion
69
- //#region src/file/table/table-cell-spacing.d.ts
70
- declare const CellSpacingType: {
71
- readonly DXA: "dxa";
72
- readonly NIL: "nil";
73
- };
74
- interface ITableCellSpacingProperties {
75
- readonly value: number | Percentage | UniversalMeasure;
76
- readonly type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
24
+ //#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
25
+ interface IChildOffset {
26
+ readonly x: number;
27
+ readonly y: number;
77
28
  }
78
- //#endregion
79
- //#region src/file/track-revision/track-revision.d.ts
80
- interface IChangedAttributesProperties {
81
- readonly id: number;
82
- readonly author: string;
83
- readonly date: string;
29
+ interface IChildExtent {
30
+ readonly cx: number;
31
+ readonly cy: number;
84
32
  }
85
33
  //#endregion
86
- //#region src/file/shading/shading.d.ts
87
- interface IShadingAttributesProperties {
88
- readonly fill?: string;
89
- readonly color?: string;
90
- readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
91
- readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
92
- readonly themeTint?: string;
93
- readonly themeShade?: string;
94
- readonly themeFill?: (typeof ThemeColor)[keyof typeof ThemeColor];
95
- readonly themeFillTint?: string;
96
- readonly themeFillShade?: string;
34
+ //#region src/file/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
35
+ declare enum VerticalAnchor {
36
+ TOP = "t",
37
+ CENTER = "ctr",
38
+ BOTTOM = "b",
39
+ JUSTIFY = "just",
40
+ DISTRIBUTED = "dist"
97
41
  }
98
- declare const createShading: ({
99
- fill,
100
- color,
101
- type,
102
- themeColor,
103
- themeTint,
104
- themeShade,
105
- themeFill,
106
- themeFillTint,
107
- themeFillShade
108
- }: IShadingAttributesProperties) => XmlComponent;
109
- declare const ShadingType: {
110
- readonly CLEAR: "clear";
111
- readonly DIAGONAL_CROSS: "diagCross";
112
- readonly DIAGONAL_STRIPE: "diagStripe";
113
- readonly HORIZONTAL_CROSS: "horzCross";
114
- readonly HORIZONTAL_STRIPE: "horzStripe";
115
- readonly NIL: "nil";
116
- readonly PERCENT_10: "pct10";
117
- readonly PERCENT_12: "pct12";
118
- readonly PERCENT_15: "pct15";
119
- readonly PERCENT_20: "pct20";
120
- readonly PERCENT_25: "pct25";
121
- readonly PERCENT_30: "pct30";
122
- readonly PERCENT_35: "pct35";
123
- readonly PERCENT_37: "pct37";
124
- readonly PERCENT_40: "pct40";
125
- readonly PERCENT_45: "pct45";
126
- readonly PERCENT_5: "pct5";
127
- readonly PERCENT_50: "pct50";
128
- readonly PERCENT_55: "pct55";
129
- readonly PERCENT_60: "pct60";
130
- readonly PERCENT_62: "pct62";
131
- readonly PERCENT_65: "pct65";
132
- readonly PERCENT_70: "pct70";
133
- readonly PERCENT_75: "pct75";
134
- readonly PERCENT_80: "pct80";
135
- readonly PERCENT_85: "pct85";
136
- readonly PERCENT_87: "pct87";
137
- readonly PERCENT_90: "pct90";
138
- readonly PERCENT_95: "pct95";
139
- readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagStripe";
140
- readonly SOLID: "solid";
141
- readonly THIN_DIAGONAL_CROSS: "thinDiagCross";
142
- readonly THIN_DIAGONAL_STRIPE: "thinDiagStripe";
143
- readonly THIN_HORIZONTAL_CROSS: "thinHorzCross";
144
- readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagStripe";
145
- readonly THIN_VERTICAL_STRIPE: "thinVertStripe";
146
- readonly VERTICAL_STRIPE: "vertStripe";
42
+ declare const TextVertOverflowType: {
43
+ readonly OVERFLOW: "overflow";
44
+ readonly ELLIPSIS: "ellipsis";
45
+ readonly CLIP: "clip";
147
46
  };
148
- //#endregion
149
- //#region src/file/table/table-width.d.ts
150
- declare const WidthType: {
151
- readonly AUTO: "auto";
152
- readonly DXA: "dxa";
153
- readonly NIL: "nil";
154
- readonly PERCENTAGE: "pct";
47
+ declare const TextHorzOverflowType: {
48
+ readonly OVERFLOW: "overflow";
49
+ readonly CLIP: "clip";
155
50
  };
156
- interface ITableWidthProperties {
157
- readonly size: number | Percentage | UniversalMeasure;
158
- readonly type?: (typeof WidthType)[keyof typeof WidthType];
159
- }
160
- declare const createTableWidthElement: (name: string, {
161
- type,
162
- size
163
- }: ITableWidthProperties) => XmlComponent;
164
- //#endregion
165
- //#region src/file/border/border.d.ts
166
- interface IBorderOptions {
167
- readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
168
- readonly color?: string;
169
- readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
170
- readonly themeTint?: string;
171
- readonly themeShade?: string;
172
- readonly shadow?: boolean;
173
- readonly frame?: boolean;
174
- readonly size?: number;
175
- readonly space?: number;
176
- }
177
- declare const createBorderElement: (elementName: string, {
178
- color,
179
- size,
180
- space,
181
- style,
182
- themeColor,
183
- themeTint,
184
- themeShade,
185
- shadow,
186
- frame
187
- }: IBorderOptions) => XmlComponent;
188
- declare const BorderStyle: {
189
- readonly SINGLE: "single";
190
- readonly DASH_DOT_STROKED: "dashDotStroked";
191
- readonly DASHED: "dashed";
192
- readonly DASH_SMALL_GAP: "dashSmallGap";
193
- readonly DOT_DASH: "dotDash";
194
- readonly DOT_DOT_DASH: "dotDotDash";
195
- readonly DOTTED: "dotted";
196
- readonly DOUBLE: "double";
197
- readonly DOUBLE_WAVE: "doubleWave";
198
- readonly INSET: "inset";
199
- readonly NIL: "nil";
51
+ declare const TextVerticalType: {
52
+ readonly HORIZONTAL: "horz";
53
+ readonly VERTICAL: "vert";
54
+ readonly VERTICAL_270: "vert270";
55
+ readonly WORD_ART_VERTICAL: "wordArtVert";
56
+ readonly EAST_ASIAN_VERTICAL: "eaVert";
57
+ readonly MONGOLIAN_VERTICAL: "mongolianVert";
58
+ readonly WORD_ART_VERTICAL_RTL: "wordArtVertRtl";
59
+ };
60
+ declare const TextBodyWrappingType: {
200
61
  readonly NONE: "none";
201
- readonly OUTSET: "outset";
202
- readonly THICK: "thick";
203
- readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
204
- readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
205
- readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
206
- readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
207
- readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
208
- readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
209
- readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
210
- readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
211
- readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
212
- readonly THREE_D_EMBOSS: "threeDEmboss";
213
- readonly THREE_D_ENGRAVE: "threeDEngrave";
214
- readonly TRIPLE: "triple";
215
- readonly WAVE: "wave";
62
+ readonly SQUARE: "square";
216
63
  };
217
- //#endregion
218
- //#region src/file/table/table-properties/table-borders.d.ts
219
- interface ITableBordersOptions {
220
- readonly top?: IBorderOptions;
221
- readonly bottom?: IBorderOptions;
222
- readonly left?: IBorderOptions;
223
- readonly right?: IBorderOptions;
224
- readonly insideHorizontal?: IBorderOptions;
225
- readonly insideVertical?: IBorderOptions;
64
+ interface NormalAutofitOptions {
65
+ readonly fontScale?: number;
66
+ readonly lnSpcReduction?: number;
226
67
  }
227
- declare class TableBorders extends XmlComponent {
228
- static readonly NONE: ITableBordersOptions;
229
- constructor(options: ITableBordersOptions);
68
+ interface PresetTextShapeOptions {
69
+ readonly preset: string;
70
+ readonly adjustments?: readonly {
71
+ readonly name: string;
72
+ readonly formula: string;
73
+ }[];
74
+ }
75
+ interface FlatTextOptions {
76
+ readonly z?: number;
77
+ }
78
+ interface IBodyPropertiesOptions {
79
+ readonly rotation?: number;
80
+ readonly spcFirstLastPara?: boolean;
81
+ readonly vertOverflow?: (typeof TextVertOverflowType)[keyof typeof TextVertOverflowType];
82
+ readonly horzOverflow?: (typeof TextHorzOverflowType)[keyof typeof TextHorzOverflowType];
83
+ readonly vert?: (typeof TextVerticalType)[keyof typeof TextVerticalType];
84
+ readonly wrap?: (typeof TextBodyWrappingType)[keyof typeof TextBodyWrappingType];
85
+ readonly lIns?: number;
86
+ readonly tIns?: number;
87
+ readonly rIns?: number;
88
+ readonly bIns?: number;
89
+ readonly numCol?: number;
90
+ readonly spcCol?: number;
91
+ readonly rtlCol?: boolean;
92
+ readonly fromWordArt?: boolean;
93
+ readonly anchor?: (typeof VerticalAnchor)[keyof typeof VerticalAnchor];
94
+ readonly anchorCtr?: boolean;
95
+ readonly forceAA?: boolean;
96
+ readonly upright?: boolean;
97
+ readonly compatLnSpc?: boolean;
98
+ readonly verticalAnchor?: VerticalAnchor;
99
+ readonly margins?: {
100
+ readonly top?: number;
101
+ readonly bottom?: number;
102
+ readonly left?: number;
103
+ readonly right?: number;
104
+ };
105
+ readonly prstTxWarp?: PresetTextShapeOptions;
106
+ readonly noAutoFit?: boolean;
107
+ readonly normAutofit?: NormalAutofitOptions;
108
+ readonly spAutoFit?: boolean;
109
+ readonly scene3d?: Scene3DOptions;
110
+ readonly sp3d?: Shape3DOptions;
111
+ readonly flatTx?: FlatTextOptions;
230
112
  }
113
+ declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;
231
114
  //#endregion
232
- //#region src/file/table/table-properties/table-cell-margin.d.ts
233
- interface ITableCellMarginOptions {
234
- readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
235
- readonly top?: number;
236
- readonly bottom?: number;
237
- readonly left?: number;
238
- readonly right?: number;
115
+ //#region src/file/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.d.ts
116
+ interface INonVisualShapePropertiesOptions {
117
+ readonly txBox: string;
239
118
  }
240
119
  //#endregion
241
- //#region src/file/table/table-properties/table-float-properties.d.ts
242
- declare const TableAnchorType: {
243
- readonly MARGIN: "margin";
244
- readonly PAGE: "page";
245
- readonly TEXT: "text";
246
- };
247
- declare const RelativeHorizontalPosition: {
248
- readonly CENTER: "center";
249
- readonly INSIDE: "inside";
250
- readonly LEFT: "left";
251
- readonly OUTSIDE: "outside";
252
- readonly RIGHT: "right";
253
- };
254
- declare const RelativeVerticalPosition: {
255
- readonly BOTTOM: "bottom";
256
- readonly CENTER: "center";
257
- readonly INLINE: "inline";
258
- readonly INSIDE: "inside";
259
- readonly OUTSIDE: "outside";
260
- readonly TOP: "top";
261
- };
262
- declare const OverlapType: {
263
- readonly NEVER: "never";
264
- readonly OVERLAP: "overlap";
265
- };
266
- interface ITableFloatOptions {
267
- readonly horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
268
- readonly absoluteHorizontalPosition?: number | UniversalMeasure;
269
- readonly relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
270
- readonly verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
271
- readonly absoluteVerticalPosition?: number | UniversalMeasure;
272
- readonly relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
273
- readonly bottomFromText?: number | PositiveUniversalMeasure;
274
- readonly topFromText?: number | PositiveUniversalMeasure;
275
- readonly leftFromText?: number | PositiveUniversalMeasure;
276
- readonly rightFromText?: number | PositiveUniversalMeasure;
277
- readonly overlap?: (typeof OverlapType)[keyof typeof OverlapType];
120
+ //#region src/file/drawing/inline/graphic/graphic-data/wps/wps-shape.d.ts
121
+ interface WpsShapeCoreOptions {
122
+ readonly children: readonly Paragraph[];
123
+ readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
124
+ readonly bodyProperties?: IBodyPropertiesOptions;
125
+ readonly outline?: OutlineOptions;
126
+ readonly fill?: FillOptions;
127
+ readonly customGeometry?: CustomGeometryOptions;
128
+ readonly effectDag?: EffectDagOptions;
129
+ readonly effects?: EffectListOptions;
130
+ readonly scene3d?: Scene3DOptions;
131
+ readonly shape3d?: Shape3DOptions;
278
132
  }
279
- declare const createTableFloatProperties: ({
280
- horizontalAnchor,
281
- verticalAnchor,
282
- absoluteHorizontalPosition,
283
- relativeHorizontalPosition,
284
- absoluteVerticalPosition,
285
- relativeVerticalPosition,
286
- bottomFromText,
287
- topFromText,
288
- leftFromText,
289
- rightFromText,
290
- overlap
291
- }: ITableFloatOptions) => XmlComponent;
292
- //#endregion
293
- //#region src/file/table/table-properties/table-layout.d.ts
294
- declare const TableLayoutType: {
295
- readonly AUTOFIT: "autofit";
296
- readonly FIXED: "fixed";
297
- };
298
- declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
299
133
  //#endregion
300
- //#region src/file/table/table-properties/table-look.d.ts
301
- interface ITableLookOptions {
302
- readonly firstRow?: boolean;
303
- readonly lastRow?: boolean;
304
- readonly firstColumn?: boolean;
305
- readonly lastColumn?: boolean;
306
- readonly noHBand?: boolean;
307
- readonly noVBand?: boolean;
134
+ //#region src/file/media/data.d.ts
135
+ interface IMediaDataTransformation {
136
+ readonly offset?: {
137
+ readonly pixels: {
138
+ readonly x: number;
139
+ readonly y: number;
140
+ };
141
+ readonly emus?: {
142
+ readonly x: number;
143
+ readonly y: number;
144
+ };
145
+ };
146
+ readonly pixels: {
147
+ readonly x: number;
148
+ readonly y: number;
149
+ };
150
+ readonly emus: {
151
+ readonly x: number;
152
+ readonly y: number;
153
+ };
154
+ readonly flip?: {
155
+ readonly vertical?: boolean;
156
+ readonly horizontal?: boolean;
157
+ };
158
+ readonly rotation?: number;
308
159
  }
309
- declare const createTableLook: ({
310
- firstRow,
311
- lastRow,
312
- firstColumn,
313
- lastColumn,
314
- noHBand,
315
- noVBand
316
- }: ITableLookOptions) => XmlComponent;
317
- //#endregion
318
- //#region src/file/table/table-properties/table-properties.d.ts
319
- interface ITablePropertiesOptionsBase {
320
- readonly width?: ITableWidthProperties;
321
- readonly indent?: ITableWidthProperties;
322
- readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
323
- readonly borders?: ITableBordersOptions;
324
- readonly float?: ITableFloatOptions;
325
- readonly shading?: IShadingAttributesProperties;
326
- readonly style?: string;
327
- readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
328
- readonly cellMargin?: ITableCellMarginOptions;
329
- readonly visuallyRightToLeft?: boolean;
330
- readonly tableLook?: ITableLookOptions;
331
- readonly cellSpacing?: ITableCellSpacingProperties;
332
- readonly styleRowBandSize?: number;
333
- readonly styleColBandSize?: number;
334
- readonly caption?: string;
335
- readonly description?: string;
160
+ interface CoreMediaData {
161
+ readonly fileName: string;
162
+ readonly transformation: IMediaDataTransformation;
163
+ readonly data: Uint8Array;
164
+ readonly srcRect?: SourceRectangleOptions;
336
165
  }
337
- type ITablePropertiesChangeOptions = ITablePropertiesOptions & IChangedAttributesProperties;
338
- type ITablePropertiesOptions = {
339
- readonly revision?: ITablePropertiesChangeOptions;
340
- readonly includeIfEmpty?: boolean;
341
- } & ITablePropertiesOptionsBase;
342
- declare class TableProperties extends IgnoreIfEmptyXmlComponent {
343
- constructor(options: ITablePropertiesOptions);
166
+ interface RegularMediaData {
167
+ readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
344
168
  }
345
- //#endregion
346
- //#region src/file/track-revision/track-revision-components/inserted-text-run.d.ts
347
- type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
348
- declare class InsertedTextRun extends XmlComponent {
349
- constructor(options: IInsertedRunOptions);
169
+ interface SvgMediaData {
170
+ readonly type: "svg";
171
+ readonly fallback: RegularMediaData & CoreMediaData;
350
172
  }
351
- //#endregion
352
- //#region src/file/paragraph/run/east-asian-layout.d.ts
353
- declare const CombineBracketsType: {
354
- readonly NONE: "none";
355
- readonly ROUND: "round";
356
- readonly SQUARE: "square";
357
- readonly ANGLE: "angle";
358
- readonly CURLY: "curly";
359
- };
360
- interface EastAsianLayoutOptions {
361
- readonly id?: number;
362
- readonly combine?: boolean;
363
- readonly combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
364
- readonly vert?: boolean;
365
- readonly vertCompress?: boolean;
173
+ interface WpsMediaData {
174
+ readonly type: "wps";
175
+ readonly transformation: IMediaDataTransformation;
176
+ readonly data: WpsShapeCoreOptions;
366
177
  }
367
- //#endregion
368
- //#region src/file/paragraph/run/emphasis-mark.d.ts
369
- declare const EmphasisMarkType: {
370
- readonly NONE: "none";
371
- readonly COMMA: "comma";
372
- readonly CIRCLE: "circle";
373
- readonly DOT: "dot";
374
- readonly UNDER_DOT: "underDot";
375
- };
376
- declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
377
- declare const createDotEmphasisMark: () => XmlComponent;
378
- //#endregion
379
- //#region src/file/paragraph/run/formatting.d.ts
380
- interface ColorOptions {
381
- readonly val?: string;
382
- readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
383
- readonly themeTint?: string;
384
- readonly themeShade?: string;
178
+ interface WpgCommonMediaData {
179
+ readonly outline?: OutlineOptions;
180
+ readonly fill?: FillOptions;
385
181
  }
386
- //#endregion
387
- //#region src/file/paragraph/run/language.d.ts
388
- interface ILanguageOptions {
389
- readonly value?: string;
390
- readonly eastAsia?: string;
391
- readonly bidirectional?: string;
182
+ type IGroupChildMediaData = (WpsMediaData | IMediaData) & WpgCommonMediaData;
183
+ interface WpgMediaData {
184
+ readonly type: "wpg";
185
+ readonly transformation: IMediaDataTransformation;
186
+ readonly children: readonly IGroupChildMediaData[];
187
+ readonly chOff?: IChildOffset;
188
+ readonly chExt?: IChildExtent;
189
+ readonly fill?: FillOptions;
190
+ readonly effects?: EffectListOptions;
392
191
  }
393
- //#endregion
394
- //#region src/file/paragraph/run/run-fonts.d.ts
395
- interface IFontAttributesProperties {
396
- readonly ascii?: string;
397
- readonly cs?: string;
398
- readonly eastAsia?: string;
399
- readonly hAnsi?: string;
400
- readonly hint?: string;
401
- readonly asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
402
- readonly hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
403
- readonly eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
404
- readonly cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
192
+ interface ChartMediaData {
193
+ readonly type: "chart";
194
+ readonly transformation: IMediaDataTransformation;
195
+ readonly chartKey: string;
405
196
  }
406
- declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
407
- //#endregion
408
- //#region src/file/paragraph/run/underline.d.ts
409
- declare const UnderlineType: {
410
- readonly SINGLE: "single";
411
- readonly WORDS: "words";
412
- readonly DOUBLE: "double";
413
- readonly THICK: "thick";
414
- readonly DOTTED: "dotted";
415
- readonly DOTTEDHEAVY: "dottedHeavy";
416
- readonly DASH: "dash";
417
- readonly DASHEDHEAVY: "dashedHeavy";
418
- readonly DASHLONG: "dashLong";
419
- readonly DASHLONGHEAVY: "dashLongHeavy";
420
- readonly DOTDASH: "dotDash";
421
- readonly DASHDOTHEAVY: "dashDotHeavy";
422
- readonly DOTDOTDASH: "dotDotDash";
423
- readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
424
- readonly WAVE: "wave";
425
- readonly WAVYHEAVY: "wavyHeavy";
426
- readonly WAVYDOUBLE: "wavyDouble";
427
- readonly NONE: "none";
428
- };
429
- declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string, themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor], themeTint?: string, themeShade?: string) => XmlComponent;
430
- //#endregion
431
- //#region src/file/paragraph/run/properties.d.ts
432
- interface IFontOptions {
433
- readonly name: string;
434
- readonly hint?: string;
197
+ interface SmartArtMediaData {
198
+ readonly type: "smartart";
199
+ readonly transformation: IMediaDataTransformation;
200
+ readonly smartArtKey: string;
435
201
  }
436
- declare const TextEffect: {
437
- readonly BLINK_BACKGROUND: "blinkBackground";
438
- readonly LIGHTS: "lights";
439
- readonly ANTS_BLACK: "antsBlack";
440
- readonly ANTS_RED: "antsRed";
441
- readonly SHIMMER: "shimmer";
442
- readonly SPARKLE: "sparkle";
443
- readonly NONE: "none";
444
- };
445
- declare const HighlightColor: {
446
- readonly BLACK: "black";
447
- readonly BLUE: "blue";
448
- readonly CYAN: "cyan";
449
- readonly DARK_BLUE: "darkBlue";
450
- readonly DARK_CYAN: "darkCyan";
451
- readonly DARK_GRAY: "darkGray";
452
- readonly DARK_GREEN: "darkGreen";
453
- readonly DARK_MAGENTA: "darkMagenta";
454
- readonly DARK_RED: "darkRed";
455
- readonly DARK_YELLOW: "darkYellow";
456
- readonly GREEN: "green";
457
- readonly LIGHT_GRAY: "lightGray";
458
- readonly MAGENTA: "magenta";
459
- readonly NONE: "none";
460
- readonly RED: "red";
461
- readonly WHITE: "white";
462
- readonly YELLOW: "yellow";
463
- };
464
- interface RunStylePropertiesOptions {
465
- readonly noProof?: boolean;
466
- readonly bold?: boolean;
467
- readonly boldComplexScript?: boolean;
468
- readonly italics?: boolean;
469
- readonly italicsComplexScript?: boolean;
470
- readonly underline?: {
471
- readonly color?: string;
472
- readonly type?: (typeof UnderlineType)[keyof typeof UnderlineType];
202
+ type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData | ChartMediaData | SmartArtMediaData;
203
+ type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
204
+ declare const WORKAROUND2 = "";
205
+ //#endregion
206
+ //#region src/file/media/media.d.ts
207
+ interface IMediaTransformation {
208
+ readonly offset?: {
209
+ readonly top?: number;
210
+ readonly left?: number;
473
211
  };
474
- readonly effect?: (typeof TextEffect)[keyof typeof TextEffect];
475
- readonly emphasisMark?: {
476
- readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
212
+ readonly width: number;
213
+ readonly height: number;
214
+ readonly flip?: {
215
+ readonly vertical?: boolean;
216
+ readonly horizontal?: boolean;
477
217
  };
478
- readonly color?: string | ColorOptions;
479
- readonly kern?: number | PositiveUniversalMeasure;
480
- readonly position?: UniversalMeasure;
481
- readonly size?: number | PositiveUniversalMeasure;
482
- readonly sizeComplexScript?: boolean | number | PositiveUniversalMeasure;
483
- readonly rightToLeft?: boolean;
484
- readonly smallCaps?: boolean;
485
- readonly allCaps?: boolean;
486
- readonly strike?: boolean;
487
- readonly doubleStrike?: boolean;
488
- readonly subScript?: boolean;
489
- readonly superScript?: boolean;
490
- readonly font?: string | IFontOptions | IFontAttributesProperties;
491
- readonly highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
492
- readonly highlightComplexScript?: boolean | string;
493
- readonly characterSpacing?: number;
494
- readonly shading?: IShadingAttributesProperties;
495
- readonly emboss?: boolean;
496
- readonly imprint?: boolean;
497
- readonly revision?: IRunPropertiesChangeOptions;
498
- readonly language?: ILanguageOptions;
499
- readonly border?: IBorderOptions;
500
- readonly snapToGrid?: boolean;
501
- readonly vanish?: boolean;
502
- readonly specVanish?: boolean;
503
- readonly scale?: number;
504
- readonly math?: boolean;
505
- readonly outline?: boolean;
506
- readonly shadow?: boolean;
507
- readonly webHidden?: boolean;
508
- readonly fitText?: number;
509
- readonly complexScript?: boolean;
510
- readonly eastAsianLayout?: EastAsianLayoutOptions;
218
+ readonly rotation?: number;
511
219
  }
512
- type IRunPropertiesOptions = {
513
- readonly style?: string;
514
- } & RunStylePropertiesOptions;
515
- type IRunPropertiesChangeOptions = {} & IRunPropertiesOptions & IChangedAttributesProperties;
516
- type IParagraphRunPropertiesOptions = {
517
- readonly insertion?: IChangedAttributesProperties;
518
- readonly deletion?: IChangedAttributesProperties;
519
- } & IRunPropertiesOptions;
520
- declare class RunProperties extends IgnoreIfEmptyXmlComponent {
521
- constructor(options?: IRunPropertiesOptions);
522
- push(item: XmlComponent): void;
220
+ declare const createTransformation: (options: IMediaTransformation) => IMediaDataTransformation;
221
+ declare class Media {
222
+ private readonly map;
223
+ constructor();
224
+ addImage(key: string, mediaData: IMediaData): void;
225
+ get Array(): readonly IMediaData[];
523
226
  }
524
- declare class ParagraphRunProperties extends RunProperties {
525
- constructor(options?: IParagraphRunPropertiesOptions);
227
+ //#endregion
228
+ //#region src/file/table-of-contents/table-of-contents-properties.d.ts
229
+ declare class StyleLevel {
230
+ readonly styleName: string;
231
+ readonly level: number;
232
+ constructor(styleName: string, level: number);
526
233
  }
527
- declare class RunPropertiesChange extends XmlComponent {
528
- constructor(options: IRunPropertiesChangeOptions);
234
+ interface ITableOfContentsOptions {
235
+ readonly captionLabel?: string;
236
+ readonly entriesFromBookmark?: string;
237
+ readonly captionLabelIncludingNumbers?: string;
238
+ readonly sequenceAndPageNumbersSeparator?: string;
239
+ readonly tcFieldIdentifier?: string;
240
+ readonly hyperlink?: boolean;
241
+ readonly tcFieldLevelRange?: string;
242
+ readonly pageNumbersEntryLevelsRange?: string;
243
+ readonly headingStyleRange?: string;
244
+ readonly entryAndPageNumberSeparator?: string;
245
+ readonly seqFieldIdentifierForPrefix?: string;
246
+ readonly stylesWithLevels?: readonly StyleLevel[];
247
+ readonly useAppliedParagraphOutlineLevel?: boolean;
248
+ readonly preserveTabInEntries?: boolean;
249
+ readonly preserveNewLineInEntries?: boolean;
250
+ readonly hideTabAndPageNumbersInWebView?: boolean;
529
251
  }
530
252
  //#endregion
531
- //#region src/file/paragraph/run/text-run.d.ts
532
- declare class TextRun extends Run {
533
- constructor(options: IRunOptions | string);
253
+ //#region src/file/table-of-contents/table-of-contents.d.ts
254
+ interface ToCEntry {
255
+ readonly title: string;
256
+ readonly level: number;
257
+ readonly page?: number;
258
+ readonly href?: string;
534
259
  }
535
- //#endregion
536
- //#region src/file/paragraph/run/symbol-run.d.ts
537
- type ISymbolRunOptions = {
538
- readonly char: string;
539
- readonly symbolfont?: string;
540
- } & IRunOptions;
541
- declare class SymbolRun extends Run {
542
- constructor(options: ISymbolRunOptions | string);
260
+ declare class TableOfContents extends XmlComponent implements FileChild {
261
+ readonly fileChild: symbol;
262
+ constructor(alias?: string, {
263
+ contentChildren,
264
+ cachedEntries,
265
+ beginDirty,
266
+ ...properties
267
+ }?: ITableOfContentsOptions & {
268
+ readonly contentChildren?: readonly (BaseXmlComponent | string)[];
269
+ readonly cachedEntries?: readonly ToCEntry[];
270
+ readonly beginDirty?: boolean;
271
+ });
272
+ private getTabStopsForLevel;
273
+ private buildCachedContentRun;
274
+ private buildCachedContentParagraphChild;
543
275
  }
544
276
  //#endregion
545
- //#region src/file/drawing/doc-properties/doc-properties.d.ts
546
- interface HyperlinkOptions {
547
- readonly click?: string;
548
- readonly hover?: string;
277
+ //#region src/file/table-of-contents/sdt-properties.d.ts
278
+ declare const SdtLock: {
279
+ readonly SDT_LOCKED: "sdtLocked";
280
+ readonly CONTENT_LOCKED: "contentLocked";
281
+ readonly UNLOCKED: "unlocked";
282
+ readonly SDT_CONTENT_LOCKED: "sdtContentLocked";
283
+ };
284
+ interface SdtListItem {
285
+ readonly displayText?: string;
286
+ readonly value?: string;
549
287
  }
550
- interface DocPropertiesOptions {
551
- readonly name: string;
552
- readonly description?: string;
553
- readonly title?: string;
554
- readonly id?: string;
555
- readonly hyperlink?: HyperlinkOptions;
288
+ interface SdtComboBoxOptions {
289
+ readonly items?: readonly SdtListItem[];
290
+ readonly lastValue?: string;
556
291
  }
557
- //#endregion
558
- //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
559
- interface SourceRectangleOptions {
560
- readonly left?: number;
561
- readonly top?: number;
562
- readonly right?: number;
563
- readonly bottom?: number;
292
+ interface SdtDropDownListOptions {
293
+ readonly items?: readonly SdtListItem[];
294
+ readonly lastValue?: string;
564
295
  }
565
- //#endregion
566
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/color-transform.d.ts
567
- interface ColorTransformOptions {
568
- readonly tint?: number;
569
- readonly shade?: number;
570
- readonly comp?: boolean;
571
- readonly inv?: boolean;
572
- readonly gray?: boolean;
573
- readonly alpha?: number;
574
- readonly alphaOff?: number;
575
- readonly alphaMod?: number;
576
- readonly hue?: number;
577
- readonly hueOff?: number;
578
- readonly hueMod?: number;
579
- readonly sat?: number;
580
- readonly satOff?: number;
581
- readonly satMod?: number;
582
- readonly lum?: number;
583
- readonly lumOff?: number;
584
- readonly lumMod?: number;
585
- readonly red?: number;
586
- readonly redOff?: number;
587
- readonly redMod?: number;
588
- readonly green?: number;
589
- readonly greenOff?: number;
590
- readonly greenMod?: number;
591
- readonly blue?: number;
592
- readonly blueOff?: number;
593
- readonly blueMod?: number;
594
- readonly gamma?: boolean;
595
- readonly invGamma?: boolean;
596
- }
597
- //#endregion
598
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/hsl-color.d.ts
599
- interface HslColorOptions {
600
- readonly hue: number;
601
- readonly sat: number;
602
- readonly lum: number;
603
- readonly transforms?: ColorTransformOptions;
604
- }
605
- //#endregion
606
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/preset-color.d.ts
607
- declare const PresetColor: {
608
- readonly ALICE_BLUE: "aliceBlue";
609
- readonly ANTIQUE_WHITE: "antiqueWhite";
610
- readonly AQUA: "aqua";
611
- readonly AQUAMARINE: "aquamarine";
612
- readonly AZURE: "azure";
613
- readonly BEIGE: "beige";
614
- readonly BISQUE: "bisque";
615
- readonly BLACK: "black";
616
- readonly BLANCHED_ALMOND: "blanchedAlmond";
617
- readonly BLUE: "blue";
618
- readonly BLUE_VIOLET: "blueViolet";
619
- readonly BROWN: "brown";
620
- readonly BURLY_WOOD: "burlyWood";
621
- readonly CADET_BLUE: "cadetBlue";
622
- readonly CHARTREUSE: "chartreuse";
623
- readonly CHOCOLATE: "chocolate";
624
- readonly CORAL: "coral";
625
- readonly CORNFLOWER_BLUE: "cornflowerBlue";
626
- readonly CORNSILK: "cornsilk";
627
- readonly CRIMSON: "crimson";
628
- readonly CYAN: "cyan";
629
- readonly DARK_BLUE: "darkBlue";
630
- readonly DARK_CYAN: "darkCyan";
631
- readonly DARK_GOLDENROD: "darkGoldenrod";
632
- readonly DARK_GRAY: "darkGray";
633
- readonly DARK_GREY: "darkGrey";
634
- readonly DARK_GREEN: "darkGreen";
635
- readonly DARK_KHAKI: "darkKhaki";
636
- readonly DARK_MAGENTA: "darkMagenta";
637
- readonly DARK_OLIVE_GREEN: "darkOliveGreen";
638
- readonly DARK_ORANGE: "darkOrange";
639
- readonly DARK_ORCHID: "darkOrchid";
640
- readonly DARK_RED: "darkRed";
641
- readonly DARK_SALMON: "darkSalmon";
642
- readonly DARK_SEA_GREEN: "darkSeaGreen";
643
- readonly DARK_SLATE_BLUE: "darkSlateBlue";
644
- readonly DARK_SLATE_GRAY: "darkSlateGray";
645
- readonly DARK_SLATE_GREY: "darkSlateGrey";
646
- readonly DARK_TURQUOISE: "darkTurquoise";
647
- readonly DARK_VIOLET: "darkViolet";
648
- readonly DEEP_PINK: "deepPink";
649
- readonly DEEP_SKY_BLUE: "deepSkyBlue";
650
- readonly DIM_GRAY: "dimGray";
651
- readonly DIM_GREY: "dimGrey";
652
- readonly DODGER_BLUE: "dodgerBlue";
653
- readonly FIREBRICK: "firebrick";
654
- readonly FLORAL_WHITE: "floralWhite";
655
- readonly FOREST_GREEN: "forestGreen";
656
- readonly FUCHSIA: "fuchsia";
657
- readonly GAINSBORO: "gainsboro";
658
- readonly GHOST_WHITE: "ghostWhite";
659
- readonly GOLD: "gold";
660
- readonly GOLDENROD: "goldenrod";
661
- readonly GRAY: "gray";
662
- readonly GREY: "grey";
663
- readonly GREEN: "green";
664
- readonly GREEN_YELLOW: "greenYellow";
665
- readonly HONEYDEW: "honeydew";
666
- readonly HOT_PINK: "hotPink";
667
- readonly INDIAN_RED: "indianRed";
668
- readonly INDIGO: "indigo";
669
- readonly IVORY: "ivory";
670
- readonly KHAKI: "khaki";
671
- readonly LAVENDER: "lavender";
672
- readonly LAVENDER_BLUSH: "lavenderBlush";
673
- readonly LAWN_GREEN: "lawnGreen";
674
- readonly LEMON_CHIFFON: "lemonChiffon";
675
- readonly LIGHT_BLUE: "lightBlue";
676
- readonly LIGHT_CORAL: "lightCoral";
677
- readonly LIGHT_CYAN: "lightCyan";
678
- readonly LIGHT_GOLDENROD_YELLOW: "lightGoldenrodYellow";
679
- readonly LIGHT_GRAY: "lightGray";
680
- readonly LIGHT_GREY: "lightGrey";
681
- readonly LIGHT_GREEN: "lightGreen";
682
- readonly LIGHT_PINK: "lightPink";
683
- readonly LIGHT_SALMON: "lightSalmon";
684
- readonly LIGHT_SEA_GREEN: "lightSeaGreen";
685
- readonly LIGHT_SKY_BLUE: "lightSkyBlue";
686
- readonly LIGHT_SLATE_GRAY: "lightSlateGray";
687
- readonly LIGHT_SLATE_GREY: "lightSlateGrey";
688
- readonly LIGHT_STEEL_BLUE: "lightSteelBlue";
689
- readonly LIGHT_YELLOW: "lightYellow";
690
- readonly LIME: "lime";
691
- readonly LIME_GREEN: "limeGreen";
692
- readonly LINEN: "linen";
693
- readonly MAGENTA: "magenta";
694
- readonly MAROON: "maroon";
695
- readonly MEDIUM_AQUAMARINE: "mediumAquamarine";
696
- readonly MEDIUM_BLUE: "mediumBlue";
697
- readonly MEDIUM_ORCHID: "mediumOrchid";
698
- readonly MEDIUM_PURPLE: "mediumPurple";
699
- readonly MEDIUM_SEA_GREEN: "mediumSeaGreen";
700
- readonly MEDIUM_SLATE_BLUE: "mediumSlateBlue";
701
- readonly MEDIUM_SPRING_GREEN: "mediumSpringGreen";
702
- readonly MEDIUM_TURQUOISE: "mediumTurquoise";
703
- readonly MEDIUM_VIOLET_RED: "mediumVioletRed";
704
- readonly MIDNIGHT_BLUE: "midnightBlue";
705
- readonly MINT_CREAM: "mintCream";
706
- readonly MISTY_ROSE: "mistyRose";
707
- readonly MOCCASIN: "moccasin";
708
- readonly NAVAJO_WHITE: "navajoWhite";
709
- readonly NAVY: "navy";
710
- readonly OLD_LACE: "oldLace";
711
- readonly OLIVE: "olive";
712
- readonly OLIVE_DRAB: "oliveDrab";
713
- readonly ORANGE: "orange";
714
- readonly ORANGE_RED: "orangeRed";
715
- readonly ORCHID: "orchid";
716
- readonly PALE_GOLDENROD: "paleGoldenrod";
717
- readonly PALE_GREEN: "paleGreen";
718
- readonly PALE_TURQUOISE: "paleTurquoise";
719
- readonly PALE_VIOLET_RED: "paleVioletRed";
720
- readonly PAPAYA_WHIP: "papayaWhip";
721
- readonly PEACH_PUFF: "peachPuff";
722
- readonly PERU: "peru";
723
- readonly PINK: "pink";
724
- readonly PLUM: "plum";
725
- readonly POWDER_BLUE: "powderBlue";
726
- readonly PURPLE: "purple";
727
- readonly RED: "red";
728
- readonly ROSY_BROWN: "rosyBrown";
729
- readonly ROYAL_BLUE: "royalBlue";
730
- readonly SADDLE_BROWN: "saddleBrown";
731
- readonly SALMON: "salmon";
732
- readonly SANDY_BROWN: "sandyBrown";
733
- readonly SEA_GREEN: "seaGreen";
734
- readonly SEA_SHELL: "seaShell";
735
- readonly SIENNA: "sienna";
736
- readonly SILVER: "silver";
737
- readonly SKY_BLUE: "skyBlue";
738
- readonly SLATE_BLUE: "slateBlue";
739
- readonly SLATE_GRAY: "slateGray";
740
- readonly SLATE_GREY: "slateGrey";
741
- readonly SNOW: "snow";
742
- readonly SPRING_GREEN: "springGreen";
743
- readonly STEEL_BLUE: "steelBlue";
744
- readonly TAN: "tan";
745
- readonly TEAL: "teal";
746
- readonly THISTLE: "thistle";
747
- readonly TOMATO: "tomato";
748
- readonly TURQUOISE: "turquoise";
749
- readonly VIOLET: "violet";
750
- readonly WHEAT: "wheat";
751
- readonly WHITE: "white";
752
- readonly WHITE_SMOKE: "whiteSmoke";
753
- readonly YELLOW: "yellow";
754
- readonly YELLOW_GREEN: "yellowGreen";
296
+ declare const SdtDateMappingType: {
297
+ readonly TEXT: "text";
298
+ readonly DATE: "date";
299
+ readonly DATE_TIME: "dateTime";
755
300
  };
756
- interface PresetColorOptions {
757
- readonly value: (typeof PresetColor)[keyof typeof PresetColor];
758
- readonly transforms?: ColorTransformOptions;
301
+ interface SdtDateOptions {
302
+ readonly dateFormat?: string;
303
+ readonly languageId?: string;
304
+ readonly storeMappedDataAs?: (typeof SdtDateMappingType)[keyof typeof SdtDateMappingType];
305
+ readonly calendar?: string;
306
+ readonly fullDate?: string;
759
307
  }
760
- //#endregion
761
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts
762
- interface RgbColorOptions {
763
- readonly value: string;
764
- readonly transforms?: ColorTransformOptions;
765
- }
766
- //#endregion
767
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/sc-rgb-color.d.ts
768
- interface ScRgbColorOptions {
769
- readonly r: string;
770
- readonly g: string;
771
- readonly b: string;
772
- readonly transforms?: ColorTransformOptions;
773
- }
774
- //#endregion
775
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts
776
- interface SchemeColorOptions {
777
- readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
778
- readonly transforms?: ColorTransformOptions;
779
- }
780
- declare const SchemeColor: {
781
- readonly BG1: "bg1";
782
- readonly TX1: "tx1";
783
- readonly BG2: "bg2";
784
- readonly TX2: "tx2";
785
- readonly ACCENT1: "accent1";
786
- readonly ACCENT2: "accent2";
787
- readonly ACCENT3: "accent3";
788
- readonly ACCENT4: "accent4";
789
- readonly ACCENT5: "accent5";
790
- readonly ACCENT6: "accent6";
791
- readonly HLINK: "hlink";
792
- readonly FOLHLINK: "folHlink";
793
- readonly DK1: "dk1";
794
- readonly LT1: "lt1";
795
- readonly DK2: "dk2";
796
- readonly LT2: "lt2";
797
- readonly PHCLR: "phClr";
798
- };
799
- //#endregion
800
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/system-color.d.ts
801
- declare const SystemColor: {
802
- readonly SCROLL_BAR: "scrollBar";
803
- readonly BACKGROUND: "background";
804
- readonly ACTIVE_CAPTION: "activeCaption";
805
- readonly INACTIVE_CAPTION: "inactiveCaption";
806
- readonly MENU: "menu";
807
- readonly WINDOW: "window";
808
- readonly WINDOW_FRAME: "windowFrame";
809
- readonly MENU_TEXT: "menuText";
810
- readonly WINDOW_TEXT: "windowText";
811
- readonly CAPTION_TEXT: "captionText";
812
- readonly ACTIVE_BORDER: "activeBorder";
813
- readonly INACTIVE_BORDER: "inactiveBorder";
814
- readonly APP_WORKSPACE: "appWorkspace";
815
- readonly HIGHLIGHT: "highlight";
816
- readonly HIGHLIGHT_TEXT: "highlightText";
817
- readonly BTN_FACE: "btnFace";
818
- readonly BTN_SHADOW: "btnShadow";
819
- readonly GRAY_TEXT: "grayText";
820
- readonly BTN_TEXT: "btnText";
821
- readonly INACTIVE_CAPTION_TEXT: "inactiveCaptionText";
822
- readonly BTN_HIGHLIGHT: "btnHighlight";
823
- readonly THREE_D_DK_SHADOW: "3dDkShadow";
824
- readonly THREE_D_LIGHT: "3dLight";
825
- readonly INFO_TEXT: "infoText";
826
- readonly INFO_BK: "infoBk";
827
- readonly HOT_LIGHT: "hotLight";
828
- readonly GRADIENT_ACTIVE_CAPTION: "gradientActiveCaption";
829
- readonly GRADIENT_INACTIVE_CAPTION: "gradientInactiveCaption";
830
- readonly MENU_HIGHLIGHT: "menuHighlight";
831
- readonly MENU_BAR: "menuBar";
832
- };
833
- interface SystemColorOptions {
834
- readonly value: (typeof SystemColor)[keyof typeof SystemColor];
835
- readonly lastClr?: string;
836
- readonly transforms?: ColorTransformOptions;
308
+ interface SdtTextOptions {
309
+ readonly multiLine?: boolean;
310
+ }
311
+ interface SdtDataBindingOptions {
312
+ readonly prefixMappings?: string;
313
+ readonly xpath: string;
314
+ readonly storeItemID: string;
315
+ }
316
+ interface SdtPropertiesOptions {
317
+ readonly alias?: string;
318
+ readonly tag?: string;
319
+ readonly id?: number;
320
+ readonly lock?: (typeof SdtLock)[keyof typeof SdtLock];
321
+ readonly temporary?: boolean;
322
+ readonly showingPlaceholder?: boolean;
323
+ readonly placeholder?: XmlComponent[];
324
+ readonly dataBinding?: SdtDataBindingOptions;
325
+ readonly label?: number;
326
+ readonly tabIndex?: number;
327
+ readonly runProperties?: XmlComponent;
328
+ readonly equation?: boolean;
329
+ readonly comboBox?: SdtComboBoxOptions;
330
+ readonly date?: SdtDateOptions;
331
+ readonly docPartObj?: {
332
+ readonly gallery?: string;
333
+ readonly category?: string;
334
+ readonly unique?: boolean;
335
+ };
336
+ readonly docPartList?: {
337
+ readonly gallery?: string;
338
+ readonly category?: string;
339
+ readonly unique?: boolean;
340
+ };
341
+ readonly dropDownList?: SdtDropDownListOptions;
342
+ readonly picture?: boolean;
343
+ readonly richText?: boolean;
344
+ readonly text?: SdtTextOptions;
345
+ readonly citation?: boolean;
346
+ readonly group?: boolean;
347
+ readonly bibliography?: boolean;
348
+ }
349
+ declare class StructuredDocumentTagProperties extends XmlComponent {
350
+ constructor(aliasOrOptions?: string | SdtPropertiesOptions);
837
351
  }
838
352
  //#endregion
839
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
840
- type SolidFillOptions = ScRgbColorOptions | RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions;
353
+ //#region src/file/table-of-contents/sdt-content.d.ts
354
+ declare class StructuredDocumentTagContent extends XmlComponent {
355
+ constructor();
356
+ }
841
357
  //#endregion
842
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/fill/gradient-fill.d.ts
843
- interface IGradientStop {
844
- readonly position: number;
845
- readonly color: SolidFillOptions;
358
+ //#region src/file/sdt/sdt.d.ts
359
+ interface ISdtRunOptions {
360
+ readonly properties: SdtPropertiesOptions;
361
+ readonly children?: readonly BaseXmlComponent[];
846
362
  }
847
- declare const PathShadeType: {
848
- readonly SHAPE: "shape";
849
- readonly CIRCLE: "circle";
850
- readonly RECT: "rect";
851
- };
852
- declare const TileFlipMode$1: {
853
- readonly NONE: "none";
854
- readonly X: "x";
855
- readonly Y: "y";
856
- readonly XY: "xy";
857
- };
858
- interface LinearShadeOptions {
859
- readonly angle?: number;
860
- readonly scaled?: boolean;
363
+ declare class StructuredDocumentTagRun extends XmlComponent {
364
+ constructor(options: ISdtRunOptions);
861
365
  }
862
- interface RelativeRect {
863
- readonly left?: string;
864
- readonly top?: string;
865
- readonly right?: string;
866
- readonly bottom?: string;
366
+ interface ISdtBlockOptions {
367
+ readonly properties: SdtPropertiesOptions;
368
+ readonly children?: readonly BaseXmlComponent[];
867
369
  }
868
- interface PathShadeOptions {
869
- readonly path?: keyof typeof PathShadeType;
870
- readonly fillToRect?: RelativeRect;
871
- }
872
- type GradientShadeOptions = LinearShadeOptions | PathShadeOptions;
873
- interface GradientFillOptions {
874
- readonly stops: readonly IGradientStop[];
875
- readonly shade?: GradientShadeOptions;
876
- readonly flip?: keyof typeof TileFlipMode$1;
877
- readonly tileRect?: RelativeRect;
878
- readonly rotateWithShape?: boolean;
879
- }
880
- //#endregion
881
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/fill/pattern-fill.d.ts
882
- declare const PresetPattern: {
883
- readonly PCT5: "pct5";
884
- readonly PCT10: "pct10";
885
- readonly PCT20: "pct20";
886
- readonly PCT25: "pct25";
887
- readonly PCT30: "pct30";
888
- readonly PCT40: "pct40";
889
- readonly PCT50: "pct50";
890
- readonly PCT60: "pct60";
891
- readonly PCT70: "pct70";
892
- readonly PCT75: "pct75";
893
- readonly PCT80: "pct80";
894
- readonly PCT90: "pct90";
895
- readonly HORZ: "horz";
896
- readonly VERT: "vert";
897
- readonly LT_HORZ: "ltHorz";
898
- readonly LT_VERT: "ltVert";
899
- readonly DK_HORZ: "dkHorz";
900
- readonly DK_VERT: "dkVert";
901
- readonly NAR_HORZ: "narHorz";
902
- readonly NAR_VERT: "narVert";
903
- readonly DASH_HORZ: "dashHorz";
904
- readonly DASH_VERT: "dashVert";
905
- readonly CROSS: "cross";
906
- readonly DN_DIAG: "dnDiag";
907
- readonly UP_DIAG: "upDiag";
908
- readonly LT_DN_DIAG: "ltDnDiag";
909
- readonly LT_UP_DIAG: "ltUpDiag";
910
- readonly DK_DN_DIAG: "dkDnDiag";
911
- readonly DK_UP_DIAG: "dkUpDiag";
912
- readonly WD_DN_DIAG: "wdDnDiag";
913
- readonly WD_UP_DIAG: "wdUpDiag";
914
- readonly DASH_DN_DIAG: "dashDnDiag";
915
- readonly DASH_UP_DIAG: "dashUpDiag";
916
- readonly DIAG_CROSS: "diagCross";
917
- readonly SM_CHECK: "smCheck";
918
- readonly LG_CHECK: "lgCheck";
919
- readonly SM_GRID: "smGrid";
920
- readonly LG_GRID: "lgGrid";
921
- readonly DOT_GRID: "dotGrid";
922
- readonly SM_CONFETTI: "smConfetti";
923
- readonly LG_CONFETTI: "lgConfetti";
924
- readonly HORZ_BRICK: "horzBrick";
925
- readonly DIAG_BRICK: "diagBrick";
926
- readonly SOLID_DMND: "solidDmnd";
927
- readonly OPEN_DMND: "openDmnd";
928
- readonly DOT_DMND: "dotDmnd";
929
- readonly PLAID: "plaid";
930
- readonly SPHERE: "sphere";
931
- readonly WEAVE: "weave";
932
- readonly DIVOT: "divot";
933
- readonly SHINGLE: "shingle";
934
- readonly WAVE: "wave";
935
- readonly TRELLIS: "trellis";
936
- readonly ZIG_ZAG: "zigZag";
937
- };
938
- interface PatternFillOptions {
939
- readonly pattern: (typeof PresetPattern)[keyof typeof PresetPattern];
940
- readonly foregroundColor?: SolidFillOptions;
941
- readonly backgroundColor?: SolidFillOptions;
942
- }
943
- //#endregion
944
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/fill-overlay.d.ts
945
- declare const BlendMode: {
946
- readonly OVER: "over";
947
- readonly MULTIPLY: "mult";
948
- readonly SCREEN: "screen";
949
- readonly DARKEN: "darken";
950
- readonly LIGHTEN: "lighten";
951
- };
952
- interface FillOverlayEffectOptions {
953
- readonly blend: (typeof BlendMode)[keyof typeof BlendMode];
954
- readonly solidFill?: SolidFillOptions;
955
- readonly gradientFill?: GradientFillOptions;
956
- readonly patternFill?: PatternFillOptions;
957
- readonly groupFill?: boolean;
958
- readonly noFill?: boolean;
959
- }
960
- //#endregion
961
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
962
- interface GlowEffectOptions {
963
- readonly rad?: number;
964
- readonly color: SolidFillOptions;
965
- }
966
- //#endregion
967
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/inner-shadow.d.ts
968
- interface InnerShadowEffectOptions {
969
- readonly blurRad?: number;
970
- readonly dist?: number;
971
- readonly dir?: number;
972
- readonly color: SolidFillOptions;
973
- }
974
- //#endregion
975
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/outer-shadow.d.ts
976
- declare const RectAlignment: {
977
- readonly TOP_LEFT: "tl";
978
- readonly TOP: "t";
979
- readonly TOP_RIGHT: "tr";
980
- readonly LEFT: "l";
981
- readonly CENTER: "ctr";
982
- readonly RIGHT: "r";
983
- readonly BOTTOM_LEFT: "bl";
984
- readonly BOTTOM: "b";
985
- readonly BOTTOM_RIGHT: "br";
986
- };
987
- interface OuterShadowEffectOptions {
988
- readonly blurRad?: number;
989
- readonly dist?: number;
990
- readonly dir?: number;
991
- readonly sx?: number;
992
- readonly sy?: number;
993
- readonly kx?: number;
994
- readonly ky?: number;
995
- readonly algn?: keyof typeof RectAlignment;
996
- readonly rotWithShape?: boolean;
997
- readonly color: SolidFillOptions;
998
- }
999
- //#endregion
1000
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/preset-shadow.d.ts
1001
- declare const PresetShadowVal: {
1002
- readonly SHDW1: "shdw1";
1003
- readonly SHDW2: "shdw2";
1004
- readonly SHDW3: "shdw3";
1005
- readonly SHDW4: "shdw4";
1006
- readonly SHDW5: "shdw5";
1007
- readonly SHDW6: "shdw6";
1008
- readonly SHDW7: "shdw7";
1009
- readonly SHDW8: "shdw8";
1010
- readonly SHDW9: "shdw9";
1011
- readonly SHDW10: "shdw10";
1012
- readonly SHDW11: "shdw11";
1013
- readonly SHDW12: "shdw12";
1014
- readonly SHDW13: "shdw13";
1015
- readonly SHDW14: "shdw14";
1016
- readonly SHDW15: "shdw15";
1017
- readonly SHDW16: "shdw16";
1018
- readonly SHDW17: "shdw17";
1019
- readonly SHDW18: "shdw18";
1020
- readonly SHDW19: "shdw19";
1021
- readonly SHDW20: "shdw20";
1022
- };
1023
- interface PresetShadowEffectOptions {
1024
- readonly prst: keyof typeof PresetShadowVal;
1025
- readonly dist?: number;
1026
- readonly dir?: number;
1027
- readonly color: SolidFillOptions;
1028
- }
1029
- //#endregion
1030
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/reflection.d.ts
1031
- interface ReflectionEffectOptions {
1032
- readonly blurRad?: number;
1033
- readonly stA?: number;
1034
- readonly stPos?: number;
1035
- readonly endA?: number;
1036
- readonly endPos?: number;
1037
- readonly dist?: number;
1038
- readonly dir?: number;
1039
- readonly fadeDir?: number;
1040
- readonly sx?: number;
1041
- readonly sy?: number;
1042
- readonly kx?: number;
1043
- readonly ky?: number;
1044
- readonly algn?: string;
1045
- readonly rotWithShape?: boolean;
1046
- }
1047
- //#endregion
1048
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-list.d.ts
1049
- interface BlurEffectOptions {
1050
- readonly rad?: number;
1051
- readonly grow?: boolean;
370
+ declare class StructuredDocumentTagBlock extends XmlComponent implements FileChild {
371
+ readonly fileChild: symbol;
372
+ constructor(options: ISdtBlockOptions);
373
+ }
374
+ //#endregion
375
+ //#region src/file/sdt/sdt-cell.d.ts
376
+ interface ISdtCellOptions {
377
+ readonly properties: SdtPropertiesOptions;
378
+ readonly children?: readonly TableCell[];
379
+ }
380
+ declare class StructuredDocumentTagCell extends XmlComponent {
381
+ readonly options: ITableCellOptions;
382
+ constructor(sdtOptions: ISdtCellOptions);
1052
383
  }
1053
- interface EffectListOptions {
1054
- readonly blur?: BlurEffectOptions;
1055
- readonly fillOverlay?: FillOverlayEffectOptions;
1056
- readonly glow?: GlowEffectOptions;
1057
- readonly innerShadow?: InnerShadowEffectOptions;
1058
- readonly outerShadow?: OuterShadowEffectOptions;
1059
- readonly presetShadow?: PresetShadowEffectOptions;
1060
- readonly reflection?: ReflectionEffectOptions | true;
1061
- readonly softEdge?: number;
384
+ //#endregion
385
+ //#region src/file/track-revision/track-revision.d.ts
386
+ interface IChangedAttributesProperties {
387
+ readonly id: number;
388
+ readonly author: string;
389
+ readonly date: string;
1062
390
  }
1063
391
  //#endregion
1064
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/custom-dash.d.ts
1065
- interface DashStop {
1066
- readonly d: string;
1067
- readonly sp: string;
392
+ //#region src/file/track-revision/track-revision-components/inserted-text-run.d.ts
393
+ type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
394
+ declare class InsertedTextRun extends XmlComponent {
395
+ constructor(options: IInsertedRunOptions);
1068
396
  }
397
+ import * as import__office_open_core_values from "@office-open/core/values";
1069
398
  //#endregion
1070
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/line-end.d.ts
1071
- declare const LineEndType: {
399
+ //#region src/file/border/border.d.ts
400
+ interface IBorderOptions {
401
+ readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
402
+ readonly color?: string;
403
+ readonly themeColor?: (typeof values_d_exports.ThemeColor)[keyof typeof values_d_exports.ThemeColor];
404
+ readonly themeTint?: string;
405
+ readonly themeShade?: string;
406
+ readonly shadow?: boolean;
407
+ readonly frame?: boolean;
408
+ readonly size?: number;
409
+ readonly space?: number;
410
+ }
411
+ declare const createBorderElement: (elementName: string, {
412
+ color,
413
+ size,
414
+ space,
415
+ style,
416
+ themeColor,
417
+ themeTint,
418
+ themeShade,
419
+ shadow,
420
+ frame
421
+ }: IBorderOptions) => XmlComponent;
422
+ declare const BorderStyle: {
423
+ readonly SINGLE: "single";
424
+ readonly DASH_DOT_STROKED: "dashDotStroked";
425
+ readonly DASHED: "dashed";
426
+ readonly DASH_SMALL_GAP: "dashSmallGap";
427
+ readonly DOT_DASH: "dotDash";
428
+ readonly DOT_DOT_DASH: "dotDotDash";
429
+ readonly DOTTED: "dotted";
430
+ readonly DOUBLE: "double";
431
+ readonly DOUBLE_WAVE: "doubleWave";
432
+ readonly INSET: "inset";
433
+ readonly NIL: "nil";
1072
434
  readonly NONE: "none";
1073
- readonly TRIANGLE: "triangle";
1074
- readonly STEALTH: "stealth";
1075
- readonly DIAMOND: "diamond";
1076
- readonly OVAL: "oval";
1077
- readonly ARROW: "arrow";
1078
- };
1079
- declare const LineEndWidth: {
1080
- readonly SMALL: "sm";
1081
- readonly MEDIUM: "med";
1082
- readonly LARGE: "lg";
1083
- };
1084
- declare const LineEndLength: {
1085
- readonly SMALL: "sm";
1086
- readonly MEDIUM: "med";
1087
- readonly LARGE: "lg";
435
+ readonly OUTSET: "outset";
436
+ readonly THICK: "thick";
437
+ readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
438
+ readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
439
+ readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
440
+ readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
441
+ readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
442
+ readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
443
+ readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
444
+ readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
445
+ readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
446
+ readonly THREE_D_EMBOSS: "threeDEmboss";
447
+ readonly THREE_D_ENGRAVE: "threeDEngrave";
448
+ readonly TRIPLE: "triple";
449
+ readonly WAVE: "wave";
1088
450
  };
1089
- interface LineEndOptions {
1090
- readonly type: keyof typeof LineEndType;
1091
- readonly width?: keyof typeof LineEndWidth;
1092
- readonly length?: keyof typeof LineEndLength;
1093
- }
1094
451
  //#endregion
1095
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts
1096
- declare const LineCap: {
1097
- readonly ROUND: "rnd";
1098
- readonly SQUARE: "sq";
1099
- readonly FLAT: "flat";
1100
- };
1101
- declare const CompoundLine: {
1102
- readonly SINGLE: "sng";
1103
- readonly DOUBLE: "dbl";
1104
- readonly THICK_THIN: "thickThin";
1105
- readonly THIN_THICK: "thinThick";
1106
- readonly TRI: "tri";
1107
- };
1108
- declare const PenAlignment: {
1109
- readonly CENTER: "ctr";
1110
- readonly INSET: "in";
1111
- };
1112
- declare const PresetDash: {
452
+ //#region src/file/shading/shading.d.ts
453
+ interface IShadingAttributesProperties {
454
+ readonly fill?: string;
455
+ readonly color?: string;
456
+ readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
457
+ readonly themeColor?: (typeof values_d_exports.ThemeColor)[keyof typeof values_d_exports.ThemeColor];
458
+ readonly themeTint?: string;
459
+ readonly themeShade?: string;
460
+ readonly themeFill?: (typeof values_d_exports.ThemeColor)[keyof typeof values_d_exports.ThemeColor];
461
+ readonly themeFillTint?: string;
462
+ readonly themeFillShade?: string;
463
+ }
464
+ declare const createShading: ({
465
+ fill,
466
+ color,
467
+ type,
468
+ themeColor,
469
+ themeTint,
470
+ themeShade,
471
+ themeFill,
472
+ themeFillTint,
473
+ themeFillShade
474
+ }: IShadingAttributesProperties) => XmlComponent;
475
+ declare const ShadingType: {
476
+ readonly CLEAR: "clear";
477
+ readonly DIAGONAL_CROSS: "diagCross";
478
+ readonly DIAGONAL_STRIPE: "diagStripe";
479
+ readonly HORIZONTAL_CROSS: "horzCross";
480
+ readonly HORIZONTAL_STRIPE: "horzStripe";
481
+ readonly NIL: "nil";
482
+ readonly PERCENT_10: "pct10";
483
+ readonly PERCENT_12: "pct12";
484
+ readonly PERCENT_15: "pct15";
485
+ readonly PERCENT_20: "pct20";
486
+ readonly PERCENT_25: "pct25";
487
+ readonly PERCENT_30: "pct30";
488
+ readonly PERCENT_35: "pct35";
489
+ readonly PERCENT_37: "pct37";
490
+ readonly PERCENT_40: "pct40";
491
+ readonly PERCENT_45: "pct45";
492
+ readonly PERCENT_5: "pct5";
493
+ readonly PERCENT_50: "pct50";
494
+ readonly PERCENT_55: "pct55";
495
+ readonly PERCENT_60: "pct60";
496
+ readonly PERCENT_62: "pct62";
497
+ readonly PERCENT_65: "pct65";
498
+ readonly PERCENT_70: "pct70";
499
+ readonly PERCENT_75: "pct75";
500
+ readonly PERCENT_80: "pct80";
501
+ readonly PERCENT_85: "pct85";
502
+ readonly PERCENT_87: "pct87";
503
+ readonly PERCENT_90: "pct90";
504
+ readonly PERCENT_95: "pct95";
505
+ readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagStripe";
1113
506
  readonly SOLID: "solid";
1114
- readonly DOT: "dot";
1115
- readonly DASH: "dash";
1116
- readonly LG_DASH: "lgDash";
1117
- readonly DASH_DOT: "dashDot";
1118
- readonly LG_DASH_DOT: "lgDashDot";
1119
- readonly LG_DASH_DOT_DOT: "lgDashDotDot";
1120
- readonly SYS_DASH: "sysDash";
1121
- readonly SYS_DOT: "sysDot";
1122
- readonly SYS_DASH_DOT: "sysDashDot";
1123
- readonly SYS_DASH_DOT_DOT: "sysDashDotDot";
1124
- };
1125
- declare const LineJoin: {
1126
- readonly ROUND: "round";
1127
- readonly BEVEL: "bevel";
1128
- readonly MITER: "miter";
507
+ readonly THIN_DIAGONAL_CROSS: "thinDiagCross";
508
+ readonly THIN_DIAGONAL_STRIPE: "thinDiagStripe";
509
+ readonly THIN_HORIZONTAL_CROSS: "thinHorzCross";
510
+ readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagStripe";
511
+ readonly THIN_VERTICAL_STRIPE: "thinVertStripe";
512
+ readonly VERTICAL_STRIPE: "vertStripe";
1129
513
  };
1130
- interface OutlineAttributes {
1131
- readonly width?: number;
1132
- readonly cap?: keyof typeof LineCap;
1133
- readonly compoundLine?: keyof typeof CompoundLine;
1134
- readonly align?: keyof typeof PenAlignment;
1135
- readonly dash?: keyof typeof PresetDash;
1136
- readonly customDash?: readonly DashStop[];
1137
- readonly join?: keyof typeof LineJoin;
1138
- readonly miterLimit?: number;
1139
- readonly headEnd?: LineEndOptions;
1140
- readonly tailEnd?: LineEndOptions;
1141
- }
1142
- interface OutlineFillProperties {
1143
- readonly type?: "noFill" | "solidFill" | "gradFill" | "pattFill";
1144
- readonly color?: SolidFillOptions;
1145
- readonly gradientFill?: GradientFillOptions;
1146
- readonly patternFill?: PatternFillOptions;
1147
- }
1148
- type OutlineOptions = OutlineAttributes & OutlineFillProperties;
1149
- //#endregion
1150
- //#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
1151
- interface IChildOffset {
1152
- readonly x: number;
1153
- readonly y: number;
1154
- }
1155
- interface IChildExtent {
1156
- readonly cx: number;
1157
- readonly cy: number;
1158
- }
1159
514
  //#endregion
1160
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/adjustment-values/adjustment-values.d.ts
1161
- interface GeometryGuide {
1162
- readonly name: string;
1163
- readonly formula: string;
1164
- }
1165
- //#endregion
1166
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/custom-geometry/custom-geometry.d.ts
1167
- declare const PathFillMode: {
515
+ //#region src/file/paragraph/run/east-asian-layout.d.ts
516
+ declare const CombineBracketsType: {
1168
517
  readonly NONE: "none";
1169
- readonly NORM: "norm";
1170
- readonly LIGHTEN: "lighten";
1171
- readonly LIGHTEN_LESS: "lightenLess";
1172
- readonly DARKEN: "darken";
1173
- readonly DARKEN_LESS: "darkenLess";
1174
- };
1175
- interface AdjPoint {
1176
- readonly x: string;
1177
- readonly y: string;
1178
- }
1179
- interface PathMoveTo {
1180
- readonly command: "moveTo";
1181
- readonly point: AdjPoint;
1182
- }
1183
- interface PathLineTo {
1184
- readonly command: "lineTo";
1185
- readonly point: AdjPoint;
1186
- }
1187
- interface PathArcTo {
1188
- readonly command: "arcTo";
1189
- readonly wR: string;
1190
- readonly hR: string;
1191
- readonly stAng: string;
1192
- readonly swAng: string;
1193
- }
1194
- interface PathQuadBezTo {
1195
- readonly command: "quadBezTo";
1196
- readonly points: readonly [AdjPoint, AdjPoint];
1197
- }
1198
- interface PathCubicBezTo {
1199
- readonly command: "cubicBezTo";
1200
- readonly points: readonly [AdjPoint, AdjPoint, AdjPoint];
1201
- }
1202
- interface PathClose {
1203
- readonly command: "close";
1204
- }
1205
- type PathCommand = PathMoveTo | PathLineTo | PathArcTo | PathQuadBezTo | PathCubicBezTo | PathClose;
1206
- interface PathOptions {
1207
- readonly w?: number;
1208
- readonly h?: number;
1209
- readonly fill?: (typeof PathFillMode)[keyof typeof PathFillMode];
1210
- readonly stroke?: boolean;
1211
- readonly extrusionOk?: boolean;
1212
- readonly commands: readonly PathCommand[];
1213
- }
1214
- interface AdjustHandlePosition {
1215
- readonly x: string;
1216
- readonly y: string;
1217
- }
1218
- interface XYAdjustHandle {
1219
- readonly type: "xy";
1220
- readonly gdRefX?: string;
1221
- readonly minX?: string;
1222
- readonly maxX?: string;
1223
- readonly gdRefY?: string;
1224
- readonly minY?: string;
1225
- readonly maxY?: string;
1226
- readonly position: AdjustHandlePosition;
1227
- }
1228
- interface PolarAdjustHandle {
1229
- readonly type: "polar";
1230
- readonly gdRefR?: string;
1231
- readonly minR?: string;
1232
- readonly maxR?: string;
1233
- readonly gdRefAng?: string;
1234
- readonly minAng?: string;
1235
- readonly maxAng?: string;
1236
- readonly position: AdjustHandlePosition;
1237
- }
1238
- type AdjustHandle = XYAdjustHandle | PolarAdjustHandle;
1239
- interface ConnectionSite {
1240
- readonly ang: string;
1241
- readonly position: AdjustHandlePosition;
1242
- }
1243
- interface GeomRect {
1244
- readonly l: string;
1245
- readonly t: string;
1246
- readonly r: string;
1247
- readonly b: string;
1248
- }
1249
- interface CustomGeometryOptions {
1250
- readonly adjustmentValues?: readonly GeometryGuide[];
1251
- readonly guides?: readonly GeometryGuide[];
1252
- readonly adjustHandles?: readonly AdjustHandle[];
1253
- readonly connectionSites?: readonly ConnectionSite[];
1254
- readonly textRect?: GeomRect;
1255
- readonly pathList: readonly PathOptions[];
1256
- }
1257
- //#endregion
1258
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-dag.d.ts
1259
- declare const EffectContainerType: {
1260
- readonly SIB: "sib";
1261
- readonly TREE: "tree";
1262
- };
1263
- interface AlphaBiLevelEffectOptions$1 {
1264
- readonly thresh: number;
1265
- }
1266
- interface AlphaInverseEffectOptions {
1267
- readonly color?: SolidFillOptions;
1268
- }
1269
- interface AlphaModulateFixedEffectOptions$1 {
1270
- readonly amt?: number;
1271
- }
1272
- interface AlphaOutsetEffectOptions {
1273
- readonly rad?: number;
1274
- }
1275
- interface AlphaReplaceEffectOptions$1 {
1276
- readonly a: number;
1277
- }
1278
- interface BlendEffectOptions {
1279
- readonly blend: (typeof BlendMode)[keyof typeof BlendMode];
1280
- readonly container: EffectDagOptions;
1281
- }
1282
- interface ColorChangeEffectOptions$1 {
1283
- readonly from: SolidFillOptions;
1284
- readonly to: SolidFillOptions;
1285
- readonly useA?: boolean;
1286
- }
1287
- interface DuotoneEffectOptions$1 {
1288
- readonly color1: SolidFillOptions;
1289
- readonly color2: SolidFillOptions;
1290
- }
1291
- interface FillEffectOptions {
1292
- readonly solidFill?: SolidFillOptions;
1293
- readonly gradientFill?: GradientFillOptions;
1294
- readonly patternFill?: PatternFillOptions;
1295
- readonly groupFill?: boolean;
1296
- readonly noFill?: boolean;
1297
- }
1298
- interface HSLEffectOptions$1 {
1299
- readonly hue?: number;
1300
- readonly sat?: number;
1301
- readonly lum?: number;
1302
- }
1303
- interface LuminanceEffectOptions$1 {
1304
- readonly bright?: number;
1305
- readonly contrast?: number;
1306
- }
1307
- interface TintEffectOptions$1 {
1308
- readonly hue?: number;
1309
- readonly amt?: number;
1310
- }
1311
- interface RelativeOffsetEffectOptions {
1312
- readonly tx?: number;
1313
- readonly ty?: number;
1314
- }
1315
- interface TransformEffectOptions {
1316
- readonly sx?: number;
1317
- readonly sy?: number;
1318
- readonly kx?: number;
1319
- readonly ky?: number;
1320
- readonly tx?: number;
1321
- readonly ty?: number;
1322
- }
1323
- interface EffectReferenceOptions {
1324
- readonly ref: string;
1325
- }
1326
- interface EffectDagOptions {
1327
- readonly type?: (typeof EffectContainerType)[keyof typeof EffectContainerType];
1328
- readonly name?: string;
1329
- readonly blur?: BlurEffectOptions;
1330
- readonly fillOverlay?: FillOverlayEffectOptions;
1331
- readonly glow?: GlowEffectOptions;
1332
- readonly innerShadow?: InnerShadowEffectOptions;
1333
- readonly outerShadow?: OuterShadowEffectOptions;
1334
- readonly presetShadow?: PresetShadowEffectOptions;
1335
- readonly reflection?: ReflectionEffectOptions | true;
1336
- readonly softEdge?: number;
1337
- readonly containers?: readonly EffectDagOptions[];
1338
- readonly effectRefs?: readonly EffectReferenceOptions[];
1339
- readonly alphaBiLevel?: AlphaBiLevelEffectOptions$1;
1340
- readonly alphaCeiling?: boolean;
1341
- readonly alphaFloor?: boolean;
1342
- readonly alphaInverse?: AlphaInverseEffectOptions;
1343
- readonly alphaModulate?: EffectDagOptions;
1344
- readonly alphaModulateFixed?: AlphaModulateFixedEffectOptions$1;
1345
- readonly alphaOutset?: AlphaOutsetEffectOptions;
1346
- readonly alphaReplace?: AlphaReplaceEffectOptions$1;
1347
- readonly biLevel?: {
1348
- readonly thresh: number;
1349
- };
1350
- readonly blend?: BlendEffectOptions;
1351
- readonly colorChange?: ColorChangeEffectOptions$1;
1352
- readonly colorReplace?: SolidFillOptions;
1353
- readonly duotone?: DuotoneEffectOptions$1;
1354
- readonly fill?: FillEffectOptions;
1355
- readonly grayscale?: boolean;
1356
- readonly hsl?: HSLEffectOptions$1;
1357
- readonly luminance?: LuminanceEffectOptions$1;
1358
- readonly tint?: TintEffectOptions$1;
1359
- readonly relativeOffset?: RelativeOffsetEffectOptions;
1360
- readonly transform?: TransformEffectOptions;
1361
- }
1362
- //#endregion
1363
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/scene-3d.d.ts
1364
- interface SphereCoords {
1365
- readonly lat: number;
1366
- readonly lon: number;
1367
- readonly rev: number;
1368
- }
1369
- interface CameraOptions {
1370
- readonly preset: string;
1371
- readonly fov?: number;
1372
- readonly zoom?: string;
1373
- readonly rotation?: SphereCoords;
1374
- }
1375
- interface LightRigOptions {
1376
- readonly rig: string;
1377
- readonly direction: string;
1378
- readonly rotation?: SphereCoords;
1379
- }
1380
- interface Point3D {
1381
- readonly x: number;
1382
- readonly y: number;
1383
- readonly z: number;
1384
- }
1385
- interface Vector3D {
1386
- readonly dx: number;
1387
- readonly dy: number;
1388
- readonly dz: number;
1389
- }
1390
- interface BackdropOptions {
1391
- readonly anchor: Point3D;
1392
- readonly normal: Vector3D;
1393
- readonly up: Vector3D;
1394
- }
1395
- interface Scene3DOptions {
1396
- readonly camera: CameraOptions;
1397
- readonly lightRig: LightRigOptions;
1398
- readonly backdrop?: BackdropOptions;
1399
- }
1400
- //#endregion
1401
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/bevel.d.ts
1402
- declare const BevelPresetType: {
1403
- readonly RELAXED_INSET: "relaxedInset";
1404
- readonly CIRCLE: "circle";
1405
- readonly SLOPE: "slope";
1406
- readonly CROSS: "cross";
518
+ readonly ROUND: "round";
519
+ readonly SQUARE: "square";
1407
520
  readonly ANGLE: "angle";
1408
- readonly SOFT_ROUND: "softRound";
1409
- readonly CONVEX: "convex";
1410
- readonly COOL_SLANT: "coolSlant";
1411
- readonly DIVOT: "divot";
1412
- readonly RIBLET: "riblet";
1413
- readonly HARD_EDGE: "hardEdge";
1414
- readonly ART_DECO: "artDeco";
1415
- };
1416
- interface BevelOptions {
1417
- readonly w?: number;
1418
- readonly h?: number;
1419
- readonly prst?: keyof typeof BevelPresetType;
1420
- }
1421
- //#endregion
1422
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/shape-3d.d.ts
1423
- declare const PresetMaterialType: {
1424
- readonly LEGACY_MATTE: "legacyMatte";
1425
- readonly LEGACY_PLASTIC: "legacyPlastic";
1426
- readonly LEGACY_METAL: "legacyMetal";
1427
- readonly LEGACY_WIREFRAME: "legacyWireframe";
1428
- readonly MATTE: "matte";
1429
- readonly PLASTIC: "plastic";
1430
- readonly METAL: "metal";
1431
- readonly WARM_MATTE: "warmMatte";
1432
- readonly TRANSLUCENT_POWDER: "translucentPowder";
1433
- readonly POWDER: "powder";
1434
- readonly DK_EDGE: "dkEdge";
1435
- readonly SOFT_EDGE: "softEdge";
1436
- readonly CLEAR: "clear";
1437
- readonly FLAT: "flat";
1438
- readonly SOFT_METAL: "softmetal";
521
+ readonly CURLY: "curly";
1439
522
  };
1440
- interface Shape3DOptions {
1441
- readonly bevelT?: BevelOptions;
1442
- readonly bevelB?: BevelOptions;
1443
- readonly extrusionColor?: SolidFillOptions;
1444
- readonly contourColor?: SolidFillOptions;
1445
- readonly z?: number;
1446
- readonly extrusionH?: number;
1447
- readonly contourW?: number;
1448
- readonly prstMaterial?: keyof typeof PresetMaterialType;
523
+ interface EastAsianLayoutOptions {
524
+ readonly id?: number;
525
+ readonly combine?: boolean;
526
+ readonly combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
527
+ readonly vert?: boolean;
528
+ readonly vertCompress?: boolean;
1449
529
  }
1450
530
  //#endregion
1451
- //#region src/file/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
1452
- declare enum VerticalAnchor {
1453
- TOP = "t",
1454
- CENTER = "ctr",
1455
- BOTTOM = "b",
1456
- JUSTIFY = "just",
1457
- DISTRIBUTED = "dist"
1458
- }
1459
- declare const TextVertOverflowType: {
1460
- readonly OVERFLOW: "overflow";
1461
- readonly ELLIPSIS: "ellipsis";
1462
- readonly CLIP: "clip";
1463
- };
1464
- declare const TextHorzOverflowType: {
1465
- readonly OVERFLOW: "overflow";
1466
- readonly CLIP: "clip";
1467
- };
1468
- declare const TextVerticalType: {
1469
- readonly HORIZONTAL: "horz";
1470
- readonly VERTICAL: "vert";
1471
- readonly VERTICAL_270: "vert270";
1472
- readonly WORD_ART_VERTICAL: "wordArtVert";
1473
- readonly EAST_ASIAN_VERTICAL: "eaVert";
1474
- readonly MONGOLIAN_VERTICAL: "mongolianVert";
1475
- readonly WORD_ART_VERTICAL_RTL: "wordArtVertRtl";
1476
- };
1477
- declare const TextBodyWrappingType: {
531
+ //#region src/file/paragraph/run/emphasis-mark.d.ts
532
+ declare const EmphasisMarkType: {
1478
533
  readonly NONE: "none";
1479
- readonly SQUARE: "square";
534
+ readonly COMMA: "comma";
535
+ readonly CIRCLE: "circle";
536
+ readonly DOT: "dot";
537
+ readonly UNDER_DOT: "underDot";
1480
538
  };
1481
- interface NormalAutofitOptions {
1482
- readonly fontScale?: number;
1483
- readonly lnSpcReduction?: number;
1484
- }
1485
- interface PresetTextShapeOptions {
1486
- readonly preset: string;
1487
- readonly adjustments?: readonly {
1488
- readonly name: string;
1489
- readonly formula: string;
1490
- }[];
1491
- }
1492
- interface FlatTextOptions {
1493
- readonly z?: number;
1494
- }
1495
- interface IBodyPropertiesOptions {
1496
- readonly rotation?: number;
1497
- readonly spcFirstLastPara?: boolean;
1498
- readonly vertOverflow?: (typeof TextVertOverflowType)[keyof typeof TextVertOverflowType];
1499
- readonly horzOverflow?: (typeof TextHorzOverflowType)[keyof typeof TextHorzOverflowType];
1500
- readonly vert?: (typeof TextVerticalType)[keyof typeof TextVerticalType];
1501
- readonly wrap?: (typeof TextBodyWrappingType)[keyof typeof TextBodyWrappingType];
1502
- readonly lIns?: number;
1503
- readonly tIns?: number;
1504
- readonly rIns?: number;
1505
- readonly bIns?: number;
1506
- readonly numCol?: number;
1507
- readonly spcCol?: number;
1508
- readonly rtlCol?: boolean;
1509
- readonly fromWordArt?: boolean;
1510
- readonly anchor?: (typeof VerticalAnchor)[keyof typeof VerticalAnchor];
1511
- readonly anchorCtr?: boolean;
1512
- readonly forceAA?: boolean;
1513
- readonly upright?: boolean;
1514
- readonly compatLnSpc?: boolean;
1515
- readonly verticalAnchor?: VerticalAnchor;
1516
- readonly margins?: {
1517
- readonly top?: number;
1518
- readonly bottom?: number;
1519
- readonly left?: number;
1520
- readonly right?: number;
1521
- };
1522
- readonly prstTxWarp?: PresetTextShapeOptions;
1523
- readonly noAutoFit?: boolean;
1524
- readonly normAutofit?: NormalAutofitOptions;
1525
- readonly spAutoFit?: boolean;
1526
- readonly scene3d?: Scene3DOptions;
1527
- readonly sp3d?: Shape3DOptions;
1528
- readonly flatTx?: FlatTextOptions;
1529
- }
1530
- declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;
539
+ declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
540
+ declare const createDotEmphasisMark: () => XmlComponent;
1531
541
  //#endregion
1532
- //#region src/file/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.d.ts
1533
- interface INonVisualShapePropertiesOptions {
1534
- readonly txBox: string;
542
+ //#region src/file/paragraph/run/formatting.d.ts
543
+ interface ColorOptions {
544
+ readonly val?: string;
545
+ readonly themeColor?: (typeof values_d_exports.ThemeColor)[keyof typeof values_d_exports.ThemeColor];
546
+ readonly themeTint?: string;
547
+ readonly themeShade?: string;
1535
548
  }
1536
549
  //#endregion
1537
- //#region src/file/drawing/inline/graphic/graphic-data/wps/wps-shape.d.ts
1538
- interface WpsShapeCoreOptions {
1539
- readonly children: readonly Paragraph[];
1540
- readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
1541
- readonly bodyProperties?: IBodyPropertiesOptions;
1542
- readonly outline?: OutlineOptions;
1543
- readonly solidFill?: SolidFillOptions;
1544
- readonly gradientFill?: GradientFillOptions;
1545
- readonly patternFill?: PatternFillOptions;
1546
- readonly noFill?: boolean;
1547
- readonly customGeometry?: CustomGeometryOptions;
1548
- readonly effectDag?: EffectDagOptions;
1549
- readonly effects?: EffectListOptions;
1550
- readonly scene3d?: Scene3DOptions;
1551
- readonly shape3d?: Shape3DOptions;
550
+ //#region src/file/paragraph/run/language.d.ts
551
+ interface ILanguageOptions {
552
+ readonly value?: string;
553
+ readonly eastAsia?: string;
554
+ readonly bidirectional?: string;
1552
555
  }
1553
556
  //#endregion
1554
- //#region src/file/media/data.d.ts
1555
- interface IMediaDataTransformation {
1556
- readonly offset?: {
1557
- readonly pixels: {
1558
- readonly x: number;
1559
- readonly y: number;
1560
- };
1561
- readonly emus?: {
1562
- readonly x: number;
1563
- readonly y: number;
1564
- };
1565
- };
1566
- readonly pixels: {
1567
- readonly x: number;
1568
- readonly y: number;
1569
- };
1570
- readonly emus: {
1571
- readonly x: number;
1572
- readonly y: number;
1573
- };
1574
- readonly flip?: {
1575
- readonly vertical?: boolean;
1576
- readonly horizontal?: boolean;
1577
- };
1578
- readonly rotation?: number;
1579
- }
1580
- interface CoreMediaData {
1581
- readonly fileName: string;
1582
- readonly transformation: IMediaDataTransformation;
1583
- readonly data: Uint8Array;
1584
- readonly srcRect?: SourceRectangleOptions;
557
+ //#region src/file/paragraph/run/run-fonts.d.ts
558
+ interface IFontAttributesProperties {
559
+ readonly ascii?: string;
560
+ readonly cs?: string;
561
+ readonly eastAsia?: string;
562
+ readonly hAnsi?: string;
563
+ readonly hint?: string;
564
+ readonly asciiTheme?: (typeof values_d_exports.ThemeFont)[keyof typeof values_d_exports.ThemeFont];
565
+ readonly hAnsiTheme?: (typeof values_d_exports.ThemeFont)[keyof typeof values_d_exports.ThemeFont];
566
+ readonly eastAsiaTheme?: (typeof values_d_exports.ThemeFont)[keyof typeof values_d_exports.ThemeFont];
567
+ readonly cstheme?: (typeof values_d_exports.ThemeFont)[keyof typeof values_d_exports.ThemeFont];
1585
568
  }
1586
- interface RegularMediaData {
1587
- readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
569
+ declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
570
+ //#endregion
571
+ //#region src/file/paragraph/run/underline.d.ts
572
+ declare const UnderlineType: {
573
+ readonly SINGLE: "single";
574
+ readonly WORDS: "words";
575
+ readonly DOUBLE: "double";
576
+ readonly THICK: "thick";
577
+ readonly DOTTED: "dotted";
578
+ readonly DOTTEDHEAVY: "dottedHeavy";
579
+ readonly DASH: "dash";
580
+ readonly DASHEDHEAVY: "dashedHeavy";
581
+ readonly DASHLONG: "dashLong";
582
+ readonly DASHLONGHEAVY: "dashLongHeavy";
583
+ readonly DOTDASH: "dotDash";
584
+ readonly DASHDOTHEAVY: "dashDotHeavy";
585
+ readonly DOTDOTDASH: "dotDotDash";
586
+ readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
587
+ readonly WAVE: "wave";
588
+ readonly WAVYHEAVY: "wavyHeavy";
589
+ readonly WAVYDOUBLE: "wavyDouble";
590
+ readonly NONE: "none";
591
+ };
592
+ declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string, themeColor?: (typeof values_d_exports.ThemeColor)[keyof typeof values_d_exports.ThemeColor], themeTint?: string, themeShade?: string) => XmlComponent;
593
+ //#endregion
594
+ //#region src/file/paragraph/run/properties.d.ts
595
+ interface IFontOptions {
596
+ readonly name: string;
597
+ readonly hint?: string;
1588
598
  }
1589
- interface SvgMediaData {
1590
- readonly type: "svg";
1591
- readonly fallback: RegularMediaData & CoreMediaData;
599
+ declare const TextEffect: {
600
+ readonly BLINK_BACKGROUND: "blinkBackground";
601
+ readonly LIGHTS: "lights";
602
+ readonly ANTS_BLACK: "antsBlack";
603
+ readonly ANTS_RED: "antsRed";
604
+ readonly SHIMMER: "shimmer";
605
+ readonly SPARKLE: "sparkle";
606
+ readonly NONE: "none";
607
+ };
608
+ declare const HighlightColor: {
609
+ readonly BLACK: "black";
610
+ readonly BLUE: "blue";
611
+ readonly CYAN: "cyan";
612
+ readonly DARK_BLUE: "darkBlue";
613
+ readonly DARK_CYAN: "darkCyan";
614
+ readonly DARK_GRAY: "darkGray";
615
+ readonly DARK_GREEN: "darkGreen";
616
+ readonly DARK_MAGENTA: "darkMagenta";
617
+ readonly DARK_RED: "darkRed";
618
+ readonly DARK_YELLOW: "darkYellow";
619
+ readonly GREEN: "green";
620
+ readonly LIGHT_GRAY: "lightGray";
621
+ readonly MAGENTA: "magenta";
622
+ readonly NONE: "none";
623
+ readonly RED: "red";
624
+ readonly WHITE: "white";
625
+ readonly YELLOW: "yellow";
626
+ };
627
+ interface RunStylePropertiesOptions {
628
+ readonly noProof?: boolean;
629
+ readonly bold?: boolean;
630
+ readonly boldComplexScript?: boolean;
631
+ readonly italics?: boolean;
632
+ readonly italicsComplexScript?: boolean;
633
+ readonly underline?: {
634
+ readonly color?: string;
635
+ readonly type?: (typeof UnderlineType)[keyof typeof UnderlineType];
636
+ };
637
+ readonly effect?: (typeof TextEffect)[keyof typeof TextEffect];
638
+ readonly emphasisMark?: {
639
+ readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
640
+ };
641
+ readonly color?: string | ColorOptions;
642
+ readonly kern?: number | values_d_exports.PositiveUniversalMeasure;
643
+ readonly position?: values_d_exports.UniversalMeasure;
644
+ readonly size?: number | values_d_exports.PositiveUniversalMeasure;
645
+ readonly sizeComplexScript?: boolean | number | values_d_exports.PositiveUniversalMeasure;
646
+ readonly rightToLeft?: boolean;
647
+ readonly smallCaps?: boolean;
648
+ readonly allCaps?: boolean;
649
+ readonly strike?: boolean;
650
+ readonly doubleStrike?: boolean;
651
+ readonly subScript?: boolean;
652
+ readonly superScript?: boolean;
653
+ readonly font?: string | IFontOptions | IFontAttributesProperties;
654
+ readonly highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
655
+ readonly highlightComplexScript?: boolean | string;
656
+ readonly characterSpacing?: number;
657
+ readonly shading?: IShadingAttributesProperties;
658
+ readonly emboss?: boolean;
659
+ readonly imprint?: boolean;
660
+ readonly revision?: IRunPropertiesChangeOptions;
661
+ readonly language?: ILanguageOptions;
662
+ readonly border?: IBorderOptions;
663
+ readonly snapToGrid?: boolean;
664
+ readonly vanish?: boolean;
665
+ readonly specVanish?: boolean;
666
+ readonly scale?: number;
667
+ readonly math?: boolean;
668
+ readonly outline?: boolean;
669
+ readonly shadow?: boolean;
670
+ readonly webHidden?: boolean;
671
+ readonly fitText?: number;
672
+ readonly complexScript?: boolean;
673
+ readonly eastAsianLayout?: EastAsianLayoutOptions;
1592
674
  }
1593
- interface WpsMediaData {
1594
- readonly type: "wps";
1595
- readonly transformation: IMediaDataTransformation;
1596
- readonly data: WpsShapeCoreOptions;
675
+ type IRunPropertiesOptions = {
676
+ readonly style?: string;
677
+ } & RunStylePropertiesOptions;
678
+ type IRunPropertiesChangeOptions = {} & IRunPropertiesOptions & IChangedAttributesProperties;
679
+ type IParagraphRunPropertiesOptions = {
680
+ readonly insertion?: IChangedAttributesProperties;
681
+ readonly deletion?: IChangedAttributesProperties;
682
+ } & IRunPropertiesOptions;
683
+ declare class RunProperties extends IgnoreIfEmptyXmlComponent {
684
+ constructor(options?: IRunPropertiesOptions);
685
+ push(item: XmlComponent): void;
1597
686
  }
1598
- interface WpgCommonMediaData {
1599
- readonly outline?: OutlineOptions;
1600
- readonly solidFill?: SolidFillOptions;
687
+ declare class ParagraphRunProperties extends RunProperties {
688
+ constructor(options?: IParagraphRunPropertiesOptions);
1601
689
  }
1602
- type IGroupChildMediaData = (WpsMediaData | IMediaData) & WpgCommonMediaData;
1603
- interface WpgMediaData {
1604
- readonly type: "wpg";
1605
- readonly transformation: IMediaDataTransformation;
1606
- readonly children: readonly IGroupChildMediaData[];
1607
- readonly chOff?: IChildOffset;
1608
- readonly chExt?: IChildExtent;
1609
- readonly solidFill?: SolidFillOptions;
1610
- readonly effects?: EffectListOptions;
690
+ declare class RunPropertiesChange extends XmlComponent {
691
+ constructor(options: IRunPropertiesChangeOptions);
1611
692
  }
1612
- interface ChartMediaData {
1613
- readonly type: "chart";
1614
- readonly transformation: IMediaDataTransformation;
1615
- readonly chartKey: string;
693
+ declare function buildRunProperties(options?: IRunPropertiesOptions): IXmlableObject | undefined;
694
+ //#endregion
695
+ //#region src/file/paragraph/run/text-run.d.ts
696
+ declare class TextRun extends Run {
697
+ constructor(options: IRunOptions | string);
1616
698
  }
1617
- interface SmartArtMediaData {
1618
- readonly type: "smartart";
1619
- readonly transformation: IMediaDataTransformation;
1620
- readonly smartArtKey: string;
699
+ //#endregion
700
+ //#region src/file/paragraph/run/symbol-run.d.ts
701
+ type ISymbolRunOptions = {
702
+ readonly char: string;
703
+ readonly symbolfont?: string;
704
+ } & IRunOptions;
705
+ declare class SymbolRun extends Run {
706
+ constructor(options: ISymbolRunOptions | string);
1621
707
  }
1622
- type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData | ChartMediaData | SmartArtMediaData;
1623
- type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
1624
- declare const WORKAROUND2 = "";
1625
708
  //#endregion
1626
- //#region src/file/media/media.d.ts
1627
- interface IMediaTransformation {
1628
- readonly offset?: {
1629
- readonly top?: number;
1630
- readonly left?: number;
1631
- };
1632
- readonly width: number;
1633
- readonly height: number;
1634
- readonly flip?: {
1635
- readonly vertical?: boolean;
1636
- readonly horizontal?: boolean;
1637
- };
1638
- readonly rotation?: number;
709
+ //#region src/file/drawing/doc-properties/doc-properties.d.ts
710
+ interface HyperlinkOptions {
711
+ readonly click?: string;
712
+ readonly hover?: string;
1639
713
  }
1640
- declare const createTransformation: (options: IMediaTransformation) => IMediaDataTransformation;
1641
- declare class Media {
1642
- private readonly map;
1643
- constructor();
1644
- addImage(key: string, mediaData: IMediaData): void;
1645
- get Array(): readonly IMediaData[];
714
+ interface DocPropertiesOptions {
715
+ readonly name: string;
716
+ readonly description?: string;
717
+ readonly title?: string;
718
+ readonly id?: string;
719
+ readonly hyperlink?: HyperlinkOptions;
1646
720
  }
1647
721
  //#endregion
1648
722
  //#region src/file/shared/alignment.d.ts
@@ -1768,93 +842,6 @@ declare const createVerticalPosition: ({
1768
842
  offset
1769
843
  }: IVerticalPositionOptions) => XmlComponent;
1770
844
  //#endregion
1771
- //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-effects.d.ts
1772
- interface LuminanceEffectOptions {
1773
- readonly bright?: number;
1774
- readonly contrast?: number;
1775
- }
1776
- interface HSLEffectOptions {
1777
- readonly hue?: number;
1778
- readonly sat?: number;
1779
- readonly lum?: number;
1780
- }
1781
- interface TintEffectOptions {
1782
- readonly hue?: number;
1783
- readonly amt?: number;
1784
- }
1785
- interface DuotoneEffectOptions {
1786
- readonly color1: SolidFillOptions;
1787
- readonly color2: SolidFillOptions;
1788
- }
1789
- interface BiLevelEffectOptions {
1790
- readonly thresh: number;
1791
- }
1792
- interface AlphaReplaceEffectOptions {
1793
- readonly amount: number;
1794
- }
1795
- interface AlphaBiLevelEffectOptions {
1796
- readonly thresh: number;
1797
- }
1798
- interface AlphaModulateFixedEffectOptions {
1799
- readonly amount?: number;
1800
- }
1801
- interface ColorChangeEffectOptions {
1802
- readonly from: SolidFillOptions;
1803
- readonly to: SolidFillOptions;
1804
- readonly useAlpha?: boolean;
1805
- }
1806
- interface ColorReplaceEffectOptions {
1807
- readonly color: SolidFillOptions;
1808
- }
1809
- interface BlipBlurEffectOptions {
1810
- readonly rad?: number;
1811
- readonly grow?: boolean;
1812
- }
1813
- interface BlipEffectsOptions {
1814
- readonly grayscale?: boolean;
1815
- readonly luminance?: LuminanceEffectOptions;
1816
- readonly hsl?: HSLEffectOptions;
1817
- readonly tint?: TintEffectOptions;
1818
- readonly duotone?: DuotoneEffectOptions;
1819
- readonly biLevel?: BiLevelEffectOptions;
1820
- readonly alphaCeiling?: boolean;
1821
- readonly alphaFloor?: boolean;
1822
- readonly alphaInverse?: SolidFillOptions;
1823
- readonly alphaModFix?: AlphaModulateFixedEffectOptions;
1824
- readonly alphaRepl?: AlphaReplaceEffectOptions;
1825
- readonly alphaBiLevel?: AlphaBiLevelEffectOptions;
1826
- readonly colorChange?: ColorChangeEffectOptions;
1827
- readonly colorRepl?: ColorReplaceEffectOptions;
1828
- readonly blur?: BlipBlurEffectOptions;
1829
- }
1830
- //#endregion
1831
- //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/tile.d.ts
1832
- declare const TileFlipMode: {
1833
- readonly NONE: "none";
1834
- readonly X: "x";
1835
- readonly Y: "y";
1836
- readonly XY: "xy";
1837
- };
1838
- declare const TileAlignment: {
1839
- readonly TOP_LEFT: "tl";
1840
- readonly TOP: "t";
1841
- readonly TOP_RIGHT: "tr";
1842
- readonly LEFT: "l";
1843
- readonly CENTER: "ctr";
1844
- readonly RIGHT: "r";
1845
- readonly BOTTOM_LEFT: "bl";
1846
- readonly BOTTOM: "b";
1847
- readonly BOTTOM_RIGHT: "br";
1848
- };
1849
- interface TileOptions {
1850
- readonly tx?: number;
1851
- readonly ty?: number;
1852
- readonly sx?: number;
1853
- readonly sy?: number;
1854
- readonly flip?: keyof typeof TileFlipMode;
1855
- readonly align?: keyof typeof TileAlignment;
1856
- }
1857
- //#endregion
1858
845
  //#region src/file/drawing/drawing.d.ts
1859
846
  interface IDistance {
1860
847
  readonly distT?: number;
@@ -1866,7 +853,7 @@ interface IDrawingOptions {
1866
853
  readonly floating?: IFloating;
1867
854
  readonly docProperties?: DocPropertiesOptions;
1868
855
  readonly outline?: OutlineOptions;
1869
- readonly solidFill?: SolidFillOptions;
856
+ readonly fill?: FillOptions;
1870
857
  readonly effects?: EffectListOptions;
1871
858
  readonly blipEffects?: BlipEffectsOptions;
1872
859
  readonly tile?: TileOptions;
@@ -1881,7 +868,7 @@ interface CoreImageOptions {
1881
868
  readonly floating?: IFloating;
1882
869
  readonly altText?: DocPropertiesOptions;
1883
870
  readonly outline?: OutlineOptions;
1884
- readonly solidFill?: SolidFillOptions;
871
+ readonly fill?: FillOptions;
1885
872
  readonly effects?: EffectListOptions;
1886
873
  readonly blipEffects?: BlipEffectsOptions;
1887
874
  readonly srcRect?: SourceRectangleOptions;
@@ -1940,6 +927,9 @@ interface ISmartArtOptions {
1940
927
  readonly transformation: IMediaTransformation;
1941
928
  readonly floating?: IFloating;
1942
929
  readonly altText?: DocPropertiesOptions;
930
+ readonly layout?: string;
931
+ readonly style?: string;
932
+ readonly color?: string;
1943
933
  }
1944
934
  declare class SmartArtRun extends Run {
1945
935
  private readonly smartArtOptions;
@@ -1993,19 +983,6 @@ declare class SimpleMailMergeField extends SimpleField {
1993
983
  constructor(fieldName: string);
1994
984
  }
1995
985
  //#endregion
1996
- //#region src/file/relationships/relationship/relationship.d.ts
1997
- type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData" | "http://schemas.microsoft.com/office/2007/relationships/diagramLayout" | "http://schemas.microsoft.com/office/2007/relationships/diagramStyle" | "http://schemas.microsoft.com/office/2007/relationships/diagramColors";
1998
- declare const TargetModeType: {
1999
- readonly EXTERNAL: "External";
2000
- };
2001
- //#endregion
2002
- //#region src/file/relationships/relationships.d.ts
2003
- declare class Relationships extends XmlComponent {
2004
- constructor();
2005
- addRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): void;
2006
- get RelationshipCount(): number;
2007
- }
2008
- //#endregion
2009
986
  //#region src/file/paragraph/run/comment-run.d.ts
2010
987
  interface ICommentOptions {
2011
988
  readonly id: number;
@@ -2191,6 +1168,11 @@ interface FormFieldOptions extends FormFieldCommonOptions {
2191
1168
  }
2192
1169
  declare const createFormFieldData: (options: FormFieldOptions) => XmlComponent;
2193
1170
  //#endregion
1171
+ //#region src/file/paragraph/run/break.d.ts
1172
+ declare const createBreak: (options?: {
1173
+ readonly clear?: "none" | "left" | "right" | "all";
1174
+ }) => XmlComponent;
1175
+ //#endregion
2194
1176
  //#region src/file/footnotes/footnote/run/reference-run.d.ts
2195
1177
  declare class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
2196
1178
  readonly id: number;
@@ -2206,31 +1188,6 @@ declare class FootnoteReferenceRun extends Run {
2206
1188
  constructor(id: number);
2207
1189
  }
2208
1190
  //#endregion
2209
- //#region src/file/table-of-contents/table-of-contents-properties.d.ts
2210
- declare class StyleLevel {
2211
- readonly styleName: string;
2212
- readonly level: number;
2213
- constructor(styleName: string, level: number);
2214
- }
2215
- interface ITableOfContentsOptions {
2216
- readonly captionLabel?: string;
2217
- readonly entriesFromBookmark?: string;
2218
- readonly captionLabelIncludingNumbers?: string;
2219
- readonly sequenceAndPageNumbersSeparator?: string;
2220
- readonly tcFieldIdentifier?: string;
2221
- readonly hyperlink?: boolean;
2222
- readonly tcFieldLevelRange?: string;
2223
- readonly pageNumbersEntryLevelsRange?: string;
2224
- readonly headingStyleRange?: string;
2225
- readonly entryAndPageNumberSeparator?: string;
2226
- readonly seqFieldIdentifierForPrefix?: string;
2227
- readonly stylesWithLevels?: readonly StyleLevel[];
2228
- readonly useAppliedParagraphOutlineLevel?: boolean;
2229
- readonly preserveTabInEntries?: boolean;
2230
- readonly preserveNewLineInEntries?: boolean;
2231
- readonly hideTabAndPageNumbersInWebView?: boolean;
2232
- }
2233
- //#endregion
2234
1191
  //#region src/file/table-of-contents/field-instruction.d.ts
2235
1192
  declare class FieldInstruction extends XmlComponent {
2236
1193
  private readonly properties;
@@ -2239,7 +1196,7 @@ declare class FieldInstruction extends XmlComponent {
2239
1196
  //#endregion
2240
1197
  //#region src/file/paragraph/run/run.d.ts
2241
1198
  interface IRunOptionsBase {
2242
- readonly children?: readonly (FieldInstruction | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | string | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | XmlComponent)[];
1199
+ readonly children?: readonly (FieldInstruction | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | string | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | BaseXmlComponent)[];
2243
1200
  readonly break?: number;
2244
1201
  readonly text?: string;
2245
1202
  }
@@ -2251,9 +1208,11 @@ declare const PageNumber: {
2251
1208
  readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
2252
1209
  readonly CURRENT_SECTION: "SECTION";
2253
1210
  };
2254
- declare class Run extends XmlComponent {
2255
- protected readonly properties: RunProperties;
1211
+ declare class Run extends BaseXmlComponent {
1212
+ private readonly options;
1213
+ protected extraChildren: (BaseXmlComponent | IXmlableObject)[];
2256
1214
  constructor(options: IRunOptions);
1215
+ prepForXml(context: IContext): IXmlableObject | undefined;
2257
1216
  }
2258
1217
  //#endregion
2259
1218
  //#region src/file/track-revision/track-revision-components/deleted-text-run.d.ts
@@ -2266,6 +1225,15 @@ declare class DeletedTextRunWrapper extends XmlComponent {
2266
1225
  constructor(options: IRunOptions);
2267
1226
  }
2268
1227
  //#endregion
1228
+ //#region src/file/track-revision/track-revision-components/moved-text-run.d.ts
1229
+ type IMovedRunOptions = IRunOptions & IChangedAttributesProperties;
1230
+ declare class MovedFromTextRun extends XmlComponent {
1231
+ constructor(options: IMovedRunOptions);
1232
+ }
1233
+ declare class MovedToTextRun extends XmlComponent {
1234
+ constructor(options: IMovedRunOptions);
1235
+ }
1236
+ //#endregion
2269
1237
  //#region src/file/track-revision/track-revision-components/inserted-table-row.d.ts
2270
1238
  declare class InsertedTableRow extends XmlComponent {
2271
1239
  constructor(options: IChangedAttributesProperties);
@@ -2326,9 +1294,44 @@ declare const VerticalAlign: {
2326
1294
  readonly CENTER: "center";
2327
1295
  readonly TOP: "top";
2328
1296
  };
2329
- type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
2330
- type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
2331
- declare const createVerticalAlign: (value: (typeof VerticalAlign)[keyof typeof VerticalAlign]) => XmlComponent;
1297
+ type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
1298
+ type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
1299
+ declare const createVerticalAlign: (value: (typeof VerticalAlign)[keyof typeof VerticalAlign]) => XmlComponent;
1300
+ //#endregion
1301
+ //#region src/file/table/table-properties/table-cell-margin.d.ts
1302
+ interface ITableCellMarginOptions {
1303
+ readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
1304
+ readonly top?: number;
1305
+ readonly bottom?: number;
1306
+ readonly left?: number;
1307
+ readonly right?: number;
1308
+ }
1309
+ //#endregion
1310
+ //#region src/file/table/table-cell-spacing.d.ts
1311
+ declare const CellSpacingType: {
1312
+ readonly DXA: "dxa";
1313
+ readonly NIL: "nil";
1314
+ };
1315
+ interface ITableCellSpacingProperties {
1316
+ readonly value: number | values_d_exports.Percentage | values_d_exports.UniversalMeasure;
1317
+ readonly type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
1318
+ }
1319
+ //#endregion
1320
+ //#region src/file/table/table-width.d.ts
1321
+ declare const WidthType: {
1322
+ readonly AUTO: "auto";
1323
+ readonly DXA: "dxa";
1324
+ readonly NIL: "nil";
1325
+ readonly PERCENTAGE: "pct";
1326
+ };
1327
+ interface ITableWidthProperties {
1328
+ readonly size: number | values_d_exports.Percentage | values_d_exports.UniversalMeasure;
1329
+ readonly type?: (typeof WidthType)[keyof typeof WidthType];
1330
+ }
1331
+ declare const createTableWidthElement: (name: string, {
1332
+ type,
1333
+ size
1334
+ }: ITableWidthProperties) => XmlComponent;
2332
1335
  //#endregion
2333
1336
  //#region src/file/table/table-row/table-row-height.d.ts
2334
1337
  declare const HeightRule: {
@@ -2336,7 +1339,7 @@ declare const HeightRule: {
2336
1339
  readonly ATLEAST: "atLeast";
2337
1340
  readonly EXACT: "exact";
2338
1341
  };
2339
- declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
1342
+ declare const createTableRowHeight: (value: number | values_d_exports.PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
2340
1343
  //#endregion
2341
1344
  //#region src/file/table/table-row/table-row-properties.d.ts
2342
1345
  interface CnfStyleOptions {
@@ -2348,7 +1351,7 @@ interface ITableRowPropertiesOptionsBase {
2348
1351
  readonly cantSplit?: boolean;
2349
1352
  readonly tableHeader?: boolean;
2350
1353
  readonly height?: {
2351
- readonly value: number | PositiveUniversalMeasure;
1354
+ readonly value: number | values_d_exports.PositiveUniversalMeasure;
2352
1355
  readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
2353
1356
  };
2354
1357
  readonly cellSpacing?: ITableCellSpacingProperties;
@@ -2434,42 +1437,135 @@ type ITableCellPropertiesChangeOptions = ITableCellPropertiesOptionsBase & IChan
2434
1437
  //#endregion
2435
1438
  //#region src/file/table/table-cell/table-cell.d.ts
2436
1439
  type ITableCellOptions = {
2437
- readonly children: readonly (Paragraph | Table)[];
1440
+ readonly children: readonly (Paragraph | Table | StructuredDocumentTagCell)[];
2438
1441
  } & ITableCellPropertiesOptions;
2439
- declare class TableCell extends XmlComponent {
1442
+ declare class TableCell extends BaseXmlComponent {
2440
1443
  readonly options: ITableCellOptions;
2441
1444
  constructor(options: ITableCellOptions);
2442
1445
  prepForXml(context: IContext): IXmlableObject | undefined;
2443
1446
  }
2444
1447
  //#endregion
2445
- //#region src/file/table/table-row/table-row.d.ts
2446
- type ITableRowOptions = {
2447
- readonly children: readonly TableCell[];
2448
- } & ITableRowPropertiesOptions;
2449
- declare class TableRow extends XmlComponent {
2450
- private readonly options;
2451
- constructor(options: ITableRowOptions);
1448
+ //#region src/file/sdt/sdt-row.d.ts
1449
+ interface ISdtRowOptions {
1450
+ readonly properties: SdtPropertiesOptions;
1451
+ readonly children?: readonly TableRow[];
1452
+ }
1453
+ declare class StructuredDocumentTagRow extends XmlComponent {
1454
+ private readonly rows;
1455
+ constructor(options: ISdtRowOptions);
2452
1456
  get CellCount(): number;
2453
1457
  get cells(): readonly TableCell[];
2454
- addCellToIndex(cell: TableCell, index: number): void;
2455
1458
  addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
2456
- rootIndexToColumnIndex(rootIndex: number): number;
2457
- columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
2458
1459
  }
2459
1460
  //#endregion
2460
- //#region src/file/table/table.d.ts
2461
- interface ITableOptions {
2462
- readonly rows: readonly TableRow[];
1461
+ //#region src/file/table/grid.d.ts
1462
+ interface ITableGridChangeOptions {
1463
+ readonly id: number;
1464
+ readonly columnWidths: readonly number[] | readonly values_d_exports.PositiveUniversalMeasure[];
1465
+ }
1466
+ //#endregion
1467
+ //#region src/file/table/table-properties/table-borders.d.ts
1468
+ interface ITableBordersOptions {
1469
+ readonly top?: IBorderOptions;
1470
+ readonly bottom?: IBorderOptions;
1471
+ readonly left?: IBorderOptions;
1472
+ readonly right?: IBorderOptions;
1473
+ readonly insideHorizontal?: IBorderOptions;
1474
+ readonly insideVertical?: IBorderOptions;
1475
+ }
1476
+ declare class TableBorders extends XmlComponent {
1477
+ static readonly NONE: ITableBordersOptions;
1478
+ constructor(options: ITableBordersOptions);
1479
+ }
1480
+ //#endregion
1481
+ //#region src/file/table/table-properties/table-float-properties.d.ts
1482
+ declare const TableAnchorType: {
1483
+ readonly MARGIN: "margin";
1484
+ readonly PAGE: "page";
1485
+ readonly TEXT: "text";
1486
+ };
1487
+ declare const RelativeHorizontalPosition: {
1488
+ readonly CENTER: "center";
1489
+ readonly INSIDE: "inside";
1490
+ readonly LEFT: "left";
1491
+ readonly OUTSIDE: "outside";
1492
+ readonly RIGHT: "right";
1493
+ };
1494
+ declare const RelativeVerticalPosition: {
1495
+ readonly BOTTOM: "bottom";
1496
+ readonly CENTER: "center";
1497
+ readonly INLINE: "inline";
1498
+ readonly INSIDE: "inside";
1499
+ readonly OUTSIDE: "outside";
1500
+ readonly TOP: "top";
1501
+ };
1502
+ declare const OverlapType: {
1503
+ readonly NEVER: "never";
1504
+ readonly OVERLAP: "overlap";
1505
+ };
1506
+ interface ITableFloatOptions {
1507
+ readonly horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1508
+ readonly absoluteHorizontalPosition?: number | values_d_exports.UniversalMeasure;
1509
+ readonly relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
1510
+ readonly verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1511
+ readonly absoluteVerticalPosition?: number | values_d_exports.UniversalMeasure;
1512
+ readonly relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
1513
+ readonly bottomFromText?: number | values_d_exports.PositiveUniversalMeasure;
1514
+ readonly topFromText?: number | values_d_exports.PositiveUniversalMeasure;
1515
+ readonly leftFromText?: number | values_d_exports.PositiveUniversalMeasure;
1516
+ readonly rightFromText?: number | values_d_exports.PositiveUniversalMeasure;
1517
+ readonly overlap?: (typeof OverlapType)[keyof typeof OverlapType];
1518
+ }
1519
+ declare const createTableFloatProperties: ({
1520
+ horizontalAnchor,
1521
+ verticalAnchor,
1522
+ absoluteHorizontalPosition,
1523
+ relativeHorizontalPosition,
1524
+ absoluteVerticalPosition,
1525
+ relativeVerticalPosition,
1526
+ bottomFromText,
1527
+ topFromText,
1528
+ leftFromText,
1529
+ rightFromText
1530
+ }: ITableFloatOptions) => XmlComponent;
1531
+ declare const createTableOverlap: (overlap: (typeof OverlapType)[keyof typeof OverlapType]) => XmlComponent;
1532
+ //#endregion
1533
+ //#region src/file/table/table-properties/table-layout.d.ts
1534
+ declare const TableLayoutType: {
1535
+ readonly AUTOFIT: "autofit";
1536
+ readonly FIXED: "fixed";
1537
+ };
1538
+ declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
1539
+ //#endregion
1540
+ //#region src/file/table/table-properties/table-look.d.ts
1541
+ interface ITableLookOptions {
1542
+ readonly firstRow?: boolean;
1543
+ readonly lastRow?: boolean;
1544
+ readonly firstColumn?: boolean;
1545
+ readonly lastColumn?: boolean;
1546
+ readonly noHBand?: boolean;
1547
+ readonly noVBand?: boolean;
1548
+ }
1549
+ declare const createTableLook: ({
1550
+ firstRow,
1551
+ lastRow,
1552
+ firstColumn,
1553
+ lastColumn,
1554
+ noHBand,
1555
+ noVBand
1556
+ }: ITableLookOptions) => XmlComponent;
1557
+ //#endregion
1558
+ //#region src/file/table/table-properties/table-properties.d.ts
1559
+ interface ITablePropertiesOptionsBase {
2463
1560
  readonly width?: ITableWidthProperties;
2464
- readonly columnWidths?: readonly number[];
2465
- readonly columnWidthsRevision?: ITableGridChangeOptions;
2466
- readonly margins?: ITableCellMarginOptions;
2467
1561
  readonly indent?: ITableWidthProperties;
2468
- readonly float?: ITableFloatOptions;
2469
1562
  readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
2470
- readonly style?: string;
2471
1563
  readonly borders?: ITableBordersOptions;
1564
+ readonly float?: ITableFloatOptions;
1565
+ readonly shading?: IShadingAttributesProperties;
1566
+ readonly style?: string;
2472
1567
  readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1568
+ readonly cellMargin?: ITableCellMarginOptions;
2473
1569
  readonly visuallyRightToLeft?: boolean;
2474
1570
  readonly tableLook?: ITableLookOptions;
2475
1571
  readonly cellSpacing?: ITableCellSpacingProperties;
@@ -2477,142 +1573,78 @@ interface ITableOptions {
2477
1573
  readonly styleColBandSize?: number;
2478
1574
  readonly caption?: string;
2479
1575
  readonly description?: string;
2480
- readonly revision?: ITablePropertiesChangeOptions;
2481
1576
  }
2482
- declare class Table extends FileChild {
2483
- constructor({
2484
- rows,
2485
- width,
2486
- columnWidths,
2487
- columnWidthsRevision,
2488
- margins,
2489
- indent,
2490
- float,
2491
- layout,
2492
- style,
2493
- borders,
2494
- alignment,
2495
- visuallyRightToLeft,
2496
- tableLook,
2497
- cellSpacing,
2498
- styleRowBandSize,
2499
- styleColBandSize,
2500
- caption,
2501
- description,
2502
- revision
2503
- }: ITableOptions);
1577
+ type ITablePropertiesChangeOptions = ITablePropertiesOptions & IChangedAttributesProperties;
1578
+ type ITablePropertiesOptions = {
1579
+ readonly revision?: ITablePropertiesChangeOptions;
1580
+ readonly includeIfEmpty?: boolean;
1581
+ } & ITablePropertiesOptionsBase;
1582
+ declare class TableProperties extends IgnoreIfEmptyXmlComponent {
1583
+ constructor(options: ITablePropertiesOptions);
2504
1584
  }
2505
1585
  //#endregion
2506
- //#region src/file/table-of-contents/table-of-contents.d.ts
2507
- interface ToCEntry {
2508
- readonly title: string;
2509
- readonly level: number;
2510
- readonly page?: number;
2511
- readonly href?: string;
1586
+ //#region src/file/table/table-properties/table-property-exceptions.d.ts
1587
+ interface ITablePropertyExOptions {
1588
+ readonly width?: ITableWidthProperties;
1589
+ readonly indent?: ITableWidthProperties;
1590
+ readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1591
+ readonly borders?: ITableBordersOptions;
1592
+ readonly shading?: IShadingAttributesProperties;
1593
+ readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1594
+ readonly cellMargin?: ITableCellMarginOptions;
1595
+ readonly tableLook?: ITableLookOptions;
1596
+ readonly cellSpacing?: ITableCellSpacingProperties;
2512
1597
  }
2513
- declare class TableOfContents extends FileChild {
2514
- constructor(alias?: string, {
2515
- contentChildren,
2516
- cachedEntries,
2517
- beginDirty,
2518
- ...properties
2519
- }?: ITableOfContentsOptions & {
2520
- readonly contentChildren?: readonly (XmlComponent | string)[];
2521
- readonly cachedEntries?: readonly ToCEntry[];
2522
- readonly beginDirty?: boolean;
2523
- });
2524
- private getTabStopsForLevel;
2525
- private buildCachedContentRun;
2526
- private buildCachedContentParagraphChild;
1598
+ declare class TablePropertyExceptions extends IgnoreIfEmptyXmlComponent {
1599
+ constructor(options: ITablePropertyExOptions);
2527
1600
  }
2528
1601
  //#endregion
2529
- //#region src/file/table-of-contents/sdt-properties.d.ts
2530
- declare const SdtLock: {
2531
- readonly SDT_LOCKED: "sdtLocked";
2532
- readonly CONTENT_LOCKED: "contentLocked";
2533
- readonly UNLOCKED: "unlocked";
2534
- readonly SDT_CONTENT_LOCKED: "sdtContentLocked";
2535
- };
2536
- interface SdtListItem {
2537
- readonly displayText?: string;
2538
- readonly value?: string;
2539
- }
2540
- interface SdtComboBoxOptions {
2541
- readonly items?: readonly SdtListItem[];
2542
- readonly lastValue?: string;
2543
- }
2544
- interface SdtDropDownListOptions {
2545
- readonly items?: readonly SdtListItem[];
2546
- readonly lastValue?: string;
2547
- }
2548
- declare const SdtDateMappingType: {
2549
- readonly TEXT: "text";
2550
- readonly DATE: "date";
2551
- readonly DATE_TIME: "dateTime";
2552
- };
2553
- interface SdtDateOptions {
2554
- readonly dateFormat?: string;
2555
- readonly languageId?: string;
2556
- readonly storeMappedDataAs?: (typeof SdtDateMappingType)[keyof typeof SdtDateMappingType];
2557
- readonly calendar?: string;
2558
- readonly fullDate?: string;
2559
- }
2560
- interface SdtTextOptions {
2561
- readonly multiLine?: boolean;
2562
- }
2563
- interface SdtDataBindingOptions {
2564
- readonly prefixMappings?: string;
2565
- readonly xpath: string;
2566
- readonly storeItemID: string;
2567
- }
2568
- interface SdtPropertiesOptions {
2569
- readonly alias?: string;
2570
- readonly tag?: string;
2571
- readonly id?: number;
2572
- readonly lock?: (typeof SdtLock)[keyof typeof SdtLock];
2573
- readonly temporary?: boolean;
2574
- readonly showingPlaceholder?: boolean;
2575
- readonly placeholder?: XmlComponent[];
2576
- readonly dataBinding?: SdtDataBindingOptions;
2577
- readonly label?: number;
2578
- readonly tabIndex?: number;
2579
- readonly runProperties?: XmlComponent;
2580
- readonly equation?: boolean;
2581
- readonly comboBox?: SdtComboBoxOptions;
2582
- readonly date?: SdtDateOptions;
2583
- readonly docPartObj?: {
2584
- readonly gallery?: string;
2585
- readonly category?: string;
2586
- readonly unique?: boolean;
2587
- };
2588
- readonly docPartList?: {
2589
- readonly gallery?: string;
2590
- readonly category?: string;
2591
- readonly unique?: boolean;
2592
- };
2593
- readonly dropDownList?: SdtDropDownListOptions;
2594
- readonly picture?: boolean;
2595
- readonly richText?: boolean;
2596
- readonly text?: SdtTextOptions;
2597
- readonly citation?: boolean;
2598
- readonly group?: boolean;
2599
- readonly bibliography?: boolean;
2600
- }
2601
- declare class StructuredDocumentTagProperties extends XmlComponent {
2602
- constructor(aliasOrOptions?: string | SdtPropertiesOptions);
1602
+ //#region src/file/table/table-row/table-row.d.ts
1603
+ type ITableRowOptions = {
1604
+ readonly children: readonly (TableCell | StructuredDocumentTagRow)[];
1605
+ readonly propertyExceptions?: ITablePropertyExOptions;
1606
+ } & ITableRowPropertiesOptions;
1607
+ declare class TableRow extends BaseXmlComponent {
1608
+ private readonly options;
1609
+ private extraCells;
1610
+ constructor(options: ITableRowOptions);
1611
+ get CellCount(): number;
1612
+ get cells(): readonly TableCell[];
1613
+ addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
1614
+ rootIndexToColumnIndex(rootIndex: number): number;
1615
+ columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
1616
+ prepForXml(context: IContext): IXmlableObject | undefined;
1617
+ private findInsertIndex;
2603
1618
  }
2604
1619
  //#endregion
2605
- //#region src/file/table-of-contents/sdt-content.d.ts
2606
- declare class StructuredDocumentTagContent extends XmlComponent {
2607
- constructor();
1620
+ //#region src/file/table/table.d.ts
1621
+ interface ITableOptions {
1622
+ readonly rows: readonly (TableRow | StructuredDocumentTagRow)[];
1623
+ readonly width?: ITableWidthProperties;
1624
+ readonly columnWidths?: readonly number[];
1625
+ readonly columnWidthsRevision?: ITableGridChangeOptions;
1626
+ readonly margins?: ITableCellMarginOptions;
1627
+ readonly indent?: ITableWidthProperties;
1628
+ readonly float?: ITableFloatOptions;
1629
+ readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1630
+ readonly style?: string;
1631
+ readonly borders?: ITableBordersOptions;
1632
+ readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1633
+ readonly visuallyRightToLeft?: boolean;
1634
+ readonly tableLook?: ITableLookOptions;
1635
+ readonly cellSpacing?: ITableCellSpacingProperties;
1636
+ readonly styleRowBandSize?: number;
1637
+ readonly styleColBandSize?: number;
1638
+ readonly caption?: string;
1639
+ readonly description?: string;
1640
+ readonly revision?: ITablePropertiesChangeOptions;
2608
1641
  }
2609
- //#endregion
2610
- //#region src/file/footer/footer.d.ts
2611
- declare class Footer$1 extends InitializableXmlComponent {
2612
- private readonly refId;
2613
- constructor(referenceNumber: number, initContent?: XmlComponent);
2614
- get ReferenceId(): number;
2615
- add(item: Paragraph | Table): void;
1642
+ declare class Table extends BaseXmlComponent implements FileChild {
1643
+ readonly fileChild: symbol;
1644
+ private readonly options;
1645
+ private readonly columnWidths;
1646
+ constructor(options: ITableOptions);
1647
+ prepForXml(context: IContext): IXmlableObject | undefined;
2616
1648
  }
2617
1649
  //#endregion
2618
1650
  //#region src/file/footer-wrapper.d.ts
@@ -2637,7 +1669,7 @@ declare class Header$1 extends InitializableXmlComponent {
2637
1669
  private readonly refId;
2638
1670
  constructor(referenceNumber: number, initContent?: XmlComponent);
2639
1671
  get ReferenceId(): number;
2640
- add(item: Paragraph | Table): void;
1672
+ add(item: FileChild): void;
2641
1673
  }
2642
1674
  //#endregion
2643
1675
  //#region src/file/header-wrapper.d.ts
@@ -2659,8 +1691,8 @@ declare class HeaderWrapper implements IViewWrapper {
2659
1691
  //#endregion
2660
1692
  //#region src/file/document/body/section-properties/properties/column.d.ts
2661
1693
  interface IColumnAttributes {
2662
- readonly width: number | PositiveUniversalMeasure;
2663
- readonly space?: number | PositiveUniversalMeasure;
1694
+ readonly width: number | values_d_exports.PositiveUniversalMeasure;
1695
+ readonly space?: number | values_d_exports.PositiveUniversalMeasure;
2664
1696
  }
2665
1697
  declare class Column extends XmlComponent {
2666
1698
  constructor(options: IColumnAttributes);
@@ -2668,7 +1700,7 @@ declare class Column extends XmlComponent {
2668
1700
  //#endregion
2669
1701
  //#region src/file/document/body/section-properties/properties/columns.d.ts
2670
1702
  interface IColumnsAttributes {
2671
- readonly space?: number | PositiveUniversalMeasure;
1703
+ readonly space?: number | values_d_exports.PositiveUniversalMeasure;
2672
1704
  readonly count?: number;
2673
1705
  readonly separate?: boolean;
2674
1706
  readonly equalWidth?: boolean;
@@ -2805,7 +1837,7 @@ interface ILineNumberAttributes {
2805
1837
  readonly countBy?: number;
2806
1838
  readonly start?: number;
2807
1839
  readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
2808
- readonly distance?: number | PositiveUniversalMeasure;
1840
+ readonly distance?: number | values_d_exports.PositiveUniversalMeasure;
2809
1841
  }
2810
1842
  declare const createLineNumberType: ({
2811
1843
  countBy,
@@ -2846,15 +1878,15 @@ declare class PageBorders extends IgnoreIfEmptyXmlComponent {
2846
1878
  //#endregion
2847
1879
  //#region src/file/document/body/section-properties/properties/page-margin.d.ts
2848
1880
  interface IPageMarginAttributes {
2849
- readonly top?: number | UniversalMeasure;
2850
- readonly right?: number | PositiveUniversalMeasure;
2851
- readonly bottom?: number | UniversalMeasure;
2852
- readonly left?: number | PositiveUniversalMeasure;
2853
- readonly header?: number | PositiveUniversalMeasure;
2854
- readonly footer?: number | PositiveUniversalMeasure;
2855
- readonly gutter?: number | PositiveUniversalMeasure;
1881
+ readonly top?: number | values_d_exports.UniversalMeasure;
1882
+ readonly right?: number | values_d_exports.PositiveUniversalMeasure;
1883
+ readonly bottom?: number | values_d_exports.UniversalMeasure;
1884
+ readonly left?: number | values_d_exports.PositiveUniversalMeasure;
1885
+ readonly header?: number | values_d_exports.PositiveUniversalMeasure;
1886
+ readonly footer?: number | values_d_exports.PositiveUniversalMeasure;
1887
+ readonly gutter?: number | values_d_exports.PositiveUniversalMeasure;
2856
1888
  }
2857
- declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => XmlComponent;
1889
+ declare const createPageMargin: (top: number | values_d_exports.UniversalMeasure, right: number | values_d_exports.PositiveUniversalMeasure, bottom: number | values_d_exports.UniversalMeasure, left: number | values_d_exports.PositiveUniversalMeasure, header: number | values_d_exports.PositiveUniversalMeasure, footer: number | values_d_exports.PositiveUniversalMeasure, gutter: number | values_d_exports.PositiveUniversalMeasure) => XmlComponent;
2858
1890
  //#endregion
2859
1891
  //#region src/file/document/body/section-properties/properties/page-number.d.ts
2860
1892
  declare const PageNumberSeparator: {
@@ -2883,8 +1915,8 @@ declare const PageOrientation: {
2883
1915
  readonly LANDSCAPE: "landscape";
2884
1916
  };
2885
1917
  interface IPageSizeAttributes {
2886
- readonly width: number | PositiveUniversalMeasure;
2887
- readonly height: number | PositiveUniversalMeasure;
1918
+ readonly width: number | values_d_exports.PositiveUniversalMeasure;
1919
+ readonly height: number | values_d_exports.PositiveUniversalMeasure;
2888
1920
  readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
2889
1921
  readonly code?: number;
2890
1922
  }
@@ -3021,7 +2053,7 @@ declare class Body extends XmlComponent {
3021
2053
  constructor();
3022
2054
  addSection(options: ISectionPropertiesOptions): void;
3023
2055
  prepForXml(context: IContext): IXmlableObject | undefined;
3024
- push(component: XmlComponent): void;
2056
+ push(component: BaseXmlComponent | string): void;
3025
2057
  private createSectionParagraph;
3026
2058
  }
3027
2059
  //#endregion
@@ -3055,14 +2087,21 @@ declare class DocumentBackgroundAttributes extends XmlAttributeComponent<{
3055
2087
  themeTint: string;
3056
2088
  };
3057
2089
  }
2090
+ interface IBackgroundImageOptions {
2091
+ readonly data: DataType;
2092
+ readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
2093
+ }
3058
2094
  interface IDocumentBackgroundOptions {
3059
2095
  readonly color?: string;
3060
2096
  readonly themeColor?: string;
3061
2097
  readonly themeShade?: string;
3062
2098
  readonly themeTint?: string;
2099
+ readonly image?: IBackgroundImageOptions;
3063
2100
  }
3064
2101
  declare class DocumentBackground extends XmlComponent {
2102
+ private readonly imageData?;
3065
2103
  constructor(options: IDocumentBackgroundOptions);
2104
+ prepForXml(context: IContext): IXmlableObject | undefined;
3066
2105
  }
3067
2106
  //#endregion
3068
2107
  //#region src/file/document/document.d.ts
@@ -3072,7 +2111,7 @@ interface IDocumentOptions {
3072
2111
  declare class Document extends XmlComponent {
3073
2112
  private readonly body;
3074
2113
  constructor(options: IDocumentOptions);
3075
- add(item: Paragraph | Table | TableOfContents | ConcreteHyperlink): Document;
2114
+ add(item: FileChild | ConcreteHyperlink): Document;
3076
2115
  get Body(): Body;
3077
2116
  }
3078
2117
  //#endregion
@@ -3117,13 +2156,7 @@ declare const DocumentAttributeNamespaces: {
3117
2156
  xsi: string;
3118
2157
  };
3119
2158
  type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
3120
- type IDocumentAttributesProperties = Partial<Record<DocumentAttributeNamespace, string>> & {
3121
- readonly Ignorable?: string;
3122
- };
3123
- declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
3124
- protected readonly xmlKeys: AttributeMap<IDocumentAttributesProperties>;
3125
- constructor(ns: readonly DocumentAttributeNamespace[], Ignorable?: string);
3126
- }
2159
+ declare function buildDocumentAttributes(ns: readonly DocumentAttributeNamespace[], Ignorable?: string): IXmlableObject;
3127
2160
  //#endregion
3128
2161
  //#region src/file/endnotes/endnotes.d.ts
3129
2162
  declare class Endnotes extends XmlComponent {
@@ -3165,9 +2198,19 @@ declare class DocumentWrapper implements IViewWrapper {
3165
2198
  get Relationships(): Relationships;
3166
2199
  }
3167
2200
  //#endregion
3168
- //#region src/file/app-properties/app-properties.d.ts
3169
- declare class AppProperties extends XmlComponent {
2201
+ //#region src/file/alt-chunk/alt-chunk-collection.d.ts
2202
+ interface IAltChunkData {
2203
+ readonly key: string;
2204
+ readonly data: Uint8Array;
2205
+ readonly path: string;
2206
+ readonly extension: string;
2207
+ readonly contentType: string;
2208
+ }
2209
+ declare class AltChunkCollection {
2210
+ private readonly map;
3170
2211
  constructor();
2212
+ addAltChunk(key: string, data: IAltChunkData): void;
2213
+ get Array(): readonly IAltChunkData[];
3171
2214
  }
3172
2215
  //#endregion
3173
2216
  //#region src/file/bibliography/bibliography.d.ts
@@ -3199,21 +2242,10 @@ declare class Bibliography extends XmlComponent {
3199
2242
  get Relationships(): Relationships;
3200
2243
  }
3201
2244
  //#endregion
3202
- //#region src/file/chart/chart-collection.d.ts
3203
- interface IChartData {
3204
- readonly key: string;
3205
- readonly chartSpace: XmlComponent;
3206
- }
3207
- declare class ChartCollection {
3208
- private readonly map;
3209
- constructor();
3210
- addChart(key: string, chartData: IChartData): void;
3211
- get Array(): readonly IChartData[];
3212
- }
3213
- //#endregion
3214
2245
  //#region src/file/content-types/content-types.d.ts
3215
2246
  declare class ContentTypes extends XmlComponent {
3216
2247
  constructor();
2248
+ addBibliography(): void;
3217
2249
  addFooter(index: number): void;
3218
2250
  addHeader(index: number): void;
3219
2251
  addChart(index: number): void;
@@ -3221,50 +2253,9 @@ declare class ContentTypes extends XmlComponent {
3221
2253
  addDiagramLayout(index: number): void;
3222
2254
  addDiagramStyle(index: number): void;
3223
2255
  addDiagramColors(index: number): void;
3224
- }
3225
- //#endregion
3226
- //#region src/file/fonts/font.d.ts
3227
- declare const CharacterSet: {
3228
- readonly ANSI: "00";
3229
- readonly ARABIC: "B2";
3230
- readonly BALTIC: "BA";
3231
- readonly CHINESEBIG5: "88";
3232
- readonly DEFAULT: "01";
3233
- readonly EASTEUROPE: "EE";
3234
- readonly GB_2312: "86";
3235
- readonly GREEK: "A1";
3236
- readonly HANGUL: "81";
3237
- readonly HEBREW: "B1";
3238
- readonly JIS: "80";
3239
- readonly JOHAB: "82";
3240
- readonly MAC: "4D";
3241
- readonly OEM: "FF";
3242
- readonly RUSSIAN: "CC";
3243
- readonly SYMBOL: "02";
3244
- readonly THAI: "DE";
3245
- readonly TURKISH: "A2";
3246
- readonly VIETNAMESE: "A3";
3247
- };
3248
- //#endregion
3249
- //#region src/file/fonts/font-wrapper.d.ts
3250
- type FontOptionsWithKey = FontOptions & {
3251
- readonly fontKey: string;
3252
- };
3253
- declare class FontWrapper implements IViewWrapper {
3254
- readonly options: readonly FontOptions[];
3255
- private readonly fontTable;
3256
- private readonly relationships;
3257
- readonly fontOptionsWithKey: readonly FontOptionsWithKey[];
3258
- constructor(options: readonly FontOptions[]);
3259
- get View(): XmlComponent;
3260
- get Relationships(): Relationships;
3261
- }
3262
- //#endregion
3263
- //#region src/file/fonts/font-table.d.ts
3264
- interface FontOptions {
3265
- readonly name: string;
3266
- readonly data: Buffer;
3267
- readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
2256
+ addDiagramDrawing(index: number): void;
2257
+ addAltChunk(path: string, contentType: string, _extension: string): void;
2258
+ addSubDoc(path: string): void;
3268
2259
  }
3269
2260
  //#endregion
3270
2261
  //#region src/file/settings/compatibility.d.ts
@@ -3350,6 +2341,50 @@ interface ISettingsOptions {
3350
2341
  readonly defaultTabStop?: number;
3351
2342
  readonly hyphenation?: IHyphenationOptions;
3352
2343
  readonly characterSpacingControl?: "compressPunctuation" | "doNotCompress";
2344
+ readonly documentProtection?: IDocumentProtectionOptions;
2345
+ readonly view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
2346
+ readonly zoom?: {
2347
+ readonly percent?: number;
2348
+ readonly val?: "none" | "fullPage" | "bestFit" | "textFit";
2349
+ };
2350
+ readonly writeProtection?: IWriteProtectionOptions;
2351
+ readonly displayBackgroundShape?: boolean;
2352
+ readonly embedTrueTypeFonts?: boolean;
2353
+ readonly embedSystemFonts?: boolean;
2354
+ readonly saveSubsetFonts?: boolean;
2355
+ readonly docVars?: readonly {
2356
+ readonly name: string;
2357
+ readonly val: string;
2358
+ }[];
2359
+ readonly colorSchemeMapping?: {
2360
+ readonly bg1?: string;
2361
+ readonly t1?: string;
2362
+ readonly bg2?: string;
2363
+ readonly t2?: string;
2364
+ readonly accent1?: string;
2365
+ readonly accent2?: string;
2366
+ readonly accent3?: string;
2367
+ readonly accent4?: string;
2368
+ readonly accent5?: string;
2369
+ readonly accent6?: string;
2370
+ readonly hyperlink?: string;
2371
+ readonly followedHyperlink?: string;
2372
+ };
2373
+ }
2374
+ interface IDocumentProtectionOptions {
2375
+ readonly edit?: "none" | "readOnly" | "comments" | "trackedChanges" | "forms";
2376
+ readonly formatting?: boolean;
2377
+ readonly hashValue?: string;
2378
+ readonly saltValue?: string;
2379
+ readonly spinCount?: number;
2380
+ readonly algorithmName?: string;
2381
+ }
2382
+ interface IWriteProtectionOptions {
2383
+ readonly hashValue?: string;
2384
+ readonly saltValue?: string;
2385
+ readonly spinCount?: number;
2386
+ readonly algorithmName?: string;
2387
+ readonly recommended?: boolean;
3353
2388
  }
3354
2389
  interface IHyphenationOptions {
3355
2390
  readonly autoHyphenation?: boolean;
@@ -3361,6 +2396,50 @@ declare class Settings extends XmlComponent {
3361
2396
  constructor(options: ISettingsOptions);
3362
2397
  }
3363
2398
  //#endregion
2399
+ //#region src/file/fonts/font.d.ts
2400
+ declare const CharacterSet: {
2401
+ readonly ANSI: "00";
2402
+ readonly ARABIC: "B2";
2403
+ readonly BALTIC: "BA";
2404
+ readonly CHINESEBIG5: "88";
2405
+ readonly DEFAULT: "01";
2406
+ readonly EASTEUROPE: "EE";
2407
+ readonly GB_2312: "86";
2408
+ readonly GREEK: "A1";
2409
+ readonly HANGUL: "81";
2410
+ readonly HEBREW: "B1";
2411
+ readonly JIS: "80";
2412
+ readonly JOHAB: "82";
2413
+ readonly MAC: "4D";
2414
+ readonly OEM: "FF";
2415
+ readonly RUSSIAN: "CC";
2416
+ readonly SYMBOL: "02";
2417
+ readonly THAI: "DE";
2418
+ readonly TURKISH: "A2";
2419
+ readonly VIETNAMESE: "A3";
2420
+ };
2421
+ //#endregion
2422
+ //#region src/file/fonts/font-wrapper.d.ts
2423
+ type FontOptionsWithKey = FontOptions & {
2424
+ readonly fontKey: string;
2425
+ };
2426
+ declare class FontWrapper implements IViewWrapper {
2427
+ readonly options: readonly FontOptions[];
2428
+ private readonly fontTable;
2429
+ private readonly relationships;
2430
+ readonly fontOptionsWithKey: readonly FontOptionsWithKey[];
2431
+ constructor(options: readonly FontOptions[]);
2432
+ get View(): XmlComponent;
2433
+ get Relationships(): Relationships;
2434
+ }
2435
+ //#endregion
2436
+ //#region src/file/fonts/font-table.d.ts
2437
+ interface FontOptions {
2438
+ readonly name: string;
2439
+ readonly data: Buffer;
2440
+ readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
2441
+ }
2442
+ //#endregion
3364
2443
  //#region src/file/custom-properties/custom-property.d.ts
3365
2444
  interface ICustomPropertyOptions {
3366
2445
  readonly name: string;
@@ -3410,17 +2489,17 @@ declare const createCnfStyle: (options: ICnfStyleOptions) => XmlComponent;
3410
2489
  //#endregion
3411
2490
  //#region src/file/paragraph/formatting/indent.d.ts
3412
2491
  interface IIndentAttributesProperties {
3413
- readonly start?: number | UniversalMeasure;
2492
+ readonly start?: number | values_d_exports.UniversalMeasure;
3414
2493
  readonly startChars?: number;
3415
- readonly end?: number | UniversalMeasure;
2494
+ readonly end?: number | values_d_exports.UniversalMeasure;
3416
2495
  readonly endChars?: number;
3417
- readonly left?: number | UniversalMeasure;
2496
+ readonly left?: number | values_d_exports.UniversalMeasure;
3418
2497
  readonly leftChars?: number;
3419
- readonly right?: number | UniversalMeasure;
2498
+ readonly right?: number | values_d_exports.UniversalMeasure;
3420
2499
  readonly rightChars?: number;
3421
- readonly hanging?: number | PositiveUniversalMeasure;
2500
+ readonly hanging?: number | values_d_exports.PositiveUniversalMeasure;
3422
2501
  readonly hangingChars?: number;
3423
- readonly firstLine?: number | PositiveUniversalMeasure;
2502
+ readonly firstLine?: number | values_d_exports.PositiveUniversalMeasure;
3424
2503
  readonly firstLineChars?: number;
3425
2504
  }
3426
2505
  declare const createIndent: ({
@@ -3915,7 +2994,7 @@ interface IDefaultStylesOptions {
3915
2994
  //#region src/file/styles/styles.d.ts
3916
2995
  interface IStylesOptions {
3917
2996
  readonly default?: IDefaultStylesOptions;
3918
- readonly initialStyles?: BaseXmlComponent;
2997
+ readonly initialStyles?: BaseXmlComponent | IXmlableObject;
3919
2998
  readonly paragraphStyles?: readonly IParagraphStyleOptions[];
3920
2999
  readonly characterStyles?: readonly ICharacterStyleOptions[];
3921
3000
  readonly importedStyles?: readonly (XmlComponent | StyleForParagraph | StyleForCharacter | ImportedXmlComponent)[];
@@ -3949,6 +3028,7 @@ interface IPropertiesOptions {
3949
3028
  readonly features?: {
3950
3029
  readonly trackRevisions?: boolean;
3951
3030
  readonly updateFields?: boolean;
3031
+ readonly documentProtection?: IDocumentProtectionOptions;
3952
3032
  };
3953
3033
  readonly compatabilityModeVersion?: number;
3954
3034
  readonly compatibility?: ICompatibilityOptions;
@@ -3958,6 +3038,21 @@ interface IPropertiesOptions {
3958
3038
  readonly fonts?: readonly FontOptions[];
3959
3039
  readonly hyphenation?: IHyphenationOptions;
3960
3040
  readonly characterSpacingControl?: "compressPunctuation" | "doNotCompress";
3041
+ readonly view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
3042
+ readonly zoom?: {
3043
+ readonly percent?: number;
3044
+ readonly val?: "none" | "fullPage" | "bestFit" | "textFit";
3045
+ };
3046
+ readonly writeProtection?: IWriteProtectionOptions;
3047
+ readonly displayBackgroundShape?: boolean;
3048
+ readonly embedTrueTypeFonts?: boolean;
3049
+ readonly embedSystemFonts?: boolean;
3050
+ readonly saveSubsetFonts?: boolean;
3051
+ readonly docVars?: readonly {
3052
+ readonly name: string;
3053
+ readonly val: string;
3054
+ }[];
3055
+ readonly colorSchemeMapping?: ISettingsOptions["colorSchemeMapping"];
3961
3056
  }
3962
3057
  declare class CoreProperties extends XmlComponent {
3963
3058
  constructor(options: Omit<IPropertiesOptions, "sections">);
@@ -3994,26 +3089,16 @@ declare class Footer {
3994
3089
  constructor(options?: IHeaderOptions);
3995
3090
  }
3996
3091
  //#endregion
3997
- //#region src/file/smartart/data-model/connection.d.ts
3998
- declare class Connection extends XmlComponent {
3999
- constructor(modelId: number, srcId: number, destId: number, type?: string, srcOrd?: number, destOrd?: number);
4000
- }
4001
- //#endregion
4002
- //#region src/file/smartart/data-model/data-model.d.ts
4003
- declare class DataModel extends XmlComponent {
4004
- constructor(points: readonly XmlComponent[], connections: readonly Connection[]);
4005
- }
4006
- //#endregion
4007
- //#region src/file/smartart/smartart-collection.d.ts
4008
- interface ISmartArtData {
4009
- readonly key: string;
4010
- readonly dataModel: DataModel;
3092
+ //#region src/file/sub-doc/sub-doc-collection.d.ts
3093
+ interface ISubDocData {
3094
+ readonly data: Uint8Array;
3095
+ readonly path: string;
4011
3096
  }
4012
- declare class SmartArtCollection {
3097
+ declare class SubDocCollection {
4013
3098
  private readonly map;
4014
3099
  constructor();
4015
- addSmartArt(key: string, data: ISmartArtData): void;
4016
- get Array(): readonly ISmartArtData[];
3100
+ addSubDoc(key: string, data: ISubDocData): void;
3101
+ get Array(): readonly ISubDocData[];
4017
3102
  }
4018
3103
  //#endregion
4019
3104
  //#region src/file/file.d.ts
@@ -4041,6 +3126,8 @@ declare class File {
4041
3126
  private readonly media;
4042
3127
  private readonly charts;
4043
3128
  private readonly smartArts;
3129
+ private readonly altChunks;
3130
+ private readonly subDocs;
4044
3131
  private readonly fileRelationships;
4045
3132
  private readonly footnotesWrapper;
4046
3133
  private readonly endnotesWrapper;
@@ -4066,6 +3153,8 @@ declare class File {
4066
3153
  get Media(): Media;
4067
3154
  get Charts(): ChartCollection;
4068
3155
  get SmartArts(): SmartArtCollection;
3156
+ get AltChunks(): AltChunkCollection;
3157
+ get SubDocs(): SubDocCollection;
4069
3158
  get FileRelationships(): Relationships;
4070
3159
  get Headers(): readonly HeaderWrapper[];
4071
3160
  get Footers(): readonly FooterWrapper[];
@@ -4080,58 +3169,14 @@ declare class File {
4080
3169
  get FontTable(): FontWrapper;
4081
3170
  }
4082
3171
  //#endregion
4083
- //#region src/file/xml-components/xmlable-object.d.ts
4084
- type IXmlAttribute = Readonly<Record<string, string | number | boolean>>;
4085
- type IXmlableObject = Readonly<Record<string, any>>;
4086
- declare const WORKAROUND3 = "";
4087
- //#endregion
4088
3172
  //#region src/file/xml-components/base.d.ts
4089
- interface IContext {
3173
+ interface IContext extends IContext$1<File> {
4090
3174
  readonly file: File;
4091
3175
  readonly viewWrapper: IViewWrapper;
4092
- readonly stack: IXmlableObject[];
4093
- }
4094
- declare abstract class BaseXmlComponent {
4095
- protected readonly rootKey: string;
4096
- constructor(rootKey: string);
4097
- abstract prepForXml(context: IContext): IXmlableObject | undefined;
4098
- }
4099
- //#endregion
4100
- //#region src/file/xml-components/xml-component.d.ts
4101
- declare const EMPTY_OBJECT: {};
4102
- declare abstract class XmlComponent extends BaseXmlComponent {
4103
- protected root: (BaseXmlComponent | IXmlableObject | string)[];
4104
- constructor(rootKey: string);
4105
- prepForXml(context: IContext): IXmlableObject | undefined;
4106
- addChildElement(child: XmlComponent | string): XmlComponent;
4107
- }
4108
- declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
4109
- private readonly includeIfEmpty;
4110
- constructor(rootKey: string, includeIfEmpty?: boolean);
4111
- prepForXml(context: IContext): IXmlableObject | undefined;
4112
- }
4113
- //#endregion
4114
- //#region src/file/xml-components/default-attributes.d.ts
4115
- type AttributeMap<T> = Record<keyof T, string>;
4116
- type AttributeData = Record<string, boolean | number | string>;
4117
- type AttributePayload<T> = { readonly [P in keyof T]: {
4118
- readonly key: string;
4119
- readonly value: T[P];
4120
- } };
4121
- declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {
4122
- private readonly root;
4123
- protected readonly xmlKeys?: AttributeMap<T>;
4124
- constructor(root: T);
4125
- prepForXml(_: IContext): IXmlableObject;
4126
- }
4127
- declare class NextAttributeComponent<T> extends BaseXmlComponent {
4128
- private readonly root;
4129
- constructor(root: AttributePayload<T>);
4130
- prepForXml(_: IContext): IXmlableObject;
4131
3176
  }
4132
3177
  //#endregion
4133
3178
  //#region src/file/xml-components/attributes.d.ts
4134
- declare class Attributes extends XmlAttributeComponent<{
3179
+ declare class Attributes extends XmlAttributeComponent$1<{
4135
3180
  readonly val?: string | number | boolean;
4136
3181
  readonly color?: string;
4137
3182
  readonly fill?: string;
@@ -4183,85 +3228,8 @@ declare class Attributes extends XmlAttributeComponent<{
4183
3228
  };
4184
3229
  }
4185
3230
  //#endregion
4186
- //#region ../xml/dist/index.d.mts
4187
- //#endregion
4188
- //#region src/types.d.ts
4189
- interface Attributes$1 {
4190
- [key: string]: string | number | undefined;
4191
- }
4192
- interface DeclarationAttributes {
4193
- version?: string | number;
4194
- encoding?: string;
4195
- standalone?: string;
4196
- }
4197
- interface Element {
4198
- declaration?: {
4199
- attributes?: DeclarationAttributes;
4200
- };
4201
- instruction?: string;
4202
- attributes?: Attributes$1;
4203
- cdata?: string;
4204
- doctype?: string;
4205
- comment?: string;
4206
- text?: string | number | boolean;
4207
- type?: string;
4208
- name?: string;
4209
- elements?: Element[];
4210
- parent?: Element;
4211
- }
4212
- //#endregion
4213
- //#region src/file/xml-components/imported-xml-component.d.ts
4214
- declare const convertToXmlComponent: (element: Element) => ImportedXmlComponent | string | undefined;
4215
- declare class ImportedXmlComponent extends XmlComponent {
4216
- static fromXmlString(importedContent: string): ImportedXmlComponent;
4217
- constructor(rootKey: string, _attr?: any);
4218
- push(xmlComponent: XmlComponent | string): void;
4219
- }
4220
- declare class ImportedRootElementAttributes extends XmlComponent {
4221
- private readonly _attr;
4222
- constructor(_attr: any);
4223
- prepForXml(_: IContext): IXmlableObject;
4224
- }
4225
- //#endregion
4226
- //#region src/file/xml-components/initializable-xml-component.d.ts
4227
- declare abstract class InitializableXmlComponent extends XmlComponent {
4228
- constructor(rootKey: string, initComponent?: InitializableXmlComponent);
4229
- }
4230
- //#endregion
4231
3231
  //#region src/file/xml-components/simple-elements.d.ts
4232
- declare class OnOffElement extends XmlComponent {
4233
- constructor(name: string, val?: boolean | undefined);
4234
- }
4235
- declare class HpsMeasureElement extends XmlComponent {
4236
- constructor(name: string, val: number | PositiveUniversalMeasure);
4237
- }
4238
- declare class EmptyElement extends XmlComponent {}
4239
- declare class StringValueElement extends XmlComponent {
4240
- constructor(name: string, val: string);
4241
- }
4242
- declare const createStringElement: (name: string, value: string) => XmlComponent;
4243
- declare class NumberValueElement extends XmlComponent {
4244
- constructor(name: string, val: number);
4245
- }
4246
- declare class StringEnumValueElement<T extends string> extends XmlComponent {
4247
- constructor(name: string, val: T);
4248
- }
4249
- declare class StringContainer extends XmlComponent {
4250
- constructor(name: string, val: string);
4251
- }
4252
- declare class BuilderElement<T = {}> extends XmlComponent {
4253
- constructor({
4254
- name,
4255
- attributes,
4256
- children
4257
- }: {
4258
- readonly name: string;
4259
- readonly attributes?: AttributePayload<T>;
4260
- readonly children?: readonly XmlComponent[];
4261
- });
4262
- }
4263
- declare const chartAttr: (attrs: Record<string, string | number | boolean>) => BaseXmlComponent;
4264
- declare function wrapEl(elementName: string, child: BaseXmlComponent): XmlComponent;
3232
+ declare const createStringElement: (name: string, value: string) => XmlComponent$1;
4265
3233
  //#endregion
4266
3234
  //#region src/file/paragraph/formatting/alignment.d.ts
4267
3235
  declare const AlignmentType: {
@@ -4297,6 +3265,20 @@ declare class NumberProperties extends XmlComponent {
4297
3265
  constructor(numberId: number | string, indentLevel: number);
4298
3266
  }
4299
3267
  //#endregion
3268
+ //#region src/file/alt-chunk/alt-chunk.d.ts
3269
+ interface IAltChunkOptions {
3270
+ readonly data: Uint8Array | string;
3271
+ readonly contentType: "text/html" | "application/rtf" | "text/plain";
3272
+ readonly extension: "html" | "rtf" | "txt";
3273
+ readonly matchSrc?: boolean;
3274
+ }
3275
+ declare class AltChunk extends XmlComponent implements FileChild {
3276
+ readonly fileChild: symbol;
3277
+ private readonly options;
3278
+ constructor(options: IAltChunkOptions);
3279
+ prepForXml(context: IContext): IXmlableObject;
3280
+ }
3281
+ //#endregion
4300
3282
  //#region src/file/checkbox/checkbox-util.d.ts
4301
3283
  interface ICheckboxSymbolProperties {
4302
3284
  readonly value?: string;
@@ -4328,20 +3310,40 @@ declare class CheckBox extends XmlComponent {
4328
3310
  constructor(options?: ICheckboxSymbolOptions);
4329
3311
  }
4330
3312
  //#endregion
4331
- //#region src/file/sdt/sdt.d.ts
4332
- interface ISdtRunOptions {
4333
- readonly properties: SdtPropertiesOptions;
4334
- readonly children?: readonly XmlComponent[];
3313
+ //#region src/file/permissions/perm-start.d.ts
3314
+ declare const EditGroupType: {
3315
+ readonly NONE: "none";
3316
+ readonly EVERYONE: "everyone";
3317
+ readonly ADMINISTRATORS: "administrators";
3318
+ readonly CONTRIBUTORS: "contributors";
3319
+ readonly EDITORS: "editors";
3320
+ readonly OWNERS: "owners";
3321
+ readonly CURRENT: "current";
3322
+ };
3323
+ type EditGroup = (typeof EditGroupType)[keyof typeof EditGroupType];
3324
+ interface IPermStartOptions {
3325
+ readonly id: string | number;
3326
+ readonly edGroup?: EditGroup;
3327
+ readonly ed?: string;
3328
+ readonly colFirst?: number;
3329
+ readonly colLast?: number;
4335
3330
  }
4336
- declare class StructuredDocumentTagRun extends XmlComponent {
4337
- constructor(options: ISdtRunOptions);
3331
+ declare class PermStart extends XmlComponent {
3332
+ constructor(options: IPermStartOptions);
4338
3333
  }
4339
- interface ISdtBlockOptions {
4340
- readonly properties: SdtPropertiesOptions;
4341
- readonly children?: readonly XmlComponent[];
3334
+ declare class PermEnd extends XmlComponent {
3335
+ constructor(id: string | number);
4342
3336
  }
4343
- declare class StructuredDocumentTagBlock extends FileChild {
4344
- constructor(options: ISdtBlockOptions);
3337
+ //#endregion
3338
+ //#region src/file/sub-doc/sub-doc.d.ts
3339
+ interface ISubDocOptions {
3340
+ readonly data: Uint8Array | string;
3341
+ }
3342
+ declare class SubDoc extends XmlComponent implements FileChild {
3343
+ readonly fileChild: symbol;
3344
+ private readonly options;
3345
+ constructor(options: ISubDocOptions);
3346
+ prepForXml(context: IContext): IXmlableObject;
4345
3347
  }
4346
3348
  //#endregion
4347
3349
  //#region src/file/paragraph/links/hyperlink.d.ts
@@ -4352,14 +3354,17 @@ declare const HyperlinkType: {
4352
3354
  interface IInternalHyperlinkOptions {
4353
3355
  readonly children: readonly ParagraphChild[];
4354
3356
  readonly anchor: string;
3357
+ readonly tooltip?: string;
4355
3358
  }
4356
3359
  interface IExternalHyperlinkOptions {
4357
3360
  readonly children: readonly ParagraphChild[];
4358
3361
  readonly link: string;
3362
+ readonly tooltip?: string;
3363
+ readonly tgtFrame?: string;
4359
3364
  }
4360
3365
  declare class ConcreteHyperlink extends XmlComponent {
4361
3366
  readonly linkId: string;
4362
- constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string);
3367
+ constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string, tooltip?: string, tgtFrame?: string);
4363
3368
  }
4364
3369
  declare class InternalHyperlink extends ConcreteHyperlink {
4365
3370
  constructor(options: IInternalHyperlinkOptions);
@@ -4388,6 +3393,20 @@ declare class BookmarkEnd extends XmlComponent {
4388
3393
  constructor(linkId: number);
4389
3394
  }
4390
3395
  //#endregion
3396
+ //#region src/file/paragraph/links/move-bookmark.d.ts
3397
+ declare class MoveFromRangeStart extends XmlComponent {
3398
+ constructor(id: number, name?: string, author?: string, date?: string);
3399
+ }
3400
+ declare class MoveFromRangeEnd extends XmlComponent {
3401
+ constructor(id: number);
3402
+ }
3403
+ declare class MoveToRangeStart extends XmlComponent {
3404
+ constructor(id: number, name?: string, author?: string, date?: string);
3405
+ }
3406
+ declare class MoveToRangeEnd extends XmlComponent {
3407
+ constructor(id: number);
3408
+ }
3409
+ //#endregion
4391
3410
  //#region src/file/paragraph/links/div-id.d.ts
4392
3411
  declare const createDivId: (id: number) => XmlComponent;
4393
3412
  //#endregion
@@ -4418,6 +3437,18 @@ declare class PageReference extends Run {
4418
3437
  constructor(bookmarkId: string, options?: IPageReferenceOptions);
4419
3438
  }
4420
3439
  //#endregion
3440
+ //#region src/file/paragraph/links/bidi.d.ts
3441
+ interface IDirOptions {
3442
+ readonly children: readonly ParagraphChild[];
3443
+ readonly val: "ltr" | "rtl";
3444
+ }
3445
+ declare class Dir extends XmlComponent {
3446
+ constructor(options: IDirOptions);
3447
+ }
3448
+ declare class Bdo extends XmlComponent {
3449
+ constructor(options: IDirOptions);
3450
+ }
3451
+ //#endregion
4421
3452
  //#region src/file/paragraph/math/border-box/math-border-box-properties.d.ts
4422
3453
  interface MathBorderBoxPropertiesOptions {
4423
3454
  readonly hideTop?: boolean;
@@ -4914,16 +3945,20 @@ interface MathPropertiesOptions {
4914
3945
  declare const createMathProperties: (options: MathPropertiesOptions) => XmlComponent;
4915
3946
  //#endregion
4916
3947
  //#region src/file/paragraph/paragraph.d.ts
4917
- type ParagraphChild = TextRun | ImageRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math | SimpleField | SimpleMailMergeField | Comments | Comment | CommentRangeStart | CommentRangeEnd | CommentReference | CheckBox | StructuredDocumentTagRun;
3948
+ type ParagraphChild = TextRun | ImageRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math | SimpleField | SimpleMailMergeField | ChartRun | SmartArtRun | Comments | Comment | CommentRangeStart | CommentRangeEnd | CommentReference | CheckBox | StructuredDocumentTagRun | MoveFromRangeStart | MoveFromRangeEnd | MoveToRangeStart | MoveToRangeEnd | MovedFromTextRun | MovedToTextRun | PermStart | PermEnd | Dir | Bdo | AltChunk | SubDoc;
4918
3949
  type IParagraphOptions = {
4919
3950
  readonly text?: string;
4920
3951
  readonly children?: readonly ParagraphChild[];
4921
3952
  } & IParagraphPropertiesOptions;
4922
- declare class Paragraph extends FileChild {
4923
- private readonly properties;
3953
+ declare class Paragraph extends BaseXmlComponent implements FileChild {
3954
+ readonly fileChild: symbol;
3955
+ private readonly options;
3956
+ private frontRuns;
3957
+ private sectionProperties?;
4924
3958
  constructor(options: string | IParagraphOptions);
4925
3959
  prepForXml(context: IContext): IXmlableObject | undefined;
4926
3960
  addRunToFront(run: Run): Paragraph;
3961
+ setSectionProperties(section: SectionProperties): void;
4927
3962
  }
4928
3963
  //#endregion
4929
3964
  //#region src/file/shared/space-type.d.ts
@@ -4933,7 +3968,7 @@ declare const SpaceType: {
4933
3968
  };
4934
3969
  //#endregion
4935
3970
  //#region src/file/textbox/types.d.ts
4936
- type LengthUnit = "auto" | number | Percentage | UniversalMeasure | RelativeMeasure;
3971
+ type LengthUnit = "auto" | number | values_d_exports.Percentage | values_d_exports.UniversalMeasure | values_d_exports.RelativeMeasure;
4937
3972
  //#endregion
4938
3973
  //#region src/file/textbox/shape/shape.d.ts
4939
3974
  interface VmlShapeStyle {
@@ -4963,10 +3998,12 @@ interface VmlShapeStyle {
4963
3998
  }
4964
3999
  //#endregion
4965
4000
  //#region src/file/textbox/textbox.d.ts
4966
- type ITextboxOptions = Omit<IParagraphOptions, "style"> & {
4001
+ type ITextboxOptions = Omit<IParagraphOptions, "style" | "children"> & {
4967
4002
  readonly style?: VmlShapeStyle;
4003
+ readonly children?: readonly FileChild[];
4968
4004
  };
4969
- declare class Textbox extends FileChild {
4005
+ declare class Textbox extends XmlComponent implements FileChild {
4006
+ readonly fileChild: symbol;
4970
4007
  constructor({
4971
4008
  style,
4972
4009
  children,
@@ -4974,9 +4011,6 @@ declare class Textbox extends FileChild {
4974
4011
  }: ITextboxOptions);
4975
4012
  }
4976
4013
  //#endregion
4977
- //#region src/file/chart/chart-types/create-chart-type.d.ts
4978
- type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter";
4979
- //#endregion
4980
4014
  //#region src/file/chart/chart-space.d.ts
4981
4015
  interface IChartSeriesData {
4982
4016
  readonly name: string;
@@ -4994,27 +4028,17 @@ declare class ChartSpace extends XmlComponent {
4994
4028
  constructor(options: IChartSpaceOptions);
4995
4029
  }
4996
4030
  //#endregion
4997
- //#region src/file/smartart/built-in-layouts.d.ts
4998
- declare const LAYOUTS: Record<string, string>;
4999
- declare const DEFAULT_STYLE_URI = "http://schemas.openxmlformats.org/drawingml/2006/diagramstyle/2";
5000
- declare const DEFAULT_COLOR_URI = "http://schemas.openxmlformats.org/drawingml/2006/diagramcolor/3";
5001
- //#endregion
5002
- //#region src/file/smartart/data-model/point.d.ts
5003
- declare class Point extends XmlComponent {
5004
- constructor(modelId: number, text: string, type?: string);
5005
- }
5006
- //#endregion
5007
- //#region src/file/smartart/tree-to-model.d.ts
5008
- interface ITreeNode {
5009
- readonly text: string;
5010
- readonly children?: readonly ITreeNode[];
4031
+ //#region src/file/smartart/built-in-definitions.d.ts
4032
+ declare function getLayoutXml(layoutId: string): string;
4033
+ declare function getStyleXml(styleId: string): string;
4034
+ declare function getColorXml(colorId: string): string;
4035
+ declare const DEFAULT_DRAWING_XML: string;
4036
+ declare namespace index_d_exports$3 {
4037
+ export { COLOR_CATEGORIES, DEFAULT_DRAWING_XML, ISmartArtData, ITreeNode, LAYOUT_CATEGORIES, STYLE_CATEGORIES, SmartArtCollection, createDataModel, getColorXml, getLayoutXml, getStyleXml };
5011
4038
  }
5012
- interface IFlatResult {
5013
- readonly points: XmlComponent[];
5014
- readonly connections: Connection[];
4039
+ declare namespace index_d_exports$2 {
4040
+ export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartMediaData, ChartRun, ChartSpace, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CnfStyleOptions, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, Document, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, File, FileChild, FlatTextOptions, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IAltChunkData, IAltChunkOptions, IBackgroundImageOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBibliographyOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, IChartData, IChartOptions, IChartSeriesData, IChartSpaceOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, ICnfStyleOptions, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDirOptions, IDistance, IDocGridAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathBorderBoxOptions, IMathBoxOptions, IMathEqArrOptions, IMathFractionOptions, IMathFunctionOptions, IMathGroupChrOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathMatrixOptions, IMathOptions, IMathParagraphOptions, IMathPhantOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPermStartOptions, IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, ISdtBlockOptions, ISdtCellOptions, ISdtRowOptions, ISdtRunOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISmartArtData, ISmartArtNode, ISmartArtOptions, ISpacingProperties, IStylesOptions, ISubDocData, ISubDocOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITablePropertyExOptions, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, ITreeNode, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxPropertiesOptions, MathBox, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrPropertiesOptions, MathFraction, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrPropertiesOptions, MathIntegral, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitUpper, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathParagraph, MathPhant, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubSuperScript, MathSubSuperScriptPropertiesOptions, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OverlapType, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtTextOptions, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtMediaData, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, buildDocumentAttributes, buildRunProperties, chartAttr, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, getColorXml, getLayoutXml, getStyleXml, sectionMarginDefaults, sectionPageSizeDefaults, wrapEl };
5015
4041
  }
5016
- declare const treeToModel: (nodes: readonly ITreeNode[]) => IFlatResult;
5017
- declare const createDataModel: (nodes: readonly ITreeNode[]) => DataModel;
5018
4042
  //#endregion
5019
4043
  //#region src/util/output-type.d.ts
5020
4044
  interface OutputByType {
@@ -5033,7 +4057,7 @@ declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T) =
5033
4057
  //#endregion
5034
4058
  //#region src/export/packer/next-compiler.d.ts
5035
4059
  interface IXmlifyedFile {
5036
- readonly data: string;
4060
+ readonly data: string | Uint8Array;
5037
4061
  readonly path: string;
5038
4062
  }
5039
4063
  //#endregion
@@ -5056,17 +4080,13 @@ declare class Packer {
5056
4080
  }
5057
4081
  //#endregion
5058
4082
  //#region src/util/convenience-functions.d.ts
5059
- declare const convertMillimetersToTwip: (millimeters: number) => number;
5060
- declare const convertInchesToTwip: (inches: number) => number;
5061
- type UniqueNumericIdCreator = () => number;
5062
- declare const uniqueNumericIdCreator: (initial?: number) => UniqueNumericIdCreator;
5063
- declare const abstractNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
5064
- declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
5065
- declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
5066
- declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
5067
- declare const uniqueId: () => string;
5068
- declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
5069
- declare const uniqueUuid: () => string;
4083
+ declare const abstractNumUniqueNumericIdGen: () => (() => number);
4084
+ declare const concreteNumUniqueNumericIdGen: () => (() => number);
4085
+ declare const docPropertiesUniqueNumericIdGen: () => (() => number);
4086
+ declare const bookmarkUniqueNumericIdGen: () => (() => number);
4087
+ declare namespace index_d_exports$1 {
4088
+ export { OutputByType, OutputType, UniqueNumericIdCreator, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, docPropertiesUniqueNumericIdGen, hashedId, uniqueId, uniqueNumericIdCreator, uniqueUuid };
4089
+ }
5070
4090
  //#endregion
5071
4091
  //#region src/patcher/from-docx.d.ts
5072
4092
  type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob;
@@ -5112,5 +4132,199 @@ declare const patchDetector: ({
5112
4132
  data
5113
4133
  }: PatchDetectorOptions) => Promise<readonly string[]>;
5114
4134
  //#endregion
5115
- export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartMediaData, ChartRun, ChartSpace, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CnfStyleOptions, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, Connection, ContinuationSeparator, DEFAULT_COLOR_URI, DEFAULT_STYLE_URI, DataModel, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, DropDownListOptions, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FlatTextOptions, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBibliographyOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, IChartData, IChartOptions, IChartSeriesData, IChartSpaceOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, ICnfStyleOptions, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDistance, IDocGridAttributesProperties, IDocumentAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathBorderBoxOptions, IMathBoxOptions, IMathEqArrOptions, IMathFractionOptions, IMathFunctionOptions, IMathGroupChrOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathMatrixOptions, IMathOptions, IMathParagraphOptions, IMathPhantOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, ISdtBlockOptions, ISdtRunOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISmartArtData, ISmartArtNode, ISmartArtOptions, ISpacingProperties, IStylesOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, ITreeNode, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlAttribute, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUTS, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxPropertiesOptions, MathBox, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrPropertiesOptions, MathFraction, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrPropertiesOptions, MathIntegral, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitUpper, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathParagraph, MathPhant, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubSuperScript, MathSubSuperScriptPropertiesOptions, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, Percentage, Point, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PositivePercentage, PositiveUniversalMeasure, PresetTextShapeOptions, PrettifyType, RelativeHorizontalPosition, RelativeMeasure, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtTextOptions, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtMediaData, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, ThemeColor, ThemeFont, UnderlineType, UniqueNumericIdCreator, UniversalMeasure, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, chartAttr, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, treeToModel, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, wrapEl };
4135
+ //#region src/parse/types.d.ts
4136
+ type FileChildJson = ParagraphJson | TableJson | ImageRunJson | ExternalHyperlinkJson | PageBreakJson;
4137
+ type ParagraphChildJson = TextRunJson | ImageRunJson | ExternalHyperlinkJson | PageBreakJson | TabJson | BookmarkJson;
4138
+ interface ParagraphJson {
4139
+ $type: "paragraph";
4140
+ children?: ParagraphChildJson[];
4141
+ text?: string;
4142
+ alignment?: string;
4143
+ spacing?: {
4144
+ before?: number;
4145
+ after?: number;
4146
+ line?: number;
4147
+ lineRule?: string;
4148
+ };
4149
+ indent?: {
4150
+ left?: number;
4151
+ right?: number;
4152
+ firstLine?: number;
4153
+ hanging?: number;
4154
+ };
4155
+ heading?: string;
4156
+ style?: string;
4157
+ bullet?: {
4158
+ level: number;
4159
+ };
4160
+ numbering?: {
4161
+ reference: string;
4162
+ level: number;
4163
+ instance?: number;
4164
+ };
4165
+ border?: {
4166
+ top?: Record<string, unknown>;
4167
+ bottom?: Record<string, unknown>;
4168
+ left?: Record<string, unknown>;
4169
+ right?: Record<string, unknown>;
4170
+ };
4171
+ shading?: {
4172
+ fill?: string;
4173
+ type?: string;
4174
+ };
4175
+ thematicBreak?: boolean;
4176
+ pageBreakBefore?: boolean;
4177
+ keepNext?: boolean;
4178
+ keepLines?: boolean;
4179
+ widowControl?: boolean;
4180
+ outlineLevel?: number;
4181
+ run?: Record<string, unknown>;
4182
+ [key: string]: unknown;
4183
+ }
4184
+ interface TextRunJson {
4185
+ $type: "textRun";
4186
+ text?: string;
4187
+ bold?: boolean;
4188
+ italics?: boolean;
4189
+ underline?: {
4190
+ type?: string;
4191
+ color?: string;
4192
+ };
4193
+ strike?: boolean;
4194
+ doubleStrike?: boolean;
4195
+ smallCaps?: boolean;
4196
+ allCaps?: boolean;
4197
+ subScript?: boolean;
4198
+ superScript?: boolean;
4199
+ size?: number;
4200
+ sizeComplexScript?: boolean | number;
4201
+ color?: string;
4202
+ font?: string;
4203
+ highlight?: string;
4204
+ characterSpacing?: number;
4205
+ rightToLeft?: boolean;
4206
+ shading?: {
4207
+ fill?: string;
4208
+ };
4209
+ kern?: number;
4210
+ position?: string;
4211
+ emboss?: boolean;
4212
+ imprint?: boolean;
4213
+ shadow?: boolean;
4214
+ outline?: boolean;
4215
+ vanish?: boolean;
4216
+ noProof?: boolean;
4217
+ effect?: string;
4218
+ math?: boolean;
4219
+ [key: string]: unknown;
4220
+ }
4221
+ interface ImageRunJson {
4222
+ $type: "imageRun";
4223
+ type: string;
4224
+ data: string;
4225
+ transformation?: {
4226
+ width?: number;
4227
+ height?: number;
4228
+ };
4229
+ floating?: Record<string, unknown>;
4230
+ altText?: {
4231
+ name?: string;
4232
+ description?: string;
4233
+ };
4234
+ [key: string]: unknown;
4235
+ }
4236
+ interface ExternalHyperlinkJson {
4237
+ $type: "externalHyperlink";
4238
+ link: string;
4239
+ children?: ParagraphChildJson[];
4240
+ tooltip?: string;
4241
+ [key: string]: unknown;
4242
+ }
4243
+ interface PageBreakJson {
4244
+ $type: "pageBreak";
4245
+ }
4246
+ interface TabJson {
4247
+ $type: "tab";
4248
+ }
4249
+ interface BookmarkJson {
4250
+ $type: "bookmark";
4251
+ [key: string]: unknown;
4252
+ }
4253
+ interface TableJson {
4254
+ $type: "table";
4255
+ rows: TableRowJson[];
4256
+ width?: {
4257
+ size?: number;
4258
+ type?: string;
4259
+ };
4260
+ columnWidths?: number[];
4261
+ style?: string;
4262
+ alignment?: string;
4263
+ borders?: Record<string, unknown>;
4264
+ [key: string]: unknown;
4265
+ }
4266
+ interface TableRowJson {
4267
+ cells: TableCellJson[];
4268
+ [key: string]: unknown;
4269
+ }
4270
+ interface TableCellJson {
4271
+ children: ParagraphJson[];
4272
+ width?: {
4273
+ size?: number;
4274
+ type?: string;
4275
+ };
4276
+ shading?: {
4277
+ fill?: string;
4278
+ };
4279
+ verticalAlign?: string;
4280
+ borders?: Record<string, unknown>;
4281
+ columnSpan?: number;
4282
+ rowSpan?: number;
4283
+ [key: string]: unknown;
4284
+ }
4285
+ interface SectionJson {
4286
+ properties?: Record<string, unknown>;
4287
+ children: FileChildJson[];
4288
+ headers?: {
4289
+ default?: {
4290
+ children: ParagraphJson[];
4291
+ };
4292
+ first?: {
4293
+ children: ParagraphJson[];
4294
+ };
4295
+ even?: {
4296
+ children: ParagraphJson[];
4297
+ };
4298
+ };
4299
+ footers?: {
4300
+ default?: {
4301
+ children: ParagraphJson[];
4302
+ };
4303
+ first?: {
4304
+ children: ParagraphJson[];
4305
+ };
4306
+ even?: {
4307
+ children: ParagraphJson[];
4308
+ };
4309
+ };
4310
+ }
4311
+ interface DocxDocumentJson {
4312
+ sections: SectionJson[];
4313
+ title?: string;
4314
+ subject?: string;
4315
+ creator?: string;
4316
+ keywords?: string;
4317
+ description?: string;
4318
+ lastModifiedBy?: string;
4319
+ revision?: string;
4320
+ [key: string]: unknown;
4321
+ }
4322
+ //#endregion
4323
+ //#region src/parse/document.d.ts
4324
+ declare function parseDocx(data: Uint8Array): Promise<DocxDocumentJson>;
4325
+ declare namespace index_d_exports {
4326
+ export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartMediaData, ChartRun, ChartSpace, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CnfStyleOptions, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, File as Document, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, DocxDocumentJson, Drawing, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, ExternalHyperlinkJson, File, FileChild, FileChildJson, FlatTextOptions, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IAltChunkData, IAltChunkOptions, IBackgroundImageOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBibliographyOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, IChartData, IChartOptions, IChartSeriesData, IChartSpaceOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, ICnfStyleOptions, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDirOptions, IDistance, IDocGridAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathBorderBoxOptions, IMathBoxOptions, IMathEqArrOptions, IMathFractionOptions, IMathFunctionOptions, IMathGroupChrOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathMatrixOptions, IMathOptions, IMathParagraphOptions, IMathPhantOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, IPermStartOptions, IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, ISdtBlockOptions, ISdtCellOptions, ISdtRowOptions, ISdtRunOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISmartArtData, ISmartArtNode, ISmartArtOptions, ISpacingProperties, IStylesOptions, ISubDocData, ISubDocOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITablePropertyExOptions, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, ITreeNode, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImageRunJson, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxPropertiesOptions, MathBox, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrPropertiesOptions, MathFraction, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrPropertiesOptions, MathIntegral, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitUpper, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathParagraph, MathPhant, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubSuperScript, MathSubSuperScriptPropertiesOptions, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphJson, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtTextOptions, SectionJson, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtMediaData, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableCellJson, TableJson, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, TableRowJson, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextRunJson, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, UniqueNumericIdCreator, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, buildDocumentAttributes, buildRunProperties, chartAttr, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getLayoutXml, getStyleXml, hashedId, parseDocx, patchDetector, patchDocument, sectionMarginDefaults, sectionPageSizeDefaults, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
4327
+ }
4328
+ //#endregion
4329
+ export { AbstractNumbering, AlignmentType, AltChunk, AltChunkCollection, AnnotationReference, type AttributeData, type AttributeMap, type AttributePayload, Attributes, BaseXmlComponent, Bdo, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, COLOR_CATEGORIES, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartMediaData, ChartRun, ChartSpace, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CnfStyleOptions, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DEFAULT_DRAWING_XML, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, Dir, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, type DocxDocumentJson, Drawing, DropCapType, DropDownListOptions, EMPTY_OBJECT, EditGroup, EditGroupType, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, type ExternalHyperlinkJson, FileChild, type FileChildJson, FlatTextOptions, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IAltChunkData, IAltChunkOptions, IBackgroundImageOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBibliographyOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, type IChartData, IChartOptions, type IChartSeriesData, IChartSpaceOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, ICnfStyleOptions, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, type IContext, IDirOptions, IDistance, IDocGridAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathBorderBoxOptions, IMathBoxOptions, IMathEqArrOptions, IMathFractionOptions, IMathFunctionOptions, IMathGroupChrOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathMatrixOptions, IMathOptions, IMathParagraphOptions, IMathPhantOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, IPermStartOptions, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, ISdtBlockOptions, ISdtCellOptions, ISdtRowOptions, ISdtRunOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, type ISmartArtData, ISmartArtNode, ISmartArtOptions, ISpacingProperties, IStylesOptions, ISubDocData, ISubDocOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITablePropertyExOptions, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, type ITreeNode, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, type IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, type ImageRunJson, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUT_CATEGORIES, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxPropertiesOptions, MathBox, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrPropertiesOptions, MathFraction, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrPropertiesOptions, MathIntegral, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitUpper, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathParagraph, MathPhant, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubSuperScript, MathSubSuperScriptPropertiesOptions, MathSum, MathSuperScript, Media, MonthLong, MonthShort, MoveFromRangeEnd, MoveFromRangeStart, MoveToRangeEnd, MoveToRangeStart, MovedFromTextRun, MovedToTextRun, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, type ParagraphJson, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, PermEnd, PermStart, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PresetTextShapeOptions, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, STYLE_CATEGORIES, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtTextOptions, type SectionJson, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtMediaData, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagCell, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRow, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SubDoc, SubDocCollection, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, type TableCellJson, type TableJson, TableLayoutType, TableOfContents, TableProperties, TablePropertyExceptions, TableRow, type TableRowJson, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, type TextRunJson, TextVertOverflowType, TextVerticalType, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, UnderlineType, type UniqueNumericIdCreator, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, buildDocumentAttributes, buildRunProperties, chartAttr, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createBreak, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableOverlap, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, docPropertiesUniqueNumericIdGen, getColorXml, getLayoutXml, getStyleXml, hashedId, parseDocx, patchDetector, patchDocument, sectionMarginDefaults, sectionPageSizeDefaults, uniqueId, uniqueNumericIdCreator, uniqueUuid, wrapEl };
5116
4330
  //# sourceMappingURL=index.d.mts.map