mepcli 2.0.0-beta.2 → 2.0.0-beta.4

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 (358) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +20 -0
  3. package/dist/ansi.d.ts +36 -0
  4. package/dist/ansi.js +1 -0
  5. package/dist/base.d.ts +61 -0
  6. package/dist/base.js +1 -0
  7. package/dist/{src/core.js → core.d.ts} +181 -345
  8. package/dist/core.js +1 -0
  9. package/dist/data/countries.d.ts +2 -0
  10. package/dist/data/countries.js +1 -0
  11. package/dist/data/licenses.d.ts +2 -0
  12. package/dist/data/licenses.js +1 -0
  13. package/dist/highlight.d.ts +7 -0
  14. package/dist/highlight.js +1 -0
  15. package/dist/index.d.ts +52 -0
  16. package/dist/index.js +1 -0
  17. package/dist/input.d.ts +14 -0
  18. package/dist/input.js +1 -0
  19. package/dist/pipeline.d.ts +90 -0
  20. package/dist/pipeline.js +1 -0
  21. package/dist/prompts/autocomplete.d.ts +22 -0
  22. package/dist/prompts/autocomplete.js +1 -0
  23. package/dist/prompts/box.d.ts +21 -0
  24. package/dist/prompts/box.js +4 -0
  25. package/dist/prompts/breadcrumb-search.d.ts +14 -0
  26. package/dist/prompts/breadcrumb-search.js +2 -0
  27. package/dist/prompts/breadcrumb.d.ts +32 -0
  28. package/dist/prompts/breadcrumb.js +3 -0
  29. package/dist/prompts/byte.d.ts +13 -0
  30. package/dist/prompts/byte.js +5 -0
  31. package/dist/prompts/calculator.d.ts +17 -0
  32. package/dist/prompts/calculator.js +3 -0
  33. package/dist/prompts/calendar.d.ts +33 -0
  34. package/dist/prompts/calendar.js +3 -0
  35. package/dist/prompts/checkbox.d.ts +13 -0
  36. package/dist/prompts/checkbox.js +2 -0
  37. package/dist/prompts/code.d.ts +19 -0
  38. package/dist/prompts/code.js +4 -0
  39. package/dist/prompts/color.d.ts +14 -0
  40. package/dist/prompts/color.js +10 -0
  41. package/dist/prompts/confirm.d.ts +8 -0
  42. package/dist/prompts/confirm.js +1 -0
  43. package/dist/prompts/connection-string.d.ts +18 -0
  44. package/dist/prompts/connection-string.js +1 -0
  45. package/dist/prompts/cron.d.ts +13 -0
  46. package/dist/prompts/cron.js +4 -0
  47. package/dist/prompts/curl-utils.d.ts +25 -0
  48. package/dist/prompts/curl-utils.js +1 -0
  49. package/dist/prompts/curl.d.ts +41 -0
  50. package/dist/prompts/curl.js +12 -0
  51. package/dist/prompts/data-inspector.d.ts +22 -0
  52. package/dist/prompts/data-inspector.js +5 -0
  53. package/dist/prompts/date.d.ts +12 -0
  54. package/dist/prompts/date.js +2 -0
  55. package/dist/prompts/dependency.d.ts +16 -0
  56. package/dist/prompts/dependency.js +3 -0
  57. package/dist/prompts/dial.d.ts +10 -0
  58. package/dist/prompts/dial.js +3 -0
  59. package/dist/prompts/diff.d.ts +10 -0
  60. package/dist/prompts/diff.js +10 -0
  61. package/dist/prompts/draw.d.ts +20 -0
  62. package/dist/prompts/draw.js +6 -0
  63. package/dist/prompts/editor.d.ts +14 -0
  64. package/dist/prompts/editor.js +2 -0
  65. package/dist/prompts/emoji.d.ts +18 -0
  66. package/dist/prompts/emoji.js +5 -0
  67. package/dist/prompts/exec.d.ts +17 -0
  68. package/dist/prompts/exec.js +1 -0
  69. package/dist/prompts/file.d.ts +21 -0
  70. package/dist/prompts/file.js +2 -0
  71. package/dist/prompts/form.d.ts +18 -0
  72. package/dist/prompts/form.js +1 -0
  73. package/dist/prompts/fuzzy-multi-column.d.ts +12 -0
  74. package/dist/prompts/fuzzy-multi-column.js +2 -0
  75. package/dist/prompts/fuzzy.d.ts +12 -0
  76. package/dist/prompts/fuzzy.js +2 -0
  77. package/dist/prompts/gauge.d.ts +21 -0
  78. package/dist/prompts/gauge.js +4 -0
  79. package/dist/prompts/grid.d.ts +14 -0
  80. package/dist/prompts/grid.js +2 -0
  81. package/dist/prompts/heatmap.d.ts +13 -0
  82. package/dist/prompts/heatmap.js +2 -0
  83. package/dist/prompts/ip.d.ts +11 -0
  84. package/dist/prompts/ip.js +3 -0
  85. package/dist/prompts/kanban.d.ts +17 -0
  86. package/dist/prompts/kanban.js +4 -0
  87. package/dist/prompts/keypress.d.ts +7 -0
  88. package/dist/prompts/keypress.js +1 -0
  89. package/dist/prompts/license.d.ts +9 -0
  90. package/dist/prompts/license.js +13 -0
  91. package/dist/prompts/list.d.ts +9 -0
  92. package/dist/prompts/list.js +1 -0
  93. package/dist/prompts/map.d.ts +17 -0
  94. package/dist/prompts/map.js +5 -0
  95. package/dist/prompts/match.d.ts +19 -0
  96. package/dist/prompts/match.js +7 -0
  97. package/dist/prompts/miller.d.ts +15 -0
  98. package/dist/prompts/miller.js +2 -0
  99. package/dist/prompts/multi-column-select.d.ts +10 -0
  100. package/dist/prompts/multi-column-select.js +2 -0
  101. package/dist/prompts/multi-range.d.ts +9 -0
  102. package/dist/prompts/multi-range.js +3 -0
  103. package/dist/prompts/multi-select.d.ts +15 -0
  104. package/dist/prompts/multi-select.js +4 -0
  105. package/dist/prompts/number.d.ts +11 -0
  106. package/dist/prompts/number.js +2 -0
  107. package/dist/prompts/otp.d.ts +10 -0
  108. package/dist/prompts/otp.js +2 -0
  109. package/dist/prompts/pattern.d.ts +22 -0
  110. package/dist/prompts/pattern.js +4 -0
  111. package/dist/prompts/phone.d.ts +41 -0
  112. package/dist/prompts/phone.js +3 -0
  113. package/dist/prompts/quiz-select.d.ts +10 -0
  114. package/dist/prompts/quiz-select.js +7 -0
  115. package/dist/prompts/quiz-text.d.ts +11 -0
  116. package/dist/prompts/quiz-text.js +8 -0
  117. package/dist/prompts/range.d.ts +9 -0
  118. package/dist/prompts/range.js +1 -0
  119. package/dist/prompts/rating.d.ts +8 -0
  120. package/dist/prompts/rating.js +1 -0
  121. package/dist/prompts/regex.d.ts +13 -0
  122. package/dist/prompts/regex.js +5 -0
  123. package/dist/prompts/region.d.ts +11 -0
  124. package/dist/prompts/region.js +5 -0
  125. package/dist/prompts/schedule.d.ts +20 -0
  126. package/dist/prompts/schedule.js +5 -0
  127. package/dist/prompts/scroll.d.ts +13 -0
  128. package/dist/prompts/scroll.js +1 -0
  129. package/dist/prompts/seat.d.ts +17 -0
  130. package/dist/prompts/seat.js +5 -0
  131. package/dist/prompts/select-range.d.ts +8 -0
  132. package/dist/prompts/select-range.js +3 -0
  133. package/dist/prompts/select.d.ts +15 -0
  134. package/dist/prompts/select.js +2 -0
  135. package/dist/prompts/semver.d.ts +6 -0
  136. package/dist/prompts/semver.js +1 -0
  137. package/dist/prompts/shortcut.d.ts +9 -0
  138. package/dist/prompts/shortcut.js +1 -0
  139. package/dist/prompts/slider.d.ts +8 -0
  140. package/dist/prompts/slider.js +1 -0
  141. package/dist/prompts/slot.d.ts +16 -0
  142. package/dist/prompts/slot.js +8 -0
  143. package/dist/prompts/snippet.d.ts +19 -0
  144. package/dist/prompts/snippet.js +4 -0
  145. package/dist/prompts/sort-grid.d.ts +16 -0
  146. package/dist/prompts/sort-grid.js +2 -0
  147. package/dist/prompts/sort.d.ts +14 -0
  148. package/dist/prompts/sort.js +2 -0
  149. package/dist/prompts/spam.d.ts +17 -0
  150. package/dist/prompts/spam.js +2 -0
  151. package/dist/prompts/spreadsheet.d.ts +21 -0
  152. package/dist/prompts/spreadsheet.js +7 -0
  153. package/dist/prompts/table.d.ts +14 -0
  154. package/dist/prompts/table.js +3 -0
  155. package/dist/prompts/text.d.ts +17 -0
  156. package/dist/prompts/text.js +2 -0
  157. package/dist/prompts/time.d.ts +12 -0
  158. package/dist/prompts/time.js +2 -0
  159. package/dist/prompts/toggle.d.ts +8 -0
  160. package/dist/prompts/toggle.js +1 -0
  161. package/dist/prompts/transfer.d.ts +18 -0
  162. package/dist/prompts/transfer.js +5 -0
  163. package/dist/prompts/tree-select.d.ts +31 -0
  164. package/dist/prompts/tree-select.js +3 -0
  165. package/dist/prompts/tree.d.ts +20 -0
  166. package/dist/prompts/tree.js +3 -0
  167. package/dist/prompts/wait.d.ts +18 -0
  168. package/dist/prompts/wait.js +1 -0
  169. package/dist/spinner.d.ts +33 -0
  170. package/dist/spinner.js +3 -0
  171. package/dist/symbols.d.ts +33 -0
  172. package/dist/symbols.js +1 -0
  173. package/dist/tasks.d.ts +57 -0
  174. package/dist/tasks.js +1 -0
  175. package/dist/theme.d.ts +2 -0
  176. package/dist/theme.js +1 -0
  177. package/dist/types.d.ts +519 -0
  178. package/dist/types.js +1 -0
  179. package/dist/utils.d.ts +82 -0
  180. package/dist/utils.js +1 -0
  181. package/package.json +10 -10
  182. package/dist/src/ansi.js +0 -50
  183. package/dist/src/ansi.js.map +0 -1
  184. package/dist/src/base.js +0 -258
  185. package/dist/src/base.js.map +0 -1
  186. package/dist/src/core.js.map +0 -1
  187. package/dist/src/data/countries.js +0 -569
  188. package/dist/src/data/countries.js.map +0 -1
  189. package/dist/src/data/licenses.js +0 -480
  190. package/dist/src/data/licenses.js.map +0 -1
  191. package/dist/src/highlight.js +0 -185
  192. package/dist/src/highlight.js.map +0 -1
  193. package/dist/src/index.js +0 -66
  194. package/dist/src/index.js.map +0 -1
  195. package/dist/src/input.js +0 -158
  196. package/dist/src/input.js.map +0 -1
  197. package/dist/src/pipeline.js +0 -273
  198. package/dist/src/pipeline.js.map +0 -1
  199. package/dist/src/prompts/autocomplete.js +0 -171
  200. package/dist/src/prompts/autocomplete.js.map +0 -1
  201. package/dist/src/prompts/box.js +0 -225
  202. package/dist/src/prompts/box.js.map +0 -1
  203. package/dist/src/prompts/breadcrumb-search.js +0 -260
  204. package/dist/src/prompts/breadcrumb-search.js.map +0 -1
  205. package/dist/src/prompts/breadcrumb.js +0 -307
  206. package/dist/src/prompts/breadcrumb.js.map +0 -1
  207. package/dist/src/prompts/byte.js +0 -176
  208. package/dist/src/prompts/byte.js.map +0 -1
  209. package/dist/src/prompts/calculator.js +0 -243
  210. package/dist/src/prompts/calculator.js.map +0 -1
  211. package/dist/src/prompts/calendar.js +0 -430
  212. package/dist/src/prompts/calendar.js.map +0 -1
  213. package/dist/src/prompts/checkbox.js +0 -159
  214. package/dist/src/prompts/checkbox.js.map +0 -1
  215. package/dist/src/prompts/code.js +0 -271
  216. package/dist/src/prompts/code.js.map +0 -1
  217. package/dist/src/prompts/color.js +0 -165
  218. package/dist/src/prompts/color.js.map +0 -1
  219. package/dist/src/prompts/confirm.js +0 -55
  220. package/dist/src/prompts/confirm.js.map +0 -1
  221. package/dist/src/prompts/connection-string.js +0 -120
  222. package/dist/src/prompts/connection-string.js.map +0 -1
  223. package/dist/src/prompts/cron.js +0 -207
  224. package/dist/src/prompts/cron.js.map +0 -1
  225. package/dist/src/prompts/curl-utils.js +0 -71
  226. package/dist/src/prompts/curl-utils.js.map +0 -1
  227. package/dist/src/prompts/curl.js +0 -431
  228. package/dist/src/prompts/curl.js.map +0 -1
  229. package/dist/src/prompts/data-inspector.js +0 -261
  230. package/dist/src/prompts/data-inspector.js.map +0 -1
  231. package/dist/src/prompts/date.js +0 -185
  232. package/dist/src/prompts/date.js.map +0 -1
  233. package/dist/src/prompts/dependency.js +0 -283
  234. package/dist/src/prompts/dependency.js.map +0 -1
  235. package/dist/src/prompts/dial.js +0 -124
  236. package/dist/src/prompts/dial.js.map +0 -1
  237. package/dist/src/prompts/diff.js +0 -118
  238. package/dist/src/prompts/diff.js.map +0 -1
  239. package/dist/src/prompts/draw.js +0 -191
  240. package/dist/src/prompts/draw.js.map +0 -1
  241. package/dist/src/prompts/editor.js +0 -234
  242. package/dist/src/prompts/editor.js.map +0 -1
  243. package/dist/src/prompts/emoji.js +0 -226
  244. package/dist/src/prompts/emoji.js.map +0 -1
  245. package/dist/src/prompts/exec.js +0 -151
  246. package/dist/src/prompts/exec.js.map +0 -1
  247. package/dist/src/prompts/file.js +0 -217
  248. package/dist/src/prompts/file.js.map +0 -1
  249. package/dist/src/prompts/form.js +0 -241
  250. package/dist/src/prompts/form.js.map +0 -1
  251. package/dist/src/prompts/fuzzy-multi-column.js +0 -161
  252. package/dist/src/prompts/fuzzy-multi-column.js.map +0 -1
  253. package/dist/src/prompts/fuzzy.js +0 -147
  254. package/dist/src/prompts/fuzzy.js.map +0 -1
  255. package/dist/src/prompts/gauge.js +0 -137
  256. package/dist/src/prompts/gauge.js.map +0 -1
  257. package/dist/src/prompts/grid.js +0 -191
  258. package/dist/src/prompts/grid.js.map +0 -1
  259. package/dist/src/prompts/heatmap.js +0 -147
  260. package/dist/src/prompts/heatmap.js.map +0 -1
  261. package/dist/src/prompts/ip.js +0 -138
  262. package/dist/src/prompts/ip.js.map +0 -1
  263. package/dist/src/prompts/kanban.js +0 -233
  264. package/dist/src/prompts/kanban.js.map +0 -1
  265. package/dist/src/prompts/keypress.js +0 -54
  266. package/dist/src/prompts/keypress.js.map +0 -1
  267. package/dist/src/prompts/license.js +0 -144
  268. package/dist/src/prompts/license.js.map +0 -1
  269. package/dist/src/prompts/list.js +0 -124
  270. package/dist/src/prompts/list.js.map +0 -1
  271. package/dist/src/prompts/map.js +0 -262
  272. package/dist/src/prompts/map.js.map +0 -1
  273. package/dist/src/prompts/match.js +0 -271
  274. package/dist/src/prompts/match.js.map +0 -1
  275. package/dist/src/prompts/miller.js +0 -228
  276. package/dist/src/prompts/miller.js.map +0 -1
  277. package/dist/src/prompts/multi-column-select.js +0 -176
  278. package/dist/src/prompts/multi-column-select.js.map +0 -1
  279. package/dist/src/prompts/multi-range.js +0 -189
  280. package/dist/src/prompts/multi-range.js.map +0 -1
  281. package/dist/src/prompts/multi-select.js +0 -183
  282. package/dist/src/prompts/multi-select.js.map +0 -1
  283. package/dist/src/prompts/number.js +0 -166
  284. package/dist/src/prompts/number.js.map +0 -1
  285. package/dist/src/prompts/otp.js +0 -107
  286. package/dist/src/prompts/otp.js.map +0 -1
  287. package/dist/src/prompts/pattern.js +0 -252
  288. package/dist/src/prompts/pattern.js.map +0 -1
  289. package/dist/src/prompts/phone.js +0 -398
  290. package/dist/src/prompts/phone.js.map +0 -1
  291. package/dist/src/prompts/quiz-select.js +0 -114
  292. package/dist/src/prompts/quiz-select.js.map +0 -1
  293. package/dist/src/prompts/quiz-text.js +0 -98
  294. package/dist/src/prompts/quiz-text.js.map +0 -1
  295. package/dist/src/prompts/range.js +0 -164
  296. package/dist/src/prompts/range.js.map +0 -1
  297. package/dist/src/prompts/rating.js +0 -83
  298. package/dist/src/prompts/rating.js.map +0 -1
  299. package/dist/src/prompts/regex.js +0 -145
  300. package/dist/src/prompts/regex.js.map +0 -1
  301. package/dist/src/prompts/region.js +0 -170
  302. package/dist/src/prompts/region.js.map +0 -1
  303. package/dist/src/prompts/schedule.js +0 -270
  304. package/dist/src/prompts/schedule.js.map +0 -1
  305. package/dist/src/prompts/scroll.js +0 -155
  306. package/dist/src/prompts/scroll.js.map +0 -1
  307. package/dist/src/prompts/seat.js +0 -164
  308. package/dist/src/prompts/seat.js.map +0 -1
  309. package/dist/src/prompts/select-range.js +0 -148
  310. package/dist/src/prompts/select-range.js.map +0 -1
  311. package/dist/src/prompts/select.js +0 -163
  312. package/dist/src/prompts/select.js.map +0 -1
  313. package/dist/src/prompts/semver.js +0 -43
  314. package/dist/src/prompts/semver.js.map +0 -1
  315. package/dist/src/prompts/shortcut.js +0 -133
  316. package/dist/src/prompts/shortcut.js.map +0 -1
  317. package/dist/src/prompts/slider.js +0 -69
  318. package/dist/src/prompts/slider.js.map +0 -1
  319. package/dist/src/prompts/slot.js +0 -117
  320. package/dist/src/prompts/slot.js.map +0 -1
  321. package/dist/src/prompts/snippet.js +0 -228
  322. package/dist/src/prompts/snippet.js.map +0 -1
  323. package/dist/src/prompts/sort-grid.js +0 -151
  324. package/dist/src/prompts/sort-grid.js.map +0 -1
  325. package/dist/src/prompts/sort.js +0 -166
  326. package/dist/src/prompts/sort.js.map +0 -1
  327. package/dist/src/prompts/spam.js +0 -80
  328. package/dist/src/prompts/spam.js.map +0 -1
  329. package/dist/src/prompts/spreadsheet.js +0 -240
  330. package/dist/src/prompts/spreadsheet.js.map +0 -1
  331. package/dist/src/prompts/table.js +0 -120
  332. package/dist/src/prompts/table.js.map +0 -1
  333. package/dist/src/prompts/text.js +0 -317
  334. package/dist/src/prompts/text.js.map +0 -1
  335. package/dist/src/prompts/time.js +0 -211
  336. package/dist/src/prompts/time.js.map +0 -1
  337. package/dist/src/prompts/toggle.js +0 -53
  338. package/dist/src/prompts/toggle.js.map +0 -1
  339. package/dist/src/prompts/transfer.js +0 -207
  340. package/dist/src/prompts/transfer.js.map +0 -1
  341. package/dist/src/prompts/tree-select.js +0 -270
  342. package/dist/src/prompts/tree-select.js.map +0 -1
  343. package/dist/src/prompts/tree.js +0 -233
  344. package/dist/src/prompts/tree.js.map +0 -1
  345. package/dist/src/prompts/wait.js +0 -79
  346. package/dist/src/prompts/wait.js.map +0 -1
  347. package/dist/src/spinner.js +0 -105
  348. package/dist/src/spinner.js.map +0 -1
  349. package/dist/src/symbols.js +0 -66
  350. package/dist/src/symbols.js.map +0 -1
  351. package/dist/src/tasks.js +0 -231
  352. package/dist/src/tasks.js.map +0 -1
  353. package/dist/src/theme.js +0 -29
  354. package/dist/src/theme.js.map +0 -1
  355. package/dist/src/types.js +0 -8
  356. package/dist/src/types.js.map +0 -1
  357. package/dist/src/utils.js +0 -480
  358. package/dist/src/utils.js.map +0 -1
