docx-wasm 0.4.12-beta7 → 0.4.12-beta9

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.
Files changed (84) hide show
  1. package/dist/node/pkg/docx_wasm.d.ts +1978 -0
  2. package/dist/node/pkg/docx_wasm.js +4009 -0
  3. package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
  4. package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +321 -0
  5. package/dist/node/pkg/package.json +14 -0
  6. package/dist/web/pkg/docx_wasm.d.ts +1978 -0
  7. package/dist/web/pkg/docx_wasm.js +2 -0
  8. package/dist/web/pkg/docx_wasm_bg.js +3972 -0
  9. package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
  10. package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +321 -0
  11. package/dist/web/pkg/package.json +19 -0
  12. package/package.json +5 -5
  13. package/dist/node/json/bindings/bindings/DrawingPosition.d.ts +0 -6
  14. package/dist/node/json/bindings/bindings/DrawingPosition.js +0 -3
  15. package/dist/node/json/bindings/bindings/DrawingPosition.js.map +0 -1
  16. package/dist/node/json/bindings/bindings/DrawingPositionType.d.ts +0 -1
  17. package/dist/node/json/bindings/bindings/DrawingPositionType.js +0 -3
  18. package/dist/node/json/bindings/bindings/DrawingPositionType.js.map +0 -1
  19. package/dist/node/json/bindings/bindings/FontGroup.d.ts +0 -7
  20. package/dist/node/json/bindings/bindings/FontGroup.js +0 -3
  21. package/dist/node/json/bindings/bindings/FontGroup.js.map +0 -1
  22. package/dist/node/json/bindings/bindings/FontScheme.d.ts +0 -5
  23. package/dist/node/json/bindings/bindings/FontScheme.js +0 -3
  24. package/dist/node/json/bindings/bindings/FontScheme.js.map +0 -1
  25. package/dist/node/json/bindings/bindings/FontSchemeFont.d.ts +0 -4
  26. package/dist/node/json/bindings/bindings/FontSchemeFont.js +0 -3
  27. package/dist/node/json/bindings/bindings/FontSchemeFont.js.map +0 -1
  28. package/dist/node/json/bindings/bindings/ImageData.d.ts +0 -3
  29. package/dist/node/json/bindings/bindings/ImageData.js +0 -3
  30. package/dist/node/json/bindings/bindings/ImageData.js.map +0 -1
  31. package/dist/node/json/bindings/bindings/Pic.d.ts +0 -24
  32. package/dist/node/json/bindings/bindings/Pic.js +0 -3
  33. package/dist/node/json/bindings/bindings/Pic.js.map +0 -1
  34. package/dist/node/json/bindings/bindings/PicAlign.d.ts +0 -1
  35. package/dist/node/json/bindings/bindings/PicAlign.js +0 -3
  36. package/dist/node/json/bindings/bindings/PicAlign.js.map +0 -1
  37. package/dist/node/json/bindings/bindings/RelativeFromHType.d.ts +0 -1
  38. package/dist/node/json/bindings/bindings/RelativeFromHType.js +0 -3
  39. package/dist/node/json/bindings/bindings/RelativeFromHType.js.map +0 -1
  40. package/dist/node/json/bindings/bindings/RelativeFromVType.d.ts +0 -1
  41. package/dist/node/json/bindings/bindings/RelativeFromVType.js +0 -3
  42. package/dist/node/json/bindings/bindings/RelativeFromVType.js.map +0 -1
  43. package/dist/node/json/bindings/bindings/Shape.d.ts +0 -5
  44. package/dist/node/json/bindings/bindings/Shape.js +0 -3
  45. package/dist/node/json/bindings/bindings/Shape.js.map +0 -1
  46. package/dist/node/json/bindings/bindings/Theme.d.ts +0 -4
  47. package/dist/node/json/bindings/bindings/Theme.js +0 -3
  48. package/dist/node/json/bindings/bindings/Theme.js.map +0 -1
  49. package/dist/web/json/bindings/bindings/DrawingPosition.d.ts +0 -6
  50. package/dist/web/json/bindings/bindings/DrawingPosition.js +0 -2
  51. package/dist/web/json/bindings/bindings/DrawingPosition.js.map +0 -1
  52. package/dist/web/json/bindings/bindings/DrawingPositionType.d.ts +0 -1
  53. package/dist/web/json/bindings/bindings/DrawingPositionType.js +0 -2
  54. package/dist/web/json/bindings/bindings/DrawingPositionType.js.map +0 -1
  55. package/dist/web/json/bindings/bindings/FontGroup.d.ts +0 -7
  56. package/dist/web/json/bindings/bindings/FontGroup.js +0 -2
  57. package/dist/web/json/bindings/bindings/FontGroup.js.map +0 -1
  58. package/dist/web/json/bindings/bindings/FontScheme.d.ts +0 -5
  59. package/dist/web/json/bindings/bindings/FontScheme.js +0 -2
  60. package/dist/web/json/bindings/bindings/FontScheme.js.map +0 -1
  61. package/dist/web/json/bindings/bindings/FontSchemeFont.d.ts +0 -4
  62. package/dist/web/json/bindings/bindings/FontSchemeFont.js +0 -2
  63. package/dist/web/json/bindings/bindings/FontSchemeFont.js.map +0 -1
  64. package/dist/web/json/bindings/bindings/ImageData.d.ts +0 -3
  65. package/dist/web/json/bindings/bindings/ImageData.js +0 -2
  66. package/dist/web/json/bindings/bindings/ImageData.js.map +0 -1
  67. package/dist/web/json/bindings/bindings/Pic.d.ts +0 -24
  68. package/dist/web/json/bindings/bindings/Pic.js +0 -2
  69. package/dist/web/json/bindings/bindings/Pic.js.map +0 -1
  70. package/dist/web/json/bindings/bindings/PicAlign.d.ts +0 -1
  71. package/dist/web/json/bindings/bindings/PicAlign.js +0 -2
  72. package/dist/web/json/bindings/bindings/PicAlign.js.map +0 -1
  73. package/dist/web/json/bindings/bindings/RelativeFromHType.d.ts +0 -1
  74. package/dist/web/json/bindings/bindings/RelativeFromHType.js +0 -2
  75. package/dist/web/json/bindings/bindings/RelativeFromHType.js.map +0 -1
  76. package/dist/web/json/bindings/bindings/RelativeFromVType.d.ts +0 -1
  77. package/dist/web/json/bindings/bindings/RelativeFromVType.js +0 -2
  78. package/dist/web/json/bindings/bindings/RelativeFromVType.js.map +0 -1
  79. package/dist/web/json/bindings/bindings/Shape.d.ts +0 -5
  80. package/dist/web/json/bindings/bindings/Shape.js +0 -2
  81. package/dist/web/json/bindings/bindings/Shape.js.map +0 -1
  82. package/dist/web/json/bindings/bindings/Theme.d.ts +0 -4
  83. package/dist/web/json/bindings/bindings/Theme.js +0 -2
  84. package/dist/web/json/bindings/bindings/Theme.js.map +0 -1
