@office-open/docx 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,10 +1,9 @@
1
- import { AppPropertiesInput, AppPropertiesOptions, BaseMediaEntry, BasePatchOptions, BaseTableCellOptions, BaseTableOptions, BaseTableRowOptions, ChartSpaceOptions, CompressionOptions, ContentTypesInput, CorePropertiesOptions, CustomPropertiesInput, CustomPropertyOptions, DataType, EmbeddingCollection, Media, NonVisualDrawingPropertiesOptions, OutputByType, OutputByType as OutputByType$1, OutputType, OutputType as OutputType$1, PackerOptions, PackerOptions as PackerOptions$1, ParsedArchive, Percentage, PositiveUniversalMeasure, Relationships, ThemeColor, ThemeFont, UniversalMeasure, VmlShapeDefaultsOptions, VmlShapeLayoutOptions, VmlShapeStyle, XmlifyedFile, Zippable, appPropertiesDesc, customPropertiesDesc, parseArchive } from "@office-open/core";
2
- import { BlackWhiteMode, BlipEffectsOptions, BodyPropertiesOptions, BodyPropertiesOptions as BodyPropertiesOptions$1, CustomGeometryOptions, EffectDagOptions, EffectListOptions, FillOptions, FlatTextOptions, NonVisualContentPartPropertiesOptions, NonVisualDrawingPropertiesOptions as NonVisualDrawingPropertiesOptions$1, NormalAutofitOptions, OutlineOptions, PresetGeometryOptions, PresetTextShapeOptions, Scene3DOptions, Shape3DOptions, SolidFillOptions, SourceRectangleOptions, TextBodyWrapping, TextHorzOverflow, TextVertOverflow, TextVertical, TileOptions, VerticalAnchor, bodyPropertiesDesc, parseBodyProperties } from "@office-open/core/drawing";
1
+ import { AppPropertiesInput, AppPropertiesOptions, Base64, BaseMediaEntry, BasePatchOptions, BaseTableCellOptions, BaseTableOptions, BaseTableRowOptions, ChartSpaceOptions, ColorSchemeIndex, CompressionOptions, ContentTypesInput, CorePropertiesOptions, CustomPropertiesInput, CustomPropertyOptions, DataType, DateTime, EmbeddingCollection, EncryptedContainerOptions, Guid, HexColorOrAuto, LongHexNumber, Media, NonVisualDrawingPropertiesOptions, OutputByType, OutputByType as OutputByType$1, OutputType, OutputType as OutputType$1, PackerOptions, PackerOptions as PackerOptions$1, ParsedArchive, Percentage, PictureLockingOptions, PositiveUniversalMeasure, Relationships, ShortHexNumber, ThemeColor, ThemeFont, UcharHexNumber, UniversalMeasure, VmlShapeChild, VmlShapeDefaultsOptions, VmlShapeLayoutOptions, VmlShapeStyle, VmlShapetypeOptions, XmlifyedFile, Zippable, appPropertiesDesc, customPropertiesDesc, parseArchive } from "@office-open/core";
2
+ import { BlackWhiteMode, BlipEffectsOptions, BodyPropertiesOptions, BodyPropertiesOptions as BodyPropertiesOptions$1, ConnectorLockingOptions, CustomGeometryOptions, EffectDagOptions, EffectListOptions, FillOptions, FlatTextOptions, NonVisualContentPartPropertiesOptions, NonVisualDrawingPropertiesOptions as NonVisualDrawingPropertiesOptions$1, NormalAutofitOptions, OutlineOptions, PresetGeometryOptions, PresetTextShapeOptions, Scene3DOptions, Shape3DOptions, ShapeLockingOptions, ShapePropertiesExtensionOptions, SolidFillOptions, SourceRectangleOptions, TextBodyWrapping, TextHorzOverflow, TextVertOverflow, TextVertical, TileOptions, VerticalAnchor, bodyPropertiesDesc, parseBodyProperties } from "@office-open/core/drawing";
3
3
  import { Element } from "@office-open/xml";
4
4
  import { ChartCollection, ChartSpaceOptions as ChartSpaceOptions$1 } from "@office-open/core/chart";
5
- import { ColorDefinitionOptions, LayoutDefinitionOptions, SmartArtCollection, StyleDefinitionOptions } from "@office-open/core/smartart";
5
+ import { ColorDefinitionOptions, LayoutDefinitionOptions, SmartArtCollection, SmartArtRawParts, StyleDefinitionOptions } from "@office-open/core/smartart";
6
6
  import { CustomDescriptor, HyperlinkTarget, ReadContext, WriteContext } from "@office-open/core/descriptor";
7
-
8
7
  //#region src/parts/paragraph/formatting/alignment.d.ts
