@alineco/docx 9.5.1 → 9.6.1-fork.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.ts 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,24 @@ 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 commentIdToDurableId: (id: number) => string;
248
+
249
+ export declare const commentIdToParaId: (id: number) => string;
250
+
282
251
  export declare class CommentRangeEnd extends XmlComponent {
283
252
  constructor(id: number);
284
253
  }
@@ -293,8 +262,26 @@ export declare class CommentReference extends XmlComponent {
293
262
 
294
263
  export declare class Comments extends XmlComponent {
295
264
  private readonly relationships;
265
+ private readonly threadData?;
266
+ private readonly commentIdData?;
267
+ private readonly commentExtensibleData?;
296
268
  constructor({ children }: ICommentsOptions);
297
269
  get Relationships(): Relationships;
270
+ get ThreadData(): readonly ICommentThreadData[] | undefined;
271
+ get CommentIdData(): readonly ICommentIdData[] | undefined;
272
+ get CommentExtensibleData(): readonly ICommentExtensibleData[] | undefined;
273
+ }
274
+
275
+ export declare class CommentsExtended extends XmlComponent {
276
+ constructor(threadData: readonly ICommentThreadData[]);
277
+ }
278
+
279
+ export declare class CommentsExtensible extends XmlComponent {
280
+ constructor(commentExtensibleData: readonly ICommentExtensibleData[]);
281
+ }
282
+
283
+ export declare class CommentsIds extends XmlComponent {
284
+ constructor(commentIdData: readonly ICommentIdData[]);
298
285
  }
299
286
 
300
287
  declare const CompoundLine: {
@@ -321,6 +308,9 @@ export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator
321
308
 
322
309
  declare class ContentTypes extends XmlComponent {
323
310
  constructor();
311
+ addCommentsExtended(): void;
312
+ addCommentsIds(): void;
313
+ addCommentsExtensible(): void;
324
314
  addFooter(index: number): void;
325
315
  addHeader(index: number): void;
326
316
  }
@@ -335,11 +325,19 @@ export declare const convertMillimetersToTwip: (millimeters: number) => number;
335
325
 
336
326
  export declare const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined;
337
327
 
328
+ declare type CoreGroupOptions = {
329
+ readonly children: readonly IGroupChildMediaData[];
330
+ readonly transformation: IMediaTransformation;
331
+ readonly floating?: IFloating;
332
+ readonly altText?: DocPropertiesOptions;
333
+ };
334
+
338
335
  declare type CoreImageOptions = {
339
336
  readonly transformation: IMediaTransformation;
340
337
  readonly floating?: IFloating;
341
338
  readonly altText?: DocPropertiesOptions;
342
339
  readonly outline?: OutlineOptions;
340
+ readonly solidFill?: SolidFillOptions;
343
341
  };
344
342
 
345
343
  declare type CoreMediaData = {
@@ -352,12 +350,36 @@ declare class CoreProperties extends XmlComponent {
352
350
  constructor(options: Omit<IPropertiesOptions, "sections">);
353
351
  }
354
352
 
353
+ declare type CoreShapeOptions = {
354
+ readonly transformation: IMediaTransformation;
355
+ readonly floating?: IFloating;
356
+ readonly altText?: DocPropertiesOptions;
357
+ readonly outline?: OutlineOptions;
358
+ readonly solidFill?: SolidFillOptions;
359
+ };
360
+
361
+ export declare const createAlignment: (type: (typeof AlignmentType)[keyof typeof AlignmentType]) => XmlComponent;
362
+
363
+ export declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;
364
+
365
+ export declare const createBorderElement: (elementName: string, { color, size, space, style }: IBorderOptions) => XmlComponent;
366
+
367
+ export declare const createColumns: ({ space, count, separate, equalWidth, children }: IColumnsAttributes) => XmlComponent;
368
+
355
369
  export declare const createDocumentGrid: ({ type, linePitch, charSpace }: IDocGridAttributesProperties) => XmlComponent;
356
370
 
371
+ export declare const createDotEmphasisMark: () => XmlComponent;
372
+
373
+ export declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
374
+
357
375
  export declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
358
376
 
377
+ export declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) => XmlComponent;
378
+
359
379
  export declare const createHorizontalPosition: ({ relative, align, offset }: IHorizontalPositionOptions) => XmlComponent;
360
380
 
381
+ export declare const createIndent: ({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties) => XmlComponent;
382
+
361
383
  export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
362
384
 
363
385
  export declare const createMathAccentCharacter: ({ accent }: MathAccentCharacterOptions) => XmlComponent;
@@ -380,14 +402,58 @@ export declare const createMathSuperScriptElement: ({ children }: MathSuperScrip
380
402
 
381
403
  export declare const createMathSuperScriptProperties: () => XmlComponent;
382
404
 
405
+ export declare const createOutlineLevel: (level: number) => XmlComponent;
406
+
407
+ 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;
408
+
409
+ export declare const createPageNumberType: ({ start, formatType, separator }: IPageNumberTypeAttributes) => XmlComponent;
410
+
383
411
  export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;
384
412
 
413
+ export declare const createParagraphStyle: (styleId: string) => XmlComponent;
414
+
415
+ export declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
416
+
417
+ export declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => XmlComponent;
418
+
419
+ export declare const createShading: ({ fill, color, type }: IShadingAttributesProperties) => XmlComponent;
420
+
385
421
  export declare const createSimplePos: () => XmlComponent;
386
422
 
423
+ export declare const createSpacing: ({ after, before, line, lineRule, beforeAutoSpacing, afterAutoSpacing }: ISpacingProperties) => XmlComponent;
424
+
387
425
  export declare const createStringElement: (name: string, value: string) => XmlComponent;
388
426
 
427
+ export declare const createTableFloatProperties: ({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions) => XmlComponent;
428
+
429
+ export declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
430
+
431
+ export declare const createTableLook: ({ firstRow, lastRow, firstColumn, lastColumn, noHBand, noVBand }: ITableLookOptions) => XmlComponent;
432
+
433
+ export declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
434
+
435
+ export declare const createTableWidthElement: (name: string, { type, size }: ITableWidthProperties) => XmlComponent;
436
+
437
+ export declare const createTabStop: (tabDefinitions: readonly TabStopDefinition[]) => XmlComponent;
438
+
439
+ export declare const createTabStopItem: ({ type, position, leader }: TabStopDefinition) => XmlComponent;
440
+
441
+ export declare const createTransformation: (options: IMediaTransformation) => IMediaDataTransformation;
442
+
443
+ export declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
444
+
445
+ export declare const createVerticalAlign: (value: (typeof VerticalAlign)[keyof typeof VerticalAlign]) => XmlComponent;
446
+
389
447
  export declare const createVerticalPosition: ({ relative, align, offset }: IVerticalPositionOptions) => XmlComponent;
390
448
 
449
+ export declare const createWrapNone: () => XmlComponent;
450
+
451
+ export declare const createWrapSquare: (textWrapping: ITextWrapping, margins?: IMargins) => XmlComponent;
452
+
453
+ export declare const createWrapTight: (margins?: IMargins) => XmlComponent;
454
+
455
+ export declare const createWrapTopAndBottom: (margins?: IMargins) => XmlComponent;
456
+
391
457
  declare class CustomProperties extends XmlComponent {
392
458
  private nextId;
393
459
  private readonly properties;
@@ -429,6 +495,7 @@ declare type DocPropertiesOptions = {
429
495
  readonly name: string;
430
496
  readonly description?: string;
431
497
  readonly title?: string;
498
+ readonly id?: string;
432
499
  };
433
500
 
434
501
  export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
@@ -526,12 +593,8 @@ declare class DocumentWrapper implements IViewWrapper {
526
593
  get Relationships(): Relationships;
527
594
  }
528
595
 
529
- export declare class DotEmphasisMark extends BaseEmphasisMark {
530
- constructor();
531
- }
532
-
533
596
  export declare class Drawing extends XmlComponent {
534
- constructor(imageData: IMediaData, drawingOptions?: IDrawingOptions);
597
+ constructor(imageData: IExtendedMediaData, drawingOptions?: IDrawingOptions);
535
598
  }
536
599
 
537
600
  export declare const DropCapType: {
@@ -542,10 +605,6 @@ export declare const DropCapType: {
542
605
 
543
606
  export declare const eighthPointMeasureValue: (val: number) => number;
544
607
 
545
- export declare class EmphasisMark extends BaseEmphasisMark {
546
- constructor(emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
547
- }
548
-
549
608
  export declare const EmphasisMarkType: {
550
609
  readonly DOT: "dot";
551
610
  };
@@ -555,23 +614,44 @@ export declare const EMPTY_OBJECT: {};
555
614
  export declare class EmptyElement extends XmlComponent {
556
615
  }
557
616
 
558
- declare class End extends XmlComponent {
559
- constructor(dirty?: boolean);
617
+ export declare const encodeUtf8: (str: string) => Uint8Array;
618
+
619
+ export declare class EndnoteIdReference extends XmlComponent {
620
+ constructor(id: number);
560
621
  }
561
622
 
562
623
  export declare class EndnoteReference extends EmptyElement {
563
624
  constructor();
564
625
  }
565
626
 
566
- export declare class ExternalHyperlink extends XmlComponent {
567
- readonly options: {
568
- readonly children: readonly ParagraphChild[];
569
- readonly link: string;
627
+ export declare class EndnoteReferenceRun extends Run {
628
+ constructor(id: number);
629
+ }
630
+
631
+ export declare class EndnoteReferenceRunAttributes extends XmlAttributeComponent<{
632
+ readonly id: number;
633
+ }> {
634
+ protected readonly xmlKeys: {
635
+ id: string;
570
636
  };
571
- constructor(options: {
572
- readonly children: readonly ParagraphChild[];
573
- readonly link: string;
574
- });
637
+ }
638
+
639
+ export declare class Endnotes extends XmlComponent {
640
+ constructor();
641
+ createEndnote(id: number, paragraph: readonly Paragraph[]): void;
642
+ }
643
+
644
+ declare class EndnotesWrapper implements IViewWrapper {
645
+ private readonly endnotes;
646
+ private readonly relationships;
647
+ constructor();
648
+ get View(): Endnotes;
649
+ get Relationships(): Relationships;
650
+ }
651
+
652
+ export declare class ExternalHyperlink extends XmlComponent {
653
+ readonly options: IExternalHyperlinkOptions;
654
+ constructor(options: IExternalHyperlinkOptions);
575
655
  }
576
656
 
577
657
  declare class FieldInstruction extends XmlComponent {
@@ -589,12 +669,16 @@ declare class File_2 {
589
669
  private readonly media;
590
670
  private readonly fileRelationships;
591
671
  private readonly footnotesWrapper;
672
+ private readonly endnotesWrapper;
592
673
  private readonly settings;
593
674
  private readonly contentTypes;
594
675
  private readonly customProperties;
595
676
  private readonly appProperties;
596
677
  private readonly styles;
597
678
  private readonly comments;
679
+ private readonly commentsExtended?;
680
+ private readonly commentsIds?;
681
+ private readonly commentsExtensible?;
598
682
  private readonly fontWrapper;
599
683
  constructor(options: IPropertiesOptions);
600
684
  private addSection;
@@ -615,8 +699,12 @@ declare class File_2 {
615
699
  get CustomProperties(): CustomProperties;
616
700
  get AppProperties(): AppProperties;
617
701
  get FootNotes(): FootnotesWrapper;
702
+ get Endnotes(): EndnotesWrapper;
618
703
  get Settings(): Settings;
619
704
  get Comments(): Comments;
705
+ get CommentsExtended(): CommentsExtended | undefined;
706
+ get CommentsIds(): CommentsIds | undefined;
707
+ get CommentsExtensible(): CommentsExtensible | undefined;
620
708
  get FontTable(): FontWrapper;
621
709
  }
622
710
  export { File_2 as Document }
@@ -741,10 +829,6 @@ declare class Header_2 extends InitializableXmlComponent {
741
829
  add(item: Paragraph | Table): void;
742
830
  }
743
831
 
744
- export declare class HeaderFooterReference extends XmlComponent {
745
- constructor(type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions);
746
- }
747
-
748
832
  export declare const HeaderFooterReferenceType: {
749
833
  readonly DEFAULT: "default";
750
834
  readonly FIRST: "first";
@@ -871,6 +955,23 @@ export declare type IBaseParagraphStyleOptions = {
871
955
  readonly run?: IRunStylePropertiesOptions;
872
956
  } & IStyleOptions;
873
957
 
958
+ export declare type IBodyPropertiesOptions = {
959
+ readonly wrap?: (typeof TextWrappingType)[keyof typeof TextWrappingType];
960
+ readonly verticalAnchor?: VerticalAnchor;
961
+ readonly margins?: {
962
+ readonly top?: number;
963
+ readonly bottom?: number;
964
+ readonly left?: number;
965
+ readonly right?: number;
966
+ };
967
+ readonly noAutoFit?: boolean;
968
+ };
969
+
970
+ export declare type IBookmarkOptions = {
971
+ readonly id: string;
972
+ readonly children: readonly ParagraphChild[];
973
+ };
974
+
874
975
  export declare type IBorderOptions = {
875
976
  readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
876
977
  readonly color?: string;
@@ -886,10 +987,7 @@ export declare type IBordersOptions = {
886
987
  readonly between?: IBorderOptions;
887
988
  };
888
989
 
889
- export declare type ICellMergeAttributes = {
890
- readonly id: number;
891
- readonly author: string;
892
- readonly date: string;
990
+ export declare type ICellMergeAttributes = IChangedAttributesProperties & {
893
991
  readonly verticalMerge?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
894
992
  readonly verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
895
993
  };
@@ -916,7 +1014,7 @@ export declare type ICheckboxSymbolProperties = {
916
1014
  readonly font?: string;
917
1015
  };
918
1016
 
919
- declare type IColumnAttributes = {
1017
+ export declare type IColumnAttributes = {
920
1018
  readonly width: number | PositiveUniversalMeasure;
921
1019
  readonly space?: number | PositiveUniversalMeasure;
922
1020
  };
@@ -929,18 +1027,36 @@ export declare type IColumnsAttributes = {
929
1027
  readonly children?: readonly Column[];
930
1028
  };
931
1029
 
1030
+ export declare type ICommentExtensibleData = {
1031
+ readonly durableId: string;
1032
+ readonly dateUtc?: string;
1033
+ };
1034
+
1035
+ export declare type ICommentIdData = {
1036
+ readonly paraId: string;
1037
+ readonly durableId: string;
1038
+ };
1039
+
932
1040
  export declare type ICommentOptions = {
933
1041
  readonly id: number;
934
1042
  readonly children: readonly FileChild[];
935
1043
  readonly initials?: string;
936
1044
  readonly author?: string;
937
1045
  readonly date?: Date;
1046
+ readonly parentId?: number;
1047
+ readonly resolved?: boolean;
938
1048
  };
939
1049
 
940
1050
  export declare type ICommentsOptions = {
941
1051
  readonly children: readonly ICommentOptions[];
942
1052
  };
943
1053
 
1054
+ export declare type ICommentThreadData = {
1055
+ readonly paraId: string;
1056
+ readonly parentParaId?: string;
1057
+ readonly done?: boolean;
1058
+ };
1059
+
944
1060
  declare type ICompatibilityOptions = {
945
1061
  readonly version?: number;
946
1062
  readonly useSingleBorderforContiguousCells?: boolean;
@@ -1044,6 +1160,9 @@ declare type IDefaultStylesOptions = {
1044
1160
  readonly footnoteReference?: IBaseCharacterStyleOptions;
1045
1161
  readonly footnoteText?: IBaseParagraphStyleOptions;
1046
1162
  readonly footnoteTextChar?: IBaseCharacterStyleOptions;
1163
+ readonly endnoteReference?: IBaseCharacterStyleOptions;
1164
+ readonly endnoteText?: IBaseParagraphStyleOptions;
1165
+ readonly endnoteTextChar?: IBaseCharacterStyleOptions;
1047
1166
  };
1048
1167
 
1049
1168
  declare type IDeletedRunOptions = IRunOptions & IChangedAttributesProperties;
@@ -1095,6 +1214,14 @@ export declare type IDrawingOptions = {
1095
1214
  readonly floating?: IFloating;
1096
1215
  readonly docProperties?: DocPropertiesOptions;
1097
1216
  readonly outline?: OutlineOptions;
1217
+ readonly solidFill?: SolidFillOptions;
1218
+ };
1219
+
1220
+ export declare type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData;
1221
+
1222
+ export declare type IExternalHyperlinkOptions = {
1223
+ readonly children: readonly ParagraphChild[];
1224
+ readonly link: string;
1098
1225
  };
1099
1226
 
1100
1227
  export declare type IFloating = {
@@ -1130,6 +1257,8 @@ export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
1130
1257
  prepForXml(context: IContext): IXmlableObject | undefined;
1131
1258
  }
1132
1259
 
1260
+ export declare type IGroupChildMediaData = (WpsMediaData | IMediaData) & WpgCommonMediaData;
1261
+
1133
1262
  export declare type IHeaderFooterGroup<T> = {
1134
1263
  readonly default?: T;
1135
1264
  readonly first?: T;
@@ -1171,6 +1300,11 @@ export declare type IIndentAttributesProperties = {
1171
1300
 
1172
1301
  declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
1173
1302
 
1303
+ export declare type IInternalHyperlinkOptions = {
1304
+ readonly children: readonly ParagraphChild[];
1305
+ readonly anchor: string;
1306
+ };
1307
+
1174
1308
  declare type ILanguageOptions = {
1175
1309
  readonly value?: string;
1176
1310
  readonly eastAsia?: string;
@@ -1290,6 +1424,16 @@ export declare type IMathSuperScriptOptions = {
1290
1424
  export declare type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
1291
1425
 
1292
1426
  export declare type IMediaDataTransformation = {
1427
+ readonly offset?: {
1428
+ readonly pixels: {
1429
+ readonly x: number;
1430
+ readonly y: number;
1431
+ };
1432
+ readonly emus?: {
1433
+ readonly x: number;
1434
+ readonly y: number;
1435
+ };
1436
+ };
1293
1437
  readonly pixels: {
1294
1438
  readonly x: number;
1295
1439
  readonly y: number;
@@ -1306,6 +1450,10 @@ export declare type IMediaDataTransformation = {
1306
1450
  };
1307
1451
 
1308
1452
  export declare type IMediaTransformation = {
1453
+ readonly offset?: {
1454
+ readonly top?: number;
1455
+ readonly left?: number;
1456
+ };
1309
1457
  readonly width: number;
1310
1458
  readonly height: number;
1311
1459
  readonly flip?: {
@@ -1327,14 +1475,14 @@ export declare class ImportedXmlComponent extends XmlComponent {
1327
1475
  push(xmlComponent: XmlComponent | string): void;
1328
1476
  }
1329
1477
 
1330
- export declare class Indent extends XmlComponent {
1331
- constructor({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties);
1332
- }
1333
-
1334
1478
  export declare abstract class InitializableXmlComponent extends XmlComponent {
1335
1479
  constructor(rootKey: string, initComponent?: InitializableXmlComponent);
1336
1480
  }
1337
1481
 
1482
+ declare type INonVisualShapePropertiesOptions = {
1483
+ readonly txBox: string;
1484
+ };
1485
+
1338
1486
  export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2;
1339
1487
 
1340
1488
  export declare class InsertedTableCell extends XmlComponent {
@@ -1350,10 +1498,7 @@ export declare class InsertedTextRun extends XmlComponent {
1350
1498
  }
1351
1499
 
1352
1500
  export declare class InternalHyperlink extends ConcreteHyperlink {
1353
- constructor(options: {
1354
- readonly children: readonly ParagraphChild[];
1355
- readonly anchor: string;
1356
- });
1501
+ constructor(options: IInternalHyperlinkOptions);
1357
1502
  }
1358
1503
 
1359
1504
  export declare type INumberedItemReferenceOptions = {
@@ -1486,6 +1631,9 @@ export declare type IPropertiesOptions = {
1486
1631
  readonly footnotes?: Readonly<Record<string, {
1487
1632
  readonly children: readonly Paragraph[];
1488
1633
  }>>;
1634
+ readonly endnotes?: Readonly<Record<string, {
1635
+ readonly children: readonly Paragraph[];
1636
+ }>>;
1489
1637
  readonly background?: IDocumentBackgroundOptions;
1490
1638
  readonly features?: {
1491
1639
  readonly trackRevisions?: boolean;
@@ -1503,7 +1651,7 @@ export declare type IPropertiesOptions = {
1503
1651
  export declare type IRunOptions = IRunOptionsBase & IRunPropertiesOptions;
1504
1652
 
1505
1653
  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)[];
1654
+ 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
1655
  readonly break?: number;
1508
1656
  readonly text?: string;
1509
1657
  };
@@ -1728,6 +1876,15 @@ declare type ITableGridChangeOptions = {
1728
1876
  readonly columnWidths: readonly number[] | readonly PositiveUniversalMeasure[];
1729
1877
  };
1730
1878
 
1879
+ export declare type ITableLookOptions = {
1880
+ readonly firstRow?: boolean;
1881
+ readonly lastRow?: boolean;
1882
+ readonly firstColumn?: boolean;
1883
+ readonly lastColumn?: boolean;
1884
+ readonly noHBand?: boolean;
1885
+ readonly noVBand?: boolean;
1886
+ };
1887
+
1731
1888
  export declare type ITableOfContentsOptions = {
1732
1889
  readonly captionLabel?: string;
1733
1890
  readonly entriesFromBookmark?: string;
@@ -1760,6 +1917,7 @@ export declare type ITableOptions = {
1760
1917
  readonly borders?: ITableBordersOptions;
1761
1918
  readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1762
1919
  readonly visuallyRightToLeft?: boolean;
1920
+ readonly tableLook?: ITableLookOptions;
1763
1921
  readonly cellSpacing?: ITableCellSpacingProperties;
1764
1922
  readonly revision?: ITablePropertiesChangeOptions;
1765
1923
  };
@@ -1782,6 +1940,7 @@ export declare type ITablePropertiesOptionsBase = {
1782
1940
  readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1783
1941
  readonly cellMargin?: ITableCellMarginOptions;
1784
1942
  readonly visuallyRightToLeft?: boolean;
1943
+ readonly tableLook?: ITableLookOptions;
1785
1944
  readonly cellSpacing?: ITableCellSpacingProperties;
1786
1945
  };
1787
1946
 
@@ -1830,10 +1989,18 @@ export declare type IVerticalPositionOptions = {
1830
1989
  };
1831
1990
 
1832
1991
  declare type IViewWrapper = {
1833
- readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | XmlComponent;
1992
+ readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | Endnotes | XmlComponent;
1834
1993
  readonly Relationships: Relationships;
1835
1994
  };
1836
1995
 
1996
+ export declare type IWpgGroupOptions = {
1997
+ readonly type: "wpg";
1998
+ } & CoreGroupOptions;
1999
+
2000
+ export declare type IWpsShapeOptions = WpsShapeCoreOptions & {
2001
+ readonly type: "wps";
2002
+ } & CoreShapeOptions;
2003
+
1837
2004
  export declare interface IXmlableObject extends Record<string, unknown> {
1838
2005
  readonly [key: string]: any;
1839
2006
  }
@@ -2249,11 +2416,6 @@ declare type OutlineAttributes = {
2249
2416
 
2250
2417
  declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
2251
2418
 
2252
- export declare class OutlineLevel extends XmlComponent {
2253
- readonly level: number;
2254
- constructor(level: number);
2255
- }
2256
-
2257
2419
  declare type OutlineNoFill = {
2258
2420
  readonly type: "noFill";
2259
2421
  };
@@ -2332,10 +2494,6 @@ export declare class PageBreakBefore extends XmlComponent {
2332
2494
  constructor();
2333
2495
  }
2334
2496
 
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
2497
  export declare const PageNumber: {
2340
2498
  readonly CURRENT: "CURRENT";
2341
2499
  readonly TOTAL_PAGES: "TOTAL_PAGES";
@@ -2355,18 +2513,6 @@ export declare const PageNumberSeparator: {
2355
2513
  readonly EN_DASH: "endash";
2356
2514
  };
2357
2515
 
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
2516
  export declare const PageOrientation: {
2371
2517
  readonly PORTRAIT: "portrait";
2372
2518
  readonly LANDSCAPE: "landscape";
@@ -2424,7 +2570,7 @@ declare type PatchDetectorOptions = {
2424
2570
  readonly data: InputDataType;
2425
2571
  };
2426
2572
 
2427
- export declare const patchDocument: <T extends keyof OutputByType = keyof OutputByType>({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
2573
+ export declare const patchDocument: <T extends PatchDocumentOutputType = PatchDocumentOutputType>({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
2428
2574
 
2429
2575
  export declare type PatchDocumentOptions<T extends PatchDocumentOutputType = PatchDocumentOutputType> = {
2430
2576
  readonly outputType: T;
@@ -2507,17 +2653,13 @@ declare type RegularMediaData = {
2507
2653
  readonly type: "jpg" | "png" | "gif" | "bmp";
2508
2654
  };
2509
2655
 
2510
- declare class Relationship extends XmlComponent {
2511
- constructor(id: string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]);
2512
- }
2513
-
2514
2656
  declare class Relationships extends XmlComponent {
2515
2657
  constructor();
2516
- createRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): Relationship;
2658
+ addRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): void;
2517
2659
  get RelationshipCount(): number;
2518
2660
  }
2519
2661
 
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";
2662
+ 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.microsoft.com/office/2016/09/relationships/commentsIds" | "http://schemas.microsoft.com/office/2018/08/relationships/commentsExtensible" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
2521
2663
 
2522
2664
  export declare const RelativeHorizontalPosition: {
2523
2665
  readonly CENTER: "center";
@@ -2538,16 +2680,16 @@ export declare const RelativeVerticalPosition: {
2538
2680
  readonly TOP: "top";
2539
2681
  };
2540
2682
 
2683
+ declare type RgbColorOptions = {
2684
+ readonly type: "rgb";
2685
+ readonly value: string;
2686
+ };
2687
+
2541
2688
  export declare class Run extends XmlComponent {
2542
2689
  protected readonly properties: RunProperties;
2543
2690
  constructor(options: IRunOptions);
2544
2691
  }
2545
2692
 
2546
- export declare class RunFonts extends XmlComponent {
2547
- constructor(name: string, hint?: string);
2548
- constructor(attrs: string | IFontAttributesProperties);
2549
- }
2550
-
2551
2693
  export declare class RunProperties extends IgnoreIfEmptyXmlComponent {
2552
2694
  constructor(options?: IRunPropertiesOptions);
2553
2695
  push(item: XmlComponent): void;
@@ -2581,6 +2723,11 @@ declare const SchemeColor: {
2581
2723
  readonly PHCLR: "phClr";
2582
2724
  };
2583
2725
 
2726
+ declare type SchemeColorOptions = {
2727
+ readonly type: "scheme";
2728
+ readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
2729
+ };
2730
+
2584
2731
  export declare const sectionMarginDefaults: {
2585
2732
  TOP: number;
2586
2733
  RIGHT: number;
@@ -2614,20 +2761,8 @@ export declare const SectionType: {
2614
2761
  readonly ODD_PAGE: "oddPage";
2615
2762
  };
2616
2763
 
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
2764
  export declare type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
2626
2765
 
2627
- declare class Separate extends XmlComponent {
2628
- constructor(dirty?: boolean);
2629
- }
2630
-
2631
2766
  export declare class Separator extends EmptyElement {
2632
2767
  constructor();
2633
2768
  }
@@ -2640,10 +2775,6 @@ declare class Settings extends XmlComponent {
2640
2775
  constructor(options: ISettingsOptions);
2641
2776
  }
2642
2777
 
2643
- export declare class Shading extends XmlComponent {
2644
- constructor({ fill, color, type }: IShadingAttributesProperties);
2645
- }
2646
-
2647
2778
  export declare const ShadingType: {
2648
2779
  readonly CLEAR: "clear";
2649
2780
  readonly DIAGONAL_CROSS: "diagCross";
@@ -2702,14 +2833,14 @@ export declare class SoftHyphen extends EmptyElement {
2702
2833
  constructor();
2703
2834
  }
2704
2835
 
2836
+ declare type SolidFillOptions = RgbColorOptions | SchemeColorOptions;
2837
+
2705
2838
  export declare const SpaceType: {
2706
2839
  readonly DEFAULT: "default";
2707
2840
  readonly PRESERVE: "preserve";
2708
2841
  };
2709
2842
 
2710
- export declare class Spacing extends XmlComponent {
2711
- constructor(options: ISpacingProperties);
2712
- }
2843
+ export declare const standardizeData: (data: string | Buffer | Uint8Array | ArrayBuffer) => Buffer | Uint8Array | ArrayBuffer;
2713
2844
 
2714
2845
  export declare class StringContainer extends XmlComponent {
2715
2846
  constructor(name: string, val: string);
@@ -2723,20 +2854,16 @@ export declare class StringValueElement extends XmlComponent {
2723
2854
  constructor(name: string, val: string);
2724
2855
  }
2725
2856
 
2726
- export declare class Style extends XmlComponent {
2727
- constructor(styleId: string);
2728
- }
2729
-
2730
- declare class Style_2 extends XmlComponent {
2857
+ declare class Style extends XmlComponent {
2731
2858
  constructor(attributes: IStyleAttributes, options: IStyleOptions);
2732
2859
  }
2733
2860
 
2734
- export declare class StyleForCharacter extends Style_2 {
2861
+ export declare class StyleForCharacter extends Style {
2735
2862
  private readonly runProperties;
2736
2863
  constructor(options: ICharacterStyleOptions);
2737
2864
  }
2738
2865
 
2739
- export declare class StyleForParagraph extends Style_2 {
2866
+ export declare class StyleForParagraph extends Style {
2740
2867
  private readonly paragraphProperties;
2741
2868
  private readonly runProperties;
2742
2869
  constructor(options: IParagraphStyleOptions);
@@ -2771,20 +2898,8 @@ export declare class Tab extends EmptyElement {
2771
2898
  constructor();
2772
2899
  }
2773
2900
 
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
2901
  export declare class Table extends FileChild {
2787
- constructor({ rows, width, columnWidths, columnWidthsRevision, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, cellSpacing, revision, }: ITableOptions);
2902
+ constructor({ rows, width, columnWidths, columnWidthsRevision, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, tableLook, cellSpacing, revision, }: ITableOptions);
2788
2903
  }
2789
2904
 
2790
2905
  export declare const TableAnchorType: {
@@ -2794,38 +2909,7 @@ export declare const TableAnchorType: {
2794
2909
  };
2795
2910
 
2796
2911
  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
- };
2912
+ static readonly NONE: ITableBordersOptions;
2829
2913
  constructor(options: ITableBordersOptions);
2830
2914
  }
2831
2915
 
@@ -2839,24 +2923,20 @@ export declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
2839
2923
  constructor(options: ITableCellBorders);
2840
2924
  }
2841
2925
 
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
2926
  export declare const TableLayoutType: {
2851
2927
  readonly AUTOFIT: "autofit";
2852
2928
  readonly FIXED: "fixed";
2853
2929
  };
2854
2930
 
2855
2931
  export declare class TableOfContents extends FileChild {
2856
- constructor(alias?: string, { contentChildren, beginDirty, ...properties }?: ITableOfContentsOptions & {
2932
+ constructor(alias?: string, { contentChildren, cachedEntries, beginDirty, ...properties }?: ITableOfContentsOptions & {
2857
2933
  readonly contentChildren?: readonly (XmlComponent | string)[];
2934
+ readonly cachedEntries?: readonly ToCEntry[];
2858
2935
  readonly beginDirty?: boolean;
2859
2936
  });
2937
+ private getTabStopsForLevel;
2938
+ private buildCachedContentRun;
2939
+ private buildCachedContentParagraphChild;
2860
2940
  }
2861
2941
 
2862
2942
  export declare class TableProperties extends IgnoreIfEmptyXmlComponent {
@@ -2874,20 +2954,6 @@ export declare class TableRow extends XmlComponent {
2874
2954
  columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
2875
2955
  }
2876
2956
 
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
2957
  export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
2892
2958
  constructor(options: ITableRowPropertiesOptions);
2893
2959
  }
@@ -2898,24 +2964,12 @@ export declare class TableRowPropertiesChange extends XmlComponent {
2898
2964
 
2899
2965
  export declare type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
2900
2966
 
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
2967
  export declare type TabStopDefinition = {
2910
2968
  readonly type: (typeof TabStopType)[keyof typeof TabStopType];
2911
2969
  readonly position: number | (typeof TabStopPosition)[keyof typeof TabStopPosition];
2912
2970
  readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
2913
2971
  };
2914
2972
 
2915
- export declare class TabStopItem extends XmlComponent {
2916
- constructor({ type, position, leader }: TabStopDefinition);
2917
- }
2918
-
2919
2973
  export declare const TabStopPosition: {
2920
2974
  readonly MAX: 9026;
2921
2975
  };
@@ -2982,18 +3036,17 @@ export declare class ThematicBreak extends XmlComponent {
2982
3036
  constructor();
2983
3037
  }
2984
3038
 
2985
- export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
3039
+ declare type ToCEntry = {
3040
+ readonly title: string;
3041
+ readonly level: number;
3042
+ readonly page?: number;
3043
+ readonly href?: string;
3044
+ };
2986
3045
 
2987
- export declare class Type extends XmlComponent {
2988
- constructor(value: (typeof SectionType)[keyof typeof SectionType]);
2989
- }
3046
+ export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
2990
3047
 
2991
3048
  export declare const uCharHexNumber: (val: string) => string;
2992
3049
 
2993
- export declare class Underline extends XmlComponent {
2994
- constructor(underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string);
2995
- }
2996
-
2997
3050
  export declare const UnderlineType: {
2998
3051
  readonly SINGLE: "single";
2999
3052
  readonly WORDS: "words";
@@ -3036,18 +3089,6 @@ export declare const VerticalAlign: {
3036
3089
  readonly BOTTOM: "bottom";
3037
3090
  };
3038
3091
 
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
3092
  export declare const VerticalAlignSection: {
3052
3093
  readonly BOTH: "both";
3053
3094
  readonly TOP: "top";
@@ -3061,6 +3102,12 @@ export declare const VerticalAlignTable: {
3061
3102
  readonly BOTTOM: "bottom";
3062
3103
  };
3063
3104
 
3105
+ export declare enum VerticalAnchor {
3106
+ CENTER = "ctr",
3107
+ TOP = "t",
3108
+ BOTTOM = "b"
3109
+ }
3110
+
3064
3111
  export declare class VerticalMerge extends XmlComponent {
3065
3112
  constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
3066
3113
  }
@@ -3133,20 +3180,39 @@ export declare const WORKAROUND3 = "";
3133
3180
 
3134
3181
  export declare const WORKAROUND4 = "";
3135
3182
 
3136
- export declare class WrapNone extends XmlComponent {
3137
- constructor();
3138
- }
3183
+ export declare type WpgCommonMediaData = {
3184
+ readonly outline?: OutlineOptions;
3185
+ readonly solidFill?: SolidFillOptions;
3186
+ };
3139
3187
 
3140
- export declare class WrapSquare extends XmlComponent {
3141
- constructor(textWrapping: ITextWrapping, margins?: IMargins);
3188
+ export declare class WpgGroupRun extends Run {
3189
+ private readonly wpgGroupData;
3190
+ private readonly mediaDatas;
3191
+ constructor(options: IWpgGroupOptions);
3192
+ prepForXml(context: IContext): IXmlableObject | undefined;
3142
3193
  }
3143
3194
 
3144
- export declare class WrapTight extends XmlComponent {
3145
- constructor(margins?: IMargins);
3146
- }
3195
+ export declare type WpgMediaData = {
3196
+ readonly type: "wpg";
3197
+ readonly transformation: IMediaDataTransformation;
3198
+ readonly children: readonly IGroupChildMediaData[];
3199
+ };
3200
+
3201
+ export declare type WpsMediaData = {
3202
+ readonly type: "wps";
3203
+ readonly transformation: IMediaDataTransformation;
3204
+ readonly data: WpsShapeCoreOptions;
3205
+ };
3206
+
3207
+ declare type WpsShapeCoreOptions = {
3208
+ readonly children: readonly Paragraph[];
3209
+ readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
3210
+ readonly bodyProperties?: IBodyPropertiesOptions;
3211
+ };
3147
3212
 
3148
- export declare class WrapTopAndBottom extends XmlComponent {
3149
- constructor(margins?: IMargins);
3213
+ export declare class WpsShapeRun extends Run {
3214
+ private readonly wpsShapeData;
3215
+ constructor(options: IWpsShapeOptions);
3150
3216
  }
3151
3217
 
3152
3218
  export declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {