@office-open/docx 0.8.1 → 0.9.1

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