9
8
  declare const AlignmentType: {
10
9
  readonly START: "start";
@@ -13,7 +12,7 @@ declare const AlignmentType: {
13
12
  readonly BOTH: "both";
14
13
  readonly MEDIUM_KASHIDA: "mediumKashida";
15
14
  readonly DISTRIBUTE: "distribute";
16
- readonly NUM_TAB: "numTab";
15
+ readonly NUM_TAB: "numericTab";
17
16
  readonly HIGH_KASHIDA: "highKashida";
18
17
  readonly LOW_KASHIDA: "lowKashida";
19
18
  readonly THAI_DISTRIBUTE: "thaiDistribute";
@@ -25,10 +24,10 @@ declare const AlignmentType: {
25
24
  //#region src/shared/border.d.ts
26
25
  interface BorderOptions {
27
26
  style: (typeof BorderStyle)[keyof typeof BorderStyle];
28
- color?: string;
29
- themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
30
- themeTint?: string;
31
- themeShade?: string;
27
+ color?: HexColorOrAuto;
28
+ themeColor?: ThemeColor;
29
+ themeTint?: UcharHexNumber;
30
+ themeShade?: UcharHexNumber;
32
31
  shadow?: boolean;
33
32
  frame?: boolean;
34
33
  size?: number;
@@ -63,6 +62,7 @@ declare const BorderStyle: {
63
62
  readonly TRIPLE: "triple";
64
63
  readonly WAVE: "wave";
65
64
  };
65
+ declare function parseBorderSide(sideEl: Element): BorderOptions | undefined;
66
66
  //#endregion
67
67
  //#region src/parts/paragraph/formatting/border.d.ts
68
68
  interface BordersOptions {
@@ -116,7 +116,6 @@ type BreakTypeValue = (typeof BreakType)[keyof typeof BreakType];
116
116
  //#region src/parts/paragraph/formatting/spacing.d.ts
117
117
  declare const LineRuleType: {
118
118
  readonly AT_LEAST: "atLeast";
119
- readonly EXACTLY: "exactly";
120
119
  readonly EXACT: "exact";
121
120
  readonly AUTO: "auto";
122
121
  };
@@ -173,62 +172,63 @@ declare const TabStopPosition: {
173
172
  //#endregion
174
173
  //#region src/shared/shading.d.ts
175
174
  interface ShadingProperties {
176
- fill?: string;
177
- color?: string;
175
+ fill?: HexColorOrAuto;
176
+ color?: HexColorOrAuto;
178
177
  type?: (typeof ShadingType)[keyof typeof ShadingType];
179
- themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
180
- themeTint?: string;
181
- themeShade?: string;
182
- themeFill?: (typeof ThemeColor)[keyof typeof ThemeColor];
183
- themeFillTint?: string;
184
- themeFillShade?: string;
178
+ themeColor?: ThemeColor;
179
+ themeTint?: UcharHexNumber;
180
+ themeShade?: UcharHexNumber;
181
+ themeFill?: ThemeColor;
182
+ themeFillTint?: UcharHexNumber;
183
+ themeFillShade?: UcharHexNumber;
185
184
  }
186
185
  declare const ShadingType: {
187
186
  readonly CLEAR: "clear";
188
- readonly DIAGONAL_CROSS: "diagCross";
189
- readonly DIAGONAL_STRIPE: "diagStripe";
190
- readonly HORIZONTAL_CROSS: "horzCross";
191
- readonly HORIZONTAL_STRIPE: "horzStripe";
187
+ readonly DIAGONAL_CROSS: "diagonalCross";
188
+ readonly DIAGONAL_STRIPE: "diagonalStripe";
189
+ readonly HORIZONTAL_CROSS: "horizontalCross";
190
+ readonly HORIZONTAL_STRIPE: "horizontalStripe";
192
191
  readonly NIL: "nil";
193
- readonly PERCENT_10: "pct10";
194
- readonly PERCENT_12: "pct12";
195
- readonly PERCENT_15: "pct15";
196
- readonly PERCENT_20: "pct20";
197
- readonly PERCENT_25: "pct25";
198
- readonly PERCENT_30: "pct30";
199
- readonly PERCENT_35: "pct35";
200
- readonly PERCENT_37: "pct37";
201
- readonly PERCENT_40: "pct40";
202
- readonly PERCENT_45: "pct45";
203
- readonly PERCENT_5: "pct5";
204
- readonly PERCENT_50: "pct50";
205
- readonly PERCENT_55: "pct55";
206
- readonly PERCENT_60: "pct60";
207
- readonly PERCENT_62: "pct62";
208
- readonly PERCENT_65: "pct65";
209
- readonly PERCENT_70: "pct70";
210
- readonly PERCENT_75: "pct75";
211
- readonly PERCENT_80: "pct80";
212
- readonly PERCENT_85: "pct85";
213
- readonly PERCENT_87: "pct87";
214
- readonly PERCENT_90: "pct90";
215
- readonly PERCENT_95: "pct95";
216
- readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagStripe";
192
+ readonly PERCENT_10: "percent10";
193
+ readonly PERCENT_12: "percent12";
194
+ readonly PERCENT_15: "percent15";
195
+ readonly PERCENT_20: "percent20";
196
+ readonly PERCENT_25: "percent25";
197
+ readonly PERCENT_30: "percent30";
198
+ readonly PERCENT_35: "percent35";
199
+ readonly PERCENT_37: "percent37";
200
+ readonly PERCENT_40: "percent40";
201
+ readonly PERCENT_45: "percent45";
202
+ readonly PERCENT_5: "percent5";
203
+ readonly PERCENT_50: "percent50";
204
+ readonly PERCENT_55: "percent55";
205
+ readonly PERCENT_60: "percent60";
206
+ readonly PERCENT_62: "percent62";
207
+ readonly PERCENT_65: "percent65";
208
+ readonly PERCENT_70: "percent70";
209
+ readonly PERCENT_75: "percent75";
210
+ readonly PERCENT_80: "percent80";
211
+ readonly PERCENT_85: "percent85";
212
+ readonly PERCENT_87: "percent87";
213
+ readonly PERCENT_90: "percent90";
214
+ readonly PERCENT_95: "percent95";
215
+ readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagonalStripe";
217
216
  readonly SOLID: "solid";
218
- readonly THIN_DIAGONAL_CROSS: "thinDiagCross";
219
- readonly THIN_DIAGONAL_STRIPE: "thinDiagStripe";
220
- readonly THIN_HORIZONTAL_CROSS: "thinHorzCross";
221
- readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagStripe";
222
- readonly THIN_VERTICAL_STRIPE: "thinVertStripe";
223
- readonly VERTICAL_STRIPE: "vertStripe";
217
+ readonly THIN_DIAGONAL_CROSS: "thinDiagonalCross";
218
+ readonly THIN_DIAGONAL_STRIPE: "thinDiagonalStripe";
219
+ readonly THIN_HORIZONTAL_CROSS: "thinHorizontalCross";
220
+ readonly THIN_HORIZONTAL_STRIPE: "thinHorizontalStripe";
221
+ readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagonalStripe";
222
+ readonly THIN_VERTICAL_STRIPE: "thinVerticalStripe";
223
+ readonly VERTICAL_STRIPE: "verticalStripe";
224
224
  };
225
225
  declare function parseShading(shd: Element): ShadingProperties | undefined;
226
226
  //#endregion
227
227
  //#region src/shared/track-revision/track-revision.d.ts
228
228
  interface ChangedProperties {
229
- id: number;
229
+ id?: number;
230
230
  author: string;
231
- date: string;
231
+ date: DateTime;
232
232
  }
233
233
  //#endregion
234
234
  //#region src/parts/paragraph/run/east-asian-layout.d.ts
@@ -258,10 +258,10 @@ declare const EmphasisMarkType: {
258
258
  //#endregion
259
259
  //#region src/parts/paragraph/run/formatting.d.ts
260
260
  interface ColorOptions {
261
- val?: string;
262
- themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
263
- themeTint?: string;
264
- themeShade?: string;
261
+ val?: HexColorOrAuto;
262
+ themeColor?: ThemeColor;
263
+ themeTint?: UcharHexNumber;
264
+ themeShade?: UcharHexNumber;
265
265
  }
266
266
  //#endregion
267
267
  //#region src/parts/paragraph/run/language.d.ts
@@ -277,11 +277,11 @@ interface FontProperties {
277
277
  complexScript?: string;
278
278
  eastAsia?: string;
279
279
  hAnsi?: string;
280
- hint?: string;
281
- asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
282
- hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
283
- eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
284
- complexScriptTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
280
+ hint?: "default" | "eastAsia";
281
+ asciiTheme?: ThemeFont;
282
+ hAnsiTheme?: ThemeFont;
283
+ eastAsiaTheme?: ThemeFont;
284
+ complexScriptTheme?: ThemeFont;
285
285
  }
286
286
  //#endregion
287
287
  //#region src/parts/paragraph/run/underline.d.ts
@@ -346,16 +346,16 @@ interface RunStylePropertiesOptions {
346
346
  italic?: boolean;
347
347
  italicComplexScript?: boolean;
348
348
  underline?: {
349
- color?: string;
349
+ color?: HexColorOrAuto;
350
350
  type?: (typeof UnderlineType)[keyof typeof UnderlineType];
351
351
  };
352
352
  effect?: (typeof TextEffect)[keyof typeof TextEffect];
353
353
  emphasisMark?: {
354
354
  type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
355
355
  };
356
- color?: string | ColorOptions;
357
- kern?: number;
358
- position?: string;
356
+ color?: HexColorOrAuto | ColorOptions;
357
+ kern?: number | UniversalMeasure;
358
+ position?: number | UniversalMeasure;
359
359
  size?: number;
360
360
  sizeComplexScript?: number;
361
361
  rightToLeft?: boolean;
@@ -363,11 +363,9 @@ interface RunStylePropertiesOptions {
363
363
  allCaps?: boolean;
364
364
  strike?: boolean;
365
365
  doubleStrike?: boolean;
366
- subScript?: boolean;
367
- superScript?: boolean;
366
+ verticalAlign?: "baseline" | "subscript" | "superscript";
368
367
  font?: string | RunFontReference | FontProperties;
369
368
  highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
370
- highlightComplexScript?: string;
371
369
  characterSpacing?: number | UniversalMeasure;
372
370
  shading?: ShadingProperties;
373
371
  emboss?: boolean;
@@ -388,6 +386,7 @@ interface RunStylePropertiesOptions {
388
386
  eastAsianLayout?: EastAsianLayoutOptions;
389
387
  contentPartRId?: string;
390
388
  w14RawXml?: string;
389
+ emptyProperties?: boolean;
391
390
  }
392
391
  type RunPropertiesOptions = {
393
392
  style?: string;
@@ -406,126 +405,503 @@ interface AltChunkOptions {
406
405
  matchSource?: boolean;
407
406
  }
408
407
  //#endregion
409
- //#region src/parts/alt-chunk/alt-chunk-collection.d.ts
410
- interface AltChunkData {
411
- key: string;
412
- data: Uint8Array;
413
- path: string;
414
- extension: string;
415
- contentType: string;
416
- }
417
- declare class AltChunkCollection {
418
- private map;
419
- constructor();
420
- addAltChunk(key: string, data: AltChunkData): void;
421
- get array(): AltChunkData[];
408
+ //#region src/shared/vertical-align.d.ts
409
+ declare const VerticalAlignTable: {
410
+ readonly BOTTOM: "bottom";
411
+ readonly CENTER: "center";
412
+ readonly TOP: "top";
413
+ };
414
+ declare const VerticalAlignSection: {
415
+ readonly BOTH: "both";
416
+ readonly BOTTOM: "bottom";
417
+ readonly CENTER: "center";
418
+ readonly TOP: "top";
419
+ };
420
+ type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
421
+ type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
422
+ //#endregion
423
+ //#region src/parts/document/body/section-properties/properties/column.d.ts
424
+ interface ColumnProperties {
425
+ width: number | PositiveUniversalMeasure;
426
+ space?: number | PositiveUniversalMeasure;
422
427
  }
423
428
  //#endregion
424
- //#region src/parts/bibliography.d.ts
425
- interface SourceTypeOptions {
426
- type?: string;
427
- title?: string;
428
- author?: string;
429
- year?: string;
430
- month?: string;
431
- day?: string;
432
- bookTitle?: string;
433
- journal?: string;
434
- volume?: string;
435
- issue?: string;
436
- pages?: string;
437
- publisher?: string;
438
- city?: string;
439
- url?: string;
440
- edition?: string;
441
- institution?: string;
429
+ //#region src/parts/document/body/section-properties/properties/columns.d.ts
430
+ interface ColumnsProperties {
431
+ space?: number | PositiveUniversalMeasure;
432
+ count?: number;
433
+ separate?: boolean;
434
+ equalWidth?: boolean;
435
+ children?: ColumnProperties[];
442
436
  }
443
- interface BibliographyOptions {
444
- sources: SourceTypeOptions[];
445
- styleName?: string;
437
+ //#endregion
438
+ //#region src/parts/document/body/section-properties/properties/doc-grid.d.ts
439
+ declare const DocumentGridType: {
440
+ readonly DEFAULT: "default";
441
+ readonly LINES: "lines";
442
+ readonly LINES_AND_CHARS: "linesAndChars";
443
+ readonly SNAP_TO_CHARS: "snapToChars";
444
+ };
445
+ interface DocGridProperties {
446
+ type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
447
+ linePitch: number;
448
+ charSpace?: number;
446
449
  }
447
- declare const bibliographyDesc: CustomDescriptor<BibliographyOptions>;
450
+ declare const createDocumentGrid: ({ type, linePitch, charSpace }: DocGridProperties) => string;
448
451
  //#endregion
449
- //#region src/parts/fonts/font.d.ts
450
- declare const CharacterSet: {
451
- readonly ANSI: "00";
452
- readonly ARABIC: "B2";
453
- readonly BALTIC: "BA";
454
- readonly CHINESEBIG5: "88";
455
- readonly DEFAULT: "01";
456
- readonly EASTEUROPE: "EE";
457
- readonly GB_2312: "86";
458
- readonly GREEK: "A1";
459
- readonly HANGUL: "81";
460
- readonly HEBREW: "B1";
461
- readonly JIS: "80";
462
- readonly JOHAB: "82";
463
- readonly MAC: "4D";
464
- readonly OEM: "FF";
465
- readonly RUSSIAN: "CC";
466
- readonly SYMBOL: "02";
467
- readonly THAI: "DE";
468
- readonly TURKISH: "A2";
469
- readonly VIETNAMESE: "A3";
452
+ //#region src/shared/constants.d.ts
453
+ declare const HorizontalPositionAlign: {
454
+ readonly CENTER: "center";
455
+ readonly INSIDE: "inside";
456
+ readonly LEFT: "left";
457
+ readonly OUTSIDE: "outside";
458
+ readonly RIGHT: "right";
459
+ };
460
+ declare const VerticalPositionAlign: {
461
+ readonly BOTTOM: "bottom";
462
+ readonly CENTER: "center";
463
+ readonly INSIDE: "inside";
464
+ readonly OUTSIDE: "outside";
465
+ readonly TOP: "top";
466
+ };
467
+ declare const NumberFormat: {
468
+ readonly AIUEO: "aiueo";
469
+ readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
470
+ readonly ARABIC_ABJAD: "arabicAbjad";
471
+ readonly ARABIC_ALPHA: "arabicAlpha";
472
+ readonly BAHT_TEXT: "bahtText";
473
+ readonly BULLET: "bullet";
474
+ readonly CARDINAL_TEXT: "cardinalText";
475
+ readonly CHICAGO: "chicago";
476
+ readonly CHINESE_COUNTING: "chineseCounting";
477
+ readonly CHINESE_COUNTING_TEN_THOUSAND: "chineseCountingThousand";
478
+ readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
479
+ readonly CHOSUNG: "chosung";
480
+ readonly DECIMAL: "decimal";
481
+ readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
482
+ readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
483
+ readonly DECIMAL_ENCLOSED_FULL_STOP: "decimalEnclosedFullstop";
484
+ readonly DECIMAL_ENCLOSED_PAREN: "decimalEnclosedParen";
485
+ readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
486
+ readonly DECIMAL_FULL_WIDTH_2: "decimalFullWidth2";
487
+ readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
488
+ readonly DECIMAL_ZERO: "decimalZero";
489
+ readonly DOLLAR_TEXT: "dollarText";
490
+ readonly GANADA: "ganada";
491
+ readonly HEBREW_1: "hebrew1";
492
+ readonly HEBREW_2: "hebrew2";
493
+ readonly HEX: "hex";
494
+ readonly HINDI_CONSONANTS: "hindiConsonants";
495
+ readonly HINDI_COUNTING: "hindiCounting";
496
+ readonly HINDI_NUMBERS: "hindiNumbers";
497
+ readonly HINDI_VOWELS: "hindiVowels";
498
+ readonly IDEOGRAPH_DIGITAL: "ideographDigital";
499
+ readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
500
+ readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
501
+ readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
502
+ readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
503
+ readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
504
+ readonly IROHA: "iroha";
505
+ readonly IROHA_FULL_WIDTH: "irohaFullWidth";
506
+ readonly JAPANESE_COUNTING: "japaneseCounting";
507
+ readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
508
+ readonly JAPANESE_LEGAL: "japaneseLegal";
509
+ readonly KOREAN_COUNTING: "koreanCounting";
510
+ readonly KOREAN_DIGITAL: "koreanDigital";
511
+ readonly KOREAN_DIGITAL_2: "koreanDigital2";
512
+ readonly KOREAN_LEGAL: "koreanLegal";
513
+ readonly LOWER_LETTER: "lowerLetter";
514
+ readonly LOWER_ROMAN: "lowerRoman";
515
+ readonly NONE: "none";
516
+ readonly NUMBER_IN_DASH: "numberInDash";
517
+ readonly ORDINAL: "ordinal";
518
+ readonly ORDINAL_TEXT: "ordinalText";
519
+ readonly RUSSIAN_LOWER: "russianLower";
520
+ readonly RUSSIAN_UPPER: "russianUpper";
521
+ readonly TAIWANESE_COUNTING: "taiwaneseCounting";
522
+ readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
523
+ readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
524
+ readonly THAI_COUNTING: "thaiCounting";
525
+ readonly THAI_LETTERS: "thaiLetters";
526
+ readonly THAI_NUMBERS: "thaiNumbers";
527
+ readonly UPPER_LETTER: "upperLetter";
528
+ readonly UPPER_ROMAN: "upperRoman";
529
+ readonly VIETNAMESE_COUNTING: "vietnameseCounting";
530
+ };
531
+ declare const SpaceType: {
532
+ readonly DEFAULT: "default";
533
+ readonly PRESERVE: "preserve";
470
534
  };
471
535
  //#endregion
472
- //#region src/parts/fonts/font-wrapper.d.ts
473
- type EmbeddedFontOptionsWithKey = EmbeddedFontOptions & {
474
- fontKey: string;
475
- embedRid?: string;
476
- data?: Uint8Array;
536
+ //#region src/parts/document/body/section-properties/properties/footnote-endnote-properties.d.ts
537
+ declare const FootnotePositionType: {
538
+ readonly PAGE_BOTTOM: "pageBottom";
539
+ readonly BENEATH_TEXT: "beneathText";
540
+ readonly SECT_END: "sectEnd";
541
+ readonly DOC_END: "docEnd";
477
542
  };
478
- declare class FontWrapper implements ViewWrapper {
479
- options: EmbeddedFontOptions[];
480
- relationships: Relationships;
481
- fontOptionsWithKey: EmbeddedFontOptionsWithKey[];
482
- constructor(options: EmbeddedFontOptions[]);
543
+ declare const EndnotePositionType: {
544
+ readonly SECT_END: "sectEnd";
545
+ readonly DOC_END: "docEnd";
546
+ };
547
+ declare const NumberRestartType: {
548
+ readonly CONTINUOUS: "continuous";
549
+ readonly EACH_SECT: "eachSect";
550
+ readonly EACH_PAGE: "eachPage";
551
+ };
552
+ interface NumberPropertiesOptions {
553
+ formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
554
+ format?: string;
555
+ numStart?: number;
556
+ numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
483
557
  }
484
- //#endregion
485
- //#region src/parts/fonts/font-table.d.ts
486
- interface FontSignature {
487
- usb0: string;
488
- usb1: string;
489
- usb2: string;
490
- usb3: string;
491
- csb0: string;
492
- csb1: string;
558
+ interface FootnotePropertiesOptions extends NumberPropertiesOptions {
559
+ pos?: (typeof FootnotePositionType)[keyof typeof FootnotePositionType];
493
560
  }
494
- interface EmbeddedFontOptions {
495
- name: string;
496
- data?: DataType;
497
- characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
498
- characterSetName?: string;
499
- family?: string;
500
- pitch?: string;
501
- panose1?: string;
502
- altName?: string;
503
- sig?: FontSignature;
504
- rawOdttf?: boolean;
505
- odttfPath?: string;
506
- fontKey?: string;
507
- subsetted?: boolean;
561
+ interface EndnotePropertiesOptions extends NumberPropertiesOptions {
562
+ pos?: (typeof EndnotePositionType)[keyof typeof EndnotePositionType];
508
563
  }
509
564
  //#endregion
510
- //#region src/parts/glossary-document.d.ts
511
- declare const DocPartGallery: {
512
- readonly PLACEHOLDER: "placeholder";
513
- readonly DEFAULT: "default";
514
- readonly DOC_PARTS: "docParts";
515
- readonly COVER_PAGE: "coverPg";
516
- readonly EQUATIONS: "eq";
517
- readonly FOOTERS: "ftrs";
518
- readonly HEADERS: "hdrs";
519
- readonly PAGE_NUMBERS: "pgNum";
520
- readonly TABLES: "tbls";
521
- readonly WATERMARKS: "watermarks";
522
- readonly AUTO_TEXT: "autoTxt";
523
- readonly TEXT_BOX: "txtBox";
524
- readonly PAGE_NUMBERS_TOP: "pgNumT";
525
- readonly PAGE_NUMBERS_BOTTOM: "pgNumB";
526
- readonly PAGE_NUMBERS_MARGIN: "pgNumMargins";
527
- readonly TABLE_OF_CONTENTS: "tblOfContents";
528
- readonly BIBLIOGRAPHY: "bib";
565
+ //#region src/parts/document/body/section-properties/properties/line-number.d.ts
566
+ declare const LineNumberRestartFormat: {
567
+ readonly NEW_PAGE: "newPage";
568
+ readonly NEW_SECTION: "newSection";
569
+ readonly CONTINUOUS: "continuous";
570
+ };
571
+ interface LineNumberProperties {
572
+ countBy?: number;
573
+ start?: number;
574
+ restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
575
+ distance?: number | PositiveUniversalMeasure;
576
+ }
577
+ declare const createLineNumberType: ({ countBy, start, restart, distance }: LineNumberProperties) => string;
578
+ //#endregion
579
+ //#region src/parts/document/body/section-properties/properties/page-borders.d.ts
580
+ declare const PageBorderDisplay: {
581
+ readonly ALL_PAGES: "allPages";
582
+ readonly FIRST_PAGE: "firstPage";
583
+ readonly NOT_FIRST_PAGE: "notFirstPage";
584
+ };
585
+ declare const PageBorderOffsetFrom: {
586
+ readonly PAGE: "page";
587
+ readonly TEXT: "text";
588
+ };
589
+ declare const PageBorderZOrder: {
590
+ readonly BACK: "back";
591
+ readonly FRONT: "front";
592
+ };
593
+ interface PageBordersOptions {
594
+ display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
595
+ offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
596
+ zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
597
+ top?: BorderOptions;
598
+ right?: BorderOptions;
599
+ bottom?: BorderOptions;
600
+ left?: BorderOptions;
601
+ }
602
+ //#endregion
603
+ //#region src/parts/document/body/section-properties/properties/page-margin.d.ts
604
+ interface PageMarginProperties {
605
+ top?: number | UniversalMeasure;
606
+ right?: number | PositiveUniversalMeasure;
607
+ bottom?: number | UniversalMeasure;
608
+ left?: number | PositiveUniversalMeasure;
609
+ header?: number | PositiveUniversalMeasure;
610
+ footer?: number | PositiveUniversalMeasure;
611
+ gutter?: number | PositiveUniversalMeasure;
612
+ }
613
+ declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => string;
614
+ //#endregion
615
+ //#region src/parts/document/body/section-properties/properties/page-number.d.ts
616
+ declare const PageNumberSeparator: {
617
+ readonly HYPHEN: "hyphen";
618
+ readonly PERIOD: "period";
619
+ readonly COLON: "colon";
620
+ readonly EM_DASH: "emDash";
621
+ readonly EN_DASH: "enDash";
622
+ };
623
+ interface PageNumberTypeProperties {
624
+ start?: number;
625
+ format?: (typeof NumberFormat)[keyof typeof NumberFormat];
626
+ separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
627
+ chapterStyle?: number;
628
+ }
629
+ declare const createPageNumberType: ({ start, format, separator, chapterStyle }: PageNumberTypeProperties) => string;
630
+ //#endregion
631
+ //#region src/parts/document/body/section-properties/properties/page-size.d.ts
632
+ declare const PageOrientation: {
633
+ readonly PORTRAIT: "portrait";
634
+ readonly LANDSCAPE: "landscape";
635
+ };
636
+ interface PageSizeProperties {
637
+ width?: number | PositiveUniversalMeasure;
638
+ height?: number | PositiveUniversalMeasure;
639
+ orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
640
+ code?: number;
641
+ }
642
+ //#endregion
643
+ //#region src/parts/document/body/section-properties/properties/page-text-direction.d.ts
644
+ declare const PageTextDirectionType: {
645
+ readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
646
+ readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
647
+ };
648
+ //#endregion
649
+ //#region src/parts/document/body/section-properties/properties/section-type.d.ts
650
+ declare const SectionType: {
651
+ readonly NEXT_PAGE: "nextPage";
652
+ readonly NEXT_COLUMN: "nextColumn";
653
+ readonly CONTINUOUS: "continuous";
654
+ readonly EVEN_PAGE: "evenPage";
655
+ readonly ODD_PAGE: "oddPage";
656
+ };
657
+ declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => string;
658
+ //#endregion
659
+ //#region src/parts/document/body/section-properties/section-properties.d.ts
660
+ interface HeaderFooterGroup<T> {
661
+ default?: T;
662
+ first?: T;
663
+ even?: T;
664
+ }
665
+ interface SectionPropertiesOptionsBase {
666
+ runPropertiesRsid?: LongHexNumber;
667
+ deletionRsid?: LongHexNumber;
668
+ additionRsid?: LongHexNumber;
669
+ sectionRsid?: LongHexNumber;
670
+ pageSize?: PageSizeProperties | false;
671
+ pageMargin?: PageMarginProperties | false;
672
+ pageNumberType?: PageNumberTypeProperties;
673
+ pageBorders?: PageBordersOptions;
674
+ textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
675
+ grid?: DocGridProperties | false;
676
+ lineNumberType?: LineNumberProperties;
677
+ titlePage?: boolean;
678
+ verticalAlign?: SectionVerticalAlign;
679
+ columns?: ColumnsProperties;
680
+ type?: (typeof SectionType)[keyof typeof SectionType];
681
+ noEndnote?: boolean;
682
+ formProtection?: boolean;
683
+ bidi?: boolean;
684
+ rtlGutter?: boolean;
685
+ paperSrc?: {
686
+ first?: number;
687
+ other?: number;
688
+ };
689
+ footnoteProperties?: FootnotePropertiesOptions;
690
+ endnoteProperties?: EndnotePropertiesOptions;
691
+ }
692
+ type SectionPropertiesChangeOptions = ChangedProperties & SectionPropertiesOptionsBase;
693
+ type SectionPropertiesOptions = {
694
+ revision?: SectionPropertiesChangeOptions;
695
+ } & SectionPropertiesOptionsBase;
696
+ declare const sectionMarginDefaults: {
697
+ TOP: number;
698
+ RIGHT: number;
699
+ BOTTOM: number;
700
+ LEFT: number;
701
+ HEADER: number;
702
+ FOOTER: number;
703
+ GUTTER: number;
704
+ };
705
+ declare const sectionPageSizeDefaults: {
706
+ WIDTH: number;
707
+ HEIGHT: number;
708
+ ORIENTATION: "portrait";
709
+ };
710
+ //#endregion
711
+ //#region src/parts/alt-chunk/alt-chunk-collection.d.ts
712
+ interface AltChunkData {
713
+ key: string;
714
+ data: Uint8Array;
715
+ path: string;
716
+ extension: string;
717
+ contentType: string;
718
+ }
719
+ declare class AltChunkCollection {
720
+ private map;
721
+ constructor();
722
+ addAltChunk(key: string, data: AltChunkData): void;
723
+ get array(): AltChunkData[];
724
+ }
725
+ //#endregion
726
+ //#region src/parts/bibliography.d.ts
727
+ interface PersonOptions {
728
+ last?: string;
729
+ first?: string;
730
+ middle?: string;
731
+ }
732
+ interface CorporateOptions {
733
+ corporate: string;
734
+ }
735
+ type AuthorEntry = PersonOptions | CorporateOptions;
736
+ interface AuthorOptions {
737
+ authors?: AuthorEntry[];
738
+ artists?: PersonOptions[];
739
+ bookAuthors?: PersonOptions[];
740
+ compilers?: PersonOptions[];
741
+ composers?: PersonOptions[];
742
+ conductors?: PersonOptions[];
743
+ counsel?: PersonOptions[];
744
+ directors?: PersonOptions[];
745
+ editors?: PersonOptions[];
746
+ interviewees?: PersonOptions[];
747
+ interviewers?: PersonOptions[];
748
+ inventors?: PersonOptions[];
749
+ performers?: AuthorEntry[];
750
+ producers?: PersonOptions[];
751
+ translators?: PersonOptions[];
752
+ writers?: PersonOptions[];
753
+ }
754
+ interface SourceTypeOptions {
755
+ sourceType?: "ArticleInAPeriodical" | "Book" | "BookSection" | "JournalArticle" | "ConferenceProceedings" | "Report" | "SoundRecording" | "Performance" | "Art" | "DocumentFromInternetSite" | "InternetSite" | "Film" | "Interview" | "Patent" | "ElectronicSource" | "Case" | "Misc";
756
+ type?: string;
757
+ title?: string;
758
+ author?: AuthorOptions;
759
+ year?: string;
760
+ month?: string;
761
+ day?: string;
762
+ bookTitle?: string;
763
+ journal?: string;
764
+ volume?: string;
765
+ issue?: string;
766
+ pages?: string;
767
+ publisher?: string;
768
+ city?: string;
769
+ url?: string;
770
+ edition?: string;
771
+ institution?: string;
772
+ abbreviatedCaseNumber?: string;
773
+ albumTitle?: string;
774
+ broadcaster?: string;
775
+ broadcastTitle?: string;
776
+ caseNumber?: string;
777
+ chapterNumber?: string;
778
+ comments?: string;
779
+ conferenceName?: string;
780
+ countryRegion?: string;
781
+ court?: string;
782
+ dayAccessed?: string;
783
+ department?: string;
784
+ distributor?: string;
785
+ guid?: string;
786
+ internetSiteTitle?: string;
787
+ lcid?: string;
788
+ medium?: string;
789
+ monthAccessed?: string;
790
+ numberVolumes?: string;
791
+ patentNumber?: string;
792
+ periodicalTitle?: string;
793
+ productionCompany?: string;
794
+ publicationTitle?: string;
795
+ recordingNumber?: string;
796
+ refOrder?: string;
797
+ reporter?: string;
798
+ shortTitle?: string;
799
+ standardNumber?: string;
800
+ stateProvince?: string;
801
+ station?: string;
802
+ tag?: string;
803
+ theater?: string;
804
+ thesisType?: string;
805
+ version?: string;
806
+ yearAccessed?: string;
807
+ }
808
+ interface BibliographyOptions {
809
+ sources: SourceTypeOptions[];
810
+ styleName?: string;
811
+ }
812
+ declare const bibliographyDesc: CustomDescriptor<BibliographyOptions>;
813
+ //#endregion
814
+ //#region src/parts/comments-extended.d.ts
815
+ interface CommentExtendedOptions {
816
+ paraId: LongHexNumber;
817
+ paraIdParent?: LongHexNumber;
818
+ done?: boolean;
819
+ nextGen?: true;
820
+ }
821
+ declare const commentsExtendedDesc: CustomDescriptor<CommentExtendedOptions[]>;
822
+ //#endregion
823
+ //#region src/parts/fonts/font.d.ts
824
+ declare const CharacterSet: {
825
+ readonly ANSI: "00";
826
+ readonly ARABIC: "B2";
827
+ readonly BALTIC: "BA";
828
+ readonly CHINESEBIG5: "88";
829
+ readonly DEFAULT: "01";
830
+ readonly EASTEUROPE: "EE";
831
+ readonly GB_2312: "86";
832
+ readonly GREEK: "A1";
833
+ readonly HANGUL: "81";
834
+ readonly HEBREW: "B1";
835
+ readonly JIS: "80";
836
+ readonly JOHAB: "82";
837
+ readonly MAC: "4D";
838
+ readonly OEM: "FF";
839
+ readonly RUSSIAN: "CC";
840
+ readonly SYMBOL: "02";
841
+ readonly THAI: "DE";
842
+ readonly TURKISH: "A2";
843
+ readonly VIETNAMESE: "A3";
844
+ };
845
+ //#endregion
846
+ //#region src/parts/fonts/font-wrapper.d.ts
847
+ type EmbeddedFontOptionsWithKey = EmbeddedFontOptions & {
848
+ fontKey: Guid;
849
+ embedRid?: string;
850
+ data?: Uint8Array;
851
+ };
852
+ declare class FontWrapper implements ViewWrapper {
853
+ options: EmbeddedFontOptions[];
854
+ relationships: Relationships;
855
+ fontOptionsWithKey: EmbeddedFontOptionsWithKey[];
856
+ constructor(options: EmbeddedFontOptions[]);
857
+ }
858
+ //#endregion
859
+ //#region src/parts/fonts/font-table.d.ts
860
+ interface FontSignature {
861
+ usb0: string;
862
+ usb1: string;
863
+ usb2: string;
864
+ usb3: string;
865
+ csb0: string;
866
+ csb1: string;
867
+ }
868
+ interface EmbeddedFontOptions {
869
+ name: string;
870
+ data?: DataType;
871
+ characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
872
+ characterSetName?: string;
873
+ family?: string;
874
+ notTrueType?: boolean;
875
+ pitch?: string;
876
+ panose1?: string;
877
+ altName?: string;
878
+ sig?: FontSignature;
879
+ rawOdttf?: boolean;
880
+ odttfPath?: string;
881
+ fontKey?: string;
882
+ subsetted?: boolean;
883
+ requires?: string;
884
+ }
885
+ //#endregion
886
+ //#region src/parts/glossary-document.d.ts
887
+ declare const DocPartGallery: {
888
+ readonly PLACEHOLDER: "placeholder";
889
+ readonly DEFAULT: "default";
890
+ readonly DOC_PARTS: "docParts";
891
+ readonly COVER_PAGE: "coverPg";
892
+ readonly EQUATIONS: "eq";
893
+ readonly FOOTERS: "ftrs";
894
+ readonly HEADERS: "hdrs";
895
+ readonly PAGE_NUMBERS: "pgNum";
896
+ readonly TABLES: "tbls";
897
+ readonly WATERMARKS: "watermarks";
898
+ readonly AUTO_TEXT: "autoTxt";
899
+ readonly TEXT_BOX: "txtBox";
900
+ readonly PAGE_NUMBERS_TOP: "pgNumT";
901
+ readonly PAGE_NUMBERS_BOTTOM: "pgNumB";
902
+ readonly PAGE_NUMBERS_MARGIN: "pgNumMargins";
903
+ readonly TABLE_OF_CONTENTS: "tblOfContents";
904
+ readonly BIBLIOGRAPHY: "bib";
529
905
  readonly CUSTOM_QUICK_PARTS: "custQuickParts";
530
906
  readonly CUSTOM_COVER_PAGE: "custCoverPg";
531
907
  readonly CUSTOM_EQUATIONS: "custEq";
@@ -564,6 +940,10 @@ declare const DocPartBehavior: {
564
940
  readonly PAGE: "pg";
565
941
  };
566
942
  type DocPartBehavior = (typeof DocPartBehavior)[keyof typeof DocPartBehavior];
943
+ interface DocPartSectionOptions {
944
+ children: SectionChild[];
945
+ properties?: SectionPropertiesOptions;
946
+ }
567
947
  interface DocPartOptions {
568
948
  name: string;
569
949
  gallery: DocPartGallery;
@@ -574,7 +954,8 @@ interface DocPartOptions {
574
954
  description?: string;
575
955
  guid?: string;
576
956
  decorated?: boolean;
577
- children: SectionChild[];
957
+ style?: string;
958
+ sections: DocPartSectionOptions[];
578
959
  }
579
960
  interface GlossaryDocumentOptions {
580
961
  parts: DocPartOptions[];
@@ -584,7 +965,9 @@ declare const glossaryDesc: CustomDescriptor<GlossaryDocumentOptions, BodyContex
584
965
  //#region src/parts/object/object-element.d.ts
585
966
  interface ObjectEmbedOptions {
586
967
  data: Uint8Array | string;
968
+ fileName?: string;
587
969
  progId?: string;
970
+ relationshipType?: "oleObject" | "package";
588
971
  drawAspect?: "content" | "icon";
589
972
  shapeId?: string;
590
973
  objectId?: string;
@@ -603,6 +986,7 @@ interface ObjectIconImageOptions {
603
986
  data: Uint8Array | string;
604
987
  type: string;
605
988
  title?: string;
989
+ fileName?: string;
606
990
  }
607
991
  interface ObjectElementOptions {
608
992
  dxaOrig?: number;
@@ -610,6 +994,7 @@ interface ObjectElementOptions {
610
994
  shapeId?: string;
611
995
  width?: number | UniversalMeasure;
612
996
  height?: number | UniversalMeasure;
997
+ shapetype?: VmlShapetypeOptions;
613
998
  iconImage?: ObjectIconImageOptions;
614
999
  embed?: ObjectEmbedOptions;
615
1000
  link?: ObjectLinkOptions;
@@ -618,6 +1003,32 @@ interface ObjectElementOptions {
618
1003
  }
619
1004
  declare const objectDesc: CustomDescriptor<ObjectElementOptions, BodyContext>;
620
1005
  //#endregion
1006
+ //#region src/parts/paragraph/run/ruby.d.ts
1007
+ declare const RubyAlign: {
1008
+ readonly CENTER: "center";
1009
+ readonly DISTRIBUTE_LETTER: "distributeLetter";
1010
+ readonly DISTRIBUTE_SPACE: "distributeSpace";
1011
+ readonly LEFT: "left";
1012
+ readonly RIGHT: "right";
1013
+ readonly RIGHT_VERTICAL: "rightVertical";
1014
+ };
1015
+ interface RubyPropertiesOptions {
1016
+ alignment: (typeof RubyAlign)[keyof typeof RubyAlign];
1017
+ fontSize: number;
1018
+ raise: number;
1019
+ baseFontSize: number;
1020
+ languageId: string;
1021
+ dirty?: boolean;
1022
+ }
1023
+ interface RubyContentOptions {
1024
+ children?: (RunOptions | string)[];
1025
+ }
1026
+ interface RubyOptions {
1027
+ properties: RubyPropertiesOptions;
1028
+ text: RubyContentOptions;
1029
+ base: RubyContentOptions;
1030
+ }
1031
+ //#endregion
621
1032
  //#region src/parts/paragraph/run/run.d.ts
622
1033
  type BreakClear = "none" | "left" | "right" | "all";
623
1034
  interface BreakOptions {
@@ -663,14 +1074,18 @@ interface RunOptionsBase {
663
1074
  lastRenderedPageBreak: true;
664
1075
  } | {
665
1076
  object: ObjectElementOptions;
666
- } | Record<string, unknown>)[];
1077
+ } | {
1078
+ ruby: RubyOptions;
1079
+ } | ParagraphChild)[];
667
1080
  break?: number | BreakOptions;
668
1081
  text?: string;
1082
+ footnoteReference?: number | FootnoteEndnoteReferenceOptions;
1083
+ endnoteReference?: number | FootnoteEndnoteReferenceOptions;
669
1084
  }
670
1085
  type RunOptions = RunOptionsBase & RunPropertiesOptions & {
671
- rsid?: string;
672
- runPropertiesRsid?: string;
673
- deletionRsid?: string;
1086
+ additionRsid?: LongHexNumber;
1087
+ runPropertiesRsid?: LongHexNumber;
1088
+ deletionRsid?: LongHexNumber;
674
1089
  };
675
1090
  type ParagraphRunOptions = RunOptionsBase & ParagraphRunPropertiesOptions;
676
1091
  declare const PageNumber: {
@@ -680,231 +1095,560 @@ declare const PageNumber: {
680
1095
  readonly CURRENT_SECTION: "SECTION";
681
1096
  };
682
1097
  //#endregion
683
- //#region src/parts/paragraph/run/comment-run.d.ts
684
- interface CommentOptions {
1098
+ //#region src/parts/paragraph/links/bookmark.d.ts
1099
+ type DisplacedByCustomXml = "next" | "prev";
1100
+ interface MarkupRangeOptions {
685
1101
  id: number;
686
- children: (string | ParagraphOptions)[];
687
- initials?: string;
688
- author?: string;
689
- date?: Date | string;
1102
+ displacedByCustomXml?: DisplacedByCustomXml;
690
1103
  }
691
- interface CommentsOptions {
692
- children: CommentOptions[];
1104
+ interface BookmarkStartOptions extends MarkupRangeOptions {
1105
+ name: string;
1106
+ colFirst?: number;
1107
+ colLast?: number;
693
1108
  }
694
- interface CommentChildOptions {
1109
+ interface MoveRangeStartOptions {
1110
+ id: number;
1111
+ name?: string;
695
1112
  author?: string;
696
- initials?: string;
697
- date?: Date | string;
698
- children: (string | ParagraphOptions)[];
1113
+ date?: DateTime;
1114
+ displacedByCustomXml?: DisplacedByCustomXml;
1115
+ colFirst?: number;
1116
+ colLast?: number;
1117
+ }
1118
+ interface BookmarkOptions {
1119
+ name: string;
1120
+ wrap?: (string | RunOptions)[];
1121
+ displacedByCustomXml?: DisplacedByCustomXml;
1122
+ colFirst?: number;
1123
+ colLast?: number;
1124
+ }
1125
+ interface MoveRangeOptions {
1126
+ author: string;
1127
+ date: DateTime;
699
1128
  wrap?: (string | RunOptions)[];
1129
+ name: string;
1130
+ displacedByCustomXml?: DisplacedByCustomXml;
1131
+ colFirst?: number;
1132
+ colLast?: number;
700
1133
  }
701
1134
  //#endregion
702
- //#region src/parts/settings/compatibility.d.ts
703
- interface CompatibilityOptions {
704
- version?: number;
705
- useSingleBorderforContiguousCells?: boolean;
706
- wordPerfectJustification?: boolean;
707
- noTabStopForHangingIndent?: boolean;
708
- noLeading?: boolean;
709
- spaceForUnderline?: boolean;
710
- noColumnBalance?: boolean;
711
- balanceSingleByteDoubleByteWidth?: boolean;
712
- noExtraLineSpacing?: boolean;
713
- doNotLeaveBackslashAlone?: boolean;
714
- underlineTrailingSpaces?: boolean;
715
- doNotExpandShiftReturn?: boolean;
716
- spacingInWholePoints?: boolean;
717
- lineWrapLikeWord6?: boolean;
718
- printBodyTextBeforeHeader?: boolean;
719
- printColorsBlack?: boolean;
720
- spaceWidth?: boolean;
721
- showBreaksInFrames?: boolean;
722
- subFontBySize?: boolean;
723
- suppressBottomSpacing?: boolean;
724
- suppressTopSpacing?: boolean;
725
- suppressSpacingAtTopOfPage?: boolean;
726
- suppressTopSpacingWP?: boolean;
727
- suppressSpBfAfterPgBrk?: boolean;
728
- swapBordersFacingPages?: boolean;
729
- convertMailMergeEsc?: boolean;
730
- truncateFontHeightsLikeWP6?: boolean;
731
- macWordSmallCaps?: boolean;
732
- usePrinterMetrics?: boolean;
733
- doNotSuppressParagraphBorders?: boolean;
734
- wrapTrailSpaces?: boolean;
735
- footnoteLayoutLikeWW8?: boolean;
736
- shapeLayoutLikeWW8?: boolean;
737
- alignTablesRowByRow?: boolean;
738
- forgetLastTabAlignment?: boolean;
739
- adjustLineHeightInTable?: boolean;
740
- autoSpaceLikeWord95?: boolean;
741
- noSpaceRaiseLower?: boolean;
742
- doNotUseHTMLParagraphAutoSpacing?: boolean;
743
- layoutRawTableWidth?: boolean;
744
- layoutTableRowsApart?: boolean;
745
- useWord97LineBreakRules?: boolean;
746
- doNotBreakWrappedTables?: boolean;
747
- doNotSnapToGridInCell?: boolean;
748
- selectFieldWithFirstOrLastCharacter?: boolean;
749
- applyBreakingRules?: boolean;
750
- doNotWrapTextWithPunctuation?: boolean;
751
- doNotUseEastAsianBreakRules?: boolean;
752
- useWord2002TableStyleRules?: boolean;
753
- growAutofit?: boolean;
754
- useFELayout?: boolean;
755
- useNormalStyleForList?: boolean;
756
- doNotUseIndentAsNumberingTabStop?: boolean;
757
- useAlternateEastAsianLineBreakRules?: boolean;
758
- allowSpaceOfSameStyleInTable?: boolean;
759
- doNotSuppressIndentation?: boolean;
760
- doNotAutofitConstrainedTables?: boolean;
761
- autofitToFirstFixedWidthCell?: boolean;
762
- underlineTabInNumberingList?: boolean;
763
- displayHangulFixedWidth?: boolean;
764
- splitPgBreakAndParaMark?: boolean;
765
- doNotVerticallyAlignCellWithSp?: boolean;
766
- doNotBreakConstrainedForcedTable?: boolean;
767
- ignoreVerticalAlignmentInTextboxes?: boolean;
768
- useAnsiKerningPairs?: boolean;
769
- cachedColumnBalance?: boolean;
770
- overrideTableStyleFontSizeAndJustification?: boolean;
771
- enableOpenTypeFeatures?: boolean;
772
- doNotFlipMirrorIndents?: boolean;
773
- compatSettings?: CompatSettingOptions[];
1135
+ //#region src/parts/table/grid.d.ts
1136
+ interface TableGridChangeOptions {
1137
+ id: number;
1138
+ columnWidths: number[] | PositiveUniversalMeasure[];
774
1139
  }
775
- interface CompatSettingOptions {
776
- name: string;
777
- val: string;
778
- uri?: string;
1140
+ //#endregion
1141
+ //#region src/parts/table/table-cell-spacing.d.ts
1142
+ declare const CellSpacingType: {
1143
+ readonly DXA: "twips";
1144
+ readonly NIL: "nil";
1145
+ readonly PERCENTAGE: "percent";
1146
+ };
1147
+ interface TableCellSpacingProperties {
1148
+ size: number | Percentage | UniversalMeasure;
1149
+ type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
779
1150
  }
780
1151
  //#endregion
781
- //#region src/parts/settings/settings.d.ts
782
- interface ShapeDefaultsOptions {
783
- shapedefaults?: VmlShapeDefaultsOptions;
784
- shapelayout?: VmlShapeLayoutOptions;
1152
+ //#region src/parts/table/table-width.d.ts
1153
+ declare const WidthType: {
1154
+ readonly AUTO: "auto";
1155
+ readonly DXA: "twips";
1156
+ readonly NIL: "nil";
1157
+ readonly PERCENTAGE: "percent";
1158
+ };
1159
+ interface TableWidthProperties {
1160
+ size: number | Percentage | UniversalMeasure;
1161
+ type?: (typeof WidthType)[keyof typeof WidthType];
785
1162
  }
786
- interface SettingsOptions {
787
- rawXml?: string;
788
- rootAttributes?: Record<string, string>;
789
- evenAndOddHeaders?: boolean;
790
- trackRevisions?: boolean;
791
- doNotTrackFormatting?: boolean;
792
- doNotTrackMoves?: boolean;
793
- revisionView?: RevisionViewOptions;
794
- updateFields?: boolean;
795
- compatibility?: CompatibilityOptions | false;
796
- defaultTabStop?: number;
797
- hyphenation?: HyphenationOptions;
798
- characterSpacingControl?: "compressPunctuation" | "doNotCompress";
799
- documentProtection?: DocumentProtectionOptions;
800
- view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
801
- zoom?: {
802
- percent?: number;
803
- val?: "none" | "fullPage" | "bestFit" | "textFit";
804
- };
805
- writeProtection?: WriteProtectionOptions;
806
- displayBackgroundShape?: boolean;
807
- doNotDisplayPageBoundaries?: boolean;
808
- embedTrueTypeFonts?: boolean;
809
- embedSystemFonts?: boolean;
810
- saveSubsetFonts?: boolean;
811
- docVars?: {
812
- name: string;
813
- val: string;
814
- }[];
815
- mailMerge?: MailMergeOptions;
816
- colorSchemeMapping?: {
817
- bg1?: string;
818
- t1?: string;
819
- bg2?: string;
820
- t2?: string;
821
- accent1?: string;
822
- accent2?: string;
823
- accent3?: string;
824
- accent4?: string;
825
- accent5?: string;
826
- accent6?: string;
827
- hyperlink?: string;
828
- followedHyperlink?: string;
829
- };
830
- attachedTemplate?: string;
831
- themeFontLang?: {
832
- val?: string;
833
- eastAsia?: string;
834
- bidi?: string;
835
- };
836
- hideSpellingErrors?: boolean;
837
- hideGrammaticalErrors?: boolean;
838
- noPunctuationKerning?: boolean;
839
- removePersonalInformation?: boolean;
840
- removeDateAndTime?: boolean;
841
- printPostScriptOverText?: boolean;
842
- printFractionalCharacterWidth?: boolean;
843
- printFormsData?: boolean;
844
- saveFormsData?: boolean;
845
- mirrorMargins?: boolean;
846
- alignBordersAndEdges?: boolean;
847
- bordersDoNotSurroundHeader?: boolean;
848
- bordersDoNotSurroundFooter?: boolean;
849
- gutterAtTop?: boolean;
850
- formsDesign?: boolean;
851
- linkStyles?: boolean;
852
- autoFormatOverride?: boolean;
853
- styleLockTheme?: boolean;
854
- styleLockQFSet?: boolean;
855
- showEnvelope?: boolean;
856
- printTwoOnOne?: boolean;
857
- strictFirstAndLastChars?: boolean;
858
- savePreviewPicture?: boolean;
859
- doNotValidateAgainstSchema?: boolean;
860
- saveInvalidXml?: boolean;
861
- ignoreMixedContent?: boolean;
862
- alwaysShowPlaceholderText?: boolean;
863
- doNotDemarcateInvalidXml?: boolean;
864
- saveXmlDataOnly?: boolean;
865
- useXSLTWhenSaving?: boolean;
866
- doNotEmbedSmartTags?: boolean;
867
- doNotAutoCompressPictures?: boolean;
868
- doNotIncludeSubdocsInStats?: boolean;
869
- bookFoldPrinting?: boolean;
870
- bookFoldRevPrinting?: boolean;
871
- defaultTableStyle?: string;
872
- decimalSymbol?: string;
873
- listSeparator?: string;
874
- w14DocId?: string;
875
- w15ChartTrackingRefBased?: boolean;
876
- w15DocId?: string;
877
- clickAndTypeStyle?: string;
878
- summaryLength?: number;
879
- bookFoldPrintingSheets?: number;
880
- drawingGridHorizontalSpacing?: number;
881
- drawingGridVerticalSpacing?: number;
882
- displayHorizontalDrawingGridEvery?: number;
883
- displayVerticalDrawingGridEvery?: number;
884
- drawingGridHorizontalOrigin?: number;
885
- drawingGridVerticalOrigin?: number;
886
- footnotePr?: DocumentFootnotePropertiesOptions;
887
- endnotePr?: DocumentEndnotePropertiesOptions;
888
- rsids?: RsidsOptions;
889
- readModeInkLockDown?: ReadModeInkLockDownOptions;
890
- captions?: CaptionsOptions;
891
- mathPr?: MathPropertiesOptions;
892
- activeWritingStyle?: {
893
- lang?: string;
894
- vendorID?: string;
895
- dllVersion?: string;
896
- nlCheck?: boolean;
897
- checkStyle?: boolean;
898
- appCheck?: string;
899
- appName?: string;
900
- }[];
901
- proofState?: {
902
- spelling?: "clean" | "dirty";
903
- grammar?: "clean" | "dirty";
904
- };
905
- stylePaneFormatFilter?: {
906
- allStyles?: boolean;
907
- customStyles?: boolean;
1163
+ declare const widthPctToFiftieths: (size: number | Percentage | UniversalMeasure) => number | Percentage | UniversalMeasure;
1164
+ declare const widthFiftiethsToPct: (size: number | string | undefined, type: string | undefined) => number | string | undefined;
1165
+ //#endregion
1166
+ //#region src/parts/table/table-properties/table-borders.d.ts
1167
+ interface TableBordersOptions {
1168
+ top?: BorderOptions;
1169
+ bottom?: BorderOptions;
1170
+ left?: BorderOptions;
1171
+ right?: BorderOptions;
1172
+ start?: BorderOptions;
1173
+ end?: BorderOptions;
1174
+ insideHorizontal?: BorderOptions;
1175
+ insideVertical?: BorderOptions;
1176
+ }
1177
+ declare const TABLE_BORDERS_NONE: TableBordersOptions;
1178
+ //#endregion
1179
+ //#region src/parts/table/table-properties/table-cell-margin.d.ts
1180
+ interface TableCellMarginOptions {
1181
+ top?: TableWidthProperties;
1182
+ start?: TableWidthProperties;
1183
+ left?: TableWidthProperties;
1184
+ bottom?: TableWidthProperties;
1185
+ end?: TableWidthProperties;
1186
+ right?: TableWidthProperties;
1187
+ }
1188
+ //#endregion
1189
+ //#region src/parts/table/table-properties/table-float-properties.d.ts
1190
+ declare const TableAnchorType: {
1191
+ readonly MARGIN: "margin";
1192
+ readonly PAGE: "page";
1193
+ readonly TEXT: "text";
1194
+ };
1195
+ declare const RelativeHorizontalPosition: {
1196
+ readonly CENTER: "center";
1197
+ readonly INSIDE: "inside";
1198
+ readonly LEFT: "left";
1199
+ readonly OUTSIDE: "outside";
1200
+ readonly RIGHT: "right";
1201
+ };
1202
+ declare const RelativeVerticalPosition: {
1203
+ readonly BOTTOM: "bottom";
1204
+ readonly CENTER: "center";
1205
+ readonly INLINE: "inline";
1206
+ readonly INSIDE: "inside";
1207
+ readonly OUTSIDE: "outside";
1208
+ readonly TOP: "top";
1209
+ };
1210
+ declare const OverlapType: {
1211
+ readonly NEVER: "never";
1212
+ readonly OVERLAP: "overlap";
1213
+ };
1214
+ interface TableFloatOptions {
1215
+ horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1216
+ absoluteHorizontalPosition?: number;
1217
+ relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
1218
+ verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1219
+ absoluteVerticalPosition?: number;
1220
+ relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
1221
+ bottomFromText?: number;
1222
+ topFromText?: number;
1223
+ leftFromText?: number;
1224
+ rightFromText?: number;
1225
+ overlap?: (typeof OverlapType)[keyof typeof OverlapType];
1226
+ }
1227
+ //#endregion
1228
+ //#region src/parts/table/table-properties/table-layout.d.ts
1229
+ declare const TableLayoutType: {
1230
+ readonly AUTOFIT: "autofit";
1231
+ readonly FIXED: "fixed";
1232
+ };
1233
+ //#endregion
1234
+ //#region src/parts/table/table-properties/table-look.d.ts
1235
+ interface TableLookOptions {
1236
+ val?: ShortHexNumber;
1237
+ firstRow?: boolean;
1238
+ lastRow?: boolean;
1239
+ firstCol?: boolean;
1240
+ lastCol?: boolean;
1241
+ bandRow?: boolean;
1242
+ bandCol?: boolean;
1243
+ }
1244
+ //#endregion
1245
+ //#region src/parts/table/table-properties/table-properties.d.ts
1246
+ type TableJustification = "start" | "center" | "end" | "left" | "right";
1247
+ interface TablePropertiesOptionsBase {
1248
+ width?: TableWidthProperties;
1249
+ indent?: TableWidthProperties;
1250
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1251
+ borders?: TableBordersOptions;
1252
+ float?: TableFloatOptions;
1253
+ shading?: ShadingProperties;
1254
+ style?: string;
1255
+ alignment?: TableJustification;
1256
+ margins?: TableCellMarginOptions;
1257
+ visuallyRightToLeft?: boolean;
1258
+ tableLook?: TableLookOptions;
1259
+ cellSpacing?: TableCellSpacingProperties;
1260
+ styleRowBandSize?: number;
1261
+ styleColBandSize?: number;
1262
+ caption?: string;
1263
+ description?: string;
1264
+ }
1265
+ type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedProperties;
1266
+ type TablePropertiesOptions = {
1267
+ revision?: TablePropertiesChangeOptions;
1268
+ } & TablePropertiesOptionsBase;
1269
+ //#endregion
1270
+ //#region src/parts/table/table-properties/table-property-exceptions.d.ts
1271
+ interface TablePropertyExOptions {
1272
+ width?: TableWidthProperties;
1273
+ indent?: TableWidthProperties;
1274
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1275
+ borders?: TableBordersOptions;
1276
+ shading?: ShadingProperties;
1277
+ alignment?: TableJustification;
1278
+ margins?: TableCellMarginOptions;
1279
+ tableLook?: TableLookOptions;
1280
+ cellSpacing?: TableCellSpacingProperties;
1281
+ tblPrExChange?: TablePropertyExChangeOptions;
1282
+ }
1283
+ type TablePropertyExChangeOptions = Omit<TablePropertyExOptions, "tblPrExChange"> & ChangedProperties;
1284
+ //#endregion
1285
+ //#region src/parts/table/table-cell/table-cell-components.d.ts
1286
+ interface TableCellBordersOptions {
1287
+ top?: BorderOptions;
1288
+ start?: BorderOptions;
1289
+ left?: BorderOptions;
1290
+ bottom?: BorderOptions;
1291
+ end?: BorderOptions;
1292
+ right?: BorderOptions;
1293
+ insideHorizontal?: BorderOptions;
1294
+ insideVertical?: BorderOptions;
1295
+ topLeftToBottomRight?: BorderOptions;
1296
+ topRightToBottomLeft?: BorderOptions;
1297
+ }
1298
+ declare const VerticalMergeType: {
1299
+ readonly CONTINUE: "continue";
1300
+ readonly RESTART: "restart";
1301
+ };
1302
+ declare const TextDirection: {
1303
+ readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
1304
+ readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
1305
+ readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
1306
+ };
1307
+ //#endregion
1308
+ //#region src/parts/table/table-row/table-row-height.d.ts
1309
+ declare const HeightRule: {
1310
+ readonly AUTO: "auto";
1311
+ readonly ATLEAST: "atLeast";
1312
+ readonly EXACT: "exact";
1313
+ };
1314
+ //#endregion
1315
+ //#region src/parts/table/table-row/table-row-properties.d.ts
1316
+ type CnfBitmask = string;
1317
+ interface CnfStyleOptions {
1318
+ val?: CnfBitmask;
1319
+ firstRow?: boolean;
1320
+ lastRow?: boolean;
1321
+ firstColumn?: boolean;
1322
+ lastColumn?: boolean;
1323
+ oddVBand?: boolean;
1324
+ evenVBand?: boolean;
1325
+ oddHBand?: boolean;
1326
+ evenHBand?: boolean;
1327
+ firstRowFirstColumn?: boolean;
1328
+ firstRowLastColumn?: boolean;
1329
+ lastRowFirstColumn?: boolean;
1330
+ lastRowLastColumn?: boolean;
1331
+ }
1332
+ interface TableRowPropertiesOptionsBase {
1333
+ cnfStyle?: CnfStyleOptions;
1334
+ cantSplit?: boolean;
1335
+ tableHeader?: boolean;
1336
+ height?: {
1337
+ value: number | PositiveUniversalMeasure;
1338
+ rule?: (typeof HeightRule)[keyof typeof HeightRule];
1339
+ };
1340
+ cellSpacing?: TableCellSpacingProperties;
1341
+ divId?: number;
1342
+ gridBefore?: number;
1343
+ gridAfter?: number;
1344
+ widthBefore?: TableWidthProperties;
1345
+ widthAfter?: TableWidthProperties;
1346
+ rowAlignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1347
+ hidden?: boolean;
1348
+ }
1349
+ type TableRowPropertiesOptions = TableRowPropertiesOptionsBase & {
1350
+ insertion?: ChangedProperties;
1351
+ deletion?: ChangedProperties;
1352
+ revision?: TableRowPropertiesChangeOptions;
1353
+ };
1354
+ type TableRowPropertiesChangeOptions = TableRowPropertiesOptionsBase & ChangedProperties;
1355
+ //#endregion
1356
+ //#region src/parts/table/table-row/table-row.d.ts
1357
+ type TableRowMarkerChild = {
1358
+ commentRangeStart: MarkupRangeOptions;
1359
+ } | {
1360
+ commentRangeEnd: MarkupRangeOptions;
1361
+ } | {
1362
+ bookmarkStart: BookmarkStartOptions;
1363
+ } | {
1364
+ bookmarkEnd: MarkupRangeOptions;
1365
+ };
1366
+ interface SdtRowOptions {
1367
+ properties: SdtPropertiesOptions;
1368
+ rows?: TableRowOptions[];
1369
+ endProperties?: RunPropertiesOptions;
1370
+ }
1371
+ interface TableRowOptions extends BaseTableRowOptions<TableCellOptions | {
1372
+ sdt: SdtCellOptions;
1373
+ } | {
1374
+ customXml: CustomXmlCellOptions;
1375
+ } | TableRowMarkerChild>, TableRowPropertiesOptions {
1376
+ propertyExceptions?: TablePropertyExOptions;
1377
+ runPropertiesRsid?: LongHexNumber;
1378
+ additionRsid?: LongHexNumber;
1379
+ deletionRsid?: LongHexNumber;
1380
+ tableRowRsid?: LongHexNumber;
1381
+ }
1382
+ //#endregion
1383
+ //#region src/parts/table/table.d.ts
1384
+ interface TableOptions extends BaseTableOptions<TableRowOptions | {
1385
+ sdt: SdtRowOptions;
1386
+ } | {
1387
+ customXml: CustomXmlRowOptions;
1388
+ }> {
1389
+ width?: TableWidthProperties;
1390
+ columnWidthsRevision?: TableGridChangeOptions;
1391
+ margins?: TableCellMarginOptions;
1392
+ indent?: TableWidthProperties;
1393
+ float?: TableFloatOptions;
1394
+ layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1395
+ style?: string;
1396
+ borders?: TableBordersOptions;
1397
+ alignment?: TableJustification;
1398
+ visuallyRightToLeft?: boolean;
1399
+ cellSpacing?: TableCellSpacingProperties;
1400
+ styleRowBandSize?: number;
1401
+ styleColBandSize?: number;
1402
+ caption?: string;
1403
+ description?: string;
1404
+ revision?: TablePropertiesChangeOptions;
1405
+ tableLook?: TableLookOptions;
1406
+ shading?: ShadingProperties;
1407
+ }
1408
+ //#endregion
1409
+ //#region src/parts/paragraph/run/comment-run.d.ts
1410
+ interface CommentOptions {
1411
+ id: number;
1412
+ children: (string | ParagraphOptions | {
1413
+ table: TableOptions;
1414
+ } | {
1415
+ bookmarkStart: BookmarkStartOptions;
1416
+ } | {
1417
+ bookmarkEnd: MarkupRangeOptions;
1418
+ })[];
1419
+ initials?: string;
1420
+ author?: string;
1421
+ date?: string | null;
1422
+ }
1423
+ interface CommentChildOptions {
1424
+ author?: string;
1425
+ initials?: string;
1426
+ date?: DateTime;
1427
+ children: (string | ParagraphOptions)[];
1428
+ wrap?: (string | RunOptions)[];
1429
+ }
1430
+ //#endregion
1431
+ //#region src/parts/people.d.ts
1432
+ interface CommentPersonOptions {
1433
+ author: string;
1434
+ contact?: string;
1435
+ presenceInfo?: {
1436
+ providerId?: string;
1437
+ userId?: string;
1438
+ };
1439
+ }
1440
+ declare const peopleDesc: CustomDescriptor<CommentPersonOptions[]>;
1441
+ //#endregion
1442
+ //#region src/parts/settings/compatibility.d.ts
1443
+ interface CompatibilityOptions {
1444
+ version?: number;
1445
+ useSingleBorderforContiguousCells?: boolean;
1446
+ wordPerfectJustification?: boolean;
1447
+ noTabStopForHangingIndent?: boolean;
1448
+ noLeading?: boolean;
1449
+ spaceForUnderline?: boolean;
1450
+ noColumnBalance?: boolean;
1451
+ balanceSingleByteDoubleByteWidth?: boolean;
1452
+ noExtraLineSpacing?: boolean;
1453
+ doNotLeaveBackslashAlone?: boolean;
1454
+ underlineTrailingSpaces?: boolean;
1455
+ doNotExpandShiftReturn?: boolean;
1456
+ spacingInWholePoints?: boolean;
1457
+ lineWrapLikeWord6?: boolean;
1458
+ printBodyTextBeforeHeader?: boolean;
1459
+ printColorsBlack?: boolean;
1460
+ spaceWidth?: boolean;
1461
+ showBreaksInFrames?: boolean;
1462
+ subFontBySize?: boolean;
1463
+ suppressBottomSpacing?: boolean;
1464
+ suppressTopSpacing?: boolean;
1465
+ suppressSpacingAtTopOfPage?: boolean;
1466
+ suppressTopSpacingWP?: boolean;
1467
+ suppressSpBfAfterPgBrk?: boolean;
1468
+ swapBordersFacingPages?: boolean;
1469
+ convertMailMergeEsc?: boolean;
1470
+ truncateFontHeightsLikeWP6?: boolean;
1471
+ macWordSmallCaps?: boolean;
1472
+ usePrinterMetrics?: boolean;
1473
+ doNotSuppressParagraphBorders?: boolean;
1474
+ wrapTrailSpaces?: boolean;
1475
+ footnoteLayoutLikeWW8?: boolean;
1476
+ shapeLayoutLikeWW8?: boolean;
1477
+ alignTablesRowByRow?: boolean;
1478
+ forgetLastTabAlignment?: boolean;
1479
+ adjustLineHeightInTable?: boolean;
1480
+ autoSpaceLikeWord95?: boolean;
1481
+ noSpaceRaiseLower?: boolean;
1482
+ doNotUseHTMLParagraphAutoSpacing?: boolean;
1483
+ layoutRawTableWidth?: boolean;
1484
+ layoutTableRowsApart?: boolean;
1485
+ useWord97LineBreakRules?: boolean;
1486
+ doNotBreakWrappedTables?: boolean;
1487
+ doNotSnapToGridInCell?: boolean;
1488
+ selectFieldWithFirstOrLastCharacter?: boolean;
1489
+ applyBreakingRules?: boolean;
1490
+ doNotWrapTextWithPunctuation?: boolean;
1491
+ doNotUseEastAsianBreakRules?: boolean;
1492
+ useWord2002TableStyleRules?: boolean;
1493
+ growAutofit?: boolean;
1494
+ useFELayout?: boolean;
1495
+ useNormalStyleForList?: boolean;
1496
+ doNotUseIndentAsNumberingTabStop?: boolean;
1497
+ useAlternateEastAsianLineBreakRules?: boolean;
1498
+ allowSpaceOfSameStyleInTable?: boolean;
1499
+ doNotSuppressIndentation?: boolean;
1500
+ doNotAutofitConstrainedTables?: boolean;
1501
+ autofitToFirstFixedWidthCell?: boolean;
1502
+ underlineTabInNumberingList?: boolean;
1503
+ displayHangulFixedWidth?: boolean;
1504
+ splitPgBreakAndParaMark?: boolean;
1505
+ doNotVerticallyAlignCellWithSp?: boolean;
1506
+ doNotBreakConstrainedForcedTable?: boolean;
1507
+ ignoreVerticalAlignmentInTextboxes?: boolean;
1508
+ useAnsiKerningPairs?: boolean;
1509
+ cachedColumnBalance?: boolean;
1510
+ overrideTableStyleFontSizeAndJustification?: boolean;
1511
+ enableOpenTypeFeatures?: boolean;
1512
+ doNotFlipMirrorIndents?: boolean;
1513
+ compatSettings?: CompatSettingOptions[];
1514
+ enableOpenTypeKerning?: boolean;
1515
+ }
1516
+ interface CompatSettingOptions {
1517
+ name: string;
1518
+ val: string;
1519
+ uri?: string;
1520
+ }
1521
+ //#endregion
1522
+ //#region src/parts/settings/settings.d.ts
1523
+ interface ShapeDefaultsOptions {
1524
+ shapedefaults?: VmlShapeDefaultsOptions;
1525
+ shapelayout?: VmlShapeLayoutOptions;
1526
+ }
1527
+ interface SettingsOptions {
1528
+ evenAndOddHeaders?: boolean;
1529
+ trackRevisions?: boolean;
1530
+ doNotTrackFormatting?: boolean;
1531
+ doNotTrackMoves?: boolean;
1532
+ revisionView?: RevisionViewOptions;
1533
+ updateFields?: boolean;
1534
+ compatibility?: CompatibilityOptions | false;
1535
+ defaultTabStop?: number;
1536
+ autoHyphenation?: boolean;
1537
+ consecutiveHyphenLimit?: number;
1538
+ hyphenationZone?: number;
1539
+ doNotHyphenateCaps?: boolean;
1540
+ characterSpacingControl?: "compressPunctuation" | "compressPunctuationAndJapaneseKana" | "doNotCompress";
1541
+ documentProtection?: DocumentProtectionOptions;
1542
+ view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
1543
+ zoom?: {
1544
+ percent?: number;
1545
+ val?: "none" | "fullPage" | "bestFit" | "textFit";
1546
+ };
1547
+ writeProtection?: WriteProtectionOptions;
1548
+ displayBackgroundShape?: boolean;
1549
+ doNotDisplayPageBoundaries?: boolean;
1550
+ embedTrueTypeFonts?: boolean;
1551
+ embedSystemFonts?: boolean;
1552
+ saveSubsetFonts?: boolean;
1553
+ docVars?: {
1554
+ name: string;
1555
+ val: string;
1556
+ }[];
1557
+ mailMerge?: MailMergeOptions;
1558
+ colorSchemeMapping?: {
1559
+ bg1?: ColorSchemeIndex;
1560
+ t1?: ColorSchemeIndex;
1561
+ bg2?: ColorSchemeIndex;
1562
+ t2?: ColorSchemeIndex;
1563
+ accent1?: ColorSchemeIndex;
1564
+ accent2?: ColorSchemeIndex;
1565
+ accent3?: ColorSchemeIndex;
1566
+ accent4?: ColorSchemeIndex;
1567
+ accent5?: ColorSchemeIndex;
1568
+ accent6?: ColorSchemeIndex;
1569
+ hyperlink?: ColorSchemeIndex;
1570
+ followedHyperlink?: ColorSchemeIndex;
1571
+ };
1572
+ attachedTemplate?: string;
1573
+ themeFontLang?: {
1574
+ val?: string;
1575
+ eastAsia?: string;
1576
+ bidi?: string;
1577
+ };
1578
+ hideSpellingErrors?: boolean;
1579
+ hideGrammaticalErrors?: boolean;
1580
+ noPunctuationKerning?: boolean;
1581
+ removePersonalInformation?: boolean;
1582
+ removeDateAndTime?: boolean;
1583
+ printPostScriptOverText?: boolean;
1584
+ printFractionalCharacterWidth?: boolean;
1585
+ printFormsData?: boolean;
1586
+ saveFormsData?: boolean;
1587
+ mirrorMargins?: boolean;
1588
+ alignBordersAndEdges?: boolean;
1589
+ bordersDoNotSurroundHeader?: boolean;
1590
+ bordersDoNotSurroundFooter?: boolean;
1591
+ gutterAtTop?: boolean;
1592
+ formsDesign?: boolean;
1593
+ linkStyles?: boolean;
1594
+ autoFormatOverride?: boolean;
1595
+ styleLockTheme?: boolean;
1596
+ styleLockQFSet?: boolean;
1597
+ showEnvelope?: boolean;
1598
+ printTwoOnOne?: boolean;
1599
+ strictFirstAndLastChars?: boolean;
1600
+ savePreviewPicture?: boolean;
1601
+ doNotValidateAgainstSchema?: boolean;
1602
+ saveInvalidXml?: boolean;
1603
+ ignoreMixedContent?: boolean;
1604
+ alwaysShowPlaceholderText?: boolean;
1605
+ doNotDemarcateInvalidXml?: boolean;
1606
+ saveXmlDataOnly?: boolean;
1607
+ useXSLTWhenSaving?: boolean;
1608
+ doNotEmbedSmartTags?: boolean;
1609
+ doNotAutoCompressPictures?: boolean;
1610
+ doNotIncludeSubdocsInStats?: boolean;
1611
+ bookFoldPrinting?: boolean;
1612
+ bookFoldRevPrinting?: boolean;
1613
+ defaultTableStyle?: string;
1614
+ decimalSymbol?: string;
1615
+ listSeparator?: string;
1616
+ w14DocId?: string;
1617
+ w14DiscardImageEditingData?: boolean;
1618
+ w14DefaultImageDpi?: number;
1619
+ w15ChartTrackingRefBased?: boolean;
1620
+ w15DocId?: string;
1621
+ clickAndTypeStyle?: string;
1622
+ summaryLength?: number;
1623
+ bookFoldPrintingSheets?: number;
1624
+ drawingGridHorizontalSpacing?: number;
1625
+ drawingGridVerticalSpacing?: number;
1626
+ displayHorizontalDrawingGridEvery?: number;
1627
+ displayVerticalDrawingGridEvery?: number;
1628
+ drawingGridHorizontalOrigin?: number;
1629
+ drawingGridVerticalOrigin?: number;
1630
+ footnoteProperties?: DocumentFootnotePropertiesOptions;
1631
+ endnoteProperties?: DocumentEndnotePropertiesOptions;
1632
+ rsids?: RsidsOptions;
1633
+ readModeInkLockDown?: ReadModeInkLockDownOptions;
1634
+ captions?: CaptionsOptions;
1635
+ mathProperties?: MathPropertiesOptions;
1636
+ uiCompat97To2003?: boolean;
1637
+ activeWritingStyle?: {
1638
+ lang?: string;
1639
+ vendorID?: string;
1640
+ dllVersion?: string;
1641
+ nlCheck?: boolean;
1642
+ checkStyle?: boolean;
1643
+ appName?: string;
1644
+ }[];
1645
+ proofState?: {
1646
+ spelling?: "clean" | "dirty";
1647
+ grammar?: "clean" | "dirty";
1648
+ };
1649
+ stylePaneFormatFilter?: {
1650
+ allStyles?: boolean;
1651
+ customStyles?: boolean;
908
1652
  stylesInUse?: boolean;
909
1653
  headingStyles?: boolean;
910
1654
  numberingStyles?: boolean;
@@ -918,8 +1662,9 @@ interface SettingsOptions {
918
1662
  visibleStyles?: boolean;
919
1663
  alternateStyleNames?: boolean;
920
1664
  latentStyles?: boolean;
1665
+ val?: ShortHexNumber;
921
1666
  };
922
- stylePaneSortMethod?: "name" | "priority" | "default" | "font";
1667
+ stylePaneSortMethod?: "name" | "priority" | "default" | "font" | "basedOn" | "type" | "0000" | "0001" | "0002" | "0003" | "0004" | "0005";
923
1668
  documentType?: "letter" | "eMail" | "notSpecified";
924
1669
  doNotUseMarginsForDrawingGridOrigin?: boolean;
925
1670
  doNotShadeFormData?: boolean;
@@ -933,7 +1678,6 @@ interface SettingsOptions {
933
1678
  };
934
1679
  saveThroughXslt?: {
935
1680
  id?: string;
936
- val?: string;
937
1681
  solutionID?: string;
938
1682
  };
939
1683
  showXMLTags?: boolean;
@@ -960,17 +1704,17 @@ interface DocumentProtectionOptions {
960
1704
  edit?: "none" | "readOnly" | "comments" | "trackedChanges" | "forms";
961
1705
  formatting?: boolean;
962
1706
  password?: string;
963
- hashValue?: string;
964
- saltValue?: string;
965
- hash?: string;
966
- salt?: string;
1707
+ hashValue?: Base64;
1708
+ saltValue?: Base64;
1709
+ hash?: Base64;
1710
+ salt?: Base64;
967
1711
  spinCount?: number;
968
1712
  algorithmName?: string;
969
- cryptoAlgorithmClass?: string;
1713
+ cryptoAlgorithmClass?: "hash" | "custom";
970
1714
  cryptoAlgorithmSid?: number;
971
- cryptoAlgorithmType?: string;
1715
+ cryptoAlgorithmType?: "typeAny" | "custom";
972
1716
  cryptoProvider?: string;
973
- cryptoProviderType?: string;
1717
+ cryptoProviderType?: "rsaAES" | "rsaFull" | "custom";
974
1718
  cryptoProviderTypeExtension?: number;
975
1719
  cryptoProviderTypeExtensionSource?: string;
976
1720
  algorithmExtensionId?: number;
@@ -979,18 +1723,18 @@ interface DocumentProtectionOptions {
979
1723
  }
980
1724
  interface WriteProtectionOptions {
981
1725
  password?: string;
982
- hashValue?: string;
983
- saltValue?: string;
984
- hash?: string;
985
- salt?: string;
1726
+ hashValue?: Base64;
1727
+ saltValue?: Base64;
1728
+ hash?: Base64;
1729
+ salt?: Base64;
986
1730
  spinCount?: number;
987
1731
  algorithmName?: string;
988
1732
  recommended?: boolean;
989
- cryptoAlgorithmClass?: string;
1733
+ cryptoAlgorithmClass?: "hash" | "custom";
990
1734
  cryptoAlgorithmSid?: number;
991
- cryptoAlgorithmType?: string;
1735
+ cryptoAlgorithmType?: "typeAny" | "custom";
992
1736
  cryptoProvider?: string;
993
- cryptoProviderType?: string;
1737
+ cryptoProviderType?: "rsaAES" | "rsaFull" | "custom";
994
1738
  cryptoProviderTypeExtension?: number;
995
1739
  cryptoProviderTypeExtensionSource?: string;
996
1740
  algorithmExtensionId?: number;
@@ -1019,7 +1763,6 @@ interface OdsoOptions {
1019
1763
  fHdr?: boolean;
1020
1764
  fieldMapData?: OdsoFieldMapDataOptions[];
1021
1765
  recipientData?: string[];
1022
- uniqueTag?: string;
1023
1766
  }
1024
1767
  interface MailMergeOptions {
1025
1768
  mainDocumentType: MailMergeDocType;
@@ -1038,32 +1781,26 @@ interface MailMergeOptions {
1038
1781
  checkErrors?: number;
1039
1782
  linkToQuery?: boolean;
1040
1783
  odso?: OdsoOptions;
1041
- active?: boolean;
1042
- recipients?: string;
1043
- }
1044
- interface HyphenationOptions {
1045
- autoHyphenation?: boolean;
1046
- hyphenationZone?: number;
1047
- consecutiveHyphenLimit?: number;
1048
- doNotHyphenateCaps?: boolean;
1049
1784
  }
1050
1785
  interface DocumentFootnotePropertiesOptions {
1051
1786
  pos?: "pageBottom" | "beneathText" | "sectEnd" | "docEnd";
1052
- numFmt?: string;
1787
+ numFmt?: (typeof NumberFormat)[keyof typeof NumberFormat];
1053
1788
  format?: string;
1054
1789
  numStart?: number;
1055
- numRestart?: string;
1790
+ numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
1791
+ footnotes?: number[];
1056
1792
  }
1057
1793
  interface DocumentEndnotePropertiesOptions {
1058
1794
  pos?: "sectEnd" | "docEnd";
1059
- numFmt?: string;
1795
+ numFmt?: (typeof NumberFormat)[keyof typeof NumberFormat];
1060
1796
  format?: string;
1061
1797
  numStart?: number;
1062
- numRestart?: string;
1798
+ numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
1799
+ endnotes?: number[];
1063
1800
  }
1064
1801
  interface RsidsOptions {
1065
- rsidRoot?: string;
1066
- rsids?: string[];
1802
+ rsidRoot?: LongHexNumber;
1803
+ rsids?: LongHexNumber[];
1067
1804
  }
1068
1805
  interface ReadModeInkLockDownOptions {
1069
1806
  actualPg?: boolean;
@@ -1073,11 +1810,11 @@ interface ReadModeInkLockDownOptions {
1073
1810
  }
1074
1811
  interface CaptionOptions {
1075
1812
  name: string;
1076
- pos?: "above" | "below";
1077
- chapNum?: boolean;
1813
+ pos?: "above" | "below" | "left" | "right";
1814
+ chapterNumber?: boolean;
1078
1815
  heading?: number;
1079
1816
  noLabel?: boolean;
1080
- numFmt?: string;
1817
+ numFmt?: (typeof NumberFormat)[keyof typeof NumberFormat];
1081
1818
  sep?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
1082
1819
  }
1083
1820
  interface AutoCaptionOptions {
@@ -1107,9 +1844,6 @@ interface MathPropertiesOptions {
1107
1844
  naryLimitLocation?: "subSup" | "undOvr";
1108
1845
  }
1109
1846
  //#endregion
1110
- //#region src/parts/settings/descriptor.d.ts
1111
- declare const settingsDesc: CustomDescriptor<SettingsOptions>;
1112
- //#endregion
1113
1847
  //#region src/parts/document/document-attributes.d.ts
1114
1848
  declare const DocumentAttributeNamespaces: {
1115
1849
  aink: string;
@@ -1130,6 +1864,7 @@ declare const DocumentAttributeNamespaces: {
1130
1864
  m: string;
1131
1865
  mc: string;
1132
1866
  o: string;
1867
+ pvml: string;
1133
1868
  r: string;
1134
1869
  v: string;
1135
1870
  w: string;
@@ -1137,327 +1872,74 @@ declare const DocumentAttributeNamespaces: {
1137
1872
  w14: string;
1138
1873
  w15: string;
1139
1874
  w16: string;
1140
- w16cex: string;
1141
- w16cid: string;
1142
- w16sdtdh: string;
1143
- w16se: string;
1144
- wne: string;
1145
- wp: string;
1146
- wp14: string;
1147
- wpc: string;
1148
- wpg: string;
1149
- wpi: string;
1150
- wps: string;
1151
- xsi: string;
1152
- };
1153
- type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
1154
- declare const documentNamespaceAttributes: (keys: readonly DocumentAttributeNamespace[]) => string;
1155
- declare const documentNamespaceRecord: (keys: readonly DocumentAttributeNamespace[]) => Record<string, string>;
1156
- //#endregion
1157
- //#region src/parts/document/document-background/document-background.d.ts
1158
- interface BackgroundImageOptions {
1159
- data: DataType;
1160
- type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1161
- }
1162
- interface DocumentBackgroundOptions {
1163
- color?: string;
1164
- themeColor?: string;
1165
- themeShade?: string;
1166
- themeTint?: string;
1167
- image?: BackgroundImageOptions;
1168
- rawXml?: string;
1169
- rawMedia?: BackgroundRawMediaOptions[];
1170
- }
1171
- interface BackgroundRawMediaOptions {
1172
- fileName: string;
1173
- data: DataType;
1174
- type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1175
- }
1176
- //#endregion
1177
- //#region src/parts/endnotes/descriptor.d.ts
1178
- interface EndnoteSeparator {
1179
- id: number;
1180
- paragraphs: (ParagraphOptions | string)[];
1181
- }
1182
- interface EndnotesData {
1183
- notes: Map<number, (ParagraphOptions | string)[]>;
1184
- separator?: EndnoteSeparator;
1185
- continuationSeparator?: EndnoteSeparator;
1186
- }
1187
- declare const endnotesDesc: CustomDescriptor<EndnotesData, BodyContext>;
1188
- //#endregion
1189
- //#region src/parts/footnotes/descriptor.d.ts
1190
- interface FootnoteSeparator {
1191
- id: number;
1192
- paragraphs: (ParagraphOptions | string)[];
1193
- }
1194
- interface FootnotesData {
1195
- notes: Map<number, (ParagraphOptions | string)[]>;
1196
- separator?: FootnoteSeparator;
1197
- continuationSeparator?: FootnoteSeparator;
1198
- }
1199
- declare const footnotesDesc: CustomDescriptor<FootnotesData, BodyContext>;
1200
- //#endregion
1201
- //#region src/parts/table/grid.d.ts
1202
- interface TableGridChangeOptions {
1203
- id: number;
1204
- columnWidths: number[] | PositiveUniversalMeasure[];
1205
- }
1206
- //#endregion
1207
- //#region src/parts/table/table-cell-spacing.d.ts
1208
- declare const CellSpacingType: {
1209
- readonly DXA: "dxa";
1210
- readonly NIL: "nil";
1211
- readonly PERCENTAGE: "pct";
1212
- };
1213
- interface TableCellSpacingProperties {
1214
- size: number | Percentage | UniversalMeasure;
1215
- type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
1216
- }
1217
- //#endregion
1218
- //#region src/parts/table/table-width.d.ts
1219
- declare const WidthType: {
1220
- readonly AUTO: "auto";
1221
- readonly DXA: "dxa";
1222
- readonly NIL: "nil";
1223
- readonly PERCENTAGE: "pct";
1224
- };
1225
- interface TableWidthProperties {
1226
- size: number | Percentage | UniversalMeasure;
1227
- type?: (typeof WidthType)[keyof typeof WidthType];
1228
- }
1229
- declare const widthPctToFiftieths: (size: number | Percentage | UniversalMeasure) => number | Percentage | UniversalMeasure;
1230
- declare const widthFiftiethsToPct: (size: number | string | undefined, type: string | undefined) => number | string | undefined;
1231
- //#endregion
1232
- //#region src/parts/table/table-properties/table-borders.d.ts
1233
- interface TableBordersOptions {
1234
- top?: BorderOptions;
1235
- bottom?: BorderOptions;
1236
- left?: BorderOptions;
1237
- right?: BorderOptions;
1238
- insideHorizontal?: BorderOptions;
1239
- insideVertical?: BorderOptions;
1240
- }
1241
- declare const TABLE_BORDERS_NONE: TableBordersOptions;
1242
- //#endregion
1243
- //#region src/parts/table/table-properties/table-cell-margin.d.ts
1244
- interface TableCellMarginOptions {
1245
- top?: TableWidthProperties;
1246
- start?: TableWidthProperties;
1247
- left?: TableWidthProperties;
1248
- bottom?: TableWidthProperties;
1249
- end?: TableWidthProperties;
1250
- right?: TableWidthProperties;
1251
- }
1252
- //#endregion
1253
- //#region src/parts/table/table-properties/table-float-properties.d.ts
1254
- declare const TableAnchorType: {
1255
- readonly MARGIN: "margin";
1256
- readonly PAGE: "page";
1257
- readonly TEXT: "text";
1258
- };
1259
- declare const RelativeHorizontalPosition: {
1260
- readonly CENTER: "center";
1261
- readonly INSIDE: "inside";
1262
- readonly LEFT: "left";
1263
- readonly OUTSIDE: "outside";
1264
- readonly RIGHT: "right";
1265
- };
1266
- declare const RelativeVerticalPosition: {
1267
- readonly BOTTOM: "bottom";
1268
- readonly CENTER: "center";
1269
- readonly INLINE: "inline";
1270
- readonly INSIDE: "inside";
1271
- readonly OUTSIDE: "outside";
1272
- readonly TOP: "top";
1273
- };
1274
- declare const OverlapType: {
1275
- readonly NEVER: "never";
1276
- readonly OVERLAP: "overlap";
1277
- };
1278
- interface TableFloatOptions {
1279
- horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1280
- absoluteHorizontalPosition?: number;
1281
- relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
1282
- verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
1283
- absoluteVerticalPosition?: number;
1284
- relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
1285
- bottomFromText?: number;
1286
- topFromText?: number;
1287
- leftFromText?: number;
1288
- rightFromText?: number;
1289
- overlap?: (typeof OverlapType)[keyof typeof OverlapType];
1290
- }
1291
- //#endregion
1292
- //#region src/parts/table/table-properties/table-layout.d.ts
1293
- declare const TableLayoutType: {
1294
- readonly AUTOFIT: "autofit";
1295
- readonly FIXED: "fixed";
1296
- };
1297
- //#endregion
1298
- //#region src/parts/table/table-properties/table-look.d.ts
1299
- interface TableLookOptions {
1300
- firstRow?: boolean;
1301
- lastRow?: boolean;
1302
- firstColumn?: boolean;
1303
- lastColumn?: boolean;
1304
- noHBand?: boolean;
1305
- noVBand?: boolean;
1306
- }
1307
- //#endregion
1308
- //#region src/parts/table/table-properties/table-properties.d.ts
1309
- interface TablePropertiesOptionsBase {
1310
- width?: TableWidthProperties;
1311
- indent?: TableWidthProperties;
1312
- layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1313
- borders?: TableBordersOptions;
1314
- float?: TableFloatOptions;
1315
- shading?: ShadingProperties;
1316
- style?: string;
1317
- alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1318
- cellMargin?: TableCellMarginOptions;
1319
- visuallyRightToLeft?: boolean;
1320
- tableLook?: TableLookOptions;
1321
- cellSpacing?: TableCellSpacingProperties;
1322
- styleRowBandSize?: number;
1323
- styleColBandSize?: number;
1324
- caption?: string;
1325
- description?: string;
1326
- }
1327
- type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedProperties;
1328
- type TablePropertiesOptions = {
1329
- revision?: TablePropertiesChangeOptions;
1330
- includeIfEmpty?: boolean;
1331
- } & TablePropertiesOptionsBase;
1332
- //#endregion
1333
- //#region src/parts/table/table-properties/table-property-exceptions.d.ts
1334
- interface TablePropertyExOptions {
1335
- width?: TableWidthProperties;
1336
- indent?: TableWidthProperties;
1337
- layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1338
- borders?: TableBordersOptions;
1339
- shading?: ShadingProperties;
1340
- alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1341
- cellMargin?: TableCellMarginOptions;
1342
- tableLook?: TableLookOptions;
1343
- cellSpacing?: TableCellSpacingProperties;
1344
- tblPrExChange?: TablePropertyExChangeOptions;
1345
- }
1346
- type TablePropertyExChangeOptions = Omit<TablePropertyExOptions, "tblPrExChange"> & ChangedProperties;
1347
- //#endregion
1348
- //#region src/parts/table/table-cell/table-cell-components.d.ts
1349
- interface TableCellBordersOptions {
1350
- top?: BorderOptions;
1351
- start?: BorderOptions;
1352
- left?: BorderOptions;
1353
- bottom?: BorderOptions;
1354
- end?: BorderOptions;
1355
- right?: BorderOptions;
1356
- insideHorizontal?: BorderOptions;
1357
- insideVertical?: BorderOptions;
1358
- topLeftToBottomRight?: BorderOptions;
1359
- topRightToBottomLeft?: BorderOptions;
1360
- }
1361
- declare const VerticalMergeType: {
1362
- readonly CONTINUE: "continue";
1363
- readonly RESTART: "restart";
1364
- };
1365
- declare const TextDirection: {
1366
- readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
1367
- readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
1368
- readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
1369
- };
1370
- //#endregion
1371
- //#region src/parts/table/table-row/table-row-height.d.ts
1372
- declare const HeightRule: {
1373
- readonly AUTO: "auto";
1374
- readonly ATLEAST: "atLeast";
1375
- readonly EXACT: "exact";
1875
+ w16cex: string;
1876
+ w16cid: string;
1877
+ w16sdtdh: string;
1878
+ w16se: string;
1879
+ wne: string;
1880
+ wp: string;
1881
+ wp14: string;
1882
+ wpc: string;
1883
+ wpg: string;
1884
+ wpi: string;
1885
+ wps: string;
1886
+ x: string;
1887
+ xsi: string;
1376
1888
  };
1889
+ type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
1890
+ declare const documentNamespaceAttributes: (keys: readonly DocumentAttributeNamespace[]) => string;
1891
+ declare const documentNamespaceRecord: (keys: readonly DocumentAttributeNamespace[]) => Record<string, string>;
1377
1892
  //#endregion
1378
- //#region src/parts/table/table-row/table-row-properties.d.ts
1379
- interface CnfStyleOptions {
1380
- val?: string;
1381
- firstRow?: boolean;
1382
- lastRow?: boolean;
1383
- firstColumn?: boolean;
1384
- lastColumn?: boolean;
1385
- oddVBand?: boolean;
1386
- evenVBand?: boolean;
1387
- oddHBand?: boolean;
1388
- evenHBand?: boolean;
1389
- firstRowFirstColumn?: boolean;
1390
- firstRowLastColumn?: boolean;
1391
- lastRowFirstColumn?: boolean;
1392
- lastRowLastColumn?: boolean;
1893
+ //#region src/parts/document/document-background/document-background.d.ts
1894
+ interface BackgroundImageOptions {
1895
+ data: DataType;
1896
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1393
1897
  }
1394
- interface TableRowPropertiesOptionsBase {
1395
- cnfStyle?: CnfStyleOptions;
1396
- cantSplit?: boolean;
1397
- tableHeader?: boolean;
1398
- height?: {
1399
- value: number | PositiveUniversalMeasure;
1400
- rule?: (typeof HeightRule)[keyof typeof HeightRule];
1401
- };
1402
- cellSpacing?: TableCellSpacingProperties;
1403
- divId?: number;
1404
- gridBefore?: number;
1405
- gridAfter?: number;
1406
- widthBefore?: TableWidthProperties;
1407
- widthAfter?: TableWidthProperties;
1408
- rowAlignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1409
- hidden?: boolean;
1898
+ interface DocumentBackgroundOptions {
1899
+ color?: HexColorOrAuto;
1900
+ themeColor?: ThemeColor;
1901
+ themeShade?: UcharHexNumber;
1902
+ themeTint?: UcharHexNumber;
1903
+ image?: BackgroundImageOptions;
1904
+ rawXml?: string;
1905
+ rawMedia?: BackgroundRawMediaOptions[];
1906
+ }
1907
+ interface BackgroundRawMediaOptions {
1908
+ fileName: string;
1909
+ data: DataType;
1910
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1410
1911
  }
1411
- type TableRowPropertiesOptions = TableRowPropertiesOptionsBase & {
1412
- insertion?: ChangedProperties;
1413
- deletion?: ChangedProperties;
1414
- revision?: TableRowPropertiesChangeOptions;
1415
- includeIfEmpty?: boolean;
1416
- };
1417
- type TableRowPropertiesChangeOptions = TableRowPropertiesOptionsBase & ChangedProperties;
1418
1912
  //#endregion
1419
- //#region src/parts/table/table-row/table-row.d.ts
1420
- interface SdtRowOptions {
1421
- properties: SdtPropertiesOptions;
1422
- rows?: TableRowOptions[];
1423
- endProperties?: RunPropertiesOptions;
1913
+ //#region src/parts/notes/shared.d.ts
1914
+ type NoteChild = SectionChild | ParagraphOptions | string;
1915
+ interface NoteSeparator {
1916
+ id: number;
1917
+ children: SectionChild[];
1424
1918
  }
1425
- interface TableRowOptions extends BaseTableRowOptions<TableCellOptions | {
1426
- sdt: SdtCellOptions;
1427
- } | {
1428
- customXml: CustomXmlCellOptions;
1429
- }>, TableRowPropertiesOptions {
1430
- propertyExceptions?: TablePropertyExOptions;
1431
- runPropertiesRsid?: string;
1432
- rsid?: string;
1433
- deletionRsid?: string;
1434
- tableRowRsid?: string;
1919
+ interface NotesData {
1920
+ notes: Map<number, NoteChild[]>;
1921
+ separator?: NoteSeparator | null;
1922
+ continuationSeparator?: NoteSeparator | null;
1923
+ continuationNotice?: NoteSeparator | null;
1435
1924
  }
1436
1925
  //#endregion
1437
- //#region src/parts/table/table.d.ts
1438
- interface TableOptions extends BaseTableOptions<TableRowOptions | {
1439
- sdt: SdtRowOptions;
1440
- } | {
1441
- customXml: CustomXmlRowOptions;
1442
- }> {
1443
- width?: TableWidthProperties;
1444
- columnWidthsRevision?: TableGridChangeOptions;
1445
- margins?: TableCellMarginOptions;
1446
- indent?: TableWidthProperties;
1447
- float?: TableFloatOptions;
1448
- layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
1449
- style?: string;
1450
- borders?: TableBordersOptions;
1451
- alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
1452
- visuallyRightToLeft?: boolean;
1453
- cellSpacing?: TableCellSpacingProperties;
1454
- styleRowBandSize?: number;
1455
- styleColBandSize?: number;
1456
- caption?: string;
1457
- description?: string;
1458
- revision?: TablePropertiesChangeOptions;
1459
- shading?: ShadingProperties;
1926
+ //#region src/parts/endnotes/descriptor.d.ts
1927
+ interface EndnoteOptions {
1928
+ id?: number;
1929
+ children: NoteChild[];
1930
+ }
1931
+ type EndnoteSeparator = NoteSeparator;
1932
+ type EndnotesData = NotesData;
1933
+ declare const endnotesDesc: CustomDescriptor<EndnotesData, BodyContext>;
1934
+ //#endregion
1935
+ //#region src/parts/footnotes/descriptor.d.ts
1936
+ interface FootnoteOptions {
1937
+ id?: number;
1938
+ children: NoteChild[];
1460
1939
  }
1940
+ type FootnoteSeparator = NoteSeparator;
1941
+ type FootnotesData = NotesData;
1942
+ declare const footnotesDesc: CustomDescriptor<FootnotesData, BodyContext>;
1461
1943
  //#endregion
1462
1944
  //#region src/shared/track-revision/track-revision-components/cell-merge.d.ts
1463
1945
  declare const VerticalMergeRevisionType: {
@@ -1469,22 +1951,6 @@ type CellMergeAttributes = ChangedProperties & {
1469
1951
  verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
1470
1952
  };
1471
1953
  //#endregion
1472
- //#region src/shared/vertical-align.d.ts
1473
- declare const VerticalAlignTable: {
1474
- readonly BOTTOM: "bottom";
1475
- readonly CENTER: "center";
1476
- readonly TOP: "top";
1477
- };
1478
- declare const VerticalAlignSection: {
1479
- readonly BOTH: "both";
1480
- readonly BOTTOM: "bottom";
1481
- readonly CENTER: "center";
1482
- readonly TOP: "top";
1483
- };
1484
- type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
1485
- type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
1486
- declare const createVerticalAlign: (value: TableVerticalAlign | SectionVerticalAlign) => string;
1487
- //#endregion
1488
1954
  //#region src/parts/table/table-cell/table-cell-properties.d.ts
1489
1955
  interface TableCellPropertiesOptionsBase {
1490
1956
  cnfStyle?: CnfStyleOptions;
@@ -1508,7 +1974,6 @@ interface TableCellPropertiesOptionsBase {
1508
1974
  }
1509
1975
  type TableCellPropertiesOptions = {
1510
1976
  revision?: TableCellPropertiesChangeOptions;
1511
- includeIfEmpty?: boolean;
1512
1977
  } & TableCellPropertiesOptionsBase;
1513
1978
  type TableCellPropertiesChangeOptions = TableCellPropertiesOptionsBase & ChangedProperties;
1514
1979
  //#endregion
@@ -1520,90 +1985,6 @@ declare function parseTablePropertiesEl(el: Element): TablePropertiesOptions;
1520
1985
  declare function parseTableRowPropertiesEl(el: Element): TableRowPropertiesOptions;
1521
1986
  declare function parseTableCellPropertiesEl(el: Element): TableCellPropertiesOptions;
1522
1987
  //#endregion
1523
- //#region src/shared/constants.d.ts
1524
- declare const HorizontalPositionAlign: {
1525
- readonly CENTER: "center";
1526
- readonly INSIDE: "inside";
1527
- readonly LEFT: "left";
1528
- readonly OUTSIDE: "outside";
1529
- readonly RIGHT: "right";
1530
- };
1531
- declare const VerticalPositionAlign: {
1532
- readonly BOTTOM: "bottom";
1533
- readonly CENTER: "center";
1534
- readonly INSIDE: "inside";
1535
- readonly OUTSIDE: "outside";
1536
- readonly TOP: "top";
1537
- };
1538
- declare const NumberFormat: {
1539
- readonly AIUEO: "aiueo";
1540
- readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
1541
- readonly ARABIC_ABJAD: "arabicAbjad";
1542
- readonly ARABIC_ALPHA: "arabicAlpha";
1543
- readonly BAHT_TEXT: "bahtText";
1544
- readonly BULLET: "bullet";
1545
- readonly CARDINAL_TEXT: "cardinalText";
1546
- readonly CHICAGO: "chicago";
1547
- readonly CHINESE_COUNTING: "chineseCounting";
1548
- readonly CHINESE_COUNTING_TEN_THOUSAND: "chineseCountingThousand";
1549
- readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
1550
- readonly CHOSUNG: "chosung";
1551
- readonly DECIMAL: "decimal";
1552
- readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
1553
- readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
1554
- readonly DECIMAL_ENCLOSED_FULL_STOP: "decimalEnclosedFullstop";
1555
- readonly DECIMAL_ENCLOSED_PAREN: "decimalEnclosedParen";
1556
- readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
1557
- readonly DECIMAL_FULL_WIDTH_2: "decimalFullWidth2";
1558
- readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
1559
- readonly DECIMAL_ZERO: "decimalZero";
1560
- readonly DOLLAR_TEXT: "dollarText";
1561
- readonly GANADA: "ganada";
1562
- readonly HEBREW_1: "hebrew1";
1563
- readonly HEBREW_2: "hebrew2";
1564
- readonly HEX: "hex";
1565
- readonly HINDI_CONSONANTS: "hindiConsonants";
1566
- readonly HINDI_COUNTING: "hindiCounting";
1567
- readonly HINDI_NUMBERS: "hindiNumbers";
1568
- readonly HINDI_VOWELS: "hindiVowels";
1569
- readonly IDEOGRAPH_DIGITAL: "ideographDigital";
1570
- readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
1571
- readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
1572
- readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
1573
- readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
1574
- readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
1575
- readonly IROHA: "iroha";
1576
- readonly IROHA_FULL_WIDTH: "irohaFullWidth";
1577
- readonly JAPANESE_COUNTING: "japaneseCounting";
1578
- readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
1579
- readonly JAPANESE_LEGAL: "japaneseLegal";
1580
- readonly KOREAN_COUNTING: "koreanCounting";
1581
- readonly KOREAN_DIGITAL: "koreanDigital";
1582
- readonly KOREAN_DIGITAL_2: "koreanDigital2";
1583
- readonly KOREAN_LEGAL: "koreanLegal";
1584
- readonly LOWER_LETTER: "lowerLetter";
1585
- readonly LOWER_ROMAN: "lowerRoman";
1586
- readonly NONE: "none";
1587
- readonly NUMBER_IN_DASH: "numberInDash";
1588
- readonly ORDINAL: "ordinal";
1589
- readonly ORDINAL_TEXT: "ordinalText";
1590
- readonly RUSSIAN_LOWER: "russianLower";
1591
- readonly RUSSIAN_UPPER: "russianUpper";
1592
- readonly TAIWANESE_COUNTING: "taiwaneseCounting";
1593
- readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
1594
- readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
1595
- readonly THAI_COUNTING: "thaiCounting";
1596
- readonly THAI_LETTERS: "thaiLetters";
1597
- readonly THAI_NUMBERS: "thaiNumbers";
1598
- readonly UPPER_LETTER: "upperLetter";
1599
- readonly UPPER_ROMAN: "upperRoman";
1600
- readonly VIETNAMESE_COUNTING: "vietnameseCounting";
1601
- };
1602
- declare const SpaceType: {
1603
- readonly DEFAULT: "default";
1604
- readonly PRESERVE: "preserve";
1605
- };
1606
- //#endregion
1607
1988
  //#region src/parts/paragraph/frame/frame-properties.d.ts
1608
1989
  declare const DropCapType: {
1609
1990
  readonly NONE: "none";
@@ -1657,6 +2038,11 @@ type AlignmentFrameOptions = {
1657
2038
  type FrameOptions = XYFrameOptions | AlignmentFrameOptions;
1658
2039
  //#endregion
1659
2040
  //#region src/parts/paragraph/properties.d.ts
2041
+ interface NumberingInsertionOptions {
2042
+ id?: string | number;
2043
+ author: string;
2044
+ date?: DateTime;
2045
+ }
1660
2046
  declare const TextAlignmentType: {
1661
2047
  readonly TOP: "top";
1662
2048
  readonly CENTER: "center";
@@ -1711,17 +2097,34 @@ type ParagraphStylePropertiesOptions = {
1711
2097
  border?: BordersOptions;
1712
2098
  shading?: ShadingProperties;
1713
2099
  numbering?: {
2100
+ none: true;
2101
+ level?: number;
2102
+ } | {
1714
2103
  reference: string;
1715
- level: number;
2104
+ level?: number;
1716
2105
  instance?: number;
1717
- custom?: boolean;
2106
+ autoStyle?: boolean;
2107
+ numberingChange?: {
2108
+ original: string;
2109
+ id: string;
2110
+ author: string;
2111
+ date?: DateTime;
2112
+ };
2113
+ insertion?: NumberingInsertionOptions;
2114
+ } | {
2115
+ levelOnly: true;
2116
+ level?: number;
2117
+ } | {
2118
+ revisionOnly: true;
1718
2119
  numberingChange?: {
1719
2120
  original: string;
1720
2121
  id: string;
1721
2122
  author: string;
1722
- date?: string;
2123
+ date?: DateTime;
1723
2124
  };
2125
+ insertion?: NumberingInsertionOptions;
1724
2126
  } | false;
2127
+ emptyProperties?: boolean;
1725
2128
  } & LevelParagraphStylePropertiesOptions;
1726
2129
  type ParagraphPropertiesOptionsBase = {
1727
2130
  heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
@@ -1734,9 +2137,24 @@ type ParagraphPropertiesOptionsBase = {
1734
2137
  type ParagraphPropertiesChangeOptions = ChangedProperties & ParagraphPropertiesOptionsBase;
1735
2138
  type ParagraphPropertiesOptions = {
1736
2139
  revision?: ParagraphPropertiesChangeOptions;
1737
- includeIfEmpty?: boolean;
1738
2140
  } & ParagraphPropertiesOptionsBase;
1739
2141
  //#endregion
2142
+ //#region src/parts/pict/pict.d.ts
2143
+ interface PictMediaOptions {
2144
+ fileName: string;
2145
+ data: Uint8Array;
2146
+ type: string;
2147
+ }
2148
+ interface PictOptions {
2149
+ children?: VmlShapeChild[];
2150
+ media?: PictMediaOptions[];
2151
+ vmlFallback?: string;
2152
+ mcChoiceRequires?: string;
2153
+ w14AnchorId?: string;
2154
+ }
2155
+ declare function stringifyPict(opts: PictOptions, ctx: Pick<BodyContext, "file">): string;
2156
+ declare function parsePict(el: Element, ctx: DocxReadContext): PictOptions;
2157
+ //#endregion
1740
2158
  //#region src/parts/numbering/level.d.ts
1741
2159
  declare const LevelFormat: {
1742
2160
  readonly DECIMAL: "decimal";
@@ -1820,7 +2238,7 @@ interface LevelsOptions {
1820
2238
  levelRestart?: number;
1821
2239
  paragraphStyle?: string;
1822
2240
  levelPictureBulletId?: number;
1823
- templateCode?: string;
2241
+ templateCode?: LongHexNumber;
1824
2242
  tentative?: boolean;
1825
2243
  w15Tentative?: boolean;
1826
2244
  legacy?: {
@@ -1828,23 +2246,25 @@ interface LevelsOptions {
1828
2246
  space?: number;
1829
2247
  indent?: number;
1830
2248
  };
1831
- style?: {
1832
- run?: RunStylePropertiesOptions;
1833
- paragraph?: LevelParagraphStylePropertiesOptions;
1834
- };
2249
+ run?: RunStylePropertiesOptions;
2250
+ paragraph?: LevelParagraphStylePropertiesOptions;
1835
2251
  }
1836
2252
  //#endregion
1837
2253
  //#region src/parts/numbering/numbering.d.ts
1838
2254
  interface NumberingOptions {
1839
- config: {
2255
+ abstractNumberings: {
1840
2256
  levels: LevelsOptions[];
1841
2257
  reference: string;
1842
- extraOptions?: AbstractNumberingExtraOptions;
2258
+ properties?: AbstractNumberingPropertiesOptions;
2259
+ instanceCount?: number;
2260
+ overrideLevels?: LevelOverrideOptions[];
2261
+ aliases?: string[];
2262
+ sharedDefinitionOf?: string;
1843
2263
  }[];
1844
2264
  numIdMacAtCleanup?: number;
1845
2265
  numPicBullets?: {
1846
2266
  numPicBulletId: number;
1847
- pict?: string;
2267
+ pict?: PictOptions;
1848
2268
  drawing?: string;
1849
2269
  }[];
1850
2270
  }
@@ -1856,9 +2276,10 @@ declare class Numbering {
1856
2276
  private concreteNumUniqueNumericId;
1857
2277
  private _numIdMacAtCleanup?;
1858
2278
  private _numPicBullets?;
1859
- constructor(options: NumberingOptions);
1860
- serialize(): string;
2279
+ constructor(options: NumberingOptions, injectDefaultList?: boolean);
2280
+ serialize(ctx: DocxWriteContext): string;
1861
2281
  createConcreteNumberingInstance(reference: string, instance: number): void;
2282
+ private registerConcreteInstance;
1862
2283
  get concreteNumbering(): {
1863
2284
  numId: number;
1864
2285
  reference: string;
@@ -1866,9 +2287,14 @@ declare class Numbering {
1866
2287
  }[];
1867
2288
  get referenceConfig(): LevelsOptions[][];
1868
2289
  }
1869
- interface AbstractNumberingExtraOptions {
2290
+ interface LevelOverrideOptions {
2291
+ num: number;
2292
+ start?: number;
2293
+ level?: LevelsOptions;
2294
+ }
2295
+ interface AbstractNumberingPropertiesOptions {
1870
2296
  nsid?: string;
1871
- multiLevelType?: string;
2297
+ multiLevelType?: "singleLevel" | "multilevel" | "hybridMultilevel";
1872
2298
  restartNumberingAfterBreak?: boolean;
1873
2299
  tmpl?: string;
1874
2300
  name?: string;
@@ -1924,7 +2350,7 @@ interface StyleOptions {
1924
2350
  personalCompose?: boolean;
1925
2351
  personalReply?: boolean;
1926
2352
  hidden?: boolean;
1927
- rsid?: string;
2353
+ rsid?: LongHexNumber;
1928
2354
  default?: boolean;
1929
2355
  customStyle?: boolean;
1930
2356
  }
@@ -1986,9 +2412,7 @@ declare class DefaultStylesFactory {
1986
2412
  interface StylesOptions {
1987
2413
  default?: DefaultStylesOptions;
1988
2414
  initialAttributes?: Record<string, string>;
1989
- importedStyles?: {
1990
- _raw: string;
1991
- }[];
2415
+ importedStyles?: string[];
1992
2416
  paragraphStyles?: (ParagraphStyleOptions & {
1993
2417
  id: string;
1994
2418
  })[];
@@ -1999,6 +2423,7 @@ interface StylesOptions {
1999
2423
  numberingStyles?: NumberingStyleOptions[];
2000
2424
  latentStylesXml?: string;
2001
2425
  docDefaultsXml?: string;
2426
+ external?: string;
2002
2427
  roundTripped?: boolean;
2003
2428
  }
2004
2429
  declare function extractStyleId(raw: string): string | undefined;
@@ -2010,6 +2435,7 @@ declare class Styles {
2010
2435
  }
2011
2436
  declare function buildStyleCache(stylesEl: Element | undefined): Map<string, Element>;
2012
2437
  declare function buildNumberingCache(numberingEl: Element | undefined): Map<string, Element>;
2438
+ declare function buildNumIdCache(numberingEl: Element | undefined): Map<string, string>;
2013
2439
  declare function parseStyleDefinitions(el: Element, parseParagraphProperties: (el: Element, ctx: DocxReadContext) => Partial<ParagraphPropertiesOptions>, ctx: DocxReadContext): StylesOptions | undefined;
2014
2440
  //#endregion
2015
2441
  //#region src/parts/frameset.d.ts
@@ -2040,27 +2466,16 @@ interface FramesetOptions {
2040
2466
  }
2041
2467
  //#endregion
2042
2468
  //#region src/parts/web-settings.d.ts
2469
+ interface DivBorderSideOptions {
2470
+ style: (typeof BorderStyle)[keyof typeof BorderStyle];
2471
+ color?: string;
2472
+ size?: number;
2473
+ }
2043
2474
  interface DivBorderOptions {
2044
- top?: {
2045
- style: string;
2046
- color?: string;
2047
- size?: number;
2048
- };
2049
- left?: {
2050
- style: string;
2051
- color?: string;
2052
- size?: number;
2053
- };
2054
- bottom?: {
2055
- style: string;
2056
- color?: string;
2057
- size?: number;
2058
- };
2059
- right?: {
2060
- style: string;
2061
- color?: string;
2062
- size?: number;
2063
- };
2475
+ top?: DivBorderSideOptions;
2476
+ left?: DivBorderSideOptions;
2477
+ bottom?: DivBorderSideOptions;
2478
+ right?: DivBorderSideOptions;
2064
2479
  }
2065
2480
  interface DivOptions {
2066
2481
  id: number;
@@ -2102,79 +2517,39 @@ interface WebSettingsOptions {
2102
2517
  doNotOrganizeInFolder?: boolean;
2103
2518
  doNotUseLongFileNames?: boolean;
2104
2519
  pixelsPerInch?: number;
2105
- targetScreenSize?: (typeof TargetScreenSize)[keyof typeof TargetScreenSize] | string;
2106
- saveSmartTagsAsXml?: boolean;
2107
- }
2108
- interface WebSettingsInput {
2109
- frameset?: FramesetOptions;
2110
- divs?: DivOptions[];
2111
- encoding?: string;
2112
- optimizeForBrowser?: boolean | OptimizeForBrowserOptions;
2113
- relyOnVML?: boolean;
2114
- allowPNG?: boolean;
2115
- doNotRelyOnCSS?: boolean;
2116
- doNotSaveAsSingleFile?: boolean;
2117
- doNotOrganizeInFolder?: boolean;
2118
- doNotUseLongFileNames?: boolean;
2119
- pixelsPerInch?: number;
2120
- targetScreenSize?: string;
2520
+ targetScreenSize?: (typeof TargetScreenSize)[keyof typeof TargetScreenSize];
2121
2521
  saveSmartTagsAsXml?: boolean;
2122
2522
  }
2123
2523
  declare function framesetXml(fs: FramesetOptions): string;
2124
2524
  declare function frameXml(f: WebFrameOptions): string;
2125
- declare const webSettingsDesc: CustomDescriptor<WebSettingsInput>;
2525
+ declare const webSettingsDesc: CustomDescriptor<WebSettingsOptions>;
2126
2526
  //#endregion
2127
2527
  //#region src/parts/core-properties.d.ts
2128
- interface FeaturesOptions {
2129
- trackRevisions?: boolean;
2130
- updateFields?: boolean;
2131
- documentProtection?: DocumentProtectionOptions;
2132
- }
2133
2528
  interface DocumentOptions extends CorePropertiesOptions {
2134
2529
  sections: SectionOptions[];
2135
- externalStyles?: string;
2530
+ encrypted?: EncryptedContainerOptions;
2136
2531
  styles?: StylesOptions;
2137
2532
  numbering?: NumberingOptions;
2138
- comments?: CommentsOptions;
2533
+ comments?: CommentOptions[];
2534
+ people?: CommentPersonOptions[];
2535
+ commentsExtended?: CommentExtendedOptions[];
2139
2536
  bibliography?: BibliographyOptions;
2140
- footnotes?: Record<string, {
2141
- children: (ParagraphOptions | string)[];
2142
- }> & {
2143
- separator?: FootnoteSeparator;
2144
- continuationSeparator?: FootnoteSeparator;
2145
- };
2146
- endnotes?: Record<string, {
2147
- children: (ParagraphOptions | string)[];
2148
- }> & {
2149
- separator?: EndnoteSeparator;
2150
- continuationSeparator?: EndnoteSeparator;
2537
+ footnotes?: FootnoteOptions[];
2538
+ footnoteSeparators?: {
2539
+ separator?: FootnoteSeparator | null;
2540
+ continuationSeparator?: FootnoteSeparator | null;
2541
+ continuationNotice?: FootnoteSeparator;
2542
+ };
2543
+ endnotes?: EndnoteOptions[];
2544
+ endnoteSeparators?: {
2545
+ separator?: EndnoteSeparator | null;
2546
+ continuationSeparator?: EndnoteSeparator | null;
2547
+ continuationNotice?: EndnoteSeparator;
2151
2548
  };
2152
2549
  background?: DocumentBackgroundOptions;
2153
- features?: FeaturesOptions;
2154
- compatibility?: CompatibilityOptions;
2155
2550
  customProperties?: CustomPropertyOptions[];
2156
- evenAndOddHeaderAndFooters?: boolean;
2157
- defaultTabStop?: number;
2158
2551
  fonts?: EmbeddedFontOptions[];
2159
- hyphenation?: HyphenationOptions;
2160
2552
  conformance?: "strict" | "transitional";
2161
- characterSpacingControl?: "compressPunctuation" | "doNotCompress";
2162
- view?: "none" | "print" | "outline" | "masterPages" | "normal" | "web";
2163
- zoom?: {
2164
- percent?: number;
2165
- val?: "none" | "fullPage" | "bestFit" | "textFit";
2166
- };
2167
- writeProtection?: WriteProtectionOptions;
2168
- displayBackgroundShape?: boolean;
2169
- embedTrueTypeFonts?: boolean;
2170
- embedSystemFonts?: boolean;
2171
- saveSubsetFonts?: boolean;
2172
- docVars?: {
2173
- name: string;
2174
- val: string;
2175
- }[];
2176
- colorSchemeMapping?: SettingsOptions["colorSchemeMapping"];
2177
- mailMerge?: SettingsOptions["mailMerge"];
2178
2553
  glossary?: GlossaryDocumentOptions;
2179
2554
  settings?: SettingsOptions;
2180
2555
  webSettings?: WebSettingsOptions;
@@ -2182,6 +2557,14 @@ interface DocumentOptions extends CorePropertiesOptions {
2182
2557
  rawParts?: {
2183
2558
  path: string;
2184
2559
  data: DataType;
2560
+ contentType?: string;
2561
+ }[];
2562
+ passthroughRelationships?: {
2563
+ source: string;
2564
+ relationshipType: string;
2565
+ target: string;
2566
+ rId: string;
2567
+ targetMode?: "External";
2185
2568
  }[];
2186
2569
  appProperties?: AppPropertiesOptions;
2187
2570
  }
@@ -2220,11 +2603,11 @@ interface Distance {
2220
2603
  //#endregion
2221
2604
  //#region src/parts/drawing/text-wrap/text-wrapping.d.ts
2222
2605
  declare const TextWrappingType: {
2223
- readonly NONE: 0;
2224
- readonly SQUARE: 1;
2225
- readonly TIGHT: 2;
2226
- readonly TOP_AND_BOTTOM: 3;
2227
- readonly THROUGH: 4;
2606
+ readonly NONE: "none";
2607
+ readonly SQUARE: "square";
2608
+ readonly TIGHT: "tight";
2609
+ readonly TOP_AND_BOTTOM: "topAndBottom";
2610
+ readonly THROUGH: "through";
2228
2611
  };
2229
2612
  declare const TextWrappingSide: {
2230
2613
  readonly BOTH_SIDES: "bothSides";
@@ -2284,11 +2667,13 @@ interface HorizontalPositionOptions {
2284
2667
  relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
2285
2668
  align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
2286
2669
  offset?: number | UniversalMeasure;
2670
+ percentOffset?: number;
2287
2671
  }
2288
2672
  interface VerticalPositionOptions {
2289
2673
  relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
2290
2674
  align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
2291
2675
  offset?: number | UniversalMeasure;
2676
+ percentOffset?: number;
2292
2677
  }
2293
2678
  interface Margins {
2294
2679
  left?: number | UniversalMeasure;
@@ -2306,21 +2691,19 @@ interface Floating {
2306
2691
  margins?: Margins;
2307
2692
  wrap?: TextWrapping;
2308
2693
  zIndex?: number;
2694
+ horizontalSize?: RelativeSizeOptions;
2695
+ verticalSize?: RelativeSizeOptions;
2696
+ }
2697
+ interface RelativeSizeOptions {
2698
+ relative?: "margin" | "page" | "leftMargin" | "rightMargin" | "topMargin" | "bottomMargin";
2699
+ percent?: number;
2309
2700
  }
2310
2701
  //#endregion
2311
2702
  //#region src/parts/drawing/floating/horizontal-position.d.ts
2312
- declare const createHorizontalPosition: ({
2313
- relative,
2314
- align,
2315
- offset
2316
- }: HorizontalPositionOptions) => string;
2703
+ declare const createHorizontalPosition: ({ relative, align, offset, percentOffset }: HorizontalPositionOptions) => string;
2317
2704
  //#endregion
2318
2705
  //#region src/parts/drawing/floating/vertical-position.d.ts
2319
- declare const createVerticalPosition: ({
2320
- relative,
2321
- align,
2322
- offset
2323
- }: VerticalPositionOptions) => string;
2706
+ declare const createVerticalPosition: ({ relative, align, offset, percentOffset }: VerticalPositionOptions) => string;
2324
2707
  //#endregion
2325
2708
  //#region src/parts/drawing/descriptor.d.ts
2326
2709
  interface GraphicFrameLocksOptions {
@@ -2330,6 +2713,7 @@ interface GraphicFrameLocksOptions {
2330
2713
  noChangeAspect?: boolean;
2331
2714
  noMove?: boolean;
2332
2715
  noResize?: boolean;
2716
+ emptyLocks?: boolean;
2333
2717
  }
2334
2718
  interface GroupShapeLocksOptions {
2335
2719
  noGrp?: boolean;
@@ -2347,6 +2731,8 @@ interface DrawingDescriptorOptions {
2347
2731
  outline?: OutlineOptions;
2348
2732
  fill?: FillOptions;
2349
2733
  effects?: EffectListOptions;
2734
+ scene3d?: Scene3DOptions;
2735
+ shape3d?: Shape3DOptions;
2350
2736
  blipEffects?: BlipEffectsOptions;
2351
2737
  tile?: TileOptions;
2352
2738
  graphicFrameLocks?: GraphicFrameLocksOptions | null;
@@ -2375,6 +2761,8 @@ interface NonVisualShapePropertiesOptions {
2375
2761
  title?: string;
2376
2762
  textBox?: string;
2377
2763
  connector?: boolean;
2764
+ locking?: ShapeLockingOptions;
2765
+ connectorLocking?: ConnectorLockingOptions;
2378
2766
  }
2379
2767
  //#endregion
2380
2768
  //#region src/parts/drawing/inline/graphic/graphic-data/wps/wps-shape.d.ts
@@ -2388,8 +2776,13 @@ interface ShapeStyleOptions {
2388
2776
  effectReference?: ShapeStyleReferenceOptions;
2389
2777
  fontReference?: ShapeStyleReferenceOptions;
2390
2778
  }
2779
+ type ShapeTextBoxChild = ParagraphOptions | string | SectionChild;
2780
+ interface TextBoxPartOptions {
2781
+ path: string;
2782
+ sequence: number;
2783
+ }
2391
2784
  interface ShapeCoreOptions {
2392
- children: (ParagraphOptions | string)[];
2785
+ children: ShapeTextBoxChild[];
2393
2786
  nonVisualProperties?: NonVisualShapePropertiesOptions;
2394
2787
  bodyProperties?: BodyPropertiesOptions;
2395
2788
  outline?: OutlineOptions;
@@ -2400,7 +2793,9 @@ interface ShapeCoreOptions {
2400
2793
  effects?: EffectListOptions;
2401
2794
  scene3d?: Scene3DOptions;
2402
2795
  shape3d?: Shape3DOptions;
2796
+ extensions?: ShapePropertiesExtensionOptions[];
2403
2797
  style?: ShapeStyleOptions;
2798
+ textBoxPart?: TextBoxPartOptions;
2404
2799
  linkedTextBox?: {
2405
2800
  id: number;
2406
2801
  sequence: number;
@@ -2443,497 +2838,262 @@ interface MediaDataTransformation {
2443
2838
  interface NonVisualPropertiesOptions extends NonVisualDrawingPropertiesOptions$1 {
2444
2839
  id?: number;
2445
2840
  preferRelativeResize?: boolean;
2841
+ pictureLocks?: PictureLockingOptions | null;
2446
2842
  }
2447
2843
  interface CoreMediaData extends BaseMediaEntry {
2448
2844
  transformation: MediaDataTransformation;
2449
- sourceRectangle?: SourceRectangleOptions;
2450
- nonVisualProperties?: NonVisualPropertiesOptions;
2451
- useLocalDpi?: boolean;
2452
- }
2453
- interface RegularMediaData {
2454
- type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
2455
- }
2456
- interface SvgMediaData {
2457
- type: "svg";
2458
- fallback: RegularMediaData & CoreMediaData;
2459
- }
2460
- interface ShapeMediaData {
2461
- type: "wps";
2462
- transformation: MediaDataTransformation;
2463
- data: ShapeCoreOptions;
2464
- }
2465
- interface GroupCommonMediaData {
2466
- outline?: OutlineOptions;
2467
- fill?: FillOptions;
2468
- }
2469
- type GroupChildMediaData = (ShapeMediaData | MediaData | GroupMediaData | ChartMediaData | ContentPartMediaData) & GroupCommonMediaData;
2470
- interface GroupMediaData {
2471
- type: "wpg";
2472
- transformation: MediaDataTransformation;
2473
- children: GroupChildMediaData[];
2474
- childOffset?: ChildOffset;
2475
- childExtent?: ChildExtent;
2476
- fill?: FillOptions;
2477
- effects?: EffectListOptions;
2478
- groupShapeLocks?: GroupShapeLocksOptions;
2479
- }
2480
- interface ChartMediaData {
2481
- type: "chart";
2482
- transformation: MediaDataTransformation;
2483
- chartKey?: string;
2484
- chartOptions?: ChartSpaceOptions;
2485
- nonVisualProperties?: NonVisualPropertiesOptions;
2486
- graphicFrameLocks?: GraphicFrameLocksOptions | null;
2487
- }
2488
- interface ContentPartOptions {
2489
- referenceId: string;
2490
- transformation?: MediaDataTransformation;
2491
- nonVisualProperties?: NonVisualPropertiesOptions & {
2492
- contentPart?: NonVisualContentPartPropertiesOptions;
2493
- };
2494
- blackWhiteMode?: BlackWhiteMode;
2495
- }
2496
- interface ContentPartMediaData extends ContentPartOptions {
2497
- type: "contentPart";
2498
- transformation: MediaDataTransformation;
2499
- }
2500
- interface SmartArtMediaData {
2501
- type: "smartart";
2502
- transformation: MediaDataTransformation;
2503
- smartArtKey: string;
2504
- }
2505
- type ExtendedMediaData = MediaData | ShapeMediaData | GroupMediaData | ChartMediaData | SmartArtMediaData | ContentPartMediaData;
2506
- type MediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
2507
- //#endregion
2508
- //#region src/shared/media/media.d.ts
2509
- interface MediaTransformation {
2510
- offset?: {
2511
- top?: number | UniversalMeasure;
2512
- left?: number | UniversalMeasure;
2513
- };
2514
- width: number | UniversalMeasure;
2515
- height: number | UniversalMeasure;
2516
- flip?: {
2517
- vertical?: boolean;
2518
- horizontal?: boolean;
2519
- };
2520
- rotation?: number;
2521
- effectExtent?: {
2522
- l: number;
2523
- t: number;
2524
- r: number;
2525
- b: number;
2526
- };
2527
- }
2528
- declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
2529
- //#endregion
2530
- //#region src/parse.d.ts
2531
- interface DocxPartRefs {
2532
- headers: Map<string, string>;
2533
- footers: Map<string, string>;
2534
- footnotes?: string;
2535
- endnotes?: string;
2536
- comments?: string;
2537
- hyperlinks: Map<string, string>;
2538
- charts: Map<string, string>;
2539
- diagramData: Map<string, string>;
2540
- diagramLayout: Map<string, string>;
2541
- diagramQuickStyle: Map<string, string>;
2542
- diagramColors: Map<string, string>;
2543
- media: Map<string, string>;
2544
- partMedia: Map<string, Map<string, string>>;
2545
- afChunks: Map<string, string>;
2546
- subDocs: Map<string, string>;
2547
- bibliography?: string;
2548
- glossary?: string;
2549
- }
2550
- interface DocxDocument {
2551
- doc: ParsedArchive;
2552
- documentRoot: Element;
2553
- body: Element;
2554
- background?: Element;
2555
- styles?: Element;
2556
- numbering?: Element;
2557
- settings?: Element;
2558
- fontTable?: Element;
2559
- webSettings?: Element;
2560
- partRefs: DocxPartRefs;
2561
- coreProps?: string;
2562
- appProps?: string;
2563
- customProps?: string;
2564
- contentTypes?: Element;
2565
- }
2566
- declare function parseDocument(data: DataType): DocumentOptions;
2567
- declare function parseDocx(data: DataType): DocxDocument;
2568
- //#endregion
2569
- //#region src/context.d.ts
2570
- interface ViewWrapper {
2571
- relationships: Relationships;
2572
- }
2573
- interface BodyContext extends WriteContext {
2574
- fileData: DocxWriteContext;
2575
- file: DocxWriteContext;
2576
- viewWrapper: {
2577
- relationships: Relationships;
2578
- };
2579
- stringifyChild: (child: SectionChild) => string;
2580
- }
2581
- declare class DocxWriteContext implements WriteContext {
2582
- private _currentRelationshipId;
2583
- document: {
2584
- relationships: Relationships;
2585
- };
2586
- numbering: Numbering;
2587
- media: Media<MediaData>;
2588
- charts: ChartCollection;
2589
- smartArts: SmartArtCollection;
2590
- embeddings: EmbeddingCollection;
2591
- altChunks: AltChunkCollection;
2592
- subDocs: SubDocCollection;
2593
- comments: {
2594
- relationships: Relationships;
2595
- entries: CommentOptions[];
2596
- nextId: number;
2597
- };
2598
- markupIds: {
2599
- rangeNext: number;
2600
- moveRunNext: number;
2601
- };
2602
- footNotes: {
2603
- relationships: Relationships;
2604
- notes: Map<number, (ParagraphOptions | string)[]>;
2605
- separator?: FootnoteSeparator;
2606
- continuationSeparator?: FootnoteSeparator;
2607
- };
2608
- endnotes: {
2609
- relationships: Relationships;
2610
- notes: Map<number, (ParagraphOptions | string)[]>;
2611
- separator?: EndnoteSeparator;
2612
- continuationSeparator?: EndnoteSeparator;
2613
- };
2614
- fileRelationships: Relationships;
2615
- _settingsOptions: SettingsOptions;
2616
- styles: Styles;
2617
- fontTable: FontWrapper;
2618
- glossaryOptions: GlossaryDocumentOptions | undefined;
2619
- webSettings: WebSettingsOptions | undefined;
2620
- private _sectionProperties;
2621
- get sectionProperties(): readonly SectionPropertiesOptions[];
2622
- private readonly _hasFootnotes;
2623
- private readonly _hasEndnotes;
2624
- private readonly _hasNumbering;
2625
- get hasFootnotes(): boolean;
2626
- get hasEndnotes(): boolean;
2627
- get hasNumbering(): boolean;
2628
- addRelationship(_type: string, _target: string, _mode?: string): string;
2629
- addMedia(data: Uint8Array, type: string): string;
2630
- addHyperlink(_key: string, _target: HyperlinkTarget): void;
2631
- private _headers;
2632
- private _footers;
2633
- _options: DocumentOptions;
2634
- private _hasCommentSugar;
2635
- constructor(options: DocumentOptions);
2636
- get headers(): HeaderFooterEntry[];
2637
- get footers(): HeaderFooterEntry[];
2638
- private addSection;
2639
- private createHeader;
2640
- private createFooter;
2641
- private addHeaderToDocument;
2642
- private addFooterToDocument;
2643
- private addDefaultRelationships;
2644
- }
2645
- declare class DocxReadContext implements ReadContext {
2646
- docx: DocxDocument;
2647
- styleCache: Map<string, Element>;
2648
- numberingCache: Map<string, Element>;
2649
- currentPart: string;
2650
- constructor(docx: DocxDocument, styleCache: Map<string, Element>, numberingCache: Map<string, Element>);
2651
- resolveRelationship(rId: string): string | undefined;
2652
- withPart<T>(partPath: string, fn: () => T): T;
2653
- getPart(path: string): Element | undefined;
2654
- getRaw(path: string): Uint8Array | undefined;
2655
- }
2656
- //#endregion
2657
- //#region src/parts/header-footer.d.ts
2658
- interface HeaderFooterReference {
2659
- referenceId: number;
2660
- }
2661
- interface HeaderFooterEntry extends HeaderFooterReference {
2662
- children: SectionChild[];
2663
- relationships: Relationships;
2664
- }
2665
- //#endregion
2666
- //#region src/parts/document/body/section-properties/properties/column.d.ts
2667
- interface ColumnProperties {
2668
- width: number | PositiveUniversalMeasure;
2669
- space?: number | PositiveUniversalMeasure;
2670
- }
2671
- //#endregion
2672
- //#region src/parts/document/body/section-properties/properties/columns.d.ts
2673
- interface ColumnsProperties {
2674
- space?: number | PositiveUniversalMeasure;
2675
- count?: number;
2676
- separate?: boolean;
2677
- equalWidth?: boolean;
2678
- children?: ColumnProperties[];
2679
- }
2680
- //#endregion
2681
- //#region src/parts/document/body/section-properties/properties/doc-grid.d.ts
2682
- declare const DocumentGridType: {
2683
- readonly DEFAULT: "default";
2684
- readonly LINES: "lines";
2685
- readonly LINES_AND_CHARS: "linesAndChars";
2686
- readonly SNAP_TO_CHARS: "snapToChars";
2687
- };
2688
- interface DocGridProperties {
2689
- type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
2690
- linePitch: number;
2691
- charSpace?: number;
2845
+ sourceRectangle?: SourceRectangleOptions;
2846
+ nonVisualProperties?: NonVisualPropertiesOptions;
2847
+ useLocalDpi?: boolean;
2848
+ sourceUrl?: string;
2692
2849
  }
2693
- declare const createDocumentGrid: ({
2694
- type,
2695
- linePitch,
2696
- charSpace
2697
- }: DocGridProperties) => string;
2698
- //#endregion
2699
- //#region src/parts/document/body/section-properties/properties/footnote-endnote-properties.d.ts
2700
- declare const FootnotePositionType: {
2701
- readonly PAGE_BOTTOM: "pageBottom";
2702
- readonly BENEATH_TEXT: "beneathText";
2703
- readonly SECT_END: "sectEnd";
2704
- readonly DOC_END: "docEnd";
2705
- };
2706
- declare const EndnotePositionType: {
2707
- readonly SECT_END: "sectEnd";
2708
- readonly DOC_END: "docEnd";
2709
- };
2710
- declare const NumberRestartType: {
2711
- readonly CONTINUOUS: "continuous";
2712
- readonly EACH_SECT: "eachSect";
2713
- readonly EACH_PAGE: "eachPage";
2714
- };
2715
- interface NumberPropertiesOptions {
2716
- formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
2717
- format?: string;
2718
- numStart?: number;
2719
- numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
2850
+ interface RegularMediaData {
2851
+ type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
2720
2852
  }
2721
- interface FootnotePropertiesOptions extends NumberPropertiesOptions {
2722
- pos?: (typeof FootnotePositionType)[keyof typeof FootnotePositionType];
2853
+ interface SvgMediaData {
2854
+ type: "svg";
2855
+ fallback: RegularMediaData & CoreMediaData;
2723
2856
  }
2724
- interface EndnotePropertiesOptions extends NumberPropertiesOptions {
2725
- pos?: (typeof EndnotePositionType)[keyof typeof EndnotePositionType];
2857
+ interface LinkedPictureMediaData {
2858
+ type: RegularMediaData["type"];
2859
+ sourceUrl: string;
2860
+ transformation: MediaDataTransformation;
2861
+ sourceRectangle?: SourceRectangleOptions;
2862
+ nonVisualProperties?: NonVisualPropertiesOptions;
2863
+ useLocalDpi?: boolean;
2726
2864
  }
2727
- //#endregion
2728
- //#region src/parts/document/body/section-properties/properties/line-number.d.ts
2729
- declare const LineNumberRestartFormat: {
2730
- readonly NEW_PAGE: "newPage";
2731
- readonly NEW_SECTION: "newSection";
2732
- readonly CONTINUOUS: "continuous";
2733
- };
2734
- interface LineNumberProperties {
2735
- countBy?: number;
2736
- start?: number;
2737
- restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
2738
- distance?: number | PositiveUniversalMeasure;
2865
+ interface ShapeMediaData {
2866
+ type: "wps";
2867
+ transformation: MediaDataTransformation;
2868
+ data: ShapeCoreOptions;
2739
2869
  }
2740
- declare const createLineNumberType: ({
2741
- countBy,
2742
- start,
2743
- restart,
2744
- distance
2745
- }: LineNumberProperties) => string;
2746
- //#endregion
2747
- //#region src/parts/document/body/section-properties/properties/page-borders.d.ts
2748
- declare const PageBorderDisplay: {
2749
- readonly ALL_PAGES: "allPages";
2750
- readonly FIRST_PAGE: "firstPage";
2751
- readonly NOT_FIRST_PAGE: "notFirstPage";
2752
- };
2753
- declare const PageBorderOffsetFrom: {
2754
- readonly PAGE: "page";
2755
- readonly TEXT: "text";
2756
- };
2757
- declare const PageBorderZOrder: {
2758
- readonly BACK: "back";
2759
- readonly FRONT: "front";
2760
- };
2761
- interface PageBordersOptions {
2762
- display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
2763
- offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
2764
- zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
2765
- top?: BorderOptions;
2766
- right?: BorderOptions;
2767
- bottom?: BorderOptions;
2768
- left?: BorderOptions;
2870
+ interface GroupCommonMediaData {
2871
+ outline?: OutlineOptions;
2872
+ fill?: FillOptions;
2769
2873
  }
2770
- //#endregion
2771
- //#region src/parts/document/body/section-properties/properties/page-margin.d.ts
2772
- interface PageMarginProperties {
2773
- top?: number | UniversalMeasure;
2774
- right?: number | PositiveUniversalMeasure;
2775
- bottom?: number | UniversalMeasure;
2776
- left?: number | PositiveUniversalMeasure;
2777
- header?: number | PositiveUniversalMeasure;
2778
- footer?: number | PositiveUniversalMeasure;
2779
- gutter?: number | PositiveUniversalMeasure;
2874
+ type GroupChildMediaData = (ShapeMediaData | MediaData | GroupMediaData | ChartMediaData | ContentPartMediaData) & GroupCommonMediaData;
2875
+ interface GroupMediaData {
2876
+ type: "wpg";
2877
+ transformation: MediaDataTransformation;
2878
+ children: GroupChildMediaData[];
2879
+ childOffset?: ChildOffset;
2880
+ childExtent?: ChildExtent;
2881
+ fill?: FillOptions;
2882
+ effects?: EffectListOptions;
2883
+ groupShapeLocks?: GroupShapeLocksOptions;
2780
2884
  }
2781
- declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => string;
2782
- //#endregion
2783
- //#region src/parts/document/body/section-properties/properties/page-number.d.ts
2784
- declare const PageNumberSeparator: {
2785
- readonly HYPHEN: "hyphen";
2786
- readonly PERIOD: "period";
2787
- readonly COLON: "colon";
2788
- readonly EM_DASH: "emDash";
2789
- readonly EN_DASH: "enDash";
2790
- };
2791
- interface PageNumberTypeProperties {
2792
- start?: number;
2793
- formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
2794
- separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
2795
- chapStyle?: number;
2885
+ interface ChartMediaData {
2886
+ type: "chart";
2887
+ transformation: MediaDataTransformation;
2888
+ chartKey?: string;
2889
+ chartOptions?: ChartSpaceOptions;
2890
+ nonVisualProperties?: NonVisualPropertiesOptions;
2891
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
2796
2892
  }
2797
- declare const createPageNumberType: ({
2798
- start,
2799
- formatType,
2800
- separator,
2801
- chapStyle
2802
- }: PageNumberTypeProperties) => string;
2803
- //#endregion
2804
- //#region src/parts/document/body/section-properties/properties/page-size.d.ts
2805
- declare const PageOrientation: {
2806
- readonly PORTRAIT: "portrait";
2807
- readonly LANDSCAPE: "landscape";
2808
- };
2809
- interface PageSizeProperties {
2810
- width?: number | PositiveUniversalMeasure;
2811
- height?: number | PositiveUniversalMeasure;
2812
- orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
2813
- code?: number;
2893
+ interface ContentPartOptions {
2894
+ referenceId: string;
2895
+ transformation?: MediaDataTransformation;
2896
+ nonVisualProperties?: NonVisualPropertiesOptions & {
2897
+ contentPart?: NonVisualContentPartPropertiesOptions;
2898
+ };
2899
+ blackWhiteMode?: BlackWhiteMode;
2814
2900
  }
2815
- //#endregion
2816
- //#region src/parts/document/body/section-properties/properties/page-text-direction.d.ts
2817
- declare const PageTextDirectionType: {
2818
- readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
2819
- readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
2820
- };
2821
- //#endregion
2822
- //#region src/parts/document/body/section-properties/properties/section-type.d.ts
2823
- declare const SectionType: {
2824
- readonly NEXT_PAGE: "nextPage";
2825
- readonly NEXT_COLUMN: "nextColumn";
2826
- readonly CONTINUOUS: "continuous";
2827
- readonly EVEN_PAGE: "evenPage";
2828
- readonly ODD_PAGE: "oddPage";
2829
- };
2830
- declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => string;
2831
- //#endregion
2832
- //#region src/parts/document/body/section-properties/section-properties.d.ts
2833
- interface HeaderFooterGroup<T> {
2834
- default?: T;
2835
- first?: T;
2836
- even?: T;
2901
+ interface ContentPartMediaData extends ContentPartOptions {
2902
+ type: "contentPart";
2903
+ transformation: MediaDataTransformation;
2837
2904
  }
2838
- interface SectionPropertiesOptionsBase {
2839
- runPropertiesRsid?: string;
2840
- deletionRsid?: string;
2841
- rsid?: string;
2842
- sectionRsid?: string;
2843
- page?: {
2844
- size?: PageSizeProperties;
2845
- margin?: PageMarginProperties;
2846
- pageNumbers?: PageNumberTypeProperties;
2847
- borders?: PageBordersOptions;
2848
- textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
2905
+ interface SmartArtMediaData {
2906
+ type: "smartart";
2907
+ transformation: MediaDataTransformation;
2908
+ smartArtKey: string;
2909
+ }
2910
+ type ExtendedMediaData = MediaData | LinkedPictureMediaData | ShapeMediaData | GroupMediaData | ChartMediaData | SmartArtMediaData | ContentPartMediaData;
2911
+ type MediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
2912
+ //#endregion
2913
+ //#region src/shared/media/media.d.ts
2914
+ interface MediaTransformation {
2915
+ offset?: {
2916
+ top?: number | UniversalMeasure;
2917
+ left?: number | UniversalMeasure;
2849
2918
  };
2850
- grid?: DocGridProperties | false;
2851
- headerWrapperGroup?: HeaderFooterGroup<HeaderFooterReference>;
2852
- footerWrapperGroup?: HeaderFooterGroup<HeaderFooterReference>;
2853
- lineNumbers?: LineNumberProperties;
2854
- titlePage?: boolean;
2855
- verticalAlign?: SectionVerticalAlign;
2856
- column?: ColumnsProperties;
2857
- type?: (typeof SectionType)[keyof typeof SectionType];
2858
- noEndnote?: boolean;
2859
- formProtection?: boolean;
2860
- bidi?: boolean;
2861
- rtlGutter?: boolean;
2862
- paperSrc?: {
2863
- first?: number;
2864
- other?: number;
2919
+ width: number | UniversalMeasure;
2920
+ height: number | UniversalMeasure;
2921
+ flip?: {
2922
+ vertical?: boolean;
2923
+ horizontal?: boolean;
2924
+ };
2925
+ rotation?: number;
2926
+ effectExtent?: {
2927
+ l: number;
2928
+ t: number;
2929
+ r: number;
2930
+ b: number;
2865
2931
  };
2866
- footnotePr?: FootnotePropertiesOptions;
2867
- endnotePr?: EndnotePropertiesOptions;
2868
- printerSettingsId?: string;
2869
2932
  }
2870
- type SectionPropertiesChangeOptions = ChangedProperties & SectionPropertiesOptionsBase;
2871
- type SectionPropertiesOptions = {
2872
- revision?: SectionPropertiesChangeOptions;
2873
- } & SectionPropertiesOptionsBase;
2874
- declare const sectionMarginDefaults: {
2875
- TOP: number;
2876
- RIGHT: number;
2877
- BOTTOM: number;
2878
- LEFT: number;
2879
- HEADER: number;
2880
- FOOTER: number;
2881
- GUTTER: number;
2882
- };
2883
- declare const sectionPageSizeDefaults: {
2884
- WIDTH: number;
2885
- HEIGHT: number;
2886
- ORIENTATION: "portrait";
2887
- };
2933
+ declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
2888
2934
  //#endregion
2889
- //#region src/parts/document/body/section-properties/descriptor.d.ts
2890
- declare const sectionPropertiesDesc: CustomDescriptor<SectionPropertiesOptions, BodyContext>;
2891
- declare function stringifySectionPropertiesXml(opts: SectionPropertiesOptions): string;
2892
- declare function parseSectionPropertiesEl(el: Element): SectionPropertiesOptions;
2935
+ //#region src/parse.d.ts
2936
+ interface DocxPartRefs {
2937
+ headers: Map<string, string>;
2938
+ footers: Map<string, string>;
2939
+ footnotes?: string;
2940
+ endnotes?: string;
2941
+ comments?: string;
2942
+ people?: string;
2943
+ commentsExtended?: string;
2944
+ hyperlinks: Map<string, string>;
2945
+ charts: Map<string, string>;
2946
+ diagramData: Map<string, string>;
2947
+ diagramLayout: Map<string, string>;
2948
+ diagramQuickStyle: Map<string, string>;
2949
+ diagramColors: Map<string, string>;
2950
+ diagramDrawing: Map<string, string>;
2951
+ media: Map<string, string>;
2952
+ partMedia: Map<string, Map<string, string>>;
2953
+ partEmbeddingTypes: Map<string, Map<string, "oleObject" | "package">>;
2954
+ partHyperlinks: Map<string, Map<string, string>>;
2955
+ partExternalImages: Map<string, Map<string, string>>;
2956
+ afChunks: Map<string, string>;
2957
+ subDocs: Map<string, string>;
2958
+ partTextBoxes: Map<string, Map<string, string>>;
2959
+ bibliography?: string;
2960
+ glossary?: string;
2961
+ }
2962
+ interface DocxDocument {
2963
+ doc: ParsedArchive;
2964
+ documentRoot: Element;
2965
+ body: Element;
2966
+ background?: Element;
2967
+ styles?: Element;
2968
+ numbering?: Element;
2969
+ settings?: Element;
2970
+ fontTable?: Element;
2971
+ webSettings?: Element;
2972
+ partRefs: DocxPartRefs;
2973
+ coreProps?: string;
2974
+ appProps?: string;
2975
+ customProps?: string;
2976
+ contentTypes?: Element;
2977
+ }
2978
+ declare function parseDocument(data: DataType): DocumentOptions;
2979
+ declare function parseDocx(data: DataType): DocxDocument;
2893
2980
  //#endregion
2894
- //#region src/parts/paragraph/links/bookmark.d.ts
2895
- type DisplacedByCustomXml = "before" | "after";
2896
- interface MarkupRangeOptions {
2897
- id: number;
2898
- displacedByCustomXml?: DisplacedByCustomXml;
2981
+ //#region src/context.d.ts
2982
+ interface ViewWrapper {
2983
+ relationships: Relationships;
2984
+ partName?: string;
2899
2985
  }
2900
- interface BookmarkStartOptions extends MarkupRangeOptions {
2901
- name: string;
2902
- colFirst?: number;
2903
- colLast?: number;
2986
+ interface BodyContext extends WriteContext {
2987
+ fileData: DocxWriteContext;
2988
+ file: DocxWriteContext;
2989
+ viewWrapper: ViewWrapper;
2990
+ stringifyChild: (child: SectionChild) => string;
2904
2991
  }
2905
- interface MoveRangeStartOptions {
2906
- id: number;
2907
- name?: string;
2908
- author?: string;
2909
- date?: string;
2910
- displacedByCustomXml?: DisplacedByCustomXml;
2911
- colFirst?: number;
2912
- colLast?: number;
2992
+ declare class DocxWriteContext implements WriteContext {
2993
+ document: ViewWrapper;
2994
+ numbering: Numbering;
2995
+ media: Media<MediaData>;
2996
+ charts: ChartCollection;
2997
+ smartArts: SmartArtCollection;
2998
+ embeddings: EmbeddingCollection;
2999
+ altChunks: AltChunkCollection;
3000
+ subDocs: SubDocCollection;
3001
+ comments: {
3002
+ relationships: Relationships;
3003
+ entries: CommentOptions[];
3004
+ nextId: number;
3005
+ };
3006
+ markupIds: {
3007
+ rangeNext: number;
3008
+ moveRunNext: number;
3009
+ };
3010
+ footNotes: {
3011
+ relationships: Relationships;
3012
+ notes: Map<number, NoteChild[]>;
3013
+ separator?: FootnoteSeparator | null;
3014
+ continuationSeparator?: FootnoteSeparator | null;
3015
+ continuationNotice?: FootnoteSeparator;
3016
+ };
3017
+ endnotes: {
3018
+ relationships: Relationships;
3019
+ notes: Map<number, NoteChild[]>;
3020
+ separator?: EndnoteSeparator | null;
3021
+ continuationSeparator?: EndnoteSeparator | null;
3022
+ continuationNotice?: EndnoteSeparator;
3023
+ };
3024
+ fileRelationships: Relationships;
3025
+ _settingsOptions: SettingsOptions;
3026
+ styles: Styles;
3027
+ fontTable: FontWrapper;
3028
+ glossaryOptions: GlossaryDocumentOptions | undefined;
3029
+ webSettings: WebSettingsOptions | undefined;
3030
+ private _sectionProperties;
3031
+ get sectionProperties(): readonly (SectionPropertiesDescriptorOptions | undefined)[];
3032
+ private readonly _hasFootnotes;
3033
+ private readonly _hasEndnotes;
3034
+ private readonly _hasNumbering;
3035
+ get hasFootnotes(): boolean;
3036
+ get hasEndnotes(): boolean;
3037
+ get hasNumbering(): boolean;
3038
+ addRelationship(type: string, target: string, mode?: string): string;
3039
+ addMedia(data: Uint8Array, type: string): string;
3040
+ addHyperlink(_key: string, _target: HyperlinkTarget): void;
3041
+ private _headers;
3042
+ private _footers;
3043
+ _options: DocumentOptions;
3044
+ private _hasCommentSugar;
3045
+ constructor(options: DocumentOptions);
3046
+ get headers(): HeaderFooterEntry[];
3047
+ get footers(): HeaderFooterEntry[];
3048
+ private addSection;
3049
+ private createHeader;
3050
+ private createFooter;
3051
+ private addHeaderToDocument;
3052
+ private addFooterToDocument;
3053
+ private nextPartName;
3054
+ private addDefaultRelationships;
3055
+ private registerDocumentRel;
3056
+ addPassthroughDocumentRelationships(): void;
2913
3057
  }
2914
- interface BookmarkOptions {
2915
- name: string;
2916
- wrap?: (string | RunOptions)[];
2917
- displacedByCustomXml?: DisplacedByCustomXml;
2918
- colFirst?: number;
2919
- colLast?: number;
3058
+ declare class DocxReadContext implements ReadContext {
3059
+ docx: DocxDocument;
3060
+ styleCache: Map<string, Element>;
3061
+ numberingCache: Map<string, Element>;
3062
+ numIdCache: Map<string, string>;
3063
+ currentPart: string;
3064
+ constructor(docx: DocxDocument, styleCache: Map<string, Element>, numberingCache: Map<string, Element>, numIdCache: Map<string, string>);
3065
+ resolveRelationship(rId: string): string | undefined;
3066
+ resolveEmbeddingType(rId: string): "oleObject" | "package" | undefined;
3067
+ resolveExternalImage(rId: string): string | undefined;
3068
+ withPart<T>(partPath: string, fn: () => T): T;
3069
+ getPart(path: string): Element | undefined;
3070
+ getRaw(path: string): Uint8Array | undefined;
2920
3071
  }
2921
- interface MoveRangeOptions {
2922
- author: string;
2923
- date: string;
2924
- wrap?: (string | RunOptions)[];
2925
- name: string;
2926
- displacedByCustomXml?: DisplacedByCustomXml;
2927
- colFirst?: number;
2928
- colLast?: number;
3072
+ //#endregion
3073
+ //#region src/parts/header-footer.d.ts
3074
+ interface HeaderFooterReference {
3075
+ referenceId: number;
3076
+ }
3077
+ interface HeaderFooterEntry extends HeaderFooterReference {
3078
+ children: SectionChild[];
3079
+ relationships: Relationships;
3080
+ partName?: string;
2929
3081
  }
2930
3082
  //#endregion
2931
- //#region src/parts/sub-doc/sub-doc.d.ts
2932
- interface SubDocOptions {
2933
- data: DataType;
3083
+ //#region src/parts/document/body/section-properties/descriptor.d.ts
3084
+ interface SectionPropertiesDescriptorOptions extends SectionPropertiesOptions {
3085
+ headerReferences?: HeaderFooterGroup<HeaderFooterReference>;
3086
+ footerReferences?: HeaderFooterGroup<HeaderFooterReference>;
3087
+ printerSettingsId?: string;
2934
3088
  }
3089
+ declare const sectionPropertiesDesc: CustomDescriptor<SectionPropertiesDescriptorOptions, BodyContext, SectionPropertiesOptions>;
3090
+ declare function stringifySectionProperties(opts: SectionPropertiesDescriptorOptions): string;
3091
+ declare function parseSectionPropertiesEl(el: Element): SectionPropertiesOptions;
2935
3092
  //#endregion
2936
3093
  //#region src/shared/section.d.ts
3094
+ type BlockContentChild = Exclude<SectionChild, {
3095
+ altChunk: unknown;
3096
+ }>;
2937
3097
  type SectionChild = {
2938
3098
  paragraph: string | ParagraphOptions;
2939
3099
  } | {
@@ -2950,12 +3110,11 @@ type SectionChild = {
2950
3110
  } | {
2951
3111
  sdt: {
2952
3112
  properties: SdtPropertiesOptions;
2953
- children?: SectionChild[];
3113
+ endProperties?: RunPropertiesOptions;
3114
+ children?: BlockContentChild[];
2954
3115
  };
2955
3116
  } | {
2956
3117
  altChunk: AltChunkOptions;
2957
- } | {
2958
- subDoc: SubDocOptions;
2959
3118
  } | {
2960
3119
  customXml: CustomXmlBlockOptions;
2961
3120
  } | {
@@ -2970,11 +3129,21 @@ interface SectionOptions {
2970
3129
  default?: SectionChild[];
2971
3130
  first?: SectionChild[];
2972
3131
  even?: SectionChild[];
3132
+ partNames?: {
3133
+ default?: string;
3134
+ first?: string;
3135
+ even?: string;
3136
+ };
2973
3137
  };
2974
3138
  footers?: {
2975
3139
  default?: SectionChild[];
2976
3140
  first?: SectionChild[];
2977
3141
  even?: SectionChild[];
3142
+ partNames?: {
3143
+ default?: string;
3144
+ first?: string;
3145
+ even?: string;
3146
+ };
2978
3147
  };
2979
3148
  properties?: SectionPropertiesOptions;
2980
3149
  children: SectionChild[];
@@ -3004,6 +3173,17 @@ interface TableOfContentsOptions {
3004
3173
  preserveNewLineInEntries?: boolean;
3005
3174
  hideTabAndPageNumbersInWebView?: boolean;
3006
3175
  entries?: SectionChild[];
3176
+ rPrXml?: string;
3177
+ endRPrXml?: string;
3178
+ bare?: boolean;
3179
+ endInBody?: boolean;
3180
+ headRunsXml?: string;
3181
+ runProperties?: RunPropertiesOptions;
3182
+ id?: number;
3183
+ docPartUnique?: boolean;
3184
+ endProperties?: RunPropertiesOptions;
3185
+ leading?: SectionChild[];
3186
+ trailing?: SectionChild[];
3007
3187
  }
3008
3188
  //#endregion
3009
3189
  //#region src/parts/table-of-contents/sdt-properties.d.ts
@@ -3055,10 +3235,14 @@ interface SdtDataBindingOptions {
3055
3235
  storeItemID: string;
3056
3236
  }
3057
3237
  interface SdtPropertiesOptions {
3238
+ runProperties?: RunPropertiesOptions;
3058
3239
  alias?: string;
3059
3240
  tag?: string;
3060
3241
  id?: number;
3061
3242
  lock?: (typeof SdtLock)[keyof typeof SdtLock];
3243
+ placeholder?: {
3244
+ docPart?: string;
3245
+ };
3062
3246
  temporary?: boolean;
3063
3247
  showingPlaceholder?: boolean;
3064
3248
  dataBinding?: SdtDataBindingOptions;
@@ -3085,6 +3269,7 @@ interface SdtPropertiesOptions {
3085
3269
  group?: boolean;
3086
3270
  bibliography?: boolean;
3087
3271
  checkbox?: SdtCheckboxOptions;
3272
+ appearance?: "boundingBox" | "tags" | "hidden";
3088
3273
  }
3089
3274
  //#endregion
3090
3275
  //#region src/parts/table-of-contents/toc-parse.d.ts
@@ -3094,13 +3279,15 @@ declare function parseToc(el: Element, ctx: DocxReadContext, parseChildren?: (el
3094
3279
  declare function parseTocFieldInstruction(instruction: string, opts: Record<string, unknown>): void;
3095
3280
  declare function parseTocFieldFromElements(els: Element[]): TableOfContentsOptions;
3096
3281
  declare function selectTocEntryElements(els: Element[]): Element[];
3282
+ declare function keepTocClosingParagraph(el: Element, hasEntries: boolean): boolean;
3097
3283
  //#endregion
3098
3284
  //#region src/parts/table-of-contents/descriptor.d.ts
3099
- declare function stringifyTableOfContents(alias?: string, options?: TableOfContentsOptions, entriesXml?: string): string;
3285
+ declare function stringifyTableOfContents(alias: string | undefined, options?: TableOfContentsOptions, entriesXml?: string, leadingXml?: string, trailingXml?: string): string;
3100
3286
  //#endregion
3101
3287
  //#region src/parts/table/table-cell/table-cell.d.ts
3102
3288
  interface TableCellOptions extends BaseTableCellOptions, TableCellPropertiesOptions {
3103
3289
  children: SectionChild[];
3290
+ cellProperties?: boolean;
3104
3291
  }
3105
3292
  interface SdtCellOptions {
3106
3293
  properties: SdtPropertiesOptions;
@@ -3109,11 +3296,6 @@ interface SdtCellOptions {
3109
3296
  }
3110
3297
  //#endregion
3111
3298
  //#region src/parts/custom-xml/custom-xml.d.ts
3112
- interface CustomXmlDataBindingOptions {
3113
- xpath: string;
3114
- storeItemID: string;
3115
- prefixMappings?: string;
3116
- }
3117
3299
  interface CustomXmlAttributeOptions {
3118
3300
  name: string;
3119
3301
  val: string;
@@ -3129,7 +3311,7 @@ interface CustomXmlRunOptions {
3129
3311
  customXmlPr?: CustomXmlPropertiesOptions;
3130
3312
  }
3131
3313
  type CustomXmlBlockOptions = CustomXmlRunOptions & {
3132
- children?: SectionChild[];
3314
+ children?: BlockContentChild[];
3133
3315
  };
3134
3316
  type CustomXmlRowOptions = CustomXmlRunOptions & {
3135
3317
  children?: TableRowOptions[];
@@ -3138,11 +3320,35 @@ type CustomXmlCellOptions = CustomXmlRunOptions & {
3138
3320
  children?: TableCellOptions[];
3139
3321
  };
3140
3322
  //#endregion
3323
+ //#region src/parts/perm-start.d.ts
3324
+ declare const EditGroupType: {
3325
+ readonly NONE: "none";
3326
+ readonly EVERYONE: "everyone";
3327
+ readonly ADMINISTRATORS: "administrators";
3328
+ readonly CONTRIBUTORS: "contributors";
3329
+ readonly EDITORS: "editors";
3330
+ readonly OWNERS: "owners";
3331
+ readonly CURRENT: "current";
3332
+ };
3333
+ type EditGroup = (typeof EditGroupType)[keyof typeof EditGroupType];
3334
+ interface PermStartOptions {
3335
+ id?: string | number;
3336
+ editGroup?: EditGroup;
3337
+ editor?: string;
3338
+ colFirst?: number;
3339
+ colLast?: number;
3340
+ }
3341
+ //#endregion
3342
+ //#region src/parts/sub-doc/sub-doc.d.ts
3343
+ interface SubDocOptions {
3344
+ data: DataType;
3345
+ }
3346
+ //#endregion
3141
3347
  //#region src/parts/paragraph/math.d.ts
3142
3348
  type MathScriptType = "roman" | "script" | "fraktur" | "double-struck" | "sans-serif" | "monospace";
3143
- type MathStyleType = "p" | "b" | "i" | "bi";
3349
+ type MathStyleType = "plain" | "bold" | "italic" | "boldItalic";
3144
3350
  interface MathRunPropertiesOptions {
3145
- lit?: boolean;
3351
+ literal?: boolean;
3146
3352
  normal?: boolean;
3147
3353
  script?: MathScriptType;
3148
3354
  style?: MathStyleType;
@@ -3155,15 +3361,73 @@ interface MathDelimiterProperties {
3155
3361
  separatorCharacter?: string;
3156
3362
  grow?: boolean;
3157
3363
  shape?: "centered" | "match";
3364
+ controlProperties?: RunPropertiesOptions;
3158
3365
  }
3159
3366
  type MathNaryLimitLocation = "subSup" | "undOvr";
3367
+ type MathSpacingRule = 0 | 1 | 2 | 3 | 4;
3368
+ type MathBaselineAlignment = "inline" | "top" | "center" | "bottom" | "inside" | "outside";
3160
3369
  interface MathNaryProperties {
3161
3370
  limitLocation?: MathNaryLimitLocation;
3162
3371
  grow?: boolean;
3163
3372
  }
3373
+ interface MathMatrixColumnOptions {
3374
+ count: number;
3375
+ justification: string;
3376
+ }
3377
+ interface MathMatrixProperties {
3378
+ baseline?: MathBaselineAlignment;
3379
+ hidePlaceholder?: boolean;
3380
+ rowSpacingRule?: MathSpacingRule;
3381
+ columnGapRule?: MathSpacingRule;
3382
+ rowSpacing?: number;
3383
+ columnSpacing?: number;
3384
+ columnGap?: number;
3385
+ columns?: MathMatrixColumnOptions[];
3386
+ }
3387
+ interface MathBorderBoxProperties {
3388
+ hideTop?: boolean;
3389
+ hideBottom?: boolean;
3390
+ hideLeft?: boolean;
3391
+ hideRight?: boolean;
3392
+ strikeHorizontal?: boolean;
3393
+ strikeVertical?: boolean;
3394
+ strikeDiagonalUp?: boolean;
3395
+ strikeDiagonalDown?: boolean;
3396
+ }
3397
+ interface MathBoxProperties {
3398
+ operatorEmulation?: boolean;
3399
+ noBreak?: boolean;
3400
+ differential?: boolean;
3401
+ align?: boolean;
3402
+ }
3403
+ interface MathGroupCharacterProperties {
3404
+ character?: string;
3405
+ position?: "top" | "bot";
3406
+ vertical?: "top" | "bot";
3407
+ }
3408
+ interface MathPhantomProperties {
3409
+ show?: boolean;
3410
+ zeroWidth?: boolean;
3411
+ zeroAscent?: boolean;
3412
+ zeroDescent?: boolean;
3413
+ transparent?: boolean;
3414
+ }
3415
+ interface MathEquationArrayProperties {
3416
+ baseline?: MathBaselineAlignment;
3417
+ distributeRows?: boolean;
3418
+ objectDistance?: boolean;
3419
+ rowSpacingRule?: MathSpacingRule;
3420
+ rowSpacing?: number;
3421
+ }
3422
+ interface MathRadicalProperties {
3423
+ hideDegree?: boolean;
3424
+ }
3164
3425
  type MathInput = string | {
3165
3426
  text: string;
3166
3427
  properties?: MathRunPropertiesOptions;
3428
+ runProperties?: RunPropertiesOptions;
3429
+ } | {
3430
+ argumentControlProperties: RunPropertiesOptions;
3167
3431
  } | {
3168
3432
  fraction: {
3169
3433
  numerator: MathInput[];
@@ -3171,34 +3435,51 @@ type MathInput = string | {
3171
3435
  fractionType?: string;
3172
3436
  numeratorArgumentSize?: number;
3173
3437
  denominatorArgumentSize?: number;
3438
+ controlProperties?: RunPropertiesOptions;
3174
3439
  };
3175
3440
  } | {
3176
3441
  superScript: {
3177
3442
  children: MathInput[];
3178
3443
  superScript: MathInput[];
3444
+ baseArgumentSize?: number;
3445
+ superScriptArgumentSize?: number;
3446
+ controlProperties?: RunPropertiesOptions;
3179
3447
  };
3180
3448
  } | {
3181
3449
  subScript: {
3182
3450
  children: MathInput[];
3183
3451
  subScript: MathInput[];
3452
+ baseArgumentSize?: number;
3453
+ subScriptArgumentSize?: number;
3454
+ controlProperties?: RunPropertiesOptions;
3184
3455
  };
3185
3456
  } | {
3186
3457
  subSuperScript: {
3187
3458
  children: MathInput[];
3188
3459
  subScript: MathInput[];
3189
3460
  superScript: MathInput[];
3461
+ baseArgumentSize?: number;
3462
+ subScriptArgumentSize?: number;
3463
+ superScriptArgumentSize?: number;
3190
3464
  alignScript?: boolean;
3465
+ controlProperties?: RunPropertiesOptions;
3191
3466
  };
3192
3467
  } | {
3193
3468
  preSubSuperScript: {
3194
3469
  children: MathInput[];
3195
3470
  subScript: MathInput[];
3196
3471
  superScript: MathInput[];
3472
+ subScriptArgumentSize?: number;
3473
+ superScriptArgumentSize?: number;
3474
+ baseArgumentSize?: number;
3475
+ controlProperties?: RunPropertiesOptions;
3197
3476
  };
3198
3477
  } | {
3199
3478
  radical: {
3200
3479
  children: MathInput[];
3201
3480
  degree?: MathInput[];
3481
+ properties?: MathRadicalProperties;
3482
+ controlProperties?: RunPropertiesOptions;
3202
3483
  };
3203
3484
  } | {
3204
3485
  sum: {
@@ -3206,6 +3487,7 @@ type MathInput = string | {
3206
3487
  subScript?: MathInput[];
3207
3488
  superScript?: MathInput[];
3208
3489
  properties?: MathNaryProperties;
3490
+ controlProperties?: RunPropertiesOptions;
3209
3491
  };
3210
3492
  } | {
3211
3493
  integral: {
@@ -3213,84 +3495,97 @@ type MathInput = string | {
3213
3495
  subScript?: MathInput[];
3214
3496
  superScript?: MathInput[];
3215
3497
  properties?: MathNaryProperties;
3498
+ controlProperties?: RunPropertiesOptions;
3216
3499
  };
3217
3500
  } | {
3218
3501
  limitLower: {
3219
3502
  children: MathInput[];
3220
3503
  limit: MathInput[];
3221
- properties?: Record<string, unknown>;
3504
+ controlProperties?: RunPropertiesOptions;
3222
3505
  };
3223
3506
  } | {
3224
3507
  limitUpper: {
3225
3508
  children: MathInput[];
3226
3509
  limit: MathInput[];
3227
- properties?: Record<string, unknown>;
3510
+ controlProperties?: RunPropertiesOptions;
3228
3511
  };
3229
3512
  } | {
3230
3513
  function: {
3231
3514
  children: MathInput[];
3232
3515
  name: MathInput[];
3233
- properties?: Record<string, unknown>;
3516
+ controlProperties?: RunPropertiesOptions;
3234
3517
  };
3235
3518
  } | {
3236
3519
  matrix: {
3237
- rows: MathInput[][];
3238
- properties?: Record<string, unknown>;
3520
+ rows: (MathInput | MathInput[])[][];
3521
+ properties?: MathMatrixProperties;
3522
+ controlProperties?: RunPropertiesOptions;
3239
3523
  };
3240
3524
  } | {
3241
3525
  roundBrackets: MathInput[] | {
3242
- children: MathInput[];
3526
+ children?: MathInput[];
3527
+ elements?: MathInput[][];
3243
3528
  properties?: MathDelimiterProperties;
3244
3529
  };
3245
3530
  } | {
3246
3531
  curlyBrackets: MathInput[] | {
3247
- children: MathInput[];
3532
+ children?: MathInput[];
3533
+ elements?: MathInput[][];
3248
3534
  properties?: MathDelimiterProperties;
3249
3535
  };
3250
3536
  } | {
3251
3537
  angledBrackets: MathInput[] | {
3252
- children: MathInput[];
3538
+ children?: MathInput[];
3539
+ elements?: MathInput[][];
3253
3540
  properties?: MathDelimiterProperties;
3254
3541
  };
3255
3542
  } | {
3256
3543
  squareBrackets: MathInput[] | {
3257
- children: MathInput[];
3544
+ children?: MathInput[];
3545
+ elements?: MathInput[][];
3258
3546
  properties?: MathDelimiterProperties;
3259
3547
  };
3260
3548
  } | {
3261
3549
  borderBox: {
3262
3550
  children: MathInput[];
3263
- properties?: Record<string, unknown>;
3551
+ properties?: MathBorderBoxProperties;
3552
+ controlProperties?: RunPropertiesOptions;
3264
3553
  };
3265
3554
  } | {
3266
3555
  box: {
3267
3556
  children: MathInput[];
3268
- properties?: Record<string, unknown>;
3557
+ properties?: MathBoxProperties;
3558
+ controlProperties?: RunPropertiesOptions;
3269
3559
  };
3270
3560
  } | {
3271
3561
  groupChr: {
3272
3562
  children: MathInput[];
3273
- properties?: Record<string, unknown>;
3563
+ properties?: MathGroupCharacterProperties;
3564
+ controlProperties?: RunPropertiesOptions;
3274
3565
  };
3275
3566
  } | {
3276
3567
  phant: {
3277
3568
  children: MathInput[];
3278
- properties?: Record<string, unknown>;
3569
+ properties?: MathPhantomProperties;
3570
+ controlProperties?: RunPropertiesOptions;
3279
3571
  };
3280
3572
  } | {
3281
3573
  eqArr: {
3282
3574
  rows: MathInput[][];
3283
- properties?: Record<string, unknown>;
3575
+ properties?: MathEquationArrayProperties;
3576
+ controlProperties?: RunPropertiesOptions;
3284
3577
  };
3285
3578
  } | {
3286
3579
  accent: {
3287
3580
  children: MathInput[];
3288
3581
  accentCharacter?: string;
3582
+ controlProperties?: RunPropertiesOptions;
3289
3583
  };
3290
3584
  } | {
3291
3585
  bar: {
3292
3586
  children: MathInput[];
3293
3587
  type: "top" | "bot";
3588
+ controlProperties?: RunPropertiesOptions;
3294
3589
  };
3295
3590
  };
3296
3591
  //#endregion
@@ -3298,6 +3593,7 @@ type MathInput = string | {
3298
3593
  type SymbolRunOptions = {
3299
3594
  char: string;
3300
3595
  symbolFont?: string;
3596
+ kind?: "standard" | "office2016";
3301
3597
  } & RunOptions;
3302
3598
  //#endregion
3303
3599
  //#region src/parts/paragraph/run/picture-run.d.ts
@@ -3308,22 +3604,30 @@ interface CorePictureOptions {
3308
3604
  outline?: OutlineOptions;
3309
3605
  fill?: FillOptions;
3310
3606
  effects?: EffectListOptions;
3607
+ scene3d?: Scene3DOptions;
3608
+ shape3d?: Shape3DOptions;
3311
3609
  blipEffects?: BlipEffectsOptions;
3312
3610
  sourceRectangle?: SourceRectangleOptions;
3313
3611
  tile?: TileOptions;
3314
3612
  nonVisualProperties?: NonVisualPropertiesOptions;
3315
3613
  runProperties?: RunPropertiesOptions;
3614
+ lastRenderedPageBreak?: boolean;
3316
3615
  graphicFrameLocks?: GraphicFrameLocksOptions | null;
3317
3616
  useLocalDpi?: boolean;
3617
+ sourceUrl?: string;
3318
3618
  }
3319
3619
  interface RegularPictureOptions {
3320
3620
  type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
3321
- data: DataType;
3621
+ data?: DataType;
3622
+ fileName?: string;
3322
3623
  }
3323
3624
  interface SvgMediaOptions {
3324
3625
  type: "svg";
3325
3626
  data: DataType;
3326
- fallback: RegularPictureOptions;
3627
+ fallback: RegularPictureOptions & {
3628
+ data: DataType;
3629
+ };
3630
+ fileName?: string;
3327
3631
  }
3328
3632
  type PictureOptions = (RegularPictureOptions | SvgMediaOptions) & CorePictureOptions;
3329
3633
  declare const createPictureData: (data: Uint8Array, transformation: MediaTransformation, key: string, sourceRectangle?: SourceRectangleOptions, nonVisualProperties?: NonVisualPropertiesOptions) => Pick<MediaData, "data" | "fileName" | "transformation" | "sourceRectangle" | "nonVisualProperties">;
@@ -3333,6 +3637,9 @@ interface ChartOptions extends ChartSpaceOptions$1 {
3333
3637
  transformation: MediaTransformation;
3334
3638
  floating?: Floating;
3335
3639
  altText?: DocPropertiesOptions;
3640
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
3641
+ runProperties?: RunPropertiesOptions;
3642
+ lastRenderedPageBreak?: boolean;
3336
3643
  }
3337
3644
  //#endregion
3338
3645
  //#region src/parts/paragraph/run/smartart-run.d.ts
@@ -3341,15 +3648,17 @@ interface SmartArtNode {
3341
3648
  children?: SmartArtNode[];
3342
3649
  }
3343
3650
  interface SmartArtOptions {
3344
- data: {
3345
- nodes: SmartArtNode[];
3346
- };
3651
+ nodes: SmartArtNode[];
3347
3652
  transformation: MediaTransformation;
3348
3653
  floating?: Floating;
3349
3654
  altText?: DocPropertiesOptions;
3655
+ graphicFrameLocks?: GraphicFrameLocksOptions | null;
3350
3656
  layout?: string | LayoutDefinitionOptions;
3351
3657
  style?: string | StyleDefinitionOptions;
3352
3658
  color?: string | ColorDefinitionOptions;
3659
+ runProperties?: RunPropertiesOptions;
3660
+ lastRenderedPageBreak?: boolean;
3661
+ raw?: SmartArtRawParts;
3353
3662
  }
3354
3663
  //#endregion
3355
3664
  //#region src/parts/paragraph/run/wps-shape-run.d.ts
@@ -3361,6 +3670,7 @@ interface ShapeRunOptions {
3361
3670
  vmlFallbackMedia?: BackgroundRawMediaOptions[];
3362
3671
  mcChoiceRequires?: string;
3363
3672
  runProperties?: RunPropertiesOptions;
3673
+ lastRenderedPageBreak?: boolean;
3364
3674
  graphicFrameLocks?: GraphicFrameLocksOptions | null;
3365
3675
  }
3366
3676
  type ShapeOptions = ShapeCoreOptions & ShapeRunOptions;
@@ -3379,6 +3689,7 @@ interface GroupOptions {
3379
3689
  vmlFallbackMedia?: BackgroundRawMediaOptions[];
3380
3690
  mcChoiceRequires?: string;
3381
3691
  runProperties?: RunPropertiesOptions;
3692
+ lastRenderedPageBreak?: boolean;
3382
3693
  graphicFrameLocks?: GraphicFrameLocksOptions | null;
3383
3694
  groupShapeLocks?: GroupShapeLocksOptions;
3384
3695
  }
@@ -3387,6 +3698,7 @@ interface GroupOptions {
3387
3698
  interface SimpleFieldOptions {
3388
3699
  instruction: string;
3389
3700
  cachedValue?: string;
3701
+ cachedRunsXml?: string;
3390
3702
  fieldLock?: boolean;
3391
3703
  dirty?: boolean;
3392
3704
  }
@@ -3414,26 +3726,6 @@ interface PositionalTabOptions {
3414
3726
  leader: (typeof PositionalTabLeader)[keyof typeof PositionalTabLeader];
3415
3727
  }
3416
3728
  //#endregion
3417
- //#region src/parts/paragraph/run/ruby.d.ts
3418
- declare const RubyAlign: {
3419
- readonly CENTER: "center";
3420
- readonly DISTRIBUTE_LETTER: "distributeLetter";
3421
- readonly DISTRIBUTE_SPACE: "distributeSpace";
3422
- readonly LEFT: "left";
3423
- readonly RIGHT: "right";
3424
- readonly RIGHT_VERTICAL: "rightVertical";
3425
- };
3426
- interface RubyOptions {
3427
- text: string;
3428
- base: string;
3429
- alignment?: (typeof RubyAlign)[keyof typeof RubyAlign];
3430
- fontSize?: number;
3431
- raise?: number;
3432
- baseFontSize?: number;
3433
- languageId?: string;
3434
- dirty?: boolean;
3435
- }
3436
- //#endregion
3437
3729
  //#region src/parts/paragraph/run/form-field.d.ts
3438
3730
  declare const FormFieldTextType: {
3439
3731
  readonly REGULAR: "regular";
@@ -3514,6 +3806,47 @@ interface FootnoteEndnoteReferenceOptions {
3514
3806
  id: number;
3515
3807
  customMarkFollows?: boolean;
3516
3808
  }
3809
+ interface ComplexFieldOptions {
3810
+ instruction: string;
3811
+ result?: string;
3812
+ rPrXml?: string;
3813
+ resultRPrXml?: string;
3814
+ endRPrXml?: string;
3815
+ instrRunsXml?: string;
3816
+ resultRunsXml?: string;
3817
+ lastRenderedPageBreak?: boolean;
3818
+ }
3819
+ type TrackChangeChild = RunOptions | string | {
3820
+ commentRangeStart: MarkupRangeOptions;
3821
+ } | {
3822
+ commentRangeEnd: MarkupRangeOptions;
3823
+ } | {
3824
+ pageBreak: true;
3825
+ } | {
3826
+ columnBreak: true;
3827
+ } | {
3828
+ complexField: ComplexFieldOptions;
3829
+ } | {
3830
+ formField: FormFieldOptions;
3831
+ } | {
3832
+ proofErr: "spellStart" | "spellEnd" | "gramStart" | "gramEnd";
3833
+ } | {
3834
+ picture: PictureOptions;
3835
+ } | {
3836
+ chart: ChartOptions;
3837
+ } | {
3838
+ wpsShape: ShapeOptions;
3839
+ } | {
3840
+ wpgGroup: GroupOptions;
3841
+ } | {
3842
+ insertion: ChangedProperties & {
3843
+ children: TrackChangeChild[];
3844
+ };
3845
+ } | {
3846
+ deletion: ChangedProperties & {
3847
+ children: TrackChangeChild[];
3848
+ };
3849
+ };
3517
3850
  type ParagraphChild = {
3518
3851
  chart: ChartOptions;
3519
3852
  } | {
@@ -3523,13 +3856,17 @@ type ParagraphChild = {
3523
3856
  } | {
3524
3857
  math: {
3525
3858
  children?: MathInput[];
3859
+ display?: boolean;
3860
+ justification?: "left" | "right" | "center" | "centerGroup";
3526
3861
  };
3527
3862
  } | {
3528
3863
  symbolRun: SymbolRunOptions;
3529
3864
  } | {
3530
3865
  footnoteReference: number | FootnoteEndnoteReferenceOptions;
3866
+ properties?: RunPropertiesOptions;
3531
3867
  } | {
3532
3868
  endnoteReference: number | FootnoteEndnoteReferenceOptions;
3869
+ properties?: RunPropertiesOptions;
3533
3870
  } | {
3534
3871
  pageBreak: true;
3535
3872
  } | {
@@ -3540,15 +3877,16 @@ type ParagraphChild = {
3540
3877
  commentRangeEnd: MarkupRangeOptions;
3541
3878
  } | {
3542
3879
  commentReference: number;
3880
+ properties?: RunPropertiesOptions;
3543
3881
  } | {
3544
3882
  comment: CommentChildOptions;
3545
3883
  } | {
3546
3884
  insertion: ChangedProperties & {
3547
- children: (RunOptions | string)[];
3885
+ children: TrackChangeChild[];
3548
3886
  };
3549
3887
  } | {
3550
3888
  deletion: ChangedProperties & {
3551
- children: (RunOptions | string)[];
3889
+ children: TrackChangeChild[];
3552
3890
  };
3553
3891
  } | {
3554
3892
  hyperlink: {
@@ -3558,7 +3896,7 @@ type ParagraphChild = {
3558
3896
  targetFrame?: string;
3559
3897
  docLocation?: string;
3560
3898
  history?: boolean;
3561
- children?: (RunOptions | string)[];
3899
+ children?: (RunOptions | string | ParagraphChild)[];
3562
3900
  };
3563
3901
  text?: string;
3564
3902
  } | {
@@ -3573,24 +3911,16 @@ type ParagraphChild = {
3573
3911
  wpgGroup: GroupOptions;
3574
3912
  } | {
3575
3913
  object: ObjectElementOptions;
3914
+ } | {
3915
+ pict: PictOptions;
3576
3916
  } | {
3577
3917
  contentPart: ContentPartOptions;
3578
3918
  } | {
3579
3919
  proofErr: "spellStart" | "spellEnd" | "gramStart" | "gramEnd";
3580
3920
  } | {
3581
- positionalTab: {
3582
- alignment: string;
3583
- leader: string;
3584
- relativeTo: string;
3585
- };
3921
+ positionalTab: PositionalTabOptions;
3586
3922
  } | {
3587
- permStart: {
3588
- id: number | string;
3589
- editor?: string;
3590
- editGroup?: string;
3591
- colFirst?: number;
3592
- colLast?: number;
3593
- };
3923
+ permStart: PermStartOptions;
3594
3924
  } | {
3595
3925
  permEnd: number | string;
3596
3926
  } | {
@@ -3603,11 +3933,11 @@ type ParagraphChild = {
3603
3933
  moveToRangeEnd: MarkupRangeOptions;
3604
3934
  } | {
3605
3935
  movedFrom: ChangedProperties & {
3606
- children: (RunOptions | string)[];
3936
+ children: TrackChangeChild[];
3607
3937
  };
3608
3938
  } | {
3609
3939
  movedTo: ChangedProperties & {
3610
- children: (RunOptions | string)[];
3940
+ children: TrackChangeChild[];
3611
3941
  };
3612
3942
  } | {
3613
3943
  moveFrom: MoveRangeOptions;
@@ -3645,19 +3975,12 @@ type ParagraphChild = {
3645
3975
  };
3646
3976
  } | {
3647
3977
  customXmlMoveToRangeEnd: number;
3648
- } | {
3649
- ruby: RubyOptions;
3650
3978
  } | {
3651
3979
  simpleField: SimpleFieldOptions;
3652
3980
  } | {
3653
3981
  formField: FormFieldOptions;
3654
3982
  } | {
3655
- complexField: {
3656
- instruction: string;
3657
- result?: string;
3658
- rPrXml?: string;
3659
- resultRPrXml?: string;
3660
- };
3983
+ complexField: ComplexFieldOptions;
3661
3984
  } | {
3662
3985
  seqIdentifier: string;
3663
3986
  } | {
@@ -3693,17 +4016,21 @@ type ParagraphChild = {
3693
4016
  };
3694
4017
  } | {
3695
4018
  sdt: SdtRunOptions;
4019
+ } | {
4020
+ subDoc: SubDocOptions;
4021
+ } | {
4022
+ rawXml: string;
3696
4023
  } | RunOptions;
3697
4024
  type ParagraphOptions = {
3698
4025
  text?: string;
3699
4026
  children?: (ParagraphChild | string)[];
3700
- rsid?: string;
3701
- defaultRunRsid?: string;
3702
- propertiesRsid?: string;
3703
- runPropertiesRsid?: string;
3704
- deletionRsid?: string;
3705
- paraId?: string;
3706
- textId?: string;
4027
+ additionRsid?: LongHexNumber;
4028
+ defaultRunRsid?: LongHexNumber;
4029
+ propertiesRsid?: LongHexNumber;
4030
+ runPropertiesRsid?: LongHexNumber;
4031
+ deletionRsid?: LongHexNumber;
4032
+ paraId?: LongHexNumber;
4033
+ textId?: LongHexNumber;
3707
4034
  } & ParagraphPropertiesOptions;
3708
4035
  //#endregion
3709
4036
  //#region src/parts/paragraph/links/hyperlink.d.ts
@@ -3733,32 +4060,17 @@ interface DirOptions {
3733
4060
  val: "ltr" | "rtl";
3734
4061
  }
3735
4062
  //#endregion
4063
+ //#region src/parts/settings/descriptor.d.ts
4064
+ declare const settingsDesc: CustomDescriptor<SettingsOptions>;
4065
+ //#endregion
3736
4066
  //#region src/parts/sdt/sdt-parse.d.ts
3737
4067
  declare function parseSdtProperties(el: Element): SdtPropertiesOptions;
3738
4068
  declare function parseSdtBlock(el: Element, ctx: DocxReadContext, parseChildren: (elements: Element[], ctx: DocxReadContext) => unknown[]): {
3739
4069
  properties: SdtPropertiesOptions;
4070
+ endProperties?: RunPropertiesOptions;
3740
4071
  children?: unknown[];
3741
4072
  };
3742
4073
  //#endregion
3743
- //#region src/parts/perm-start.d.ts
3744
- declare const EditGroupType: {
3745
- readonly NONE: "none";
3746
- readonly EVERYONE: "everyone";
3747
- readonly ADMINISTRATORS: "administrators";
3748
- readonly CONTRIBUTORS: "contributors";
3749
- readonly EDITORS: "editors";
3750
- readonly OWNERS: "owners";
3751
- readonly CURRENT: "current";
3752
- };
3753
- type EditGroup = (typeof EditGroupType)[keyof typeof EditGroupType];
3754
- interface PermStartOptions {
3755
- id: string | number;
3756
- editGroup?: EditGroup;
3757
- editor?: string;
3758
- colFirst?: number;
3759
- colLast?: number;
3760
- }
3761
- //#endregion
3762
4074
  //#region src/parts/fonts/descriptor.d.ts
3763
4075
  interface FontTableInput {
3764
4076
  fonts: EmbeddedFontOptionsWithKey[];
@@ -3772,10 +4084,13 @@ type TextboxOptions = Omit<ParagraphOptions, "style" | "children"> & {
3772
4084
  };
3773
4085
  //#endregion
3774
4086
  //#region src/parts/comments.d.ts
3775
- declare const commentsDesc: CustomDescriptor<CommentsOptions, BodyContext>;
4087
+ declare const COMMENTS_NS: string;
4088
+ declare const commentsDesc: CustomDescriptor<CommentOptions[], BodyContext>;
3776
4089
  //#endregion
3777
4090
  //#region src/parts/inline.d.ts
3778
4091
  declare function stringifyRunInline(opts: RunOptions, ctx: BodyContext): string;
4092
+ declare function buildMarkupRangeAttrs(m: MarkupRangeOptions): string;
4093
+ declare function buildBookmarkStartAttrs(bs: BookmarkStartOptions): string;
3779
4094
  declare function stringifyChildDispatch(child: ParagraphChild, ctx: BodyContext): string | string[] | undefined;
3780
4095
  declare function stringifyParagraphInline(opts: string | ParagraphOptions, ctx: BodyContext): string;
3781
4096
  //#endregion
@@ -3784,7 +4099,7 @@ declare const altChunkDesc: CustomDescriptor<AltChunkOptions, BodyContext>;
3784
4099
  declare const subDocDesc: CustomDescriptor<SubDocOptions, BodyContext>;
3785
4100
  interface SdtBlockOptions {
3786
4101
  properties: SdtPropertiesOptions;
3787
- children?: SectionChild[];
4102
+ children?: BlockContentChild[];
3788
4103
  endProperties?: RunPropertiesOptions;
3789
4104
  }
3790
4105
  declare function checkboxSymbolRunInner(cb: SdtCheckboxOptions): string;
@@ -3792,12 +4107,13 @@ declare function stringifySdtPr(opts: SdtPropertiesOptions): string;
3792
4107
  declare function stringifySdtShell(properties: SdtPropertiesOptions, endProperties: RunPropertiesOptions | undefined, contentXml: string): string;
3793
4108
  declare function parseCustomXmlProperties(el: Element): CustomXmlPropertiesOptions;
3794
4109
  declare function setBodyParseChild(parser: (el: Element, ctx: DocxReadContext) => SectionChild): void;
4110
+ declare function parseRegisteredBodyChild(el: Element, ctx: DocxReadContext): SectionChild | undefined;
3795
4111
  declare const sdtBlockDesc: CustomDescriptor<SdtBlockOptions, BodyContext>;
3796
4112
  interface CustomXmlBlockDescriptorOptions {
3797
4113
  element: string;
3798
4114
  uri?: string;
3799
4115
  customXmlPr?: CustomXmlPropertiesOptions;
3800
- children?: SectionChild[];
4116
+ children?: BlockContentChild[];
3801
4117
  }
3802
4118
  declare function stringifyCustomXmlShell(opts: {
3803
4119
  element: string;
@@ -3815,38 +4131,31 @@ type Patch = {
3815
4131
  type: "document";
3816
4132
  children: SectionChild[];
3817
4133
  };
3818
- interface PatchDocumentOptions<T extends OutputType$1 = OutputType$1> extends BasePatchOptions<T> {
3819
- placeholders?: Readonly<Record<string, Patch>>;
3820
- findReplace?: Readonly<Record<string, Patch>>;
3821
- coreProperties?: Partial<CorePropertiesOptions>;
4134
+ interface PatchDocumentOptions<T extends OutputType$1 = OutputType$1> extends BasePatchOptions<T, Patch> {
3822
4135
  keepOriginalStyles?: boolean;
3823
- recursive?: boolean;
3824
4136
  append?: SectionChild[];
4137
+ sections?: {
4138
+ replace?: Readonly<{
4139
+ index: number;
4140
+ section: SectionOptions;
4141
+ }[]>;
4142
+ append?: Readonly<SectionOptions[]>;
4143
+ };
3825
4144
  comments?: {
3826
- paragraphs?: Readonly<Record<number, PatchComment[]>>;
4145
+ paragraphs?: Readonly<{
4146
+ index: number;
4147
+ comments: PatchComment[];
4148
+ }[]>;
3827
4149
  placeholders?: Readonly<Record<string, PatchComment[]>>;
3828
4150
  };
3829
4151
  }
3830
- declare const patchDocument: <T extends OutputType$1 = OutputType$1>({
3831
- outputType,
3832
- data,
3833
- placeholders,
3834
- findReplace,
3835
- coreProperties,
3836
- append,
3837
- comments,
3838
- keepOriginalStyles,
3839
- placeholderDelimiters,
3840
- recursive
3841
- }: PatchDocumentOptions<T>) => Promise<OutputByType$1[T]>;
4152
+ declare const patchDocument: <T extends OutputType$1 = OutputType$1>({ outputType, data, placeholders, findReplace, coreProperties, append, sections, comments, keepOriginalStyles, placeholderDelimiters }: PatchDocumentOptions<T>) => Promise<OutputByType$1[T]>;
3842
4153
  //#endregion
3843
4154
  //#region src/patch/patch-detector.d.ts
3844
4155
  interface PatchDetectorOptions {
3845
4156
  data: DataType;
3846
4157
  }
3847
- declare const patchDetector: ({
3848
- data
3849
- }: PatchDetectorOptions) => Promise<string[]>;
4158
+ declare const patchDetector: ({ data }: PatchDetectorOptions) => Promise<string[]>;
3850
4159
  //#endregion
3851
4160
  //#region src/generate.d.ts
3852
4161
  declare function generateDocument<T extends OutputType$1 = "nodebuffer">(options: DocumentOptions, packerOptions?: PackerOptions$1<T>): Promise<OutputByType$1[T]>;
@@ -3856,5 +4165,5 @@ declare function generateDocumentStream(options: DocumentOptions, packerOptions?
3856
4165
  //#region src/compiler.d.ts
3857
4166
  declare function compileDocument(options: DocumentOptions, overrides?: XmlifyedFile[], mediaLevel?: number): Zippable;
3858
4167
  //#endregion
3859
- export { AlignmentFrameOptions, AlignmentType, AltChunkCollection, AltChunkData, AltChunkOptions, type AppPropertiesInput, type AppPropertiesOptions, AutoCaptionOptions, BackgroundImageOptions, BackgroundRawMediaOptions, BibliographyOptions, type BodyContext, type BodyPropertiesOptions, BookmarkOptions, BookmarkStartOptions, BorderOptions, BorderStyle, BordersOptions, BreakClear, BreakOptions, BreakType, BreakTypeValue, CaptionOptions, CaptionsOptions, CellMergeAttributes, CharacterSet, CharacterStyleOptions, ChartMediaData, ChartOptions, CheckBoxOptions, ChildExtent, ChildOffset, CnfConditionalOptions, CnfStyleOptions, ColumnProperties, ColumnsProperties, CommentChildOptions, CommentOptions, CommentsOptions, type CompatSettingOptions, type CompatibilityOptions, type CompressionOptions, ConditionalTableStyleOptions, ContentPartMediaData, ContentPartOptions, type CustomPropertiesInput, type CustomPropertyOptions, type CustomXmlAttributeOptions, CustomXmlBlockDescriptorOptions, type CustomXmlBlockOptions, type CustomXmlCellOptions, type CustomXmlDataBindingOptions, type CustomXmlPropertiesOptions, type CustomXmlRowOptions, type CustomXmlRunOptions, DefaultStylesFactory, DefaultStylesOptions, DirOptions, DisplacedByCustomXml, Distance, DivBorderOptions, DivOptions, DocGridProperties, DocPartBehavior, DocPartGallery, DocPartOptions, DocPartType, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackgroundOptions, DocumentDefaultsOptions, DocumentEndnotePropertiesOptions, DocumentFootnotePropertiesOptions, DocumentGridType, DocumentOptions, DocumentProtectionOptions, DocxDocument, DocxPartRefs, DocxReadContext, DocxWriteContext, DrawingDescriptorOptions, DropCapType, DropDownListOptions, EMPTY_RUN_ELEMENTS, EditGroup, EditGroupType, EmphasisMarkType, EndnoteSeparator, EndnotesData, ExtendedMediaData, ExternalHyperlinkOptions, FeaturesOptions, type FlatTextOptions, Floating, FontProperties, FontTableInput, FootnoteEndnoteReferenceOptions, FootnoteSeparator, FootnotesData, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FrameAnchorType, FrameOptions, FrameWrap, GlossaryDocumentOptions, GraphicFrameLocksOptions, GroupChildMediaData, GroupCommonMediaData, GroupMediaData, GroupOptions, GroupShapeLocksOptions, HeaderFooterGroup, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, HyphenationOptions, IndentProperties, InternalHyperlinkOptions, LeaderType, LevelFormat, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberProperties, LineNumberRestartFormat, LineRuleType, MailMergeDataType, MailMergeDest, MailMergeDocType, MailMergeOptions, MailMergeSourceType, Margins, MarkupRangeOptions, MathDelimiterProperties, MathInput, MathNaryLimitLocation, MathNaryProperties, MathPropertiesOptions, MathRunPropertiesOptions, MathScriptType, MathStyleType, Media, MediaData, MediaDataTransformation, MediaTransformation, MoveRangeOptions, MoveRangeStartOptions, NonVisualPropertiesOptions, type NormalAutofitOptions, NumberFormat, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingOptions, NumberingStyleOptions, type ObjectControlOptions, type ObjectElementOptions, type ObjectEmbedOptions, type ObjectIconImageOptions, type ObjectLinkOptions, OdsoFieldMapDataOptions, OdsoFieldType, OdsoOptions, OptimizeForBrowserOptions, type OutputByType, type OutputType, OverlapType, type PackerOptions, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBordersOptions, PageMarginProperties, PageNumber, PageNumberSeparator, PageNumberTypeProperties, PageOrientation, PageSizeProperties, PageTextDirectionType, ParagraphChild, ParagraphOptions, ParagraphPropertiesChangeOptions, ParagraphPropertiesOptions, ParagraphPropertiesOptionsBase, ParagraphRunOptions, ParagraphRunPropertiesOptions, ParagraphStyleOptions, ParagraphStylePropertiesOptions, Patch, PatchComment, PatchDocumentOptions, PermStartOptions, PictureOptions, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, type PresetTextShapeOptions, ProofErrorType, ProofErrorTypeValue, ReadModeInkLockDownOptions, RelativeHorizontalPosition, RelativeVerticalPosition, RevisionViewOptions, RsidsOptions, RubyAlign, RubyOptions, RunOptions, RunPropertiesChangeOptions, RunPropertiesOptions, RunStylePropertiesOptions, SdtBlockOptions, SdtCellOptions, SdtCheckboxOptions, SdtCheckboxSymbol, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionPropertiesChangeOptions, SectionPropertiesOptions, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, SettingsOptions, ShadingProperties, ShadingType, ShapeCoreOptions, ShapeDefaultsOptions, ShapeMediaData, ShapeOptions, ShapeStyleOptions, ShapeStyleReferenceOptions, SimpleFieldOptions, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartTagRunOptions, SourceTypeOptions, SpaceType, SpacingProperties, StyleLevel, StyleOptions, Styles, StylesOptions, SubDocCollection, SubDocData, SubDocOptions, SvgMediaData, SymbolRunOptions, TABLE_BORDERS_NONE, TabStopDefinition, TabStopPosition, TabStopType, TableAnchorType, TableBordersOptions, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableLayoutType, TableLookOptions, TableOfContentsOptions, TableOptions, TablePropertiesChangeOptions, TablePropertiesOptions, TablePropertiesOptionsBase, TablePropertyExChangeOptions, TablePropertyExOptions, TableRowOptions, TableRowPropertiesChangeOptions, TableRowPropertiesOptions, TableRowPropertiesOptionsBase, TableStyleOptions, TableStyleOverrideType, TableVerticalAlign, TableWidthProperties, TargetScreenSize, TextAlignmentType, type TextBodyWrapping, TextDirection, TextEffect, type TextHorzOverflow, TextInputOptions, type TextVertOverflow, type TextVertical, TextWrapping, TextWrappingSide, TextWrappingType, TextboxOptions, TextboxTightWrapType, UnderlineType, VerticalAlignSection, VerticalAlignTable, type VerticalAnchor, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WebSettingsInput, WebSettingsOptions, WidthType, WrapPolygon, WrapPolygonPoint, WriteProtectionOptions, XYFrameOptions, altChunkDesc, appPropertiesDesc, bibliographyDesc, bodyPropertiesDesc, breakXml, buildNumberingCache, buildStyleCache, checkboxSymbolRunInner, commentsDesc, compileDocument, corePropertiesDesc, createBodyProperties, createDocumentGrid, createFormFieldData, createHorizontalPosition, createLineNumberType, createPageMargin, createPageNumberType, createPictureData, createSectionType, createTransformation, createVerticalAlign, createVerticalPosition, createWrapThrough, createWrapTight, customPropertiesDesc, customXmlBlockDesc, documentNamespaceAttributes, documentNamespaceRecord, drawingDesc, endnotesDesc, extractStyleId, fontTableDesc, footnotesDesc, frameXml, framesetXml, generateDocument, generateDocumentStream, generateDocumentSync, glossaryDesc, objectDesc, parseArchive, parseBodyProperties, parseCustomXmlProperties, parseDocument, parseDocx, parseFormFieldData, parseNumberingDefinitions, parseSdtBlock, parseSdtProperties, parseSectionPropertiesEl, parseShading, parseStyleDefinitions, parseTableCellPropertiesEl, parseTablePropertiesEl, parseTableRowPropertiesEl, parseToc, parseTocFieldFromElements, parseTocFieldInstruction, patchDetector, patchDocument, resetDrawingIdGen, sdtBlockDesc, sectionMarginDefaults, sectionPageSizeDefaults, sectionPropertiesDesc, selectTocEntryElements, setBodyParseChild, setTableParseChild, settingsDesc, stringifyCharacterStyle, stringifyChildDispatch, stringifyConditionalTableStyle, stringifyCustomXmlShell, stringifyDocDefaults, stringifyNumberingStyle, stringifyParagraphInline, stringifyParagraphStyle, stringifyRunInline, stringifySdtPr, stringifySdtShell, stringifySectionPropertiesXml, stringifyTableOfContents, stringifyTableStyle, subDocDesc, tableDesc, webSettingsDesc, widthFiftiethsToPct, widthPctToFiftieths };
4168
+ export { AbstractNumberingPropertiesOptions, AlignmentFrameOptions, AlignmentType, AltChunkCollection, AltChunkData, AltChunkOptions, type AppPropertiesInput, type AppPropertiesOptions, AuthorEntry, AuthorOptions, AutoCaptionOptions, BackgroundImageOptions, BackgroundRawMediaOptions, BibliographyOptions, BlockContentChild, type BodyContext, type BodyPropertiesOptions, BookmarkOptions, BookmarkStartOptions, BorderOptions, BorderStyle, BordersOptions, BreakClear, BreakOptions, BreakType, BreakTypeValue, COMMENTS_NS, CaptionOptions, CaptionsOptions, CellMergeAttributes, CharacterSet, CharacterStyleOptions, ChartMediaData, ChartOptions, CheckBoxOptions, ChildExtent, ChildOffset, CnfBitmask, CnfConditionalOptions, CnfStyleOptions, ColumnProperties, ColumnsProperties, CommentChildOptions, CommentExtendedOptions, CommentOptions, CommentPersonOptions, type CompatSettingOptions, type CompatibilityOptions, ComplexFieldOptions, type CompressionOptions, ConditionalTableStyleOptions, ContentPartMediaData, ContentPartOptions, CorporateOptions, type CustomPropertiesInput, type CustomPropertyOptions, type CustomXmlAttributeOptions, CustomXmlBlockDescriptorOptions, type CustomXmlBlockOptions, type CustomXmlCellOptions, type CustomXmlPropertiesOptions, type CustomXmlRowOptions, type CustomXmlRunOptions, DefaultStylesFactory, DefaultStylesOptions, DirOptions, DisplacedByCustomXml, Distance, DivBorderOptions, DivBorderSideOptions, DivOptions, DocGridProperties, DocPartBehavior, DocPartGallery, DocPartOptions, DocPartSectionOptions, DocPartType, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentBackgroundOptions, DocumentDefaultsOptions, DocumentEndnotePropertiesOptions, DocumentFootnotePropertiesOptions, DocumentGridType, DocumentOptions, DocumentProtectionOptions, DocxDocument, DocxPartRefs, DocxReadContext, DocxWriteContext, DrawingDescriptorOptions, DropCapType, DropDownListOptions, EMPTY_RUN_ELEMENTS, EditGroup, EditGroupType, EmphasisMarkType, EndnoteOptions, EndnoteSeparator, EndnotesData, ExtendedMediaData, ExternalHyperlinkOptions, type FlatTextOptions, Floating, FontProperties, FontTableInput, FootnoteEndnoteReferenceOptions, FootnoteOptions, FootnoteSeparator, FootnotesData, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FrameAnchorType, FrameOptions, FrameWrap, GlossaryDocumentOptions, GraphicFrameLocksOptions, GroupChildMediaData, GroupCommonMediaData, GroupMediaData, GroupOptions, GroupShapeLocksOptions, HeaderFooterGroup, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionOptions, HorizontalPositionRelativeFrom, HyperlinkType, IndentProperties, InternalHyperlinkOptions, LeaderType, LevelFormat, LevelOverrideOptions, LevelParagraphStylePropertiesOptions, LevelSuffix, LevelsOptions, LineNumberProperties, LineNumberRestartFormat, LineRuleType, LinkedPictureMediaData, MailMergeDataType, MailMergeDest, MailMergeDocType, MailMergeOptions, MailMergeSourceType, Margins, MarkupRangeOptions, MathBaselineAlignment, MathBorderBoxProperties, MathBoxProperties, MathDelimiterProperties, MathEquationArrayProperties, MathGroupCharacterProperties, MathInput, MathMatrixColumnOptions, MathMatrixProperties, MathNaryLimitLocation, MathNaryProperties, MathPhantomProperties, MathPropertiesOptions, MathRadicalProperties, MathRunPropertiesOptions, MathScriptType, MathSpacingRule, MathStyleType, Media, MediaData, MediaDataTransformation, MediaTransformation, MoveRangeOptions, MoveRangeStartOptions, NonVisualPropertiesOptions, type NormalAutofitOptions, NumberFormat, NumberedItemReferenceFormat, NumberedItemReferenceOptions, Numbering, NumberingInsertionOptions, NumberingOptions, NumberingStyleOptions, type ObjectControlOptions, type ObjectElementOptions, type ObjectEmbedOptions, type ObjectIconImageOptions, type ObjectLinkOptions, OdsoFieldMapDataOptions, OdsoFieldType, OdsoOptions, OptimizeForBrowserOptions, type OutputByType, type OutputType, OverlapType, type PackerOptions, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBordersOptions, PageMarginProperties, PageNumber, PageNumberSeparator, PageNumberTypeProperties, PageOrientation, PageSizeProperties, PageTextDirectionType, ParagraphChild, ParagraphOptions, ParagraphPropertiesChangeOptions, ParagraphPropertiesOptions, ParagraphPropertiesOptionsBase, ParagraphRunOptions, ParagraphRunPropertiesOptions, ParagraphStyleOptions, ParagraphStylePropertiesOptions, Patch, PatchComment, PatchDocumentOptions, PermStartOptions, PersonOptions, PictMediaOptions, PictOptions, PictureOptions, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, type PresetTextShapeOptions, ProofErrorType, ProofErrorTypeValue, ReadModeInkLockDownOptions, RelativeHorizontalPosition, RelativeSizeOptions, RelativeVerticalPosition, RevisionViewOptions, RsidsOptions, RubyAlign, RubyContentOptions, RubyOptions, RubyPropertiesOptions, RunOptions, RunPropertiesChangeOptions, RunPropertiesOptions, RunStylePropertiesOptions, SdtBlockOptions, SdtCellOptions, SdtCheckboxOptions, SdtCheckboxSymbol, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtRowOptions, SdtRunOptions, SdtTextOptions, SectionChild, SectionOptions, SectionPropertiesChangeOptions, SectionPropertiesDescriptorOptions, SectionPropertiesOptions, SectionPropertiesOptionsBase, SectionType, SectionVerticalAlign, SettingsOptions, ShadingProperties, ShadingType, ShapeCoreOptions, ShapeDefaultsOptions, ShapeMediaData, ShapeOptions, ShapeStyleOptions, ShapeStyleReferenceOptions, ShapeTextBoxChild, SimpleFieldOptions, SmartArtMediaData, SmartArtNode, SmartArtOptions, SmartTagRunOptions, SourceTypeOptions, SpaceType, SpacingProperties, StyleLevel, StyleOptions, Styles, StylesOptions, SubDocCollection, SubDocData, SubDocOptions, SvgMediaData, SymbolRunOptions, TABLE_BORDERS_NONE, TabStopDefinition, TabStopPosition, TabStopType, TableAnchorType, TableBordersOptions, TableCellBordersOptions, TableCellOptions, TableFloatOptions, TableJustification, TableLayoutType, TableLookOptions, TableOfContentsOptions, TableOptions, TablePropertiesChangeOptions, TablePropertiesOptions, TablePropertiesOptionsBase, TablePropertyExChangeOptions, TablePropertyExOptions, TableRowMarkerChild, TableRowOptions, TableRowPropertiesChangeOptions, TableRowPropertiesOptions, TableRowPropertiesOptionsBase, TableStyleOptions, TableStyleOverrideType, TableVerticalAlign, TableWidthProperties, TargetScreenSize, TextAlignmentType, type TextBodyWrapping, TextBoxPartOptions, TextDirection, TextEffect, type TextHorzOverflow, TextInputOptions, type TextVertOverflow, type TextVertical, TextWrapping, TextWrappingSide, TextWrappingType, TextboxOptions, TextboxTightWrapType, TrackChangeChild, UnderlineType, VerticalAlignSection, VerticalAlignTable, type VerticalAnchor, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionOptions, VerticalPositionRelativeFrom, WebSettingsOptions, WidthType, WrapPolygon, WrapPolygonPoint, WriteProtectionOptions, XYFrameOptions, altChunkDesc, appPropertiesDesc, bibliographyDesc, bodyPropertiesDesc, breakXml, buildBookmarkStartAttrs, buildMarkupRangeAttrs, buildNumIdCache, buildNumberingCache, buildStyleCache, checkboxSymbolRunInner, commentsDesc, commentsExtendedDesc, compileDocument, corePropertiesDesc, createBodyProperties, createDocumentGrid, createFormFieldData, createHorizontalPosition, createLineNumberType, createPageMargin, createPageNumberType, createPictureData, createSectionType, createTransformation, createVerticalPosition, createWrapThrough, createWrapTight, customPropertiesDesc, customXmlBlockDesc, documentNamespaceAttributes, documentNamespaceRecord, drawingDesc, endnotesDesc, extractStyleId, fontTableDesc, footnotesDesc, frameXml, framesetXml, generateDocument, generateDocumentStream, generateDocumentSync, glossaryDesc, keepTocClosingParagraph, objectDesc, parseArchive, parseBodyProperties, parseBorderSide, parseCustomXmlProperties, parseDocument, parseDocx, parseFormFieldData, parseNumberingDefinitions, parsePict, parseRegisteredBodyChild, parseSdtBlock, parseSdtProperties, parseSectionPropertiesEl, parseShading, parseStyleDefinitions, parseTableCellPropertiesEl, parseTablePropertiesEl, parseTableRowPropertiesEl, parseToc, parseTocFieldFromElements, parseTocFieldInstruction, patchDetector, patchDocument, peopleDesc, resetDrawingIdGen, sdtBlockDesc, sectionMarginDefaults, sectionPageSizeDefaults, sectionPropertiesDesc, selectTocEntryElements, setBodyParseChild, setTableParseChild, settingsDesc, stringifyCharacterStyle, stringifyChildDispatch, stringifyConditionalTableStyle, stringifyCustomXmlShell, stringifyDocDefaults, stringifyNumberingStyle, stringifyParagraphInline, stringifyParagraphStyle, stringifyPict, stringifyRunInline, stringifySdtPr, stringifySdtShell, stringifySectionProperties, stringifyTableOfContents, stringifyTableStyle, subDocDesc, tableDesc, webSettingsDesc, widthFiftiethsToPct, widthPctToFiftieths };
3860
4169
  //# sourceMappingURL=index.d.mts.map