pp-robot-module 0.2.14

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/README.md +34 -0
  2. package/dist/MR/Ai.d.ts +8 -0
  3. package/dist/MR/Ai.js +24 -0
  4. package/dist/MR/Clipboard.d.ts +20 -0
  5. package/dist/MR/Clipboard.js +60 -0
  6. package/dist/MR/Csv.d.ts +20 -0
  7. package/dist/MR/Csv.js +56 -0
  8. package/dist/MR/Date.d.ts +60 -0
  9. package/dist/MR/Date.js +94 -0
  10. package/dist/MR/DbClient.d.ts +97 -0
  11. package/dist/MR/DbClient.js +269 -0
  12. package/dist/MR/Dialog.d.ts +0 -0
  13. package/dist/MR/Dialog.js +40 -0
  14. package/dist/MR/Excel.d.ts +110 -0
  15. package/dist/MR/Excel.js +316 -0
  16. package/dist/MR/File.d.ts +162 -0
  17. package/dist/MR/File.js +399 -0
  18. package/dist/MR/Hash.d.ts +12 -0
  19. package/dist/MR/Hash.js +21 -0
  20. package/dist/MR/Html.d.ts +38 -0
  21. package/dist/MR/Html.js +163 -0
  22. package/dist/MR/Http.d.ts +33 -0
  23. package/dist/MR/Http.js +121 -0
  24. package/dist/MR/Imap.d.ts +15 -0
  25. package/dist/MR/Imap.js +52 -0
  26. package/dist/MR/Ini.d.ts +31 -0
  27. package/dist/MR/Ini.js +55 -0
  28. package/dist/MR/Keyboard.d.ts +59 -0
  29. package/dist/MR/Keyboard.js +515 -0
  30. package/dist/MR/Log.d.ts +7 -0
  31. package/dist/MR/Log.js +52 -0
  32. package/dist/MR/Mouse.d.ts +51 -0
  33. package/dist/MR/Mouse.js +152 -0
  34. package/dist/MR/Net.d.ts +17 -0
  35. package/dist/MR/Net.js +74 -0
  36. package/dist/MR/Pdf.d.ts +113 -0
  37. package/dist/MR/Pdf.js +197 -0
  38. package/dist/MR/Process.d.ts +46 -0
  39. package/dist/MR/Process.js +106 -0
  40. package/dist/MR/QRcode.d.ts +13 -0
  41. package/dist/MR/QRcode.js +37 -0
  42. package/dist/MR/RedisClient.d.ts +40 -0
  43. package/dist/MR/RedisClient.js +183 -0
  44. package/dist/MR/Regex.d.ts +16 -0
  45. package/dist/MR/Regex.js +20 -0
  46. package/dist/MR/Robot.d.ts +19 -0
  47. package/dist/MR/Robot.js +31 -0
  48. package/dist/MR/Screen.d.ts +20 -0
  49. package/dist/MR/Screen.js +79 -0
  50. package/dist/MR/Smtp.d.ts +21 -0
  51. package/dist/MR/Smtp.js +83 -0
  52. package/dist/MR/String.d.ts +104 -0
  53. package/dist/MR/String.js +166 -0
  54. package/dist/MR/System.d.ts +31 -0
  55. package/dist/MR/System.js +201 -0
  56. package/dist/MR/Validator.d.ts +30 -0
  57. package/dist/MR/Validator.js +104 -0
  58. package/dist/MR/WebBrowser.d.ts +210 -0
  59. package/dist/MR/WebBrowser.js +484 -0
  60. package/dist/MR/WebBrowser2.d.ts +0 -0
  61. package/dist/MR/WebBrowser2.js +504 -0
  62. package/dist/MR/WebElement.d.ts +123 -0
  63. package/dist/MR/WebElement.js +172 -0
  64. package/dist/MR/WebKeyboard.d.ts +21 -0
  65. package/dist/MR/WebKeyboard.js +48 -0
  66. package/dist/MR/WebMouse.d.ts +46 -0
  67. package/dist/MR/WebMouse.js +79 -0
  68. package/dist/MR/Window.d.ts +8 -0
  69. package/dist/MR/Window.js +34 -0
  70. package/dist/MR/Word.d.ts +56 -0
  71. package/dist/MR/Word.js +220 -0
  72. package/dist/MR/Zip.d.ts +25 -0
  73. package/dist/MR/Zip.js +89 -0
  74. package/dist/bin/inputting-method.exe +0 -0
  75. package/dist/bin/keyboard-password.exe +0 -0
  76. package/dist/bin/lock-window.exe +0 -0
  77. package/dist/bin/printer-pdf.exe +0 -0
  78. package/dist/dotenv.d.ts +0 -0
  79. package/dist/dotenv.js +2 -0
  80. package/dist/index.d.ts +54 -0
  81. package/dist/index.js +63 -0
  82. package/dist/util.d.ts +17 -0
  83. package/dist/util.js +41 -0
  84. package/package.json +120 -0
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MR = void 0;
13
+ const Log_1 = require("./Log");
14
+ var MR;
15
+ (function (MR) {
16
+ class WebElement {
17
+ constructor(ele, rd) {
18
+ this.element = ele;
19
+ this.robotDetail = rd;
20
+ }
21
+ printer(args) {
22
+ Log_1.default.debug(args);
23
+ this.robotDetail.addTrail(args);
24
+ }
25
+ /**
26
+ * Take a screenshot.
27
+ */
28
+ screenshot(params = {}) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const argObj = { action: "WebElement.screenshot", note: "元素截图", param: this.toStr(params) };
31
+ this.printer(argObj);
32
+ let filepath = '.';
33
+ if (params._filepath)
34
+ filepath = params._filepath;
35
+ let filename = `${Math.round(new Date().getTime() / 1000)}.png`;
36
+ if (params._filename)
37
+ filename = params._filename;
38
+ return this.element.screenshot({ path: `${filepath}/${filename}` });
39
+ });
40
+ }
41
+ /**
42
+ * 滚动网页至元素可见
43
+ */
44
+ scrollIntoView() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ const argObj = { action: "WebBrowser.scrollIntoView", note: "滚动网页至元素可见", element: this.toStr(this.element) };
47
+ this.printer(argObj);
48
+ return this.element.scrollIntoViewIfNeeded();
49
+ });
50
+ }
51
+ /**
52
+ * 上传文件
53
+ */
54
+ setInputFiles(files, options) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const argObj = { action: "WebBrowser.setInputFiles", note: "设置文件上传", element: this.toStr(this.element), param: this.toStr(files) };
57
+ this.printer(argObj);
58
+ return this.element.setInputFiles(files, options);
59
+ });
60
+ }
61
+ /**
62
+ * 点击
63
+ */
64
+ click(options) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const argObj = { action: "WebBrowser.click", note: "元素点击", element: this.toStr(this.element), param: this.toStr(options) };
67
+ this.printer(argObj);
68
+ return this.element.click(options);
69
+ });
70
+ }
71
+ dblclick(options) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ const argObj = { action: "WebBrowser.dblclick", note: "元素双击", element: this.toStr(this.element), param: this.toStr(options) };
74
+ this.printer(argObj);
75
+ return this.element.dblclick(options);
76
+ });
77
+ }
78
+ clear(options) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const argObj = { action: "WebBrowser.clear", note: "删除元素的值", element: this.toStr(this.element), param: this.toStr(options) };
81
+ this.printer(argObj);
82
+ return this.element.clear(options);
83
+ });
84
+ }
85
+ dragTo(target) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const argObj = { action: "WebBrowser.dragTo", note: "拖动元素到另一个元素", element: this.toStr(this.element), param: this.toStr(target) };
88
+ this.printer(argObj);
89
+ return this.element.dragTo(target);
90
+ });
91
+ }
92
+ selectOption(values, options) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ const argObj = { action: "WebBrowser.selectOption", note: "选择框元素设值", element: this.toStr(this.element), param: this.toStr(values) };
95
+ this.printer(argObj);
96
+ return this.element.selectOption(values, options);
97
+ });
98
+ }
99
+ check(options) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const argObj = { action: "WebBrowser.check", note: "复选/单选选中值", element: this.toStr(this.element), param: this.toStr(options) };
102
+ this.printer(argObj);
103
+ return this.element.check(options);
104
+ });
105
+ }
106
+ uncheck(options) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const argObj = { action: "WebBrowser.uncheck", note: "复选/单选取消选中值", element: this.toStr(this.element), param: this.toStr(options) };
109
+ this.printer(argObj);
110
+ return this.element.uncheck(options);
111
+ });
112
+ }
113
+ fill(value, options) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ const argObj = { action: "WebBrowser.fill", note: "输入值", element: this.toStr(this.element), param: this.toStr(options) };
116
+ this.printer(argObj);
117
+ return this.element.fill(value, options);
118
+ });
119
+ }
120
+ innerHTML(options) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ const argObj = { action: "WebBrowser.innerHTML", note: "获取元素源码", element: this.toStr(this.element), param: this.toStr(options) };
123
+ this.printer(argObj);
124
+ return this.element.innerHTML(options);
125
+ });
126
+ }
127
+ box(options) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const argObj = { action: "WebBrowser.box", note: "获取元素坐标与大小", element: this.toStr(this.element), param: this.toStr(options) };
130
+ this.printer(argObj);
131
+ return this.element.boundingBox(options);
132
+ });
133
+ }
134
+ innerText(options) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ const argObj = { action: "WebBrowser.innerText", note: "获取元素纯文本", element: this.toStr(this.element), param: this.toStr(options) };
137
+ this.printer(argObj);
138
+ return this.element.innerText(options);
139
+ });
140
+ }
141
+ property(prop, options) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const argObj = { action: "WebBrowser.property", note: "获取元素某属性", element: this.toStr(this.element), param: this.toStr(prop) };
144
+ this.printer(argObj);
145
+ switch (prop) {
146
+ case 'isEnabled':
147
+ return this.element.isEnabled(options);
148
+ case 'isEditable':
149
+ return this.element.isEditable(options);
150
+ case 'isDisabled':
151
+ return this.element.isDisabled(options);
152
+ case 'isChecked':
153
+ return this.element.isChecked(options);
154
+ case 'isHidden':
155
+ return this.element.isHidden(options);
156
+ case 'isVisible':
157
+ return this.element.isVisible(options);
158
+ default:
159
+ return this.element.isEnabled(options);
160
+ }
161
+ });
162
+ }
163
+ toStr(obj) {
164
+ if (obj === undefined || obj === '' || obj === null) {
165
+ return '';
166
+ }
167
+ return JSON.stringify(obj);
168
+ }
169
+ }
170
+ MR.WebElement = WebElement;
171
+ })(MR = exports.MR || (exports.MR = {}));
172
+ exports.default = MR.WebElement;
@@ -0,0 +1,21 @@
1
+ import { Keyboard } from 'playwright';
2
+ import Robot from './Robot';
3
+ export declare namespace MR {
4
+ class WebKeyboard {
5
+ private keyboard;
6
+ private robotDetail;
7
+ constructor(kb: Keyboard, rd: Robot);
8
+ type(params?: {
9
+ _text: string;
10
+ _delay?: number;
11
+ }): Promise<void>;
12
+ press(params: {
13
+ _key: string;
14
+ _delay?: number;
15
+ }): Promise<void>;
16
+ private printer;
17
+ private toStr;
18
+ }
19
+ }
20
+ declare const _default: typeof MR.WebKeyboard;
21
+ export default _default;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MR = void 0;
13
+ const Log_1 = require("./Log");
14
+ var MR;
15
+ (function (MR) {
16
+ class WebKeyboard {
17
+ constructor(kb, rd) {
18
+ this.keyboard = kb;
19
+ this.robotDetail = rd;
20
+ }
21
+ type(params = { _text: '', _delay: 10 }) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const argObj = { action: "WebKeyboard.type", note: "浏览器内键盘输入", param: this.toStr(params) };
24
+ this.printer(argObj);
25
+ return this.keyboard.type(params._text, { delay: params._delay });
26
+ });
27
+ }
28
+ press(params) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const argObj = { action: "WebKeyboard.press", note: "浏览器内键盘按键", param: this.toStr(params) };
31
+ this.printer(argObj);
32
+ return this.keyboard.press(params._key, { delay: params._delay });
33
+ });
34
+ }
35
+ printer(args) {
36
+ Log_1.default.debug(args);
37
+ this.robotDetail.addTrail(args);
38
+ }
39
+ toStr(obj) {
40
+ if (obj === undefined || obj === '' || obj === null) {
41
+ return '';
42
+ }
43
+ return JSON.stringify(obj);
44
+ }
45
+ }
46
+ MR.WebKeyboard = WebKeyboard;
47
+ })(MR = exports.MR || (exports.MR = {}));
48
+ exports.default = MR.WebKeyboard;
@@ -0,0 +1,46 @@
1
+ import { Mouse } from 'playwright';
2
+ import Robot from './Robot';
3
+ export declare namespace MR {
4
+ class WebMouse {
5
+ private mouse;
6
+ private robotDetail;
7
+ constructor(m: Mouse, rd: Robot);
8
+ click(params?: {
9
+ _x: number;
10
+ _y: number;
11
+ _button?: "left" | "right" | "middle";
12
+ _count?: number;
13
+ _delay?: number;
14
+ }): Promise<void>;
15
+ dblclick(params?: {
16
+ _x: number;
17
+ _y: number;
18
+ _button?: "left" | "right" | "middle";
19
+ _delay?: number;
20
+ }): Promise<void>;
21
+ move(params?: {
22
+ _x: number;
23
+ _y: number;
24
+ _steps?: number;
25
+ }): Promise<void>;
26
+ drag(params?: {
27
+ _fromX: number;
28
+ _fromY: number;
29
+ _toX: number;
30
+ _toY: number;
31
+ steps?: number;
32
+ }): Promise<void>;
33
+ up(params?: {
34
+ _button?: "left" | "right" | "middle";
35
+ _count?: number;
36
+ }): Promise<void>;
37
+ down(params?: {
38
+ _button?: "left" | "right" | "middle";
39
+ _count?: number;
40
+ }): Promise<void>;
41
+ private printer;
42
+ private toStr;
43
+ }
44
+ }
45
+ declare const _default: typeof MR.WebMouse;
46
+ export default _default;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MR = void 0;
13
+ const Log_1 = require("./Log");
14
+ var MR;
15
+ (function (MR) {
16
+ class WebMouse {
17
+ constructor(m, rd) {
18
+ this.mouse = m;
19
+ this.robotDetail = rd;
20
+ }
21
+ click(params = { _x: 0, _y: 0, _button: 'left', _count: 1, _delay: 10 }) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const argObj = { action: "WebMouse.click", note: "浏览器内鼠标单击", param: this.toStr(params) };
24
+ this.printer(argObj);
25
+ return this.mouse.click(params._x, params._y, { button: params._button, clickCount: params._count, delay: params._delay });
26
+ });
27
+ }
28
+ dblclick(params = { _x: 0, _y: 0, _button: 'left', _delay: 10 }) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const argObj = { action: "WebMouse.dblclick", note: "浏览器内鼠标双击", param: this.toStr(params) };
31
+ this.printer(argObj);
32
+ return this.mouse.dblclick(params._x, params._y, { button: params._button, delay: params._delay });
33
+ });
34
+ }
35
+ move(params = { _x: 0, _y: 0, _steps: 1 }) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const argObj = { action: "WebMouse.move", note: "浏览器内鼠标移动", param: this.toStr(params) };
38
+ this.printer(argObj);
39
+ return this.mouse.move(params._x, params._y, { steps: params._steps });
40
+ });
41
+ }
42
+ drag(params = { _fromX: 0, _fromY: 0, _toX: 0, _toY: 0, steps: 1 }) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ const argObj = { action: "WebMouse.drag", note: "浏览器内鼠标拖动", param: this.toStr(params) };
45
+ this.printer(argObj);
46
+ this.mouse.move(params._fromX, params._fromY, params);
47
+ this.mouse.down();
48
+ this.mouse.move(params._toX, params._toY, params);
49
+ return this.mouse.up();
50
+ });
51
+ }
52
+ up(params = { _button: 'left', _count: 1 }) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const argObj = { action: "WebMouse.up", note: "浏览器内鼠标释放", param: this.toStr(params) };
55
+ this.printer(argObj);
56
+ return this.mouse.up({ button: params._button, clickCount: params._count });
57
+ });
58
+ }
59
+ down(params = { _button: 'left', _count: 1 }) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const argObj = { action: "WebMouse.down", note: "浏览器内鼠标按下", param: this.toStr(params) };
62
+ this.printer(argObj);
63
+ return this.mouse.down({ button: params._button, clickCount: params._count });
64
+ });
65
+ }
66
+ printer(args) {
67
+ Log_1.default.debug(args);
68
+ this.robotDetail.addTrail(args);
69
+ }
70
+ toStr(obj) {
71
+ if (obj === undefined || obj === '' || obj === null) {
72
+ return '';
73
+ }
74
+ return JSON.stringify(obj);
75
+ }
76
+ }
77
+ MR.WebMouse = WebMouse;
78
+ })(MR = exports.MR || (exports.MR = {}));
79
+ exports.default = MR.WebMouse;
@@ -0,0 +1,8 @@
1
+ export declare namespace MR {
2
+ class Window {
3
+ private constructor();
4
+ static getActiveWindow(): Promise<any>;
5
+ }
6
+ }
7
+ declare const _default: typeof MR.Window;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MR = void 0;
13
+ const { getActiveWindow, centerOf, randomPointIn, mouse, sleep } = require('@nut-tree/nut-js');
14
+ var MR;
15
+ (function (MR) {
16
+ class Window {
17
+ constructor() { }
18
+ static getActiveWindow() {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const windowRef = yield getActiveWindow();
21
+ const region = yield windowRef.region;
22
+ console.log(region);
23
+ yield mouse.setPosition(yield centerOf(region));
24
+ yield mouse.leftClick();
25
+ yield sleep(3000);
26
+ yield mouse.setPosition(yield randomPointIn(region));
27
+ yield mouse.leftClick();
28
+ return yield getActiveWindow();
29
+ });
30
+ }
31
+ }
32
+ MR.Window = Window;
33
+ })(MR = exports.MR || (exports.MR = {}));
34
+ exports.default = MR.Window;
@@ -0,0 +1,56 @@
1
+ import { Paragraph, TextRun, Table, ImageRun } from "docx";
2
+ export declare namespace MR {
3
+ class Word {
4
+ private constructor();
5
+ static text(params: {
6
+ _filename: string;
7
+ }): Promise<any>;
8
+ static toHtml(params: {
9
+ _filename: string;
10
+ }): Promise<string>;
11
+ static buildHeaderFooter(params: {
12
+ _str: string;
13
+ }): void;
14
+ static buildImage(params: {
15
+ _filename: string;
16
+ _width?: number;
17
+ _height?: number;
18
+ }): ImageRun;
19
+ static buildTable(params: {
20
+ _rows: [] | [][];
21
+ _width?: number;
22
+ _indent?: number;
23
+ }): Table;
24
+ static buildText(params: {
25
+ _str: string;
26
+ _bold?: boolean;
27
+ _italics?: boolean;
28
+ _strike?: boolean;
29
+ _doubleStrike?: boolean;
30
+ _superScript?: boolean;
31
+ _subScript?: boolean;
32
+ _allCaps?: boolean;
33
+ _smallCaps?: boolean;
34
+ _break?: number;
35
+ _emphasisMark?: any;
36
+ _underline?: any;
37
+ _shading?: any;
38
+ }): TextRun;
39
+ static buildParagraph(params: {
40
+ _text?: TextRun | TextRun[];
41
+ _table?: Table | Table[];
42
+ _image?: ImageRun | ImageRun[];
43
+ }): Paragraph;
44
+ static create(params: {
45
+ _filename: string;
46
+ _para: Paragraph[];
47
+ }): Promise<void>;
48
+ static template(params: {
49
+ _tempfilename: string;
50
+ _filename: string;
51
+ _json: any;
52
+ }): Promise<void>;
53
+ }
54
+ }
55
+ declare const _default: typeof MR.Word;
56
+ export default _default;