@office-open/docx 0.8.1 → 0.9.0

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