@@ -0,0 +1,1978 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * @returns {Docx}
5
+ */
6
+ export function createDocx(): Docx;
7
+ /**
8
+ * @param {number} id
9
+ * @returns {AbstractNumbering}
10
+ */
11
+ export function createAbstractNumbering(id: number): AbstractNumbering;
12
+ /**
13
+ * @returns {TableRow}
14
+ */
15
+ export function createTableRow(): TableRow;
16
+ /**
17
+ * @param {number} position
18
+ * @returns {TableCellBorder}
19
+ */
20
+ export function createTableCellBorder(position: number): TableCellBorder;
21
+ /**
22
+ * @returns {TableOfContents}
23
+ */
24
+ export function createTableOfContents(): TableOfContents;
25
+ /**
26
+ * @param {string} s
27
+ * @returns {TableOfContents}
28
+ */
29
+ export function createTableOfContentsWithInstrText(s: string): TableOfContents;
30
+ /**
31
+ * @param {string} style_id
32
+ * @param {number} style_type
33
+ * @returns {Style}
34
+ */
35
+ export function createStyle(style_id: string, style_type: number): Style;
36
+ /**
37
+ * @param {number} id
38
+ * @returns {Comment}
39
+ */
40
+ export function createComment(id: number): Comment;
41
+ /**
42
+ * @param {number} id
43
+ * @param {number} abstract_num_id
44
+ * @returns {Numbering}
45
+ */
46
+ export function createNumbering(id: number, abstract_num_id: number): Numbering;
47
+ /**
48
+ * @param {number | undefined} start
49
+ * @param {string | undefined} chap_style
50
+ * @returns {PageNumType}
51
+ */
52
+ export function createPageNumType(start?: number, chap_style?: string): PageNumType;
53
+ /**
54
+ * @param {Uint8Array} buf
55
+ * @returns {string}
56
+ */
57
+ export function readDocx(buf: Uint8Array): string;
58
+ /**
59
+ * @returns {TableOfContentsItem}
60
+ */
61
+ export function createTableOfContentsItem(): TableOfContentsItem;
62
+ /**
63
+ * @param {string} id
64
+ * @param {string} reference_id
65
+ * @param {string} version
66
+ * @param {string} store
67
+ * @param {string} store_type
68
+ * @returns {WebExtension}
69
+ */
70
+ export function createWebExtension(id: string, reference_id: string, version: string, store: string, store_type: string): WebExtension;
71
+ /**
72
+ * @param {number} id
73
+ * @param {number} start
74
+ * @param {string} format
75
+ * @param {string} text
76
+ * @param {string} jc
77
+ * @returns {Level}
78
+ */
79
+ export function createLevel(id: number, start: number, format: string, text: string, jc: string): Level;
80
+ /**
81
+ * @returns {PageMargin}
82
+ */
83
+ export function createPageMargin(): PageMargin;
84
+ /**
85
+ * @returns {LineSpacing}
86
+ */
87
+ export function createLineSpacing(): LineSpacing;
88
+ /**
89
+ * @returns {RunFonts}
90
+ */
91
+ export function createRunFonts(): RunFonts;
92
+ /**
93
+ * @returns {Table}
94
+ */
95
+ export function createTable(): Table;
96
+ /**
97
+ * @returns {TableCell}
98
+ */
99
+ export function createTableCell(): TableCell;
100
+ /**
101
+ * @param {Run} run
102
+ * @returns {Delete}
103
+ */
104
+ export function createDelete(run: Run): Delete;
105
+ /**
106
+ * @returns {PageNum}
107
+ */
108
+ export function createPageNum(): PageNum;
109
+ /**
110
+ * @param {Uint8Array} buf
111
+ * @returns {Pic}
112
+ */
113
+ export function createPic(buf: Uint8Array): Pic;
114
+ /**
115
+ * @returns {Footer}
116
+ */
117
+ export function createFooter(): Footer;
118
+ /**
119
+ * @returns {Header}
120
+ */
121
+ export function createHeader(): Header;
122
+ /**
123
+ * @param {string} v
124
+ * @param {number} t
125
+ * @returns {Hyperlink}
126
+ */
127
+ export function createHyperlink(v: string, t: number): Hyperlink;
128
+ /**
129
+ * @param {Run} run
130
+ * @returns {Insert}
131
+ */
132
+ export function createInsert(run: Run): Insert;
133
+ /**
134
+ * @param {number} level
135
+ * @returns {LevelOverride}
136
+ */
137
+ export function createLevelOverride(level: number): LevelOverride;
138
+ /**
139
+ * @returns {Run}
140
+ */
141
+ export function createRun(): Run;
142
+ /**
143
+ * @returns {ParagraphPropertyChange}
144
+ */
145
+ export function createParagraphPropertyChange(): ParagraphPropertyChange;
146
+ /**
147
+ * @returns {Paragraph}
148
+ */
149
+ export function createParagraph(): Paragraph;
150
+ /**
151
+ */
152
+ export enum LineSpacingType {
153
+ Auto,
154
+ AtLeast,
155
+ Exact,
156
+ }
157
+ /**
158
+ */
159
+ export enum RelativeFromHType {
160
+ /**
161
+ * Specifies that the horizontal positioning shall be
162
+ * relative to the position of the anchor within its run
163
+ * content.
164
+ */
165
+ Character,
166
+ /**
167
+ * Specifies that the horizontal positioning shall be
168
+ * relative to the extents of the column which contains its
169
+ * anchor.
170
+ */
171
+ Column,
172
+ /**
173
+ * Specifies that the horizontal positioning shall be
174
+ * relative to the inside margin of the current page (the
175
+ * left margin on odd pages, right on even pages).
176
+ */
177
+ InsideMargin,
178
+ /**
179
+ * Specifies that the horizontal positioning shall be
180
+ * relative to the left margin of the page.
181
+ */
182
+ LeftMargin,
183
+ /**
184
+ * Specifies that the horizontal positioning shall be
185
+ * relative to the page margins.
186
+ */
187
+ Margin,
188
+ /**
189
+ * Specifies that the horizontal positioning shall be
190
+ * relative to the outside margin of the current page (the
191
+ * right margin on odd pages, left on even pages).
192
+ */
193
+ OutsizeMargin,
194
+ /**
195
+ * Specifies that the horizontal positioning shall be
196
+ * relative to the edge of the page.
197
+ */
198
+ Page,
199
+ /**
200
+ * Specifies that the horizontal positioning shall be
201
+ * relative to the right margin of the page.
202
+ */
203
+ RightMargin,
204
+ }
205
+ /**
206
+ */
207
+ export enum RelativeFromVType {
208
+ BottomMargin,
209
+ InsideMargin,
210
+ Line,
211
+ Margin,
212
+ OutsizeMargin,
213
+ Page,
214
+ Paragraph,
215
+ TopMargin,
216
+ }
217
+ /**
218
+ */
219
+ export enum VMergeType {
220
+ Continue,
221
+ Restart,
222
+ Unsupported,
223
+ }
224
+ /**
225
+ */
226
+ export enum PageOrientationType {
227
+ Landscape,
228
+ Portrait,
229
+ }
230
+ /**
231
+ */
232
+ export enum SectionType {
233
+ NextPage,
234
+ NextColumn,
235
+ Continuous,
236
+ EvenPage,
237
+ OddPage,
238
+ }
239
+ /**
240
+ */
241
+ export enum TextDirectionType {
242
+ Lr,
243
+ LrV,
244
+ Rl,
245
+ RlV,
246
+ Tb,
247
+ TbV,
248
+ TbRlV,
249
+ TbRl,
250
+ BtLr,
251
+ LrTbV,
252
+ }
253
+ /**
254
+ */
255
+ export enum DocGridType {
256
+ Default,
257
+ Lines,
258
+ LinesAndChars,
259
+ SnapToChars,
260
+ }
261
+ /**
262
+ */
263
+ export enum ShdType {
264
+ Nil,
265
+ Clear,
266
+ Solid,
267
+ HorzStripe,
268
+ VertStripe,
269
+ ReverseDiagStripe,
270
+ DiagStripe,
271
+ HorzCross,
272
+ DiagCross,
273
+ ThinHorzStripe,
274
+ ThinVertStripe,
275
+ ThinReverseDiagStripe,
276
+ ThinDiagStripe,
277
+ ThinHorzCross,
278
+ ThinDiagCross,
279
+ Pct5,
280
+ Pct10,
281
+ Pct12,
282
+ Pct15,
283
+ Pct20,
284
+ Pct25,
285
+ Pct30,
286
+ Pct35,
287
+ Pct37,
288
+ Pct40,
289
+ Pct45,
290
+ Pct50,
291
+ Pct55,
292
+ Pct60,
293
+ Pct62,
294
+ Pct65,
295
+ Pct70,
296
+ Pct75,
297
+ Pct80,
298
+ Pct85,
299
+ Pct87,
300
+ Pct90,
301
+ Pct95,
302
+ }
303
+ /**
304
+ */
305
+ export enum StyleType {
306
+ Paragraph,
307
+ Character,
308
+ Numbering,
309
+ Table,
310
+ Unsupported,
311
+ }
312
+ /**
313
+ */
314
+ export enum TabValueType {
315
+ Bar,
316
+ Center,
317
+ Clear,
318
+ Decimal,
319
+ End,
320
+ Right,
321
+ Num,
322
+ Start,
323
+ Left,
324
+ }
325
+ /**
326
+ */
327
+ export enum TableBorderPosition {
328
+ Left,
329
+ Right,
330
+ Top,
331
+ Bottom,
332
+ InsideH,
333
+ InsideV,
334
+ }
335
+ /**
336
+ */
337
+ export enum TableCellBorderPosition {
338
+ Left,
339
+ Right,
340
+ Top,
341
+ Bottom,
342
+ InsideH,
343
+ InsideV,
344
+ Tl2br,
345
+ Tr2bl,
346
+ }
347
+ /**
348
+ */
349
+ export enum ParagraphBorderPosition {
350
+ Left,
351
+ Right,
352
+ Top,
353
+ Bottom,
354
+ Between,
355
+ Bar,
356
+ }
357
+ /**
358
+ */
359
+ export enum CharacterSpacingValues {
360
+ DoNotCompress,
361
+ CompressPunctuation,
362
+ CompressPunctuationAndJapaneseKana,
363
+ Unsupported,
364
+ }
365
+ /**
366
+ */
367
+ export enum HyperlinkType {
368
+ Anchor,
369
+ External,
370
+ }
371
+ /**
372
+ */
373
+ export enum TableAlignmentType {
374
+ Center,
375
+ Left,
376
+ Right,
377
+ }
378
+ /**
379
+ */
380
+ export enum TableLayoutType {
381
+ Fixed,
382
+ Autofit,
383
+ }
384
+ /**
385
+ */
386
+ export enum AlignmentType {
387
+ Both,
388
+ Center,
389
+ Distribute,
390
+ Start,
391
+ End,
392
+ Left,
393
+ Right,
394
+ Justified,
395
+ Unsupported,
396
+ }
397
+ /**
398
+ */
399
+ export enum BreakType {
400
+ Page,
401
+ Column,
402
+ TextWrapping,
403
+ Unsupported,
404
+ }
405
+ /**
406
+ */
407
+ export enum DrawingPositionType {
408
+ Anchor,
409
+ Inline,
410
+ }
411
+ /**
412
+ */
413
+ export enum PicAlign {
414
+ Left,
415
+ Right,
416
+ Center,
417
+ Bottom,
418
+ Top,
419
+ }
420
+ /**
421
+ */
422
+ export enum TextAlignmentType {
423
+ Auto,
424
+ Baseline,
425
+ Bottom,
426
+ Center,
427
+ Top,
428
+ }
429
+ /**
430
+ */
431
+ export enum VertAlignType {
432
+ Baseline,
433
+ SuperScript,
434
+ SubScript,
435
+ Unsupported,
436
+ }
437
+ /**
438
+ */
439
+ export enum VAlignType {
440
+ Top,
441
+ Center,
442
+ Bottom,
443
+ Unsupported,
444
+ }
445
+ /**
446
+ */
447
+ export enum BorderType {
448
+ Nil,
449
+ None,
450
+ Single,
451
+ Thick,
452
+ Double,
453
+ Dotted,
454
+ Dashed,
455
+ DotDash,
456
+ DotDotDash,
457
+ Triple,
458
+ ThinThickSmallGap,
459
+ ThickThinSmallGap,
460
+ ThinThickThinSmallGap,
461
+ ThinThickMediumGap,
462
+ ThickThinMediumGap,
463
+ ThinThickThinMediumGap,
464
+ ThinThickLargeGap,
465
+ ThickThinLargeGap,
466
+ ThinThickThinLargeGap,
467
+ Wave,
468
+ DoubleWave,
469
+ DashSmallGap,
470
+ DashDotStroked,
471
+ ThreeDEmboss,
472
+ ThreeDEngrave,
473
+ Outset,
474
+ Inset,
475
+ Apples,
476
+ ArchedScallops,
477
+ BabyPacifier,
478
+ BabyRattle,
479
+ }
480
+ /**
481
+ */
482
+ export enum HeightRule {
483
+ Auto,
484
+ AtLeast,
485
+ Exact,
486
+ }
487
+ /**
488
+ */
489
+ export enum LevelSuffixType {
490
+ Nothing,
491
+ Space,
492
+ Tab,
493
+ }
494
+ /**
495
+ */
496
+ export enum FieldCharType {
497
+ Begin,
498
+ Separate,
499
+ End,
500
+ Unsupported,
501
+ }
502
+ /**
503
+ */
504
+ export enum FontPitchType {
505
+ Default,
506
+ Fixed,
507
+ Variable,
508
+ }
509
+ /**
510
+ */
511
+ export enum TabLeaderType {
512
+ Dot,
513
+ Heavy,
514
+ Hyphen,
515
+ MiddleDot,
516
+ None,
517
+ Underscore,
518
+ }
519
+ /**
520
+ */
521
+ export enum WidthType {
522
+ Dxa,
523
+ Auto,
524
+ Pct,
525
+ Nil,
526
+ Unsupported,
527
+ }
528
+ /**
529
+ */
530
+ export enum SpecialIndentKind {
531
+ FirstLine,
532
+ Hanging,
533
+ }
534
+ /**
535
+ */
536
+ export class AbstractNumbering {
537
+ free(): void;
538
+ /**
539
+ * @param {Level} level
540
+ * @returns {AbstractNumbering}
541
+ */
542
+ add_level(level: Level): AbstractNumbering;
543
+ }
544
+ /**
545
+ */
546
+ export class Comment {
547
+ free(): void;
548
+ /**
549
+ * @param {string} author
550
+ * @returns {Comment}
551
+ */
552
+ author(author: string): Comment;
553
+ /**
554
+ * @param {string} date
555
+ * @returns {Comment}
556
+ */
557
+ date(date: string): Comment;
558
+ /**
559
+ * @param {Paragraph} p
560
+ * @returns {Comment}
561
+ */
562
+ add_paragraph(p: Paragraph): Comment;
563
+ /**
564
+ * @param {number} id
565
+ * @returns {Comment}
566
+ */
567
+ parent_comment_id(id: number): Comment;
568
+ /**
569
+ * @returns {number}
570
+ */
571
+ id(): number;
572
+ }
573
+ /**
574
+ */
575
+ export class Delete {
576
+ free(): void;
577
+ /**
578
+ * @param {string} author
579
+ * @returns {Delete}
580
+ */
581
+ author(author: string): Delete;
582
+ /**
583
+ * @param {string} date
584
+ * @returns {Delete}
585
+ */
586
+ date(date: string): Delete;
587
+ }
588
+ /**
589
+ */
590
+ export class Docx {
591
+ free(): void;
592
+ /**
593
+ * @param {Paragraph} p
594
+ * @returns {Docx}
595
+ */
596
+ add_paragraph(p: Paragraph): Docx;
597
+ /**
598
+ * @param {TableOfContents} t
599
+ * @returns {Docx}
600
+ */
601
+ add_table_of_contents(t: TableOfContents): Docx;
602
+ /**
603
+ * @param {number} id
604
+ * @param {string} name
605
+ * @returns {Docx}
606
+ */
607
+ add_bookmark_start(id: number, name: string): Docx;
608
+ /**
609
+ * @param {number} id
610
+ * @returns {Docx}
611
+ */
612
+ add_bookmark_end(id: number): Docx;
613
+ /**
614
+ * @param {Table} t
615
+ * @returns {Docx}
616
+ */
617
+ add_table(t: Table): Docx;
618
+ /**
619
+ * @param {AbstractNumbering} num
620
+ * @returns {Docx}
621
+ */
622
+ add_abstract_numbering(num: AbstractNumbering): Docx;
623
+ /**
624
+ * @param {Numbering} num
625
+ * @returns {Docx}
626
+ */
627
+ add_numbering(num: Numbering): Docx;
628
+ /**
629
+ * @param {string} date
630
+ * @returns {Docx}
631
+ */
632
+ created_at(date: string): Docx;
633
+ /**
634
+ * @param {string} date
635
+ * @returns {Docx}
636
+ */
637
+ updated_at(date: string): Docx;
638
+ /**
639
+ * @param {string} name
640
+ * @param {string} item
641
+ * @returns {Docx}
642
+ */
643
+ custom_property(name: string, item: string): Docx;
644
+ /**
645
+ * @param {string} id
646
+ * @returns {Docx}
647
+ */
648
+ doc_id(id: string): Docx;
649
+ /**
650
+ * @param {string} name
651
+ * @param {string} val
652
+ * @returns {Docx}
653
+ */
654
+ add_doc_var(name: string, val: string): Docx;
655
+ /**
656
+ * @param {number} stop
657
+ * @returns {Docx}
658
+ */
659
+ default_tab_stop(stop: number): Docx;
660
+ /**
661
+ * @returns {Docx}
662
+ */
663
+ set_adjust_line_height_in_table(): Docx;
664
+ /**
665
+ * @param {number} v
666
+ * @returns {Docx}
667
+ */
668
+ character_spacing_control(v: number): Docx;
669
+ /**
670
+ * @param {Header} header
671
+ * @returns {Docx}
672
+ */
673
+ header(header: Header): Docx;
674
+ /**
675
+ * @param {Header} header
676
+ * @returns {Docx}
677
+ */
678
+ first_header(header: Header): Docx;
679
+ /**
680
+ * @param {Header} header
681
+ * @returns {Docx}
682
+ */
683
+ even_header(header: Header): Docx;
684
+ /**
685
+ * @param {Footer} footer
686
+ * @returns {Docx}
687
+ */
688
+ footer(footer: Footer): Docx;
689
+ /**
690
+ * @param {Footer} footer
691
+ * @returns {Docx}
692
+ */
693
+ first_footer(footer: Footer): Docx;
694
+ /**
695
+ * @param {Footer} footer
696
+ * @returns {Docx}
697
+ */
698
+ even_footer(footer: Footer): Docx;
699
+ /**
700
+ * @param {number} w
701
+ * @param {number} h
702
+ * @returns {Docx}
703
+ */
704
+ page_size(w: number, h: number): Docx;
705
+ /**
706
+ * @param {number} o
707
+ * @returns {Docx}
708
+ */
709
+ page_orient(o: number): Docx;
710
+ /**
711
+ * @param {PageMargin} margin
712
+ * @returns {Docx}
713
+ */
714
+ page_margin(margin: PageMargin): Docx;
715
+ /**
716
+ * @param {Style} s
717
+ * @returns {Docx}
718
+ */
719
+ add_style(s: Style): Docx;
720
+ /**
721
+ * @param {number} size
722
+ * @returns {Docx}
723
+ */
724
+ default_size(size: number): Docx;
725
+ /**
726
+ * @param {number} spacing
727
+ * @returns {Docx}
728
+ */
729
+ default_spacing(spacing: number): Docx;
730
+ /**
731
+ * @param {RunFonts} font
732
+ * @returns {Docx}
733
+ */
734
+ default_fonts(font: RunFonts): Docx;
735
+ /**
736
+ * @param {LineSpacing} spacing
737
+ * @returns {Docx}
738
+ */
739
+ default_line_spacing(spacing: LineSpacing): Docx;
740
+ /**
741
+ * @returns {Docx}
742
+ */
743
+ taskpanes(): Docx;
744
+ /**
745
+ * @param {WebExtension} ext
746
+ * @returns {Docx}
747
+ */
748
+ web_extension(ext: WebExtension): Docx;
749
+ /**
750
+ * @param {string} id
751
+ * @param {string} xml
752
+ * @returns {Docx}
753
+ */
754
+ add_custom_item(id: string, xml: string): Docx;
755
+ /**
756
+ * @param {PageNumType} p
757
+ * @returns {Docx}
758
+ */
759
+ page_num_type(p: PageNumType): Docx;
760
+ /**
761
+ * @param {number} grid_type
762
+ * @param {number | undefined} line_pitch
763
+ * @param {number | undefined} char_space
764
+ * @returns {Docx}
765
+ */
766
+ doc_grid(grid_type: number, line_pitch?: number, char_space?: number): Docx;
767
+ /**
768
+ * @param {boolean} has_numberings
769
+ * @returns {Uint8Array}
770
+ */
771
+ build(has_numberings: boolean): Uint8Array;
772
+ /**
773
+ * @returns {string}
774
+ */
775
+ json_with_update_comments(): string;
776
+ }
777
+ /**
778
+ */
779
+ export class Footer {
780
+ free(): void;
781
+ /**
782
+ * @param {Paragraph} p
783
+ * @returns {Footer}
784
+ */
785
+ add_paragraph(p: Paragraph): Footer;
786
+ /**
787
+ * @param {Table} t
788
+ * @returns {Footer}
789
+ */
790
+ add_table(t: Table): Footer;
791
+ /**
792
+ * @param {PageNum} t
793
+ * @returns {Footer}
794
+ */
795
+ add_page_num(t: PageNum): Footer;
796
+ }
797
+ /**
798
+ */
799
+ export class Header {
800
+ free(): void;
801
+ /**
802
+ * @param {Paragraph} p
803
+ * @returns {Header}
804
+ */
805
+ add_paragraph(p: Paragraph): Header;
806
+ /**
807
+ * @param {Table} t
808
+ * @returns {Header}
809
+ */
810
+ add_table(t: Table): Header;
811
+ /**
812
+ * @param {PageNum} t
813
+ * @returns {Header}
814
+ */
815
+ add_page_num(t: PageNum): Header;
816
+ }
817
+ /**
818
+ */
819
+ export class Hyperlink {
820
+ free(): void;
821
+ /**
822
+ * @param {Run} run
823
+ * @returns {Hyperlink}
824
+ */
825
+ add_run(run: Run): Hyperlink;
826
+ /**
827
+ * @param {Insert} i
828
+ * @returns {Hyperlink}
829
+ */
830
+ add_insert(i: Insert): Hyperlink;
831
+ /**
832
+ * @param {Delete} d
833
+ * @returns {Hyperlink}
834
+ */
835
+ add_delete(d: Delete): Hyperlink;
836
+ /**
837
+ * @param {number} id
838
+ * @param {string} name
839
+ * @returns {Hyperlink}
840
+ */
841
+ add_bookmark_start(id: number, name: string): Hyperlink;
842
+ /**
843
+ * @param {number} id
844
+ * @returns {Hyperlink}
845
+ */
846
+ add_bookmark_end(id: number): Hyperlink;
847
+ /**
848
+ * @param {Comment} comment
849
+ * @returns {Hyperlink}
850
+ */
851
+ add_comment_start(comment: Comment): Hyperlink;
852
+ /**
853
+ * @param {number} id
854
+ * @returns {Hyperlink}
855
+ */
856
+ add_comment_end(id: number): Hyperlink;
857
+ }
858
+ /**
859
+ */
860
+ export class Insert {
861
+ free(): void;
862
+ /**
863
+ * @param {string} author
864
+ * @returns {Insert}
865
+ */
866
+ author(author: string): Insert;
867
+ /**
868
+ * @param {string} date
869
+ * @returns {Insert}
870
+ */
871
+ date(date: string): Insert;
872
+ }
873
+ /**
874
+ */
875
+ export class Level {
876
+ free(): void;
877
+ /**
878
+ * @param {number} left
879
+ * @param {number | undefined} special_indent_kind
880
+ * @param {number | undefined} special_indent_size
881
+ * @returns {Level}
882
+ */
883
+ indent(left: number, special_indent_kind?: number, special_indent_size?: number): Level;
884
+ /**
885
+ * @param {number} s
886
+ * @returns {Level}
887
+ */
888
+ suffix(s: number): Level;
889
+ /**
890
+ * @param {number} size
891
+ * @returns {Level}
892
+ */
893
+ size(size: number): Level;
894
+ /**
895
+ * @param {string} color
896
+ * @returns {Level}
897
+ */
898
+ color(color: string): Level;
899
+ /**
900
+ * @param {string} color
901
+ * @returns {Level}
902
+ */
903
+ highlight(color: string): Level;
904
+ /**
905
+ * @returns {Level}
906
+ */
907
+ bold(): Level;
908
+ /**
909
+ * @returns {Level}
910
+ */
911
+ italic(): Level;
912
+ /**
913
+ * @param {string} line_type
914
+ * @returns {Level}
915
+ */
916
+ underline(line_type: string): Level;
917
+ /**
918
+ * @returns {Level}
919
+ */
920
+ vanish(): Level;
921
+ /**
922
+ * @param {RunFonts} f
923
+ * @returns {Level}
924
+ */
925
+ fonts(f: RunFonts): Level;
926
+ /**
927
+ * @param {number} spacing
928
+ * @returns {Level}
929
+ */
930
+ spacing(spacing: number): Level;
931
+ }
932
+ /**
933
+ */
934
+ export class LevelOverride {
935
+ free(): void;
936
+ /**
937
+ * @param {number} start
938
+ * @returns {LevelOverride}
939
+ */
940
+ start(start: number): LevelOverride;
941
+ /**
942
+ * @param {Level} level
943
+ * @returns {LevelOverride}
944
+ */
945
+ level(level: Level): LevelOverride;
946
+ }
947
+ /**
948
+ */
949
+ export class LineSpacing {
950
+ free(): void;
951
+ /**
952
+ * @param {number} t
953
+ * @returns {LineSpacing}
954
+ */
955
+ line_rule(t: number): LineSpacing;
956
+ /**
957
+ * @param {number} before
958
+ * @returns {LineSpacing}
959
+ */
960
+ before(before: number): LineSpacing;
961
+ /**
962
+ * @param {number} after
963
+ * @returns {LineSpacing}
964
+ */
965
+ after(after: number): LineSpacing;
966
+ /**
967
+ * @param {number} before
968
+ * @returns {LineSpacing}
969
+ */
970
+ before_lines(before: number): LineSpacing;
971
+ /**
972
+ * @param {number} after
973
+ * @returns {LineSpacing}
974
+ */
975
+ after_lines(after: number): LineSpacing;
976
+ /**
977
+ * @param {number} line
978
+ * @returns {LineSpacing}
979
+ */
980
+ line(line: number): LineSpacing;
981
+ }
982
+ /**
983
+ */
984
+ export class Numbering {
985
+ free(): void;
986
+ /**
987
+ * @param {LevelOverride} o
988
+ * @returns {Numbering}
989
+ */
990
+ add_override(o: LevelOverride): Numbering;
991
+ }
992
+ /**
993
+ */
994
+ export class PageMargin {
995
+ free(): void;
996
+ /**
997
+ * @param {number} v
998
+ * @returns {PageMargin}
999
+ */
1000
+ top(v: number): PageMargin;
1001
+ /**
1002
+ * @param {number} v
1003
+ * @returns {PageMargin}
1004
+ */
1005
+ left(v: number): PageMargin;
1006
+ /**
1007
+ * @param {number} v
1008
+ * @returns {PageMargin}
1009
+ */
1010
+ bottom(v: number): PageMargin;
1011
+ /**
1012
+ * @param {number} v
1013
+ * @returns {PageMargin}
1014
+ */
1015
+ right(v: number): PageMargin;
1016
+ /**
1017
+ * @param {number} v
1018
+ * @returns {PageMargin}
1019
+ */
1020
+ header(v: number): PageMargin;
1021
+ /**
1022
+ * @param {number} v
1023
+ * @returns {PageMargin}
1024
+ */
1025
+ footer(v: number): PageMargin;
1026
+ /**
1027
+ * @param {number} v
1028
+ * @returns {PageMargin}
1029
+ */
1030
+ gutter(v: number): PageMargin;
1031
+ }
1032
+ /**
1033
+ */
1034
+ export class PageNum {
1035
+ free(): void;
1036
+ /**
1037
+ * @param {string} wrap
1038
+ * @returns {PageNum}
1039
+ */
1040
+ wrap(wrap: string): PageNum;
1041
+ /**
1042
+ * @param {string} anchor
1043
+ * @returns {PageNum}
1044
+ */
1045
+ v_anchor(anchor: string): PageNum;
1046
+ /**
1047
+ * @param {string} anchor
1048
+ * @returns {PageNum}
1049
+ */
1050
+ h_anchor(anchor: string): PageNum;
1051
+ /**
1052
+ * @param {string} r
1053
+ * @returns {PageNum}
1054
+ */
1055
+ h_rule(r: string): PageNum;
1056
+ /**
1057
+ * @param {string} align
1058
+ * @returns {PageNum}
1059
+ */
1060
+ x_align(align: string): PageNum;
1061
+ /**
1062
+ * @param {string} align
1063
+ * @returns {PageNum}
1064
+ */
1065
+ y_align(align: string): PageNum;
1066
+ /**
1067
+ * @param {number} x
1068
+ * @returns {PageNum}
1069
+ */
1070
+ h_space(x: number): PageNum;
1071
+ /**
1072
+ * @param {number} x
1073
+ * @returns {PageNum}
1074
+ */
1075
+ v_space(x: number): PageNum;
1076
+ /**
1077
+ * @param {number} x
1078
+ * @returns {PageNum}
1079
+ */
1080
+ x(x: number): PageNum;
1081
+ /**
1082
+ * @param {number} y
1083
+ * @returns {PageNum}
1084
+ */
1085
+ y(y: number): PageNum;
1086
+ /**
1087
+ * @param {number} n
1088
+ * @returns {PageNum}
1089
+ */
1090
+ width(n: number): PageNum;
1091
+ /**
1092
+ * @param {number} n
1093
+ * @returns {PageNum}
1094
+ */
1095
+ height(n: number): PageNum;
1096
+ }
1097
+ /**
1098
+ */
1099
+ export class PageNumType {
1100
+ free(): void;
1101
+ }
1102
+ /**
1103
+ */
1104
+ export class Paragraph {
1105
+ free(): void;
1106
+ /**
1107
+ * @param {Run} run
1108
+ * @returns {Paragraph}
1109
+ */
1110
+ add_run(run: Run): Paragraph;
1111
+ /**
1112
+ * @param {Hyperlink} link
1113
+ * @returns {Paragraph}
1114
+ */
1115
+ add_hyperlink(link: Hyperlink): Paragraph;
1116
+ /**
1117
+ * @param {Insert} i
1118
+ * @returns {Paragraph}
1119
+ */
1120
+ add_insert(i: Insert): Paragraph;
1121
+ /**
1122
+ * @param {Delete} d
1123
+ * @returns {Paragraph}
1124
+ */
1125
+ add_delete(d: Delete): Paragraph;
1126
+ /**
1127
+ * @param {number} id
1128
+ * @param {string} name
1129
+ * @returns {Paragraph}
1130
+ */
1131
+ add_bookmark_start(id: number, name: string): Paragraph;
1132
+ /**
1133
+ * @param {number} id
1134
+ * @returns {Paragraph}
1135
+ */
1136
+ add_bookmark_end(id: number): Paragraph;
1137
+ /**
1138
+ * @param {Comment} comment
1139
+ * @returns {Paragraph}
1140
+ */
1141
+ add_comment_start(comment: Comment): Paragraph;
1142
+ /**
1143
+ * @param {number} id
1144
+ * @returns {Paragraph}
1145
+ */
1146
+ add_comment_end(id: number): Paragraph;
1147
+ /**
1148
+ * @param {number} alignment_type
1149
+ * @returns {Paragraph}
1150
+ */
1151
+ align(alignment_type: number): Paragraph;
1152
+ /**
1153
+ * @param {number} alignment_type
1154
+ * @returns {Paragraph}
1155
+ */
1156
+ text_alignment(alignment_type: number): Paragraph;
1157
+ /**
1158
+ * @param {number} v
1159
+ * @returns {Paragraph}
1160
+ */
1161
+ adjust_right_ind(v: number): Paragraph;
1162
+ /**
1163
+ * @param {number} level
1164
+ * @returns {Paragraph}
1165
+ */
1166
+ outline_lvl(level: number): Paragraph;
1167
+ /**
1168
+ * @param {string} style_id
1169
+ * @returns {Paragraph}
1170
+ */
1171
+ style(style_id: string): Paragraph;
1172
+ /**
1173
+ * @param {number} left
1174
+ * @param {number | undefined} special_indent_kind
1175
+ * @param {number | undefined} special_indent_size
1176
+ * @param {number | undefined} right
1177
+ * @returns {Paragraph}
1178
+ */
1179
+ indent(left: number, special_indent_kind?: number, special_indent_size?: number, right?: number): Paragraph;
1180
+ /**
1181
+ * @param {number} id
1182
+ * @param {number} level
1183
+ * @returns {Paragraph}
1184
+ */
1185
+ numbering(id: number, level: number): Paragraph;
1186
+ /**
1187
+ * @param {number} size
1188
+ * @returns {Paragraph}
1189
+ */
1190
+ size(size: number): Paragraph;
1191
+ /**
1192
+ * @returns {Paragraph}
1193
+ */
1194
+ bold(): Paragraph;
1195
+ /**
1196
+ * @returns {Paragraph}
1197
+ */
1198
+ italic(): Paragraph;
1199
+ /**
1200
+ * @param {RunFonts} f
1201
+ * @returns {Paragraph}
1202
+ */
1203
+ fonts(f: RunFonts): Paragraph;
1204
+ /**
1205
+ * @param {LineSpacing} spacing
1206
+ * @returns {Paragraph}
1207
+ */
1208
+ line_spacing(spacing: LineSpacing): Paragraph;
1209
+ /**
1210
+ * @param {number} spacing
1211
+ * @returns {Paragraph}
1212
+ */
1213
+ character_spacing(spacing: number): Paragraph;
1214
+ /**
1215
+ * @param {boolean} v
1216
+ * @returns {Paragraph}
1217
+ */
1218
+ keep_next(v: boolean): Paragraph;
1219
+ /**
1220
+ * @param {boolean} v
1221
+ * @returns {Paragraph}
1222
+ */
1223
+ keep_lines(v: boolean): Paragraph;
1224
+ /**
1225
+ * @param {boolean} v
1226
+ * @returns {Paragraph}
1227
+ */
1228
+ page_break_before(v: boolean): Paragraph;
1229
+ /**
1230
+ * @param {boolean} v
1231
+ * @returns {Paragraph}
1232
+ */
1233
+ widow_control(v: boolean): Paragraph;
1234
+ /**
1235
+ * @param {string} author
1236
+ * @param {string} date
1237
+ * @returns {Paragraph}
1238
+ */
1239
+ delete(author: string, date: string): Paragraph;
1240
+ /**
1241
+ * @param {string} author
1242
+ * @param {string} date
1243
+ * @returns {Paragraph}
1244
+ */
1245
+ insert(author: string, date: string): Paragraph;
1246
+ /**
1247
+ * @param {ParagraphPropertyChange} p
1248
+ * @returns {Paragraph}
1249
+ */
1250
+ paragraph_property_change(p: ParagraphPropertyChange): Paragraph;
1251
+ }
1252
+ /**
1253
+ */
1254
+ export class ParagraphPropertyChange {
1255
+ free(): void;
1256
+ /**
1257
+ * @param {string} author
1258
+ * @returns {ParagraphPropertyChange}
1259
+ */
1260
+ author(author: string): ParagraphPropertyChange;
1261
+ /**
1262
+ * @param {string} date
1263
+ * @returns {ParagraphPropertyChange}
1264
+ */
1265
+ date(date: string): ParagraphPropertyChange;
1266
+ /**
1267
+ * @param {number} id
1268
+ * @param {number} level
1269
+ * @returns {ParagraphPropertyChange}
1270
+ */
1271
+ numbering(id: number, level: number): ParagraphPropertyChange;
1272
+ /**
1273
+ * @param {number} alignment_type
1274
+ * @returns {ParagraphPropertyChange}
1275
+ */
1276
+ align(alignment_type: number): ParagraphPropertyChange;
1277
+ /**
1278
+ * @param {string} style_id
1279
+ * @returns {ParagraphPropertyChange}
1280
+ */
1281
+ style(style_id: string): ParagraphPropertyChange;
1282
+ /**
1283
+ * @param {number} left
1284
+ * @param {number | undefined} special_indent_kind
1285
+ * @param {number | undefined} special_indent_size
1286
+ * @returns {ParagraphPropertyChange}
1287
+ */
1288
+ indent(left: number, special_indent_kind?: number, special_indent_size?: number): ParagraphPropertyChange;
1289
+ }
1290
+ /**
1291
+ */
1292
+ export class Pic {
1293
+ free(): void;
1294
+ /**
1295
+ * @param {number} w_emu
1296
+ * @param {number} h_emu
1297
+ * @returns {Pic}
1298
+ */
1299
+ size(w_emu: number, h_emu: number): Pic;
1300
+ /**
1301
+ * @param {number} deg
1302
+ * @returns {Pic}
1303
+ */
1304
+ rotate(deg: number): Pic;
1305
+ /**
1306
+ * @returns {Pic}
1307
+ */
1308
+ floating(): Pic;
1309
+ /**
1310
+ * @param {number} x
1311
+ * @returns {Pic}
1312
+ */
1313
+ offset_x(x: number): Pic;
1314
+ /**
1315
+ * @param {number} y
1316
+ * @returns {Pic}
1317
+ */
1318
+ offset_y(y: number): Pic;
1319
+ }
1320
+ /**
1321
+ */
1322
+ export class Run {
1323
+ free(): void;
1324
+ /**
1325
+ * @param {string} text
1326
+ * @returns {Run}
1327
+ */
1328
+ add_text(text: string): Run;
1329
+ /**
1330
+ * @param {Pic} pic
1331
+ * @returns {Run}
1332
+ */
1333
+ add_image(pic: Pic): Run;
1334
+ /**
1335
+ * @param {string} text
1336
+ * @returns {Run}
1337
+ */
1338
+ add_delete_text(text: string): Run;
1339
+ /**
1340
+ * @returns {Run}
1341
+ */
1342
+ add_tab(): Run;
1343
+ /**
1344
+ * @param {number} break_type
1345
+ * @returns {Run}
1346
+ */
1347
+ add_break(break_type: number): Run;
1348
+ /**
1349
+ * @param {string} style
1350
+ * @returns {Run}
1351
+ */
1352
+ style(style: string): Run;
1353
+ /**
1354
+ * @param {number} size
1355
+ * @returns {Run}
1356
+ */
1357
+ size(size: number): Run;
1358
+ /**
1359
+ * @param {string} color
1360
+ * @returns {Run}
1361
+ */
1362
+ color(color: string): Run;
1363
+ /**
1364
+ * @param {string} color
1365
+ * @returns {Run}
1366
+ */
1367
+ highlight(color: string): Run;
1368
+ /**
1369
+ * @returns {Run}
1370
+ */
1371
+ bold(): Run;
1372
+ /**
1373
+ * @returns {Run}
1374
+ */
1375
+ italic(): Run;
1376
+ /**
1377
+ * @returns {Run}
1378
+ */
1379
+ strike(): Run;
1380
+ /**
1381
+ * @param {string} line_type
1382
+ * @returns {Run}
1383
+ */
1384
+ underline(line_type: string): Run;
1385
+ /**
1386
+ * @returns {Run}
1387
+ */
1388
+ vanish(): Run;
1389
+ /**
1390
+ * @param {RunFonts} f
1391
+ * @returns {Run}
1392
+ */
1393
+ fonts(f: RunFonts): Run;
1394
+ /**
1395
+ * @param {number} spacing
1396
+ * @returns {Run}
1397
+ */
1398
+ character_spacing(spacing: number): Run;
1399
+ /**
1400
+ * @param {number} a
1401
+ * @returns {Run}
1402
+ */
1403
+ vert_align(a: number): Run;
1404
+ /**
1405
+ * @param {number} border_type
1406
+ * @param {number} size
1407
+ * @param {number} space
1408
+ * @param {string} color
1409
+ * @returns {Run}
1410
+ */
1411
+ text_border(border_type: number, size: number, space: number, color: string): Run;
1412
+ }
1413
+ /**
1414
+ */
1415
+ export class RunFonts {
1416
+ free(): void;
1417
+ /**
1418
+ * @param {string} f
1419
+ * @returns {RunFonts}
1420
+ */
1421
+ ascii(f: string): RunFonts;
1422
+ /**
1423
+ * @param {string} f
1424
+ * @returns {RunFonts}
1425
+ */
1426
+ hi_ansi(f: string): RunFonts;
1427
+ /**
1428
+ * @param {string} f
1429
+ * @returns {RunFonts}
1430
+ */
1431
+ cs(f: string): RunFonts;
1432
+ /**
1433
+ * @param {string} f
1434
+ * @returns {RunFonts}
1435
+ */
1436
+ east_asia(f: string): RunFonts;
1437
+ /**
1438
+ * @param {string} f
1439
+ * @returns {RunFonts}
1440
+ */
1441
+ ascii_theme(f: string): RunFonts;
1442
+ /**
1443
+ * @param {string} f
1444
+ * @returns {RunFonts}
1445
+ */
1446
+ hi_ansi_theme(f: string): RunFonts;
1447
+ /**
1448
+ * @param {string} f
1449
+ * @returns {RunFonts}
1450
+ */
1451
+ cs_theme(f: string): RunFonts;
1452
+ /**
1453
+ * @param {string} f
1454
+ * @returns {RunFonts}
1455
+ */
1456
+ east_asia_theme(f: string): RunFonts;
1457
+ /**
1458
+ * @param {string} f
1459
+ * @returns {RunFonts}
1460
+ */
1461
+ hint(f: string): RunFonts;
1462
+ }
1463
+ /**
1464
+ */
1465
+ export class Style {
1466
+ free(): void;
1467
+ /**
1468
+ * @param {string} name
1469
+ * @returns {Style}
1470
+ */
1471
+ name(name: string): Style;
1472
+ /**
1473
+ * @param {string} base
1474
+ * @returns {Style}
1475
+ */
1476
+ based_on(base: string): Style;
1477
+ /**
1478
+ * @param {number} size
1479
+ * @returns {Style}
1480
+ */
1481
+ size(size: number): Style;
1482
+ /**
1483
+ * @param {string} color
1484
+ * @returns {Style}
1485
+ */
1486
+ color(color: string): Style;
1487
+ /**
1488
+ * @param {string} color
1489
+ * @returns {Style}
1490
+ */
1491
+ highlight(color: string): Style;
1492
+ /**
1493
+ * @returns {Style}
1494
+ */
1495
+ bold(): Style;
1496
+ /**
1497
+ * @returns {Style}
1498
+ */
1499
+ italic(): Style;
1500
+ /**
1501
+ * @returns {Style}
1502
+ */
1503
+ strike(): Style;
1504
+ /**
1505
+ * @param {string} line_type
1506
+ * @returns {Style}
1507
+ */
1508
+ underline(line_type: string): Style;
1509
+ /**
1510
+ * @param {string} link
1511
+ * @returns {Style}
1512
+ */
1513
+ link(link: string): Style;
1514
+ /**
1515
+ * @returns {Style}
1516
+ */
1517
+ vanish(): Style;
1518
+ /**
1519
+ * @param {RunFonts} f
1520
+ * @returns {Style}
1521
+ */
1522
+ fonts(f: RunFonts): Style;
1523
+ /**
1524
+ * @param {number} spacing
1525
+ * @returns {Style}
1526
+ */
1527
+ character_spacing(spacing: number): Style;
1528
+ /**
1529
+ * @param {number} a
1530
+ * @returns {Style}
1531
+ */
1532
+ vert_align(a: number): Style;
1533
+ /**
1534
+ * @param {number} border_type
1535
+ * @param {number} size
1536
+ * @param {number} space
1537
+ * @param {string} color
1538
+ * @returns {Style}
1539
+ */
1540
+ text_border(border_type: number, size: number, space: number, color: string): Style;
1541
+ /**
1542
+ * @param {number} alignment_type
1543
+ * @returns {Style}
1544
+ */
1545
+ align(alignment_type: number): Style;
1546
+ /**
1547
+ * @param {number} alignment_type
1548
+ * @returns {Style}
1549
+ */
1550
+ text_alignment(alignment_type: number): Style;
1551
+ /**
1552
+ * @param {number} v
1553
+ * @returns {Style}
1554
+ */
1555
+ adjust_right_ind(v: number): Style;
1556
+ /**
1557
+ * @param {number} left
1558
+ * @param {number | undefined} special_indent_kind
1559
+ * @param {number | undefined} special_indent_size
1560
+ * @returns {Style}
1561
+ */
1562
+ indent(left: number, special_indent_kind?: number, special_indent_size?: number): Style;
1563
+ /**
1564
+ * @param {number} l
1565
+ * @returns {Style}
1566
+ */
1567
+ outline_lvl(l: number): Style;
1568
+ /**
1569
+ * @param {number} id
1570
+ * @param {number} level
1571
+ * @returns {Style}
1572
+ */
1573
+ numbering(id: number, level: number): Style;
1574
+ /**
1575
+ * @param {LineSpacing} spacing
1576
+ * @returns {Style}
1577
+ */
1578
+ line_spacing(spacing: LineSpacing): Style;
1579
+ /**
1580
+ * @param {boolean} v
1581
+ * @returns {Style}
1582
+ */
1583
+ keep_next(v: boolean): Style;
1584
+ /**
1585
+ * @param {boolean} v
1586
+ * @returns {Style}
1587
+ */
1588
+ keep_lines(v: boolean): Style;
1589
+ /**
1590
+ * @param {boolean} v
1591
+ * @returns {Style}
1592
+ */
1593
+ page_break_before(v: boolean): Style;
1594
+ /**
1595
+ * @param {boolean} v
1596
+ * @returns {Style}
1597
+ */
1598
+ widow_control(v: boolean): Style;
1599
+ /**
1600
+ * @param {TableProperty} p
1601
+ * @returns {Style}
1602
+ */
1603
+ table_property(p: TableProperty): Style;
1604
+ /**
1605
+ * @param {TableCellProperty} p
1606
+ * @returns {Style}
1607
+ */
1608
+ table_cell_property(p: TableCellProperty): Style;
1609
+ /**
1610
+ * @param {number} v
1611
+ * @returns {Style}
1612
+ */
1613
+ table_indent(v: number): Style;
1614
+ /**
1615
+ * @param {number} v
1616
+ * @returns {Style}
1617
+ */
1618
+ table_align(v: number): Style;
1619
+ /**
1620
+ * @param {number} top
1621
+ * @param {number} right
1622
+ * @param {number} bottom
1623
+ * @param {number} left
1624
+ * @returns {Style}
1625
+ */
1626
+ set_cell_margins(top: number, right: number, bottom: number, left: number): Style;
1627
+ /**
1628
+ * @param {number} v
1629
+ * @param {number} t
1630
+ * @returns {Style}
1631
+ */
1632
+ cell_margin_top(v: number, t: number): Style;
1633
+ /**
1634
+ * @param {number} v
1635
+ * @param {number} t
1636
+ * @returns {Style}
1637
+ */
1638
+ cell_margin_right(v: number, t: number): Style;
1639
+ /**
1640
+ * @param {number} v
1641
+ * @param {number} t
1642
+ * @returns {Style}
1643
+ */
1644
+ cell_margin_bottom(v: number, t: number): Style;
1645
+ /**
1646
+ * @param {number} v
1647
+ * @param {number} t
1648
+ * @returns {Style}
1649
+ */
1650
+ cell_margin_left(v: number, t: number): Style;
1651
+ /**
1652
+ * @param {number} t
1653
+ * @returns {Style}
1654
+ */
1655
+ layout(t: number): Style;
1656
+ }
1657
+ /**
1658
+ */
1659
+ export class Table {
1660
+ free(): void;
1661
+ /**
1662
+ * @param {TableRow} row
1663
+ * @returns {Table}
1664
+ */
1665
+ add_row(row: TableRow): Table;
1666
+ /**
1667
+ * @param {Uint32Array} grid
1668
+ * @returns {Table}
1669
+ */
1670
+ set_grid(grid: Uint32Array): Table;
1671
+ /**
1672
+ * @param {string} style_id
1673
+ * @returns {Table}
1674
+ */
1675
+ style(style_id: string): Table;
1676
+ /**
1677
+ * @param {number} v
1678
+ * @returns {Table}
1679
+ */
1680
+ indent(v: number): Table;
1681
+ /**
1682
+ * @param {number} v
1683
+ * @returns {Table}
1684
+ */
1685
+ align(v: number): Table;
1686
+ /**
1687
+ * @param {number} w
1688
+ * @returns {Table}
1689
+ */
1690
+ width(w: number): Table;
1691
+ /**
1692
+ * @param {number} t
1693
+ * @returns {Table}
1694
+ */
1695
+ layout(t: number): Table;
1696
+ /**
1697
+ * @param {number} top
1698
+ * @param {number} right
1699
+ * @param {number} bottom
1700
+ * @param {number} left
1701
+ * @returns {Table}
1702
+ */
1703
+ set_cell_margins(top: number, right: number, bottom: number, left: number): Table;
1704
+ /**
1705
+ * @param {number} v
1706
+ * @param {number} t
1707
+ * @returns {Table}
1708
+ */
1709
+ cell_margin_top(v: number, t: number): Table;
1710
+ /**
1711
+ * @param {number} v
1712
+ * @param {number} t
1713
+ * @returns {Table}
1714
+ */
1715
+ cell_margin_right(v: number, t: number): Table;
1716
+ /**
1717
+ * @param {number} v
1718
+ * @param {number} t
1719
+ * @returns {Table}
1720
+ */
1721
+ cell_margin_bottom(v: number, t: number): Table;
1722
+ /**
1723
+ * @param {number} v
1724
+ * @param {number} t
1725
+ * @returns {Table}
1726
+ */
1727
+ cell_margin_left(v: number, t: number): Table;
1728
+ }
1729
+ /**
1730
+ */
1731
+ export class TableCell {
1732
+ free(): void;
1733
+ /**
1734
+ * @param {Paragraph} p
1735
+ * @returns {TableCell}
1736
+ */
1737
+ add_paragraph(p: Paragraph): TableCell;
1738
+ /**
1739
+ * @param {Table} t
1740
+ * @returns {TableCell}
1741
+ */
1742
+ add_table(t: Table): TableCell;
1743
+ /**
1744
+ * @param {TableOfContents} t
1745
+ * @returns {TableCell}
1746
+ */
1747
+ add_table_of_contents(t: TableOfContents): TableCell;
1748
+ /**
1749
+ * @param {number} t
1750
+ * @returns {TableCell}
1751
+ */
1752
+ vertical_merge(t: number): TableCell;
1753
+ /**
1754
+ * @param {number} t
1755
+ * @returns {TableCell}
1756
+ */
1757
+ vertical_align(t: number): TableCell;
1758
+ /**
1759
+ * @param {number} v
1760
+ * @returns {TableCell}
1761
+ */
1762
+ grid_span(v: number): TableCell;
1763
+ /**
1764
+ * @param {number} v
1765
+ * @returns {TableCell}
1766
+ */
1767
+ width(v: number): TableCell;
1768
+ /**
1769
+ * @param {string} t
1770
+ * @param {string} color
1771
+ * @param {string} fill
1772
+ * @returns {TableCell}
1773
+ */
1774
+ shading(t: string, color: string, fill: string): TableCell;
1775
+ /**
1776
+ * @param {number} t
1777
+ * @returns {TableCell}
1778
+ */
1779
+ text_direction(t: number): TableCell;
1780
+ /**
1781
+ * @param {TableCellBorder} border
1782
+ * @returns {TableCell}
1783
+ */
1784
+ set_border(border: TableCellBorder): TableCell;
1785
+ /**
1786
+ * @param {number} position
1787
+ * @returns {TableCell}
1788
+ */
1789
+ clear_border(position: number): TableCell;
1790
+ /**
1791
+ * @returns {TableCell}
1792
+ */
1793
+ clear_all_border(): TableCell;
1794
+ }
1795
+ /**
1796
+ */
1797
+ export class TableCellBorder {
1798
+ free(): void;
1799
+ /**
1800
+ * @param {number} size
1801
+ * @returns {TableCellBorder}
1802
+ */
1803
+ size(size: number): TableCellBorder;
1804
+ /**
1805
+ * @param {string} color
1806
+ * @returns {TableCellBorder}
1807
+ */
1808
+ color(color: string): TableCellBorder;
1809
+ /**
1810
+ * @param {number} border_type
1811
+ * @returns {TableCellBorder}
1812
+ */
1813
+ border_type(border_type: number): TableCellBorder;
1814
+ /**
1815
+ * @returns {number}
1816
+ */
1817
+ get_size(): number;
1818
+ /**
1819
+ * @returns {string}
1820
+ */
1821
+ get_color(): string;
1822
+ /**
1823
+ * @returns {number}
1824
+ */
1825
+ get_border_type(): number;
1826
+ }
1827
+ /**
1828
+ */
1829
+ export class TableCellProperty {
1830
+ free(): void;
1831
+ }
1832
+ /**
1833
+ */
1834
+ export class TableOfContents {
1835
+ free(): void;
1836
+ /**
1837
+ * @param {number} start
1838
+ * @param {number} end
1839
+ * @returns {TableOfContents}
1840
+ */
1841
+ heading_styles_range(start: number, end: number): TableOfContents;
1842
+ /**
1843
+ * @param {string} style
1844
+ * @param {number} level
1845
+ * @returns {TableOfContents}
1846
+ */
1847
+ add_style_with_level(style: string, level: number): TableOfContents;
1848
+ /**
1849
+ * @returns {TableOfContents}
1850
+ */
1851
+ hyperlink(): TableOfContents;
1852
+ /**
1853
+ * @param {string} a
1854
+ * @returns {TableOfContents}
1855
+ */
1856
+ alias(a: string): TableOfContents;
1857
+ /**
1858
+ * @param {string} a
1859
+ * @returns {TableOfContents}
1860
+ */
1861
+ page_ref_placeholder(a: string): TableOfContents;
1862
+ /**
1863
+ * @param {TableOfContentsItem} t
1864
+ * @returns {TableOfContents}
1865
+ */
1866
+ add_item(t: TableOfContentsItem): TableOfContents;
1867
+ /**
1868
+ * @returns {TableOfContents}
1869
+ */
1870
+ auto(): TableOfContents;
1871
+ /**
1872
+ * @returns {TableOfContents}
1873
+ */
1874
+ dirty(): TableOfContents;
1875
+ /**
1876
+ * @returns {TableOfContents}
1877
+ */
1878
+ without_sdt(): TableOfContents;
1879
+ /**
1880
+ * @param {string} author
1881
+ * @param {string} date
1882
+ * @returns {TableOfContents}
1883
+ */
1884
+ delete(author: string, date: string): TableOfContents;
1885
+ /**
1886
+ * @param {Paragraph} p
1887
+ * @returns {TableOfContents}
1888
+ */
1889
+ add_before_paragraph(p: Paragraph): TableOfContents;
1890
+ /**
1891
+ * @param {Paragraph} p
1892
+ * @returns {TableOfContents}
1893
+ */
1894
+ add_after_paragraph(p: Paragraph): TableOfContents;
1895
+ /**
1896
+ * @param {Table} t
1897
+ * @returns {TableOfContents}
1898
+ */
1899
+ add_before_table(t: Table): TableOfContents;
1900
+ /**
1901
+ * @param {Table} t
1902
+ * @returns {TableOfContents}
1903
+ */
1904
+ add_after_table(t: Table): TableOfContents;
1905
+ }
1906
+ /**
1907
+ */
1908
+ export class TableOfContentsItem {
1909
+ free(): void;
1910
+ /**
1911
+ * @param {string} a
1912
+ * @returns {TableOfContentsItem}
1913
+ */
1914
+ text(a: string): TableOfContentsItem;
1915
+ /**
1916
+ * @param {string} a
1917
+ * @returns {TableOfContentsItem}
1918
+ */
1919
+ toc_key(a: string): TableOfContentsItem;
1920
+ /**
1921
+ * @param {number} l
1922
+ * @returns {TableOfContentsItem}
1923
+ */
1924
+ level(l: number): TableOfContentsItem;
1925
+ /**
1926
+ * @param {string} a
1927
+ * @returns {TableOfContentsItem}
1928
+ */
1929
+ page_ref(a: string): TableOfContentsItem;
1930
+ }
1931
+ /**
1932
+ */
1933
+ export class TableProperty {
1934
+ free(): void;
1935
+ }
1936
+ /**
1937
+ */
1938
+ export class TableRow {
1939
+ free(): void;
1940
+ /**
1941
+ * @param {TableCell} cell
1942
+ * @returns {TableRow}
1943
+ */
1944
+ add_cell(cell: TableCell): TableRow;
1945
+ /**
1946
+ * @param {number} h
1947
+ * @returns {TableRow}
1948
+ */
1949
+ row_height(h: number): TableRow;
1950
+ /**
1951
+ * @param {number} r
1952
+ * @returns {TableRow}
1953
+ */
1954
+ height_rule(r: number): TableRow;
1955
+ /**
1956
+ * @param {string} author
1957
+ * @param {string} date
1958
+ * @returns {TableRow}
1959
+ */
1960
+ delete(author: string, date: string): TableRow;
1961
+ /**
1962
+ * @param {string} author
1963
+ * @param {string} date
1964
+ * @returns {TableRow}
1965
+ */
1966
+ insert(author: string, date: string): TableRow;
1967
+ }
1968
+ /**
1969
+ */
1970
+ export class WebExtension {
1971
+ free(): void;
1972
+ /**
1973
+ * @param {string} name
1974
+ * @param {string} value
1975
+ * @returns {WebExtension}
1976
+ */
1977
+ property(name: string, value: string): WebExtension;
1978
+ }