@alineco/docx 9.5.1 → 9.6.1

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.cts CHANGED
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import { default as default_2 } from 'jszip';
4
2
  import { Element as Element_2 } from 'xml-js';
5
3
  import { Stream } from 'stream';
@@ -11,18 +9,6 @@ export declare class AbstractNumbering extends XmlComponent {
11
9
 
12
10
  export declare const abstractNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
13
11
 
14
- export declare class Alignment extends XmlComponent {
15
- constructor(type: (typeof AlignmentType)[keyof typeof AlignmentType]);
16
- }
17
-
18
- export declare class AlignmentAttributes extends XmlAttributeComponent<{
19
- readonly val: (typeof AlignmentType)[keyof typeof AlignmentType];
20
- }> {
21
- protected readonly xmlKeys: {
22
- val: string;
23
- };
24
- }
25
-
26
12
  export declare const AlignmentType: {
27
13
  readonly START: "start";
28
14
  readonly CENTER: "center";
@@ -104,20 +90,12 @@ export declare class Attributes extends XmlAttributeComponent<{
104
90
  };
105
91
  }
106
92
 
107
- export declare abstract class BaseEmphasisMark extends XmlComponent {
108
- protected constructor(emphasisMarkType: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
109
- }
110
-
111
93
  export declare abstract class BaseXmlComponent {
112
94
  protected readonly rootKey: string;
113
95
  constructor(rootKey: string);
114
96
  abstract prepForXml(context: IContext): IXmlableObject | undefined;
115
97
  }
116
98
 
117
- declare class Begin extends XmlComponent {
118
- constructor(dirty?: boolean);
119
- }
120
-
121
99
  declare class Body_2 extends XmlComponent {
122
100
  private readonly sections;
123
101
  constructor();
@@ -133,10 +111,7 @@ export declare class Bookmark {
133
111
  readonly start: BookmarkStart;
134
112
  readonly children: readonly ParagraphChild[];
135
113
  readonly end: BookmarkEnd;
136
- constructor(options: {
137
- readonly id: string;
138
- readonly children: readonly ParagraphChild[];
139
- });
114
+ constructor(options: IBookmarkOptions);
140
115
  }
141
116
 
142
117
  export declare class BookmarkEnd extends XmlComponent {
@@ -153,10 +128,6 @@ export declare class Border extends IgnoreIfEmptyXmlComponent {
153
128
  constructor(options: IBordersOptions);
154
129
  }
155
130
 
156
- export declare class BorderElement extends XmlComponent {
157
- constructor(elementName: string, { color, size, space, style }: IBorderOptions);
158
- }
159
-
160
131
  export declare const BorderStyle: {
161
132
  readonly SINGLE: "single";
162
133
  readonly DASH_DOT_STROKED: "dashDotStroked";
@@ -187,10 +158,6 @@ export declare const BorderStyle: {
187
158
  readonly WAVE: "wave";
188
159
  };
189
160
 
190
- declare class Break extends XmlComponent {
191
- constructor();
192
- }
193
-
194
161
  export declare class BuilderElement<T extends AttributeData = {}> extends XmlComponent {
195
162
  constructor({ name, attributes, children, }: {
196
163
  readonly name: string;
@@ -263,22 +230,22 @@ export declare class CheckBoxUtil extends XmlComponent {
263
230
  }
264
231
 
265
232
  export declare class Column extends XmlComponent {
266
- constructor({ width, space }: IColumnAttributes);
233
+ constructor(options: IColumnAttributes);
267
234
  }
268
235
 
269
236
  export declare class ColumnBreak extends Run {
270
237
  constructor();
271
238
  }
272
239
 
273
- export declare class Columns extends XmlComponent {
274
- constructor({ space, count, separate, equalWidth, children }: IColumnsAttributes);
275
- }
276
-
277
240
  declare class Comment_2 extends XmlComponent {
278
- constructor({ id, initials, author, date, children }: ICommentOptions);
241
+ private readonly paraId?;
242
+ constructor({ id, initials, author, date, children }: ICommentOptions, paraId?: string);
243
+ prepForXml(context: IContext): IXmlableObject | undefined;
279
244
  }
280
245
  export { Comment_2 as Comment }
281
246
 
247
+ export declare const commentIdToParaId: (id: number) => string;
248
+
282
249
  export declare class CommentRangeEnd extends XmlComponent {
283
250
  constructor(id: number);
284
251
  }
@@ -293,8 +260,14 @@ export declare class CommentReference extends XmlComponent {
293
260
 
294
261
  export declare class Comments extends XmlComponent {
295
262
  private readonly relationships;
263
+ private readonly threadData?;
296
264
  constructor({ children }: ICommentsOptions);
297
265
  get Relationships(): Relationships;
266
+ get ThreadData(): readonly ICommentThreadData[] | undefined;
267
+ }
268
+
269
+ export declare class CommentsExtended extends XmlComponent {
270
+ constructor(threadData: readonly ICommentThreadData[]);
298
271
  }
299
272
 
300
273
  declare const CompoundLine: {
@@ -321,6 +294,7 @@ export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator
321
294
 
322
295
  declare class ContentTypes extends XmlComponent {
323
296
  constructor();
297
+ addCommentsExtended(): void;
324
298
  addFooter(index: number): void;
325
299
  addHeader(index: number): void;
326
300
  }
@@ -335,11 +309,19 @@ export declare const convertMillimetersToTwip: (millimeters: number) => number;
335
309
 
336
310
  export declare const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined;
337
311
 
312
+ declare type CoreGroupOptions = {
313
+ readonly children: readonly IGroupChildMediaData[];
314
+ readonly transformation: IMediaTransformation;
315
+ readonly floating?: IFloating;
316
+ readonly altText?: DocPropertiesOptions;
317
+ };
318
+
338
319
  declare type CoreImageOptions = {
339
320
  readonly transformation: IMediaTransformation;
340
321
  readonly floating?: IFloating;
341
322
  readonly altText?: DocPropertiesOptions;
342
323
  readonly outline?: OutlineOptions;
324
+ readonly solidFill?: SolidFillOptions;
343
325
  };
344
326
 
345
327
  declare type CoreMediaData = {
@@ -352,12 +334,36 @@ declare class CoreProperties extends XmlComponent {
352
334
  constructor(options: Omit<IPropertiesOptions, "sections">);
353
335
  }
354
336
 
337
+ declare type CoreShapeOptions = {
338
+ readonly transformation: IMediaTransformation;
339
+ readonly floating?: IFloating;
340
+ readonly altText?: DocPropertiesOptions;
341
+ readonly outline?: OutlineOptions;
342
+ readonly solidFill?: SolidFillOptions;
343
+ };
344
+
345
+ export declare const createAlignment: (type: (typeof AlignmentType)[keyof typeof AlignmentType]) => XmlComponent;
346
+
347
+ export declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;
348
+
349
+ export declare const createBorderElement: (elementName: string, { color, size, space, style }: IBorderOptions) => XmlComponent;
350
+
351
+ export declare const createColumns: ({ space, count, separate, equalWidth, children }: IColumnsAttributes) => XmlComponent;
352
+
355
353
  export declare const createDocumentGrid: ({ type, linePitch, charSpace }: IDocGridAttributesProperties) => XmlComponent;
356
354
 
355
+ export declare const createDotEmphasisMark: () => XmlComponent;
356
+
357
+ export declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
358
+
357
359
  export declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
358
360
 
361
+ export declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) => XmlComponent;
362
+
359
363
  export declare const createHorizontalPosition: ({ relative, align, offset }: IHorizontalPositionOptions) => XmlComponent;
360
364
 
365
+ export declare const createIndent: ({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties) => XmlComponent;
366
+
361
367
  export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
362
368
 
363
369
  export declare const createMathAccentCharacter: ({ accent }: MathAccentCharacterOptions) => XmlComponent;
@@ -380,14 +386,58 @@ export declare const createMathSuperScriptElement: ({ children }: MathSuperScrip
380
386
 
381
387
  export declare const createMathSuperScriptProperties: () => XmlComponent;
382
388
 
389
+ export declare const createOutlineLevel: (level: number) => XmlComponent;
390
+
391
+ export 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;
392
+
393
+ export declare const createPageNumberType: ({ start, formatType, separator }: IPageNumberTypeAttributes) => XmlComponent;
394
+
383
395
  export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;
384
396
 
397
+ export declare const createParagraphStyle: (styleId: string) => XmlComponent;
398
+
399
+ export declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
400
+
401
+ export declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => XmlComponent;
402
+
403
+ export declare const createShading: ({ fill, color, type }: IShadingAttributesProperties) => XmlComponent;
404
+
385
405
  export declare const createSimplePos: () => XmlComponent;
386
406
 
407
+ export declare const createSpacing: ({ after, before, line, lineRule, beforeAutoSpacing, afterAutoSpacing }: ISpacingProperties) => XmlComponent;
408
+
387
409
  export declare const createStringElement: (name: string, value: string) => XmlComponent;
388
410
 
411
+ export declare const createTableFloatProperties: ({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions) => XmlComponent;
412
+
413
+ export declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
414
+
415
+ export declare const createTableLook: ({ firstRow, lastRow, firstColumn, lastColumn, noHBand, noVBand }: ITableLookOptions) => XmlComponent;
416
+
417
+ export declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
418
+
419
+ export declare const createTableWidthElement: (name: string, { type, size }: ITableWidthProperties) => XmlComponent;
420
+
421
+ export declare const createTabStop: (tabDefinitions: readonly TabStopDefinition[]) => XmlComponent;
422
+
423
+ export declare const createTabStopItem: ({ type, position, leader }: TabStopDefinition) => XmlComponent;
424
+
425
+ export declare const createTransformation: (options: IMediaTransformation) => IMediaDataTransformation;
426
+
427
+ export declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
428
+
429
+ export declare const createVerticalAlign: (value: (typeof VerticalAlign)[keyof typeof VerticalAlign]) => XmlComponent;
430
+
389
431
  export declare const createVerticalPosition: ({ relative, align, offset }: IVerticalPositionOptions) => XmlComponent;
390
432
 
433
+ export declare const createWrapNone: () => XmlComponent;
434
+
435
+ export declare const createWrapSquare: (textWrapping: ITextWrapping, margins?: IMargins) => XmlComponent;
436
+
437
+ export declare const createWrapTight: (margins?: IMargins) => XmlComponent;
438
+
439
+ export declare const createWrapTopAndBottom: (margins?: IMargins) => XmlComponent;
440
+
391
441
  declare class CustomProperties extends XmlComponent {
392
442
  private nextId;
393
443
  private readonly properties;
@@ -429,6 +479,7 @@ declare type DocPropertiesOptions = {
429
479
  readonly name: string;
430
480
  readonly description?: string;
431
481
  readonly title?: string;
482
+ readonly id?: string;
432
483
  };
433
484
 
434
485
  export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
@@ -526,12 +577,8 @@ declare class DocumentWrapper implements IViewWrapper {
526
577
  get Relationships(): Relationships;
527
578
  }
528
579
 
529
- export declare class DotEmphasisMark extends BaseEmphasisMark {
530
- constructor();
531
- }
532
-
533
580
  export declare class Drawing extends XmlComponent {
534
- constructor(imageData: IMediaData, drawingOptions?: IDrawingOptions);
581
+ constructor(imageData: IExtendedMediaData, drawingOptions?: IDrawingOptions);
535
582
  }
536
583
 
537
584
  export declare const DropCapType: {
@@ -542,10 +589,6 @@ export declare const DropCapType: {
542
589
 
543
590
  export declare const eighthPointMeasureValue: (val: number) => number;
544
591
 
545
- export declare class EmphasisMark extends BaseEmphasisMark {
546
- constructor(emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
547
- }
548
-
549
592
  export declare const EmphasisMarkType: {
550
593
  readonly DOT: "dot";
551
594
  };
@@ -555,23 +598,44 @@ export declare const EMPTY_OBJECT: {};
555
598
  export declare class EmptyElement extends XmlComponent {
556
599
  }
557
600
 
558
- declare class End extends XmlComponent {
559
- constructor(dirty?: boolean);
601
+ export declare const encodeUtf8: (str: string) => Uint8Array;
602
+
603
+ export declare class EndnoteIdReference extends XmlComponent {
604
+ constructor(id: number);
560
605
  }
561
606
 
562
607
  export declare class EndnoteReference extends EmptyElement {
563
608
  constructor();
564
609
  }
565
610
 
566
- export declare class ExternalHyperlink extends XmlComponent {
567
- readonly options: {
568
- readonly children: readonly ParagraphChild[];
569
- readonly link: string;
611
+ export declare class EndnoteReferenceRun extends Run {
612
+ constructor(id: number);
613
+ }
614
+
615
+ export declare class EndnoteReferenceRunAttributes extends XmlAttributeComponent<{
616
+ readonly id: number;
617
+ }> {
618
+ protected readonly xmlKeys: {
619
+ id: string;
570
620
  };
571
- constructor(options: {
572
- readonly children: readonly ParagraphChild[];
573
- readonly link: string;
574
- });
621
+ }
622
+
623
+ export declare class Endnotes extends XmlComponent {
624
+ constructor();
625
+ createEndnote(id: number, paragraph: readonly Paragraph[]): void;
626
+ }
627
+
628
+ declare class EndnotesWrapper implements IViewWrapper {
629
+ private readonly endnotes;
630
+ private readonly relationships;
631
+ constructor();
632
+ get View(): Endnotes;
633
+ get Relationships(): Relationships;
634
+ }
635
+
636
+ export declare class ExternalHyperlink extends XmlComponent {
637
+ readonly options: IExternalHyperlinkOptions;
638
+ constructor(options: IExternalHyperlinkOptions);
575
639
  }
576
640
 
577
641
  declare class FieldInstruction extends XmlComponent {
@@ -589,12 +653,14 @@ declare class File_2 {
589
653
  private readonly media;
590
654
  private readonly fileRelationships;
591
655
  private readonly footnotesWrapper;
656
+ private readonly endnotesWrapper;
592
657
  private readonly settings;
593
658
  private readonly contentTypes;
594
659
  private readonly customProperties;
595
660
  private readonly appProperties;
596
661
  private readonly styles;
597
662
  private readonly comments;
663
+ private readonly commentsExtended?;
598
664
  private readonly fontWrapper;
599
665
  constructor(options: IPropertiesOptions);
600
666
  private addSection;
@@ -615,8 +681,10 @@ declare class File_2 {
615
681
  get CustomProperties(): CustomProperties;
616
682
  get AppProperties(): AppProperties;
617
683
  get FootNotes(): FootnotesWrapper;
684
+ get Endnotes(): EndnotesWrapper;
618
685
  get Settings(): Settings;
619
686
  get Comments(): Comments;
687
+ get CommentsExtended(): CommentsExtended | undefined;
620
688
  get FontTable(): FontWrapper;
621
689
  }
622
690
  export { File_2 as Document }
@@ -741,10 +809,6 @@ declare class Header_2 extends InitializableXmlComponent {
741
809
  add(item: Paragraph | Table): void;
742
810
  }
743
811
 
744
- export declare class HeaderFooterReference extends XmlComponent {
745
- constructor(type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions);
746
- }
747
-
748
812
  export declare const HeaderFooterReferenceType: {
749
813
  readonly DEFAULT: "default";
750
814
  readonly FIRST: "first";
@@ -871,6 +935,23 @@ export declare type IBaseParagraphStyleOptions = {
871
935
  readonly run?: IRunStylePropertiesOptions;
872
936
  } & IStyleOptions;
873
937
 
938
+ export declare type IBodyPropertiesOptions = {
939
+ readonly wrap?: (typeof TextWrappingType)[keyof typeof TextWrappingType];
940
+ readonly verticalAnchor?: VerticalAnchor;
941
+ readonly margins?: {
942
+ readonly top?: number;
943
+ readonly bottom?: number;
944
+ readonly left?: number;
945
+ readonly right?: number;
946
+ };
947
+ readonly noAutoFit?: boolean;
948
+ };
949
+
950
+ export declare type IBookmarkOptions = {
951
+ readonly id: string;
952
+ readonly children: readonly ParagraphChild[];
953
+ };
954
+
874
955
  export declare type IBorderOptions = {
875
956
  readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
876
957
  readonly color?: string;
@@ -886,10 +967,7 @@ export declare type IBordersOptions = {
886
967
  readonly between?: IBorderOptions;
887
968
  };
888
969
 
889
- export declare type ICellMergeAttributes = {
890
- readonly id: number;
891
- readonly author: string;
892
- readonly date: string;
970
+ export declare type ICellMergeAttributes = IChangedAttributesProperties & {
893
971
  readonly verticalMerge?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
894
972
  readonly verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
895
973
  };
@@ -916,7 +994,7 @@ export declare type ICheckboxSymbolProperties = {
916
994
  readonly font?: string;
917
995
  };
918
996
 
919
- declare type IColumnAttributes = {
997
+ export declare type IColumnAttributes = {
920
998
  readonly width: number | PositiveUniversalMeasure;
921
999
  readonly space?: number | PositiveUniversalMeasure;
922
1000
  };
@@ -935,12 +1013,20 @@ export declare type ICommentOptions = {
935
1013
  readonly initials?: string;
936
1014
  readonly author?: string;
937
1015
  readonly date?: Date;
1016
+ readonly parentId?: number;
1017
+ readonly resolved?: boolean;
938
1018
  };
939
1019
 
940
1020
  export declare type ICommentsOptions = {
941
1021
  readonly children: readonly ICommentOptions[];
942
1022
  };
943
1023
 
1024
+ export declare type ICommentThreadData = {
1025
+ readonly paraId: string;
1026
+ readonly parentParaId?: string;
1027
+ readonly done?: boolean;
1028
+ };
1029
+
944
1030
  declare type ICompatibilityOptions = {
945
1031
  readonly version?: number;
946
1032
  readonly useSingleBorderforContiguousCells?: boolean;
@@ -1044,6 +1130,9 @@ declare type IDefaultStylesOptions = {
1044
1130
  readonly footnoteReference?: IBaseCharacterStyleOptions;
1045
1131
  readonly footnoteText?: IBaseParagraphStyleOptions;
1046
1132
  readonly footnoteTextChar?: IBaseCharacterStyleOptions;
1133
+ readonly endnoteReference?: IBaseCharacterStyleOptions;
1134
+ readonly endnoteText?: IBaseParagraphStyleOptions;
1135
+ readonly endnoteTextChar?: IBaseCharacterStyleOptions;
1047
1136
  };
1048
1137
 
1049
1138
  declare type IDeletedRunOptions = IRunOptions & IChangedAttributesProperties;
@@ -1095,6 +1184,14 @@ export declare type IDrawingOptions = {
1095
1184
  readonly floating?: IFloating;
1096
1185
  readonly docProperties?: DocPropertiesOptions;
1097
1186
  readonly outline?: OutlineOptions;
1187
+ readonly solidFill?: SolidFillOptions;
1188
+ };
1189
+
1190
+ export declare type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData;
1191
+
1192
+ export declare type IExternalHyperlinkOptions = {
1193
+ readonly children: readonly ParagraphChild[];
1194
+ readonly link: string;
1098
1195
  };
1099
1196
 
1100
1197
  export declare type IFloating = {
@@ -1130,6 +1227,8 @@ export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
1130
1227
  prepForXml(context: IContext): IXmlableObject | undefined;
1131
1228
  }
1132
1229
 
1230
+ export declare type IGroupChildMediaData = (WpsMediaData | IMediaData) & WpgCommonMediaData;
1231
+
1133
1232
  export declare type IHeaderFooterGroup<T> = {
1134
1233
  readonly default?: T;
1135
1234
  readonly first?: T;
@@ -1171,6 +1270,11 @@ export declare type IIndentAttributesProperties = {
1171
1270
 
1172
1271
  declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
1173
1272
 
1273
+ export declare type IInternalHyperlinkOptions = {
1274
+ readonly children: readonly ParagraphChild[];
1275
+ readonly anchor: string;
1276
+ };
1277
+
1174
1278
  declare type ILanguageOptions = {
1175
1279
  readonly value?: string;
1176
1280
  readonly eastAsia?: string;
@@ -1290,6 +1394,16 @@ export declare type IMathSuperScriptOptions = {
1290
1394
  export declare type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
1291
1395
 
1292
1396
  export declare type IMediaDataTransformation = {
1397
+ readonly offset?: {
1398
+ readonly pixels: {
1399
+ readonly x: number;
1400
+ readonly y: number;
1401
+ };
1402
+ readonly emus?: {
1403
+ readonly x: number;
1404
+ readonly y: number;
1405
+ };
1406
+ };
1293
1407
  readonly pixels: {
1294
1408
  readonly x: number;
1295
1409
  readonly y: number;
@@ -1306,6 +1420,10 @@ export declare type IMediaDataTransformation = {
1306
1420
  };
1307
1421
 
1308
1422
  export declare type IMediaTransformation = {
1423
+ readonly offset?: {
1424
+ readonly top?: number;
1425
+ readonly left?: number;
1426
+ };
1309
1427
  readonly width: number;
1310
1428
  readonly height: number;
1311
1429
  readonly flip?: {
@@ -1327,14 +1445,14 @@ export declare class ImportedXmlComponent extends XmlComponent {
1327
1445
  push(xmlComponent: XmlComponent | string): void;
1328
1446
  }
1329
1447
 
1330
- export declare class Indent extends XmlComponent {
1331
- constructor({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties);
1332
- }
1333
-
1334
1448
  export declare abstract class InitializableXmlComponent extends XmlComponent {
1335
1449
  constructor(rootKey: string, initComponent?: InitializableXmlComponent);
1336
1450
  }
1337
1451
 
1452
+ declare type INonVisualShapePropertiesOptions = {
1453
+ readonly txBox: string;
1454
+ };
1455
+
1338
1456
  export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2;
1339
1457
 
1340
1458
  export declare class InsertedTableCell extends XmlComponent {
@@ -1350,10 +1468,7 @@ export declare class InsertedTextRun extends XmlComponent {
1350
1468
  }
1351
1469
 
1352
1470
  export declare class InternalHyperlink extends ConcreteHyperlink {
1353
- constructor(options: {
1354
- readonly children: readonly ParagraphChild[];
1355
- readonly anchor: string;
1356
- });
1471
+ constructor(options: IInternalHyperlinkOptions);
1357
1472
  }
1358
1473
 
1359
1474
  export declare type INumberedItemReferenceOptions = {
@@ -1486,6 +1601,9 @@ export declare type IPropertiesOptions = {
1486
1601
  readonly footnotes?: Readonly<Record<string, {
1487
1602
  readonly children: readonly Paragraph[];
1488
1603
  }>>;
1604
+ readonly endnotes?: Readonly<Record<string, {
1605
+ readonly children: readonly Paragraph[];
1606
+ }>>;
1489
1607
  readonly background?: IDocumentBackgroundOptions;
1490
1608
  readonly features?: {
1491
1609
  readonly trackRevisions?: boolean;
@@ -1503,7 +1621,7 @@ export declare type IPropertiesOptions = {
1503
1621
  export declare type IRunOptions = IRunOptionsBase & IRunPropertiesOptions;
1504
1622
 
1505
1623
  declare type IRunOptionsBase = {
1506
- readonly children?: readonly (Begin | FieldInstruction | Separate | End | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | Break | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | PositionalTab | string)[];
1624
+ readonly children?: readonly (FieldInstruction | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | XmlComponent | string)[];
1507
1625
  readonly break?: number;
1508
1626
  readonly text?: string;
1509
1627
  };
@@ -1728,6 +1846,15 @@ declare type ITableGridChangeOptions = {
1728
1846
  readonly columnWidths: readonly number[] | readonly PositiveUniversalMeasure[];
1729
1847
  };
1730
1848
 
1849
+ export declare type ITableLookOptions = {
1850
+ readonly firstRow?: boolean;
1851
+ readonly lastRow?: boolean;
1852
+ readonly firstColumn?: boolean;
1853
+ readonly lastColumn?: boolean;
1854
+ readonly noHBand?: boolean;
1855
+ readonly noVBand?: boolean;
1856
+ };
1857
+
1731
1858
  export declare type ITableOfContentsOptions = {
1732
1859
  readonly captionLabel?: string;
1733
1860
  readonly entriesFromBookmark?: string;
@@ -1760,6 +1887,7 @@ export declare type ITableOptions = {
1760
1887
  readonly borders?: ITableBordersOptions;
1761
1888
  readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1762
1889
  readonly visuallyRightToLeft?: boolean;
1890
+ readonly tableLook?: ITableLookOptions;
1763
1891
  readonly cellSpacing?: ITableCellSpacingProperties;
1764
1892
  readonly revision?: ITablePropertiesChangeOptions;
1765
1893
  };
@@ -1782,6 +1910,7 @@ export declare type ITablePropertiesOptionsBase = {
1782
1910
  readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1783
1911
  readonly cellMargin?: ITableCellMarginOptions;
1784
1912
  readonly visuallyRightToLeft?: boolean;
1913
+ readonly tableLook?: ITableLookOptions;
1785
1914
  readonly cellSpacing?: ITableCellSpacingProperties;
1786
1915
  };
1787
1916
 
@@ -1830,10 +1959,18 @@ export declare type IVerticalPositionOptions = {
1830
1959
  };
1831
1960
 
1832
1961
  declare type IViewWrapper = {
1833
- readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | XmlComponent;
1962
+ readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | Endnotes | XmlComponent;
1834
1963
  readonly Relationships: Relationships;
1835
1964
  };
1836
1965
 
1966
+ export declare type IWpgGroupOptions = {
1967
+ readonly type: "wpg";
1968
+ } & CoreGroupOptions;
1969
+
1970
+ export declare type IWpsShapeOptions = WpsShapeCoreOptions & {
1971
+ readonly type: "wps";
1972
+ } & CoreShapeOptions;
1973
+
1837
1974
  export declare interface IXmlableObject extends Record<string, unknown> {
1838
1975
  readonly [key: string]: any;
1839
1976
  }
@@ -2249,11 +2386,6 @@ declare type OutlineAttributes = {
2249
2386
 
2250
2387
  declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
2251
2388
 
2252
- export declare class OutlineLevel extends XmlComponent {
2253
- readonly level: number;
2254
- constructor(level: number);
2255
- }
2256
-
2257
2389
  declare type OutlineNoFill = {
2258
2390
  readonly type: "noFill";
2259
2391
  };
@@ -2332,10 +2464,6 @@ export declare class PageBreakBefore extends XmlComponent {
2332
2464
  constructor();
2333
2465
  }
2334
2466
 
2335
- export declare class PageMargin extends XmlComponent {
2336
- constructor(top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure);
2337
- }
2338
-
2339
2467
  export declare const PageNumber: {
2340
2468
  readonly CURRENT: "CURRENT";
2341
2469
  readonly TOTAL_PAGES: "TOTAL_PAGES";
@@ -2355,18 +2483,6 @@ export declare const PageNumberSeparator: {
2355
2483
  readonly EN_DASH: "endash";
2356
2484
  };
2357
2485
 
2358
- export declare class PageNumberType extends XmlComponent {
2359
- constructor({ start, formatType, separator }: IPageNumberTypeAttributes);
2360
- }
2361
-
2362
- export declare class PageNumberTypeAttributes extends XmlAttributeComponent<IPageNumberTypeAttributes> {
2363
- protected readonly xmlKeys: {
2364
- start: string;
2365
- formatType: string;
2366
- separator: string;
2367
- };
2368
- }
2369
-
2370
2486
  export declare const PageOrientation: {
2371
2487
  readonly PORTRAIT: "portrait";
2372
2488
  readonly LANDSCAPE: "landscape";
@@ -2424,7 +2540,7 @@ declare type PatchDetectorOptions = {
2424
2540
  readonly data: InputDataType;
2425
2541
  };
2426
2542
 
2427
- export declare const patchDocument: <T extends keyof OutputByType = keyof OutputByType>({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
2543
+ export declare const patchDocument: <T extends PatchDocumentOutputType = PatchDocumentOutputType>({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
2428
2544
 
2429
2545
  export declare type PatchDocumentOptions<T extends PatchDocumentOutputType = PatchDocumentOutputType> = {
2430
2546
  readonly outputType: T;
@@ -2507,17 +2623,13 @@ declare type RegularMediaData = {
2507
2623
  readonly type: "jpg" | "png" | "gif" | "bmp";
2508
2624
  };
2509
2625
 
2510
- declare class Relationship extends XmlComponent {
2511
- constructor(id: string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]);
2512
- }
2513
-
2514
2626
  declare class Relationships extends XmlComponent {
2515
2627
  constructor();
2516
- createRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): Relationship;
2628
+ addRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): void;
2517
2629
  get RelationshipCount(): number;
2518
2630
  }
2519
2631
 
2520
- declare 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/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
2632
+ declare 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.microsoft.com/office/2011/relationships/commentsExtended" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
2521
2633
 
2522
2634
  export declare const RelativeHorizontalPosition: {
2523
2635
  readonly CENTER: "center";
@@ -2538,16 +2650,16 @@ export declare const RelativeVerticalPosition: {
2538
2650
  readonly TOP: "top";
2539
2651
  };
2540
2652
 
2653
+ declare type RgbColorOptions = {
2654
+ readonly type: "rgb";
2655
+ readonly value: string;
2656
+ };
2657
+
2541
2658
  export declare class Run extends XmlComponent {
2542
2659
  protected readonly properties: RunProperties;
2543
2660
  constructor(options: IRunOptions);
2544
2661
  }
2545
2662
 
2546
- export declare class RunFonts extends XmlComponent {
2547
- constructor(name: string, hint?: string);
2548
- constructor(attrs: string | IFontAttributesProperties);
2549
- }
2550
-
2551
2663
  export declare class RunProperties extends IgnoreIfEmptyXmlComponent {
2552
2664
  constructor(options?: IRunPropertiesOptions);
2553
2665
  push(item: XmlComponent): void;
@@ -2581,6 +2693,11 @@ declare const SchemeColor: {
2581
2693
  readonly PHCLR: "phClr";
2582
2694
  };
2583
2695
 
2696
+ declare type SchemeColorOptions = {
2697
+ readonly type: "scheme";
2698
+ readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
2699
+ };
2700
+
2584
2701
  export declare const sectionMarginDefaults: {
2585
2702
  TOP: number;
2586
2703
  RIGHT: number;
@@ -2614,20 +2731,8 @@ export declare const SectionType: {
2614
2731
  readonly ODD_PAGE: "oddPage";
2615
2732
  };
2616
2733
 
2617
- export declare class SectionTypeAttributes extends XmlAttributeComponent<{
2618
- readonly val: (typeof SectionType)[keyof typeof SectionType];
2619
- }> {
2620
- protected readonly xmlKeys: {
2621
- val: string;
2622
- };
2623
- }
2624
-
2625
2734
  export declare type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
2626
2735
 
2627
- declare class Separate extends XmlComponent {
2628
- constructor(dirty?: boolean);
2629
- }
2630
-
2631
2736
  export declare class Separator extends EmptyElement {
2632
2737
  constructor();
2633
2738
  }
@@ -2640,10 +2745,6 @@ declare class Settings extends XmlComponent {
2640
2745
  constructor(options: ISettingsOptions);
2641
2746
  }
2642
2747
 
2643
- export declare class Shading extends XmlComponent {
2644
- constructor({ fill, color, type }: IShadingAttributesProperties);
2645
- }
2646
-
2647
2748
  export declare const ShadingType: {
2648
2749
  readonly CLEAR: "clear";
2649
2750
  readonly DIAGONAL_CROSS: "diagCross";
@@ -2702,14 +2803,14 @@ export declare class SoftHyphen extends EmptyElement {
2702
2803
  constructor();
2703
2804
  }
2704
2805
 
2806
+ declare type SolidFillOptions = RgbColorOptions | SchemeColorOptions;
2807
+
2705
2808
  export declare const SpaceType: {
2706
2809
  readonly DEFAULT: "default";
2707
2810
  readonly PRESERVE: "preserve";
2708
2811
  };
2709
2812
 
2710
- export declare class Spacing extends XmlComponent {
2711
- constructor(options: ISpacingProperties);
2712
- }
2813
+ export declare const standardizeData: (data: string | Buffer | Uint8Array | ArrayBuffer) => Buffer | Uint8Array | ArrayBuffer;
2713
2814
 
2714
2815
  export declare class StringContainer extends XmlComponent {
2715
2816
  constructor(name: string, val: string);
@@ -2723,20 +2824,16 @@ export declare class StringValueElement extends XmlComponent {
2723
2824
  constructor(name: string, val: string);
2724
2825
  }
2725
2826
 
2726
- export declare class Style extends XmlComponent {
2727
- constructor(styleId: string);
2728
- }
2729
-
2730
- declare class Style_2 extends XmlComponent {
2827
+ declare class Style extends XmlComponent {
2731
2828
  constructor(attributes: IStyleAttributes, options: IStyleOptions);
2732
2829
  }
2733
2830
 
2734
- export declare class StyleForCharacter extends Style_2 {
2831
+ export declare class StyleForCharacter extends Style {
2735
2832
  private readonly runProperties;
2736
2833
  constructor(options: ICharacterStyleOptions);
2737
2834
  }
2738
2835
 
2739
- export declare class StyleForParagraph extends Style_2 {
2836
+ export declare class StyleForParagraph extends Style {
2740
2837
  private readonly paragraphProperties;
2741
2838
  private readonly runProperties;
2742
2839
  constructor(options: IParagraphStyleOptions);
@@ -2771,20 +2868,8 @@ export declare class Tab extends EmptyElement {
2771
2868
  constructor();
2772
2869
  }
2773
2870
 
2774
- export declare class TabAttributes extends XmlAttributeComponent<{
2775
- readonly val: (typeof TabStopType)[keyof typeof TabStopType];
2776
- readonly pos: string | number;
2777
- readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
2778
- }> {
2779
- protected readonly xmlKeys: {
2780
- val: string;
2781
- pos: string;
2782
- leader: string;
2783
- };
2784
- }
2785
-
2786
2871
  export declare class Table extends FileChild {
2787
- constructor({ rows, width, columnWidths, columnWidthsRevision, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, cellSpacing, revision, }: ITableOptions);
2872
+ constructor({ rows, width, columnWidths, columnWidthsRevision, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, tableLook, cellSpacing, revision, }: ITableOptions);
2788
2873
  }
2789
2874
 
2790
2875
  export declare const TableAnchorType: {
@@ -2794,38 +2879,7 @@ export declare const TableAnchorType: {
2794
2879
  };
2795
2880
 
2796
2881
  export declare class TableBorders extends XmlComponent {
2797
- static readonly NONE: {
2798
- top: {
2799
- style: "none";
2800
- size: number;
2801
- color: string;
2802
- };
2803
- bottom: {
2804
- style: "none";
2805
- size: number;
2806
- color: string;
2807
- };
2808
- left: {
2809
- style: "none";
2810
- size: number;
2811
- color: string;
2812
- };
2813
- right: {
2814
- style: "none";
2815
- size: number;
2816
- color: string;
2817
- };
2818
- insideHorizontal: {
2819
- style: "none";
2820
- size: number;
2821
- color: string;
2822
- };
2823
- insideVertical: {
2824
- style: "none";
2825
- size: number;
2826
- color: string;
2827
- };
2828
- };
2882
+ static readonly NONE: ITableBordersOptions;
2829
2883
  constructor(options: ITableBordersOptions);
2830
2884
  }
2831
2885
 
@@ -2839,24 +2893,20 @@ export declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
2839
2893
  constructor(options: ITableCellBorders);
2840
2894
  }
2841
2895
 
2842
- export declare class TableFloatProperties extends XmlComponent {
2843
- constructor({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions);
2844
- }
2845
-
2846
- export declare class TableLayout extends XmlComponent {
2847
- constructor(type: (typeof TableLayoutType)[keyof typeof TableLayoutType]);
2848
- }
2849
-
2850
2896
  export declare const TableLayoutType: {
2851
2897
  readonly AUTOFIT: "autofit";
2852
2898
  readonly FIXED: "fixed";
2853
2899
  };
2854
2900
 
2855
2901
  export declare class TableOfContents extends FileChild {
2856
- constructor(alias?: string, { contentChildren, beginDirty, ...properties }?: ITableOfContentsOptions & {
2902
+ constructor(alias?: string, { contentChildren, cachedEntries, beginDirty, ...properties }?: ITableOfContentsOptions & {
2857
2903
  readonly contentChildren?: readonly (XmlComponent | string)[];
2904
+ readonly cachedEntries?: readonly ToCEntry[];
2858
2905
  readonly beginDirty?: boolean;
2859
2906
  });
2907
+ private getTabStopsForLevel;
2908
+ private buildCachedContentRun;
2909
+ private buildCachedContentParagraphChild;
2860
2910
  }
2861
2911
 
2862
2912
  export declare class TableProperties extends IgnoreIfEmptyXmlComponent {
@@ -2874,20 +2924,6 @@ export declare class TableRow extends XmlComponent {
2874
2924
  columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
2875
2925
  }
2876
2926
 
2877
- export declare class TableRowHeight extends XmlComponent {
2878
- constructor(value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]);
2879
- }
2880
-
2881
- export declare class TableRowHeightAttributes extends XmlAttributeComponent<{
2882
- readonly value: number | string;
2883
- readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
2884
- }> {
2885
- protected readonly xmlKeys: {
2886
- value: string;
2887
- rule: string;
2888
- };
2889
- }
2890
-
2891
2927
  export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
2892
2928
  constructor(options: ITableRowPropertiesOptions);
2893
2929
  }
@@ -2898,24 +2934,12 @@ export declare class TableRowPropertiesChange extends XmlComponent {
2898
2934
 
2899
2935
  export declare type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
2900
2936
 
2901
- export declare class TableWidthElement extends XmlComponent {
2902
- constructor(name: string, { type, size }: ITableWidthProperties);
2903
- }
2904
-
2905
- export declare class TabStop extends XmlComponent {
2906
- constructor(tabDefinitions: readonly TabStopDefinition[]);
2907
- }
2908
-
2909
2937
  export declare type TabStopDefinition = {
2910
2938
  readonly type: (typeof TabStopType)[keyof typeof TabStopType];
2911
2939
  readonly position: number | (typeof TabStopPosition)[keyof typeof TabStopPosition];
2912
2940
  readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
2913
2941
  };
2914
2942
 
2915
- export declare class TabStopItem extends XmlComponent {
2916
- constructor({ type, position, leader }: TabStopDefinition);
2917
- }
2918
-
2919
2943
  export declare const TabStopPosition: {
2920
2944
  readonly MAX: 9026;
2921
2945
  };
@@ -2982,18 +3006,17 @@ export declare class ThematicBreak extends XmlComponent {
2982
3006
  constructor();
2983
3007
  }
2984
3008
 
2985
- export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
3009
+ declare type ToCEntry = {
3010
+ readonly title: string;
3011
+ readonly level: number;
3012
+ readonly page?: number;
3013
+ readonly href?: string;
3014
+ };
2986
3015
 
2987
- export declare class Type extends XmlComponent {
2988
- constructor(value: (typeof SectionType)[keyof typeof SectionType]);
2989
- }
3016
+ export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
2990
3017
 
2991
3018
  export declare const uCharHexNumber: (val: string) => string;
2992
3019
 
2993
- export declare class Underline extends XmlComponent {
2994
- constructor(underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string);
2995
- }
2996
-
2997
3020
  export declare const UnderlineType: {
2998
3021
  readonly SINGLE: "single";
2999
3022
  readonly WORDS: "words";
@@ -3036,18 +3059,6 @@ export declare const VerticalAlign: {
3036
3059
  readonly BOTTOM: "bottom";
3037
3060
  };
3038
3061
 
3039
- export declare class VerticalAlignAttributes extends XmlAttributeComponent<{
3040
- readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
3041
- }> {
3042
- protected readonly xmlKeys: {
3043
- verticalAlign: string;
3044
- };
3045
- }
3046
-
3047
- export declare class VerticalAlignElement extends XmlComponent {
3048
- constructor(value: (typeof VerticalAlign)[keyof typeof VerticalAlign]);
3049
- }
3050
-
3051
3062
  export declare const VerticalAlignSection: {
3052
3063
  readonly BOTH: "both";
3053
3064
  readonly TOP: "top";
@@ -3061,6 +3072,12 @@ export declare const VerticalAlignTable: {
3061
3072
  readonly BOTTOM: "bottom";
3062
3073
  };
3063
3074
 
3075
+ export declare enum VerticalAnchor {
3076
+ CENTER = "ctr",
3077
+ TOP = "t",
3078
+ BOTTOM = "b"
3079
+ }
3080
+
3064
3081
  export declare class VerticalMerge extends XmlComponent {
3065
3082
  constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
3066
3083
  }
@@ -3133,20 +3150,39 @@ export declare const WORKAROUND3 = "";
3133
3150
 
3134
3151
  export declare const WORKAROUND4 = "";
3135
3152
 
3136
- export declare class WrapNone extends XmlComponent {
3137
- constructor();
3138
- }
3153
+ export declare type WpgCommonMediaData = {
3154
+ readonly outline?: OutlineOptions;
3155
+ readonly solidFill?: SolidFillOptions;
3156
+ };
3139
3157
 
3140
- export declare class WrapSquare extends XmlComponent {
3141
- constructor(textWrapping: ITextWrapping, margins?: IMargins);
3158
+ export declare class WpgGroupRun extends Run {
3159
+ private readonly wpgGroupData;
3160
+ private readonly mediaDatas;
3161
+ constructor(options: IWpgGroupOptions);
3162
+ prepForXml(context: IContext): IXmlableObject | undefined;
3142
3163
  }
3143
3164
 
3144
- export declare class WrapTight extends XmlComponent {
3145
- constructor(margins?: IMargins);
3146
- }
3165
+ export declare type WpgMediaData = {
3166
+ readonly type: "wpg";
3167
+ readonly transformation: IMediaDataTransformation;
3168
+ readonly children: readonly IGroupChildMediaData[];
3169
+ };
3170
+
3171
+ export declare type WpsMediaData = {
3172
+ readonly type: "wps";
3173
+ readonly transformation: IMediaDataTransformation;
3174
+ readonly data: WpsShapeCoreOptions;
3175
+ };
3176
+
3177
+ declare type WpsShapeCoreOptions = {
3178
+ readonly children: readonly Paragraph[];
3179
+ readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
3180
+ readonly bodyProperties?: IBodyPropertiesOptions;
3181
+ };
3147
3182
 
3148
- export declare class WrapTopAndBottom extends XmlComponent {
3149
- constructor(margins?: IMargins);
3183
+ export declare class WpsShapeRun extends Run {
3184
+ private readonly wpsShapeData;
3185
+ constructor(options: IWpsShapeOptions);
3150
3186
  }
3151
3187
 
3152
3188
  export declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {