mepcli 2.0.0-beta.2 → 2.0.0-beta.3

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