@@ -1,104 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "MepCLI", {
6
- enumerable: true,
7
- get: function() {
8
- return MepCLI;
9
- }
10
- });
11
- const _theme = require("./theme");
12
- const _spinner = require("./spinner");
13
- const _text = require("./prompts/text");
14
- const _select = require("./prompts/select");
15
- const _checkbox = require("./prompts/checkbox");
16
- const _confirm = require("./prompts/confirm");
17
- const _toggle = require("./prompts/toggle");
18
- const _number = require("./prompts/number");
19
- const _list = require("./prompts/list");
20
- const _slider = require("./prompts/slider");
21
- const _range = require("./prompts/range");
22
- const _transfer = require("./prompts/transfer");
23
- const _cron = require("./prompts/cron");
24
- const _date = require("./prompts/date");
25
- const _file = require("./prompts/file");
26
- const _multiselect = require("./prompts/multi-select");
27
- const _rating = require("./prompts/rating");
28
- const _autocomplete = require("./prompts/autocomplete");
29
- const _sort = require("./prompts/sort");
30
- const _table = require("./prompts/table");
31
- const _editor = require("./prompts/editor");
32
- const _tree = require("./prompts/tree");
33
- const _keypress = require("./prompts/keypress");
34
- const _form = require("./prompts/form");
35
- const _snippet = require("./prompts/snippet");
36
- const _spam = require("./prompts/spam");
37
- const _wait = require("./prompts/wait");
38
- const _code = require("./prompts/code");
39
- const _treeselect = require("./prompts/tree-select");
40
- const _color = require("./prompts/color");
41
- const _grid = require("./prompts/grid");
42
- const _calendar = require("./prompts/calendar");
43
- const _map = require("./prompts/map");
44
- const _semver = require("./prompts/semver");
45
- const _ip = require("./prompts/ip");
46
- const _otp = require("./prompts/otp");
47
- const _quizselect = require("./prompts/quiz-select");
48
- const _quiztext = require("./prompts/quiz-text");
49
- const _kanban = require("./prompts/kanban");
50
- const _time = require("./prompts/time");
51
- const _heatmap = require("./prompts/heatmap");
52
- const _byte = require("./prompts/byte");
53
- const _slot = require("./prompts/slot");
54
- const _gauge = require("./prompts/gauge");
55
- const _calculator = require("./prompts/calculator");
56
- const _emoji = require("./prompts/emoji");
57
- const _match = require("./prompts/match");
58
- const _diff = require("./prompts/diff");
59
- const _dial = require("./prompts/dial");
60
- const _draw = require("./prompts/draw");
61
- const _multicolumnselect = require("./prompts/multi-column-select");
62
- const _fuzzy = require("./prompts/fuzzy");
63
- const _miller = require("./prompts/miller");
64
- const _pattern = require("./prompts/pattern");
65
- const _region = require("./prompts/region");
66
- const _spreadsheet = require("./prompts/spreadsheet");
67
- const _scroll = require("./prompts/scroll");
68
- const _breadcrumb = require("./prompts/breadcrumb");
69
- const _schedule = require("./prompts/schedule");
70
- const _datainspector = require("./prompts/data-inspector");
71
- const _exec = require("./prompts/exec");
72
- const _shortcut = require("./prompts/shortcut");
73
- const _seat = require("./prompts/seat");
74
- const _selectrange = require("./prompts/select-range");
75
- const _sortgrid = require("./prompts/sort-grid");
76
- const _dependency = require("./prompts/dependency");
77
- const _license = require("./prompts/license");
78
- const _regex = require("./prompts/regex");
79
- const _box = require("./prompts/box");
80
- const _phone = require("./prompts/phone");
81
- const _fuzzymulticolumn = require("./prompts/fuzzy-multi-column");
82
- const _multirange = require("./prompts/multi-range");
83
- const _breadcrumbsearch = require("./prompts/breadcrumb-search");
84
- const _connectionstring = require("./prompts/connection-string");
85
- const _curl = require("./prompts/curl");
86
- const _pipeline = require("./pipeline");
87
- const _tasks = require("./tasks");
88
- function _define_property(obj, key, value) {
89
- if (key in obj) {
90
- Object.defineProperty(obj, key, {
91
- value: value,
92
- enumerable: true,
93
- configurable: true,
94
- writable: true
95
- });
96
- } else {
97
- obj[key] = value;
98
- }
99
- return obj;
100
- }
101
- let MepCLI = class MepCLI {
1
+ import { TextOptions, SelectOptions, ConfirmOptions, CheckboxOptions, ThemeConfig, NumberOptions, ToggleOptions, ListOptions, SliderOptions, DateOptions, FileOptions, MultiSelectOptions, RatingOptions, AutocompleteOptions, SortOptions, TableOptions, EditorOptions, TreeOptions, KeypressOptions, FormOptions, SnippetOptions, SpamOptions, WaitOptions, CodeOptions, TreeSelectOptions, RangeOptions, TransferOptions, CronOptions, ColorOptions, GridOptions, CalendarOptions, MapOptions, SemVerOptions, IPOptions, OTPOptions, QuizSelectOptions, QuizTextOptions, KanbanOptions, KanbanItem, TimeOptions, HeatmapOptions, ByteOptions, PatternOptions, RegionOptions, SpreadsheetOptions, SelectRangeOptions, SortGridOptions } from './types';
2
+ import { SlotOptions, GaugeOptions, CalculatorOptions, EmojiOptions, MatchOptions, DiffOptions, DialOptions, DrawOptions, MultiColumnSelectOptions, FuzzySelectOptions, MillerOptions, ScrollOptions, BreadcrumbOptions, ScheduleOptions, ScheduleTask, DataInspectorOptions, ExecOptions, ShortcutOptions, ShortcutResult, SeatOptions, DependencyOptions, LicenseOptions, RegexOptions, BoxOptions, PhoneOptions } from './types';
3
+ import { Spinner } from './spinner';
4
+ import { ConnectionStringOptions, ConnectionStringResult } from './prompts/connection-string';
5
+ import { CurlOptions, CurlResult } from './prompts/curl';
6
+ import { Pipeline } from './pipeline';
7
+ import { TaskRunner } from './tasks';
8
+ import { TaskGroupOptions, ExtensionRegistry } from './types';
9
+ import { PromptConstructor } from './base';
10
+ /**
11
+ * Public Facade for Mep
12
+ */
13
+ export declare class MepCLI {
14
+ static theme: ThemeConfig;
15
+ private static registry;
16
+ static register<K extends keyof ExtensionRegistry>(type: K, promptClass: PromptConstructor<ExtensionRegistry[K]["result"], ExtensionRegistry[K]["options"]>): void;
17
+ static prompt<K extends keyof ExtensionRegistry>(options: {
18
+ type: K;
19
+ } & ExtensionRegistry[K]["options"]): Promise<ExtensionRegistry[K]["result"]>;
102
20
  /**
103
21
  * Creates a new Spinner instance to indicate background activity.
104
22
  * @example
@@ -109,9 +27,8 @@ let MepCLI = class MepCLI {
109
27
  * @param message - The initial text to display next to the spinner.
110
28
  * @returns A Spinner instance to control the animation.
111
29
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/spinner.ts}
112
- */ static spinner(message) {
113
- return new _spinner.Spinner(message);
114
- }
30
+ */
31
+ static spinner(message: string): Spinner;
115
32
  /**
116
33
  * Creates a new TaskRunner for managing multiple concurrent tasks (spinners/progress bars).
117
34
  * @example
@@ -122,9 +39,8 @@ let MepCLI = class MepCLI {
122
39
  * @param options - Configuration for concurrency and renderer style.
123
40
  * @returns A TaskRunner instance.
124
41
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/task-runner.ts}
125
- */ static tasks(options) {
126
- return new _tasks.TaskRunner(options);
127
- }
42
+ */
43
+ static tasks(options?: TaskGroupOptions): TaskRunner;
128
44
  /**
129
45
  * Creates a new Pipeline instance for sequential workflow execution.
130
46
  * @example
@@ -135,9 +51,8 @@ let MepCLI = class MepCLI {
135
51
  * .run();
136
52
  * @returns A fluent Pipeline builder.
137
53
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/pipeline-demo.ts}
138
- */ static pipeline() {
139
- return new _pipeline.Pipeline();
140
- }
54
+ */
55
+ static pipeline<Ctx extends Record<string, any> = Record<string, any>>(): Pipeline<Ctx>;
141
56
  /**
142
57
  * Standard text input prompt.
143
58
  * @example
@@ -149,9 +64,8 @@ let MepCLI = class MepCLI {
149
64
  * @param options - Configuration options including validation and placeholder.
150
65
  * @returns A promise resolving to the user's input string.
151
66
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
152
- */ static text(options) {
153
- return new _text.TextPrompt(options).run();
154
- }
67
+ */
68
+ static text(options: TextOptions): Promise<string>;
155
69
  /**
156
70
  * Single selection prompt from a list of choices.
157
71
  * @example
@@ -165,9 +79,8 @@ let MepCLI = class MepCLI {
165
79
  * @param options - Choices and configuration.
166
80
  * @returns A promise resolving to the selected value (V).
167
81
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
168
- */ static select(options) {
169
- return new _select.SelectPrompt(options).run();
170
- }
82
+ */
83
+ static select<const V>(options: SelectOptions<V>): Promise<V>;
171
84
  /**
172
85
  * Multiple selection prompt with checkboxes.
173
86
  * @example
@@ -182,9 +95,8 @@ let MepCLI = class MepCLI {
182
95
  * @param options - Choices, limits (min/max), and initial state.
183
96
  * @returns A promise resolving to an array of selected values (V[]).
184
97
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
185
- */ static checkbox(options) {
186
- return new _checkbox.CheckboxPrompt(options).run();
187
- }
98
+ */
99
+ static checkbox<const V>(options: CheckboxOptions<V>): Promise<V[]>;
188
100
  /**
189
101
  * Boolean confirmation prompt (Y/n).
190
102
  * @example
@@ -195,9 +107,8 @@ let MepCLI = class MepCLI {
195
107
  * @param options - Message and initial boolean state.
196
108
  * @returns A promise resolving to true or false.
197
109
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
198
- */ static confirm(options) {
199
- return new _confirm.ConfirmPrompt(options).run();
200
- }
110
+ */
111
+ static confirm(options: ConfirmOptions): Promise<boolean>;
201
112
  /**
202
113
  * Secure password input (masked with *).
203
114
  * @example
@@ -208,12 +119,8 @@ let MepCLI = class MepCLI {
208
119
  * @param options - Same as TextOptions but defaults to hidden input.
209
120
  * @returns A promise resolving to the password string.
210
121
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
211
- */ static password(options) {
212
- return new _text.TextPrompt({
213
- ...options,
214
- isPassword: true
215
- }).run();
216
- }
122
+ */
123
+ static password(options: TextOptions): Promise<string>;
217
124
  /**
218
125
  * Secret input prompt (no visual feedback).
219
126
  * @example
@@ -223,12 +130,8 @@ let MepCLI = class MepCLI {
223
130
  * @param options - Same as TextOptions, visual output is suppressed.
224
131
  * @returns A promise resolving to the secret string.
225
132
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
226
- */ static secret(options) {
227
- return new _text.TextPrompt({
228
- ...options,
229
- mask: ''
230
- }).run();
231
- }
133
+ */
134
+ static secret(options: TextOptions): Promise<string>;
232
135
  /**
233
136
  * Numeric input prompt with increments.
234
137
  * @example
@@ -241,9 +144,8 @@ let MepCLI = class MepCLI {
241
144
  * @param options - Min, max, step, and initial value.
242
145
  * @returns A promise resolving to the entered number.
243
146
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
244
- */ static number(options) {
245
- return new _number.NumberPrompt(options).run();
246
- }
147
+ */
148
+ static number(options: NumberOptions): Promise<number>;
247
149
  /**
248
150
  * Binary toggle switch.
249
151
  * @example
@@ -256,9 +158,8 @@ let MepCLI = class MepCLI {
256
158
  * @param options - Text labels for states and initial value.
257
159
  * @returns A promise resolving to the boolean state.
258
160
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
259
- */ static toggle(options) {
260
- return new _toggle.TogglePrompt(options).run();
261
- }
161
+ */
162
+ static toggle(options: ToggleOptions): Promise<boolean>;
262
163
  /**
263
164
  * Tag list input (comma separated or enter to add).
264
165
  * @example
@@ -270,9 +171,8 @@ let MepCLI = class MepCLI {
270
171
  * @param options - Placeholder and initial list.
271
172
  * @returns A promise resolving to an array of strings.
272
173
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/form-prompts.ts}
273
- */ static list(options) {
274
- return new _list.ListPrompt(options).run();
275
- }
174
+ */
175
+ static list(options: ListOptions): Promise<string[]>;
276
176
  /**
277
177
  * Slider input for selecting a number within a range.
278
178
  * @example
@@ -286,9 +186,8 @@ let MepCLI = class MepCLI {
286
186
  * @param options - Min/max range, step, and unit label.
287
187
  * @returns A promise resolving to the selected number.
288
188
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
289
- */ static slider(options) {
290
- return new _slider.SliderPrompt(options).run();
291
- }
189
+ */
190
+ static slider(options: SliderOptions): Promise<number>;
292
191
  /**
293
192
  * Dual-handle slider for selecting a numeric range.
294
193
  * @example
@@ -301,9 +200,8 @@ let MepCLI = class MepCLI {
301
200
  * @param options - Range bounds and initial start/end values.
302
201
  * @returns A promise resolving to a tuple `[start, end]`.
303
202
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
304
- */ static range(options) {
305
- return new _range.RangePrompt(options).run();
306
- }
203
+ */
204
+ static range(options: RangeOptions): Promise<[number, number]>;
307
205
  /**
308
206
  * Transfer list for moving items between two lists.
309
207
  * @example
@@ -315,9 +213,8 @@ let MepCLI = class MepCLI {
315
213
  * @param options - Source and target lists.
316
214
  * @returns A promise resolving to `[sourceItems, targetItems]`.
317
215
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
318
- */ static transfer(options) {
319
- return new _transfer.TransferPrompt(options).run();
320
- }
216
+ */
217
+ static transfer<const V>(options: TransferOptions<V>): Promise<[V[], V[]]>;
321
218
  /**
322
219
  * Cron expression generator/validator.
323
220
  * @example
@@ -328,9 +225,8 @@ let MepCLI = class MepCLI {
328
225
  * @param options - Initial cron string and placeholder.
329
226
  * @returns A promise resolving to the valid cron string.
330
227
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/cron-prompt.ts}
331
- */ static cron(options) {
332
- return new _cron.CronPrompt(options).run();
333
- }
228
+ */
229
+ static cron(options: CronOptions): Promise<string>;
334
230
  /**
335
231
  * Interactive date picker.
336
232
  * @example
@@ -342,9 +238,8 @@ let MepCLI = class MepCLI {
342
238
  * @param options - Min/max dates and localization.
343
239
  * @returns A promise resolving to the selected Date object.
344
240
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/calendar-prompt.ts}
345
- */ static date(options) {
346
- return new _date.DatePrompt(options).run();
347
- }
241
+ */
242
+ static date(options: DateOptions): Promise<Date>;
348
243
  /**
349
244
  * File system explorer.
350
245
  * @example
@@ -356,9 +251,8 @@ let MepCLI = class MepCLI {
356
251
  * @param options - Root path, allowed extensions, and directory filtering.
357
252
  * @returns A promise resolving to the absolute path of the selected file.
358
253
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/filesystem-prompts.ts}
359
- */ static file(options) {
360
- return new _file.FilePrompt(options).run();
361
- }
254
+ */
255
+ static file(options: FileOptions): Promise<string>;
362
256
  /**
363
257
  * Multi-select checkbox with search support (alias for checkbox logic).
364
258
  * @example
@@ -372,9 +266,8 @@ let MepCLI = class MepCLI {
372
266
  * @param options - Same as CheckboxOptions.
373
267
  * @returns A promise resolving to an array of selected values.
374
268
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
375
- */ static multiSelect(options) {
376
- return new _multiselect.MultiSelectPrompt(options).run();
377
- }
269
+ */
270
+ static multiSelect<const V>(options: MultiSelectOptions<V>): Promise<V[]>;
378
271
  /**
379
272
  * Star rating input.
380
273
  * @example
@@ -387,9 +280,8 @@ let MepCLI = class MepCLI {
387
280
  * @param options - Min/max stars.
388
281
  * @returns A promise resolving to the numeric rating.
389
282
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
390
- */ static rating(options) {
391
- return new _rating.RatingPrompt(options).run();
392
- }
283
+ */
284
+ static rating(options: RatingOptions): Promise<number>;
393
285
  /**
394
286
  * Autocomplete search with async data fetching.
395
287
  * @example
@@ -403,9 +295,8 @@ let MepCLI = class MepCLI {
403
295
  * @param options - `suggest` callback to filter/fetch choices.
404
296
  * @returns A promise resolving to the selected value.
405
297
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
406
- */ static autocomplete(options) {
407
- return new _autocomplete.AutocompletePrompt(options).run();
408
- }
298
+ */
299
+ static autocomplete<const V>(options: AutocompleteOptions<V>): Promise<V>;
409
300
  /**
410
301
  * List sorting prompt.
411
302
  * @example
@@ -416,9 +307,8 @@ let MepCLI = class MepCLI {
416
307
  * @param options - Array of strings to be reordered.
417
308
  * @returns A promise resolving to the reordered array of strings.
418
309
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
419
- */ static sort(options) {
420
- return new _sort.SortPrompt(options).run();
421
- }
310
+ */
311
+ static sort(options: SortOptions): Promise<string[]>;
422
312
  /**
423
313
  * Interactive data table with row selection.
424
314
  * @example
@@ -433,9 +323,8 @@ let MepCLI = class MepCLI {
433
323
  * @param options - Columns definition and row data.
434
324
  * @returns A promise resolving to the `value` of the selected row.
435
325
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/data-visualization.ts}
436
- */ static table(options) {
437
- return new _table.TablePrompt(options).run();
438
- }
326
+ */
327
+ static table<const V>(options: TableOptions<V>): Promise<V>;
439
328
  /**
440
329
  * Open external editor (vim/nano/code) for long input.
441
330
  * @example
@@ -446,9 +335,8 @@ let MepCLI = class MepCLI {
446
335
  * @param options - File extension for syntax highlighting.
447
336
  * @returns A promise resolving to the saved content.
448
337
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/form-prompts.ts}
449
- */ static editor(options) {
450
- return new _editor.EditorPrompt(options).run();
451
- }
338
+ */
339
+ static editor(options: EditorOptions): Promise<string>;
452
340
  /**
453
341
  * Hierarchical tree selection.
454
342
  * @example
@@ -463,9 +351,8 @@ let MepCLI = class MepCLI {
463
351
  * @param options - Tree structure data.
464
352
  * @returns A promise resolving to the selected node's value.
465
353
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/tree-prompt.ts}
466
- */ static tree(options) {
467
- return new _tree.TreePrompt(options).run();
468
- }
354
+ */
355
+ static tree<const V>(options: TreeOptions<V>): Promise<V>;
469
356
  /**
470
357
  * Detect single keypress event.
471
358
  * @example
@@ -475,9 +362,8 @@ let MepCLI = class MepCLI {
475
362
  * @param options - Optional allowed keys filter.
476
363
  * @returns A promise resolving to the pressed key name.
477
364
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
478
- */ static keypress(options) {
479
- return new _keypress.KeypressPrompt(options).run();
480
- }
365
+ */
366
+ static keypress(options: KeypressOptions): Promise<string>;
481
367
  /**
482
368
  * Multi-field form input.
483
369
  * @example
@@ -492,9 +378,8 @@ let MepCLI = class MepCLI {
492
378
  * @param options - Array of field definitions.
493
379
  * @returns A promise resolving to an object with field names as keys.
494
380
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/form-prompts.ts}
495
- */ static form(options) {
496
- return new _form.FormPrompt(options).run();
497
- }
381
+ */
382
+ static form(options: FormOptions): Promise<Record<string, string>>;
498
383
  /**
499
384
  * Templated snippet generator.
500
385
  * @example
@@ -511,9 +396,8 @@ let MepCLI = class MepCLI {
511
396
  * @param options - Template string with {{variables}} and field config.
512
397
  * @returns A promise resolving to the compiled string.
513
398
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/snippet-prompt.ts}
514
- */ static snippet(options) {
515
- return new _snippet.SnippetPrompt(options).run();
516
- }
399
+ */
400
+ static snippet(options: SnippetOptions): Promise<string>;
517
401
  /**
518
402
  * Anti-spam / Bot detection prompt.
519
403
  * @example
@@ -525,9 +409,8 @@ let MepCLI = class MepCLI {
525
409
  * @param options - Threshold frequency and key to mash.
526
410
  * @returns A promise resolving to true (pass) or false (fail).
527
411
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/spam-prompt.ts}
528
- */ static spam(options) {
529
- return new _spam.SpamPrompt(options).run();
530
- }
412
+ */
413
+ static spam(options: SpamOptions): Promise<boolean>;
531
414
  /**
532
415
  * Pause execution for a set time (with progress).
533
416
  * @example
@@ -538,9 +421,8 @@ let MepCLI = class MepCLI {
538
421
  * @param options - Duration in seconds.
539
422
  * @returns A promise resolving after the delay.
540
423
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/wait-prompt.ts}
541
- */ static wait(options) {
542
- return new _wait.WaitPrompt(options).run();
543
- }
424
+ */
425
+ static wait(options: WaitOptions): Promise<void>;
544
426
  /**
545
427
  * Source code editor with syntax highlighting.
546
428
  * @example
@@ -552,9 +434,8 @@ let MepCLI = class MepCLI {
552
434
  * @param options - Language, initial template, and syntax highlighting.
553
435
  * @returns A promise resolving to the edited code string.
554
436
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/code-prompt.ts}
555
- */ static code(options) {
556
- return new _code.CodePrompt(options).run();
557
- }
437
+ */
438
+ static code(options: CodeOptions): Promise<string>;
558
439
  /**
559
440
  * Tree Select Prompt (Multi-selection).
560
441
  * @example
@@ -574,9 +455,8 @@ let MepCLI = class MepCLI {
574
455
  * When used in a long sequence of prompts, this component may experience
575
456
  * an input delay. If it feels "blocked", simply press 'Enter' once
576
457
  * to refresh the TTY stream.
577
- */ static treeSelect(options) {
578
- return new _treeselect.TreeSelectPrompt(options).run();
579
- }
458
+ */
459
+ static treeSelect<const V>(options: TreeSelectOptions<V>): Promise<V[]>;
580
460
  /**
581
461
  * Color picker (Hex, RGB, HSL).
582
462
  * @example
@@ -588,9 +468,8 @@ let MepCLI = class MepCLI {
588
468
  * @param options - Format preference and initial value.
589
469
  * @returns A promise resolving to the color string.
590
470
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/color-prompt.ts}
591
- */ static color(options) {
592
- return new _color.ColorPrompt(options).run();
593
- }
471
+ */
472
+ static color(options: ColorOptions): Promise<string>;
594
473
  /**
595
474
  * 2D Grid Checkbox (Boolean Matrix).
596
475
  * @example
@@ -602,9 +481,8 @@ let MepCLI = class MepCLI {
602
481
  * @param options - Row/Column labels.
603
482
  * @returns A promise resolving to a 2D boolean array.
604
483
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/grid-prompt.ts}
605
- */ static grid(options) {
606
- return new _grid.GridPrompt(options).run();
607
- }
484
+ */
485
+ static grid(options: GridOptions): Promise<boolean[][]>;
608
486
  /**
609
487
  * Calendar picker for dates or ranges.
610
488
  * @example
@@ -615,9 +493,8 @@ let MepCLI = class MepCLI {
615
493
  * @param options - Selection mode (single/range) and bounds.
616
494
  * @returns A promise resolving to a Date or [Date, Date].
617
495
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/calendar-prompt.ts}
618
- */ static calendar(options) {
619
- return new _calendar.CalendarPrompt(options).run();
620
- }
496
+ */
497
+ static calendar(options: CalendarOptions): Promise<Date | [Date, Date]>;
621
498
  /**
622
499
  * Key-Value Map editor.
623
500
  * @example
@@ -628,9 +505,8 @@ let MepCLI = class MepCLI {
628
505
  * @param options - Initial key-value pairs.
629
506
  * @returns A promise resolving to a record of strings.
630
507
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/map-prompt.ts}
631
- */ static map(options) {
632
- return new _map.MapPrompt(options).run();
633
- }
508
+ */
509
+ static map(options: MapOptions): Promise<Record<string, string>>;
634
510
  /**
635
511
  * Semantic Versioning incrementer.
636
512
  * @example
@@ -641,9 +517,8 @@ let MepCLI = class MepCLI {
641
517
  * @param options - The current version string.
642
518
  * @returns A promise resolving to the new version string.
643
519
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/semver-prompt.ts}
644
- */ static semver(options) {
645
- return new _semver.SemVerPrompt(options).run();
646
- }
520
+ */
521
+ static semver(options: SemVerOptions): Promise<string>;
647
522
  /**
648
523
  * IP Address input validator.
649
524
  * @example
@@ -654,9 +529,8 @@ let MepCLI = class MepCLI {
654
529
  * @param options - Initial value.
655
530
  * @returns A promise resolving to the valid IP string.
656
531
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/ip-prompt.ts}
657
- */ static ip(options) {
658
- return new _ip.IPPrompt(options).run();
659
- }
532
+ */
533
+ static ip(options: IPOptions): Promise<string>;
660
534
  /**
661
535
  * One-Time Password / Pin Code input.
662
536
  * @example
@@ -667,9 +541,8 @@ let MepCLI = class MepCLI {
667
541
  * @param options - Length and masking options.
668
542
  * @returns A promise resolving to the entered code.
669
543
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/otp-prompt.ts}
670
- */ static otp(options) {
671
- return new _otp.OTPPrompt(options).run();
672
- }
544
+ */
545
+ static otp(options: OTPOptions): Promise<string>;
673
546
  /**
674
547
  * Multiple choice quiz.
675
548
  * @example
@@ -684,9 +557,8 @@ let MepCLI = class MepCLI {
684
557
  * @param options - Choices and correct answer logic.
685
558
  * @returns A promise resolving to the selected value.
686
559
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/quiz-select-prompt.ts}
687
- */ static quizSelect(options) {
688
- return new _quizselect.QuizSelectPrompt(options).run();
689
- }
560
+ */
561
+ static quizSelect<const V>(options: QuizSelectOptions<V>): Promise<V>;
690
562
  /**
691
563
  * Text-based quiz with verification.
692
564
  * @example
@@ -698,9 +570,8 @@ let MepCLI = class MepCLI {
698
570
  * @param options - Correct answer string or validation function.
699
571
  * @returns A promise resolving to the input string.
700
572
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/quiz-text-prompt.ts}
701
- */ static quizText(options) {
702
- return new _quiztext.QuizTextPrompt(options).run();
703
- }
573
+ */
574
+ static quizText(options: QuizTextOptions): Promise<string>;
704
575
  /**
705
576
  * Kanban board for organizing items.
706
577
  * @example
@@ -714,9 +585,8 @@ let MepCLI = class MepCLI {
714
585
  * @param options - Columns and their items.
715
586
  * @returns A promise resolving to the final column state.
716
587
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/kanban-prompt.ts}
717
- */ static kanban(options) {
718
- return new _kanban.KanbanPrompt(options).run();
719
- }
588
+ */
589
+ static kanban<V extends KanbanItem>(options: KanbanOptions<V>): Promise<Record<string, V[]>>;
720
590
  /**
721
591
  * Time picker (HH:MM AM/PM).
722
592
  * @example
@@ -727,9 +597,8 @@ let MepCLI = class MepCLI {
727
597
  * @param options - 12h/24h format and step intervals.
728
598
  * @returns A promise resolving to the time string.
729
599
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/time-prompt.ts}
730
- */ static time(options) {
731
- return new _time.TimePrompt(options).run();
732
- }
600
+ */
601
+ static time(options: TimeOptions): Promise<string>;
733
602
  /**
734
603
  * Heatmap/Weekly schedule selector.
735
604
  * @example
@@ -745,9 +614,8 @@ let MepCLI = class MepCLI {
745
614
  * @param options - Grid labels and color scale legend.
746
615
  * @returns A promise resolving to a 2D array of values.
747
616
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/heatmap-prompt.ts}
748
- */ static heatmap(options) {
749
- return new _heatmap.HeatmapPrompt(options).run();
750
- }
617
+ */
618
+ static heatmap(options: HeatmapOptions): Promise<number[][]>;
751
619
  /**
752
620
  * Byte size input (KB, MB, GB).
753
621
  * @example
@@ -758,9 +626,8 @@ let MepCLI = class MepCLI {
758
626
  * @param options - Min/Max bytes.
759
627
  * @returns A promise resolving to the number of bytes.
760
628
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/byte-prompt.ts}
761
- */ static byte(options) {
762
- return new _byte.BytePrompt(options).run();
763
- }
629
+ */
630
+ static byte(options: ByteOptions): Promise<number>;
764
631
  /**
765
632
  * Slot machine style spinner.
766
633
  * @example
@@ -772,9 +639,8 @@ let MepCLI = class MepCLI {
772
639
  * @param options - Items to cycle through.
773
640
  * @returns A promise resolving to the selected item string.
774
641
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/slot-prompt.ts}
775
- */ static slot(options) {
776
- return new _slot.SlotPrompt(options).run();
777
- }
642
+ */
643
+ static slot(options: SlotOptions): Promise<string>;
778
644
  /**
779
645
  * Rhythm game style gauge input.
780
646
  * @example
@@ -785,9 +651,8 @@ let MepCLI = class MepCLI {
785
651
  * @param options - Width and difficulty (safeZone).
786
652
  * @returns A promise resolving to 'success' or 'fail'.
787
653
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/gauge-prompt.ts}
788
- */ static gauge(options) {
789
- return new _gauge.GaugePrompt(options).run();
790
- }
654
+ */
655
+ static gauge(options: GaugeOptions): Promise<string>;
791
656
  /**
792
657
  * Interactive calculator.
793
658
  * @example
@@ -798,9 +663,8 @@ let MepCLI = class MepCLI {
798
663
  * @param options - Initial expression.
799
664
  * @returns A promise resolving to the numeric result.
800
665
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
801
- */ static calculator(options) {
802
- return new _calculator.CalculatorPrompt(options).run();
803
- }
666
+ */
667
+ static calculator(options: CalculatorOptions): Promise<number>;
804
668
  /**
805
669
  * Emoji picker.
806
670
  * @example
@@ -814,9 +678,8 @@ let MepCLI = class MepCLI {
814
678
  * @param options - List of emojis and recent history.
815
679
  * @returns A promise resolving to the selected emoji name/char.
816
680
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
817
- */ static emoji(options) {
818
- return new _emoji.EmojiPrompt(options).run();
819
- }
681
+ */
682
+ static emoji(options: EmojiOptions): Promise<string>;
820
683
  /**
821
684
  * Match/Connect items from two lists.
822
685
  * @example
@@ -828,9 +691,8 @@ let MepCLI = class MepCLI {
828
691
  * @param options - Source and Target lists.
829
692
  * @returns A promise resolving to linked pairs.
830
693
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
831
- */ static match(options) {
832
- return new _match.MatchPrompt(options).run();
833
- }
694
+ */
695
+ static match(options: MatchOptions): Promise<Record<string, any[]>>;
834
696
  /**
835
697
  * Git-style diff viewer.
836
698
  * @example
@@ -842,9 +704,8 @@ let MepCLI = class MepCLI {
842
704
  * @param options - Original and Modified strings.
843
705
  * @returns A promise resolving to a confirmation string.
844
706
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
845
- */ static diff(options) {
846
- return new _diff.DiffPrompt(options).run();
847
- }
707
+ */
708
+ static diff(options: DiffOptions): Promise<string>;
848
709
  /**
849
710
  * Rotary dial input.
850
711
  * @example
@@ -856,9 +717,8 @@ let MepCLI = class MepCLI {
856
717
  * @param options - Range and radius.
857
718
  * @returns A promise resolving to the number.
858
719
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
859
- */ static dial(options) {
860
- return new _dial.DialPrompt(options).run();
861
- }
720
+ */
721
+ static dial(options: DialOptions): Promise<number>;
862
722
  /**
863
723
  * Canvas drawing input.
864
724
  * @example
@@ -870,9 +730,8 @@ let MepCLI = class MepCLI {
870
730
  * @param options - Canvas dimensions and export type.
871
731
  * @returns A promise resolving to the raw matrix or text.
872
732
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
873
- */ static draw(options) {
874
- return new _draw.DrawPrompt(options).run();
875
- }
733
+ */
734
+ static draw(options: DrawOptions): Promise<string | boolean[][]>;
876
735
  /**
877
736
  * Multi-column selection (Grid layout).
878
737
  * @example
@@ -888,9 +747,8 @@ let MepCLI = class MepCLI {
888
747
  * @param options - Choices and column count.
889
748
  * @returns A promise resolving to the selected value.
890
749
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
891
- */ static multiColumnSelect(options) {
892
- return new _multicolumnselect.MultiColumnSelectPrompt(options).run();
893
- }
750
+ */
751
+ static multiColumnSelect<V>(options: MultiColumnSelectOptions<V>): Promise<V>;
894
752
  /**
895
753
  * Fuzzy search selection.
896
754
  * @example
@@ -904,9 +762,8 @@ let MepCLI = class MepCLI {
904
762
  * @param options - Choices to fuzzy search against.
905
763
  * @returns A promise resolving to the selected value.
906
764
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
907
- */ static fuzzySelect(options) {
908
- return new _fuzzy.FuzzySelectPrompt(options).run();
909
- }
765
+ */
766
+ static fuzzySelect<V>(options: FuzzySelectOptions<V>): Promise<V>;
910
767
  /**
911
768
  * Miller Columns (Cascading lists).
912
769
  * @example
@@ -919,9 +776,8 @@ let MepCLI = class MepCLI {
919
776
  * @param options - Hierarchical data and separator.
920
777
  * @returns A promise resolving to the selected path array.
921
778
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
922
- */ static miller(options) {
923
- return new _miller.MillerPrompt(options).run();
924
- }
779
+ */
780
+ static miller<V>(options: MillerOptions<V>): Promise<V[]>;
925
781
  /**
926
782
  * Pattern Lock (Android style).
927
783
  * @example
@@ -933,9 +789,8 @@ let MepCLI = class MepCLI {
933
789
  * @param options - Grid dimensions.
934
790
  * @returns A promise resolving to an array of point indices.
935
791
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
936
- */ static pattern(options) {
937
- return new _pattern.PatternPrompt(options).run();
938
- }
792
+ */
793
+ static pattern(options: PatternOptions): Promise<number[]>;
939
794
  /**
940
795
  * Region/Map Selector (ASCII Art).
941
796
  * @example
@@ -949,9 +804,8 @@ let MepCLI = class MepCLI {
949
804
  * @param options - ASCII map string and interactive points.
950
805
  * @returns A promise resolving to the selected region ID.
951
806
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/map-prompt.ts}
952
- */ static region(options) {
953
- return new _region.RegionPrompt(options).run();
954
- }
807
+ */
808
+ static region(options: RegionOptions): Promise<string>;
955
809
  /**
956
810
  * Spreadsheet/Grid Editor.
957
811
  * @example
@@ -963,9 +817,8 @@ let MepCLI = class MepCLI {
963
817
  * @param options - Column definitions and initial data rows.
964
818
  * @returns A promise resolving to the modified data array.
965
819
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
966
- */ static spreadsheet(options) {
967
- return new _spreadsheet.SpreadsheetPrompt(options).run();
968
- }
820
+ */
821
+ static spreadsheet(options: SpreadsheetOptions): Promise<Record<string, any>[]>;
969
822
  /**
970
823
  * Text Scroller (EULA/Terms).
971
824
  * @example
@@ -977,9 +830,8 @@ let MepCLI = class MepCLI {
977
830
  * @param options - Text content and scroll enforcement.
978
831
  * @returns A promise resolving to a boolean (accepted).
979
832
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
980
- */ static scroll(options) {
981
- return new _scroll.ScrollPrompt(options).run();
982
- }
833
+ */
834
+ static scroll(options: ScrollOptions): Promise<boolean>;
983
835
  /**
984
836
  * Breadcrumb navigation.
985
837
  * @example
@@ -990,9 +842,8 @@ let MepCLI = class MepCLI {
990
842
  * @param options - Initial path and separator.
991
843
  * @returns A promise resolving to the final path string.
992
844
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/breadcrumb-search-prompt.ts}
993
- */ static breadcrumb(options) {
994
- return new _breadcrumb.BreadcrumbPrompt(options).run();
995
- }
845
+ */
846
+ static breadcrumb(options: BreadcrumbOptions): Promise<string>;
996
847
  /**
997
848
  * Schedule Planner (Gantt-like).
998
849
  * @example
@@ -1005,9 +856,8 @@ let MepCLI = class MepCLI {
1005
856
  * @param options - List of scheduled tasks.
1006
857
  * @returns A promise resolving to the modified task list.
1007
858
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/schedule-prompt.ts}
1008
- */ static schedule(options) {
1009
- return new _schedule.SchedulePrompt(options).run();
1010
- }
859
+ */
860
+ static schedule(options: ScheduleOptions): Promise<ScheduleTask[]>;
1011
861
  /**
1012
862
  * JSON Data Inspector.
1013
863
  * @example
@@ -1018,9 +868,8 @@ let MepCLI = class MepCLI {
1018
868
  * @param options - Data object to explore.
1019
869
  * @returns A promise resolving to the viewed data.
1020
870
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
1021
- */ static inspector(options) {
1022
- return new _datainspector.DataInspectorPrompt(options).run();
1023
- }
871
+ */
872
+ static inspector(options: DataInspectorOptions): Promise<any>;
1024
873
  /**
1025
874
  * Execute shell command with output streaming.
1026
875
  * @example
@@ -1031,9 +880,8 @@ let MepCLI = class MepCLI {
1031
880
  * @param options - Command string and streaming preferences.
1032
881
  * @returns A promise resolving when execution completes.
1033
882
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/exec-prompt.ts}
1034
- */ static exec(options) {
1035
- return new _exec.ExecPrompt(options).run();
1036
- }
883
+ */
884
+ static exec(options: ExecOptions): Promise<void>;
1037
885
  /**
1038
886
  * Keyboard Shortcut recorder.
1039
887
  * @example
@@ -1044,9 +892,8 @@ let MepCLI = class MepCLI {
1044
892
  * @param options - Initial value.
1045
893
  * @returns A promise resolving to the captured key event.
1046
894
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
1047
- */ static shortcut(options) {
1048
- return new _shortcut.ShortcutPrompt(options).run();
1049
- }
895
+ */
896
+ static shortcut(options: ShortcutOptions): Promise<ShortcutResult>;
1050
897
  /**
1051
898
  * Seat Booking/Reservation selector.
1052
899
  * @example
@@ -1062,9 +909,8 @@ let MepCLI = class MepCLI {
1062
909
  * @param options - Layout string array and labelling.
1063
910
  * @returns A promise resolving to selected seat IDs.
1064
911
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
1065
- */ static seat(options) {
1066
- return new _seat.SeatPrompt(options).run();
1067
- }
912
+ */
913
+ static seat(options: SeatOptions): Promise<string[]>;
1068
914
  /**
1069
915
  * Range selection within a list (Shift+Click style).
1070
916
  * @example
@@ -1079,9 +925,8 @@ let MepCLI = class MepCLI {
1079
925
  * @param options - Choices list.
1080
926
  * @returns A promise resolving to the sub-array of values.
1081
927
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
1082
- */ static selectRange(options) {
1083
- return new _selectrange.SelectRangePrompt(options).run();
1084
- }
928
+ */
929
+ static selectRange<const V>(options: SelectRangeOptions<V>): Promise<V[]>;
1085
930
  /**
1086
931
  * 2D Grid Sorting.
1087
932
  * @example
@@ -1095,9 +940,8 @@ let MepCLI = class MepCLI {
1095
940
  * @param options - 2D array of strings.
1096
941
  * @returns A promise resolving to the reordered 2D array.
1097
942
  * @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
1098
- */ static sortGrid(options) {
1099
- return new _sortgrid.SortGridPrompt(options).run();
1100
- }
943
+ */
944
+ static sortGrid(options: SortGridOptions): Promise<string[][]>;
1101
945
  /**
1102
946
  * Dependency Management (Resolves conflicts/requirements).
1103
947
  * @example
@@ -1111,9 +955,8 @@ let MepCLI = class MepCLI {
1111
955
  * @param options - Choices with dependency rules.
1112
956
  * @returns A promise resolving to the valid set of selections.
1113
957
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/dependency-prompts.ts}
1114
- */ static dependency(options) {
1115
- return new _dependency.DependencyPrompt(options).run();
1116
- }
958
+ */
959
+ static dependency<V>(options: DependencyOptions<V>): Promise<V[]>;
1117
960
  /**
1118
961
  * Open Source License selector.
1119
962
  * @example
@@ -1123,9 +966,8 @@ let MepCLI = class MepCLI {
1123
966
  * @param options - Default license.
1124
967
  * @returns A promise resolving to the SPDX ID.
1125
968
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/license-prompts.ts}
1126
- */ static license(options) {
1127
- return new _license.LicensePrompt(options).run();
1128
- }
969
+ */
970
+ static license(options: LicenseOptions): Promise<string>;
1129
971
  /**
1130
972
  * Regex Builder & Tester.
1131
973
  * @example
@@ -1136,9 +978,8 @@ let MepCLI = class MepCLI {
1136
978
  * @param options - Test cases to validate against.
1137
979
  * @returns A promise resolving to the RegExp object.
1138
980
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/regex-prompt.ts}
1139
- */ static regex(options) {
1140
- return new _regex.RegexPrompt(options).run();
1141
- }
981
+ */
982
+ static regex(options: RegexOptions): Promise<RegExp>;
1142
983
  /**
1143
984
  * Box Model Editor (CSS style).
1144
985
  * @example
@@ -1149,9 +990,13 @@ let MepCLI = class MepCLI {
1149
990
  * @param options - Initial dimensions.
1150
991
  * @returns A promise resolving to the box object.
1151
992
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/box-prompt.ts}
1152
- */ static box(options) {
1153
- return new _box.BoxPrompt(options).run();
1154
- }
993
+ */
994
+ static box(options: BoxOptions): Promise<{
995
+ top: number;
996
+ right: number;
997
+ bottom: number;
998
+ left: number;
999
+ }>;
1155
1000
  /**
1156
1001
  * Database Connection String Builder.
1157
1002
  * @example
@@ -1162,9 +1007,8 @@ let MepCLI = class MepCLI {
1162
1007
  * @param options - Initial URL.
1163
1008
  * @returns A promise resolving to parsed connection details.
1164
1009
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/connection-string-prompt.ts}
1165
- */ static connectionString(options) {
1166
- return (0, _connectionstring.connectionString)(options);
1167
- }
1010
+ */
1011
+ static connectionString(options: ConnectionStringOptions): Promise<ConnectionStringResult>;
1168
1012
  /**
1169
1013
  * cURL Command Builder.
1170
1014
  * @example
@@ -1175,9 +1019,8 @@ let MepCLI = class MepCLI {
1175
1019
  * @param options - Initial command.
1176
1020
  * @returns A promise resolving to the parsed request object.
1177
1021
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/curl-prompt.ts}
1178
- */ static curl(options) {
1179
- return new _curl.CurlPrompt(options).run();
1180
- }
1022
+ */
1023
+ static curl(options: CurlOptions): Promise<CurlResult>;
1181
1024
  /**
1182
1025
  * Phone Number input (with country codes).
1183
1026
  * @example
@@ -1188,9 +1031,8 @@ let MepCLI = class MepCLI {
1188
1031
  * @param options - Default country ISO code.
1189
1032
  * @returns A promise resolving to the formatted number.
1190
1033
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/phone-prompt.ts}
1191
- */ static phone(options) {
1192
- return new _phone.PhonePrompt(options).run();
1193
- }
1034
+ */
1035
+ static phone(options: PhoneOptions): Promise<string>;
1194
1036
  /**
1195
1037
  * Fuzzy Multi-Column Selection.
1196
1038
  * @example
@@ -1205,9 +1047,8 @@ let MepCLI = class MepCLI {
1205
1047
  * @param options - Choices and layout columns.
1206
1048
  * @returns A promise resolving to the selected value.
1207
1049
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/fuzzy-multi-column-prompt.ts}
1208
- */ static fuzzyMultiColumn(options) {
1209
- return new _fuzzymulticolumn.FuzzyMultiColumnPrompt(options).run();
1210
- }
1050
+ */
1051
+ static fuzzyMultiColumn<V>(options: MultiColumnSelectOptions<V>): Promise<V>;
1211
1052
  /**
1212
1053
  * Multi-Range Selection (Discontinuous).
1213
1054
  * @example
@@ -1218,9 +1059,8 @@ let MepCLI = class MepCLI {
1218
1059
  * @param options - Choices.
1219
1060
  * @returns A promise resolving to selected values.
1220
1061
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/multi-range-prompt.ts}
1221
- */ static multiRange(options) {
1222
- return new _multirange.MultiRangePrompt(options).run();
1223
- }
1062
+ */
1063
+ static multiRange<V>(options: SelectRangeOptions<V>): Promise<V[]>;
1224
1064
  /**
1225
1065
  * Breadcrumb Search (Navigator + Fuzzy Search).
1226
1066
  * @example
@@ -1231,10 +1071,6 @@ let MepCLI = class MepCLI {
1231
1071
  * @param options - Root path.
1232
1072
  * @returns A promise resolving to the selected path.
1233
1073
  * @see {@link https://github.com/CodeTease/mep/blob/main/examples/breadcrumb-search-prompt.ts}
1234
- */ static breadcrumbSearch(options) {
1235
- return new _breadcrumbsearch.BreadcrumbSearchPrompt(options).run();
1236
- }
1237
- };
1238
- _define_property(MepCLI, "theme", _theme.theme);
1239
-
1240
- //# sourceMappingURL=core.js.map
1074
+ */
1075
+ static breadcrumbSearch(options: BreadcrumbOptions): Promise<string>;
1076
+ }