commandkit 1.2.0-rc.12 → 1.2.0-rc.13

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 (343) hide show
  1. package/{COPYING.md → LICENSE.md} +3 -3
  2. package/README.md +3 -3
  3. package/bin/index.mjs +1 -1
  4. package/cli.d.ts +19 -0
  5. package/config.cjs +3 -0
  6. package/config.d.ts +1 -0
  7. package/dist/{ActionRow-B-7n9MMr.d.ts → ActionRow-B-CGmjDp.d.ts} +3 -4
  8. package/dist/{ActionRow-uJxU4UGo.js → ActionRow-CSN_UKmM.js} +2 -3
  9. package/dist/{ActionRow-uJxU4UGo.js.map → ActionRow-CSN_UKmM.js.map} +1 -1
  10. package/dist/{Button-RMp-w8HV.d.ts → Button-C-GPeFA3.d.ts} +6 -7
  11. package/dist/{ButtonKit-9k4yfhYD.d.ts → ButtonKit-DKu0VAe4.d.ts} +36 -37
  12. package/dist/ChannelSelectMenuKit-HQZ4hH5s.d.ts +66 -0
  13. package/dist/{CommandKitEventsChannel-2l9Za-le.js → CommandKitEventsChannel-CnT5ymYe.js} +2 -2
  14. package/dist/{CommandKitEventsChannel-2l9Za-le.js.map → CommandKitEventsChannel-CnT5ymYe.js.map} +1 -1
  15. package/dist/{CommandsRouter-CBdsqaWK.d.ts → CommandsRouter-C7dZEepB.d.ts} +49 -50
  16. package/dist/{CommandsRouter-CWMipIis.js → CommandsRouter-C_HLsrGX.js} +2 -6
  17. package/dist/{CommandsRouter-CWMipIis.js.map → CommandsRouter-C_HLsrGX.js.map} +1 -1
  18. package/dist/{CompilerPlugin-CZ4412Zm.js → CompilerPlugin-CUsGAfgl.js} +2 -2
  19. package/dist/{CompilerPlugin-CZ4412Zm.js.map → CompilerPlugin-CUsGAfgl.js.map} +1 -1
  20. package/dist/EventInterceptor-BWoEJMHZ.js.map +1 -1
  21. package/dist/{EventInterceptor-x-R2qshQ.d.ts → EventInterceptor-CZmWpS08.d.ts} +40 -40
  22. package/dist/{EventWorkerContext-D_9q1Bm2.js → EventWorkerContext-Dfhgv329.js} +2 -3
  23. package/dist/{EventWorkerContext-D_9q1Bm2.js.map → EventWorkerContext-Dfhgv329.js.map} +1 -1
  24. package/dist/EventsRouter-DZ37r54v.d.ts +90 -0
  25. package/dist/{EventsRouter-C04XqRKf.js → EventsRouter-DZYIha6m.js} +2 -6
  26. package/dist/{EventsRouter-C04XqRKf.js.map → EventsRouter-DZYIha6m.js.map} +1 -1
  27. package/dist/MentionableSelectMenuKit-7URDUM3-.d.ts +61 -0
  28. package/dist/{MessageCommandParser-CKh-tM97.js → MessageCommandParser-Bs9fimmd.js} +2 -3
  29. package/dist/{MessageCommandParser-CKh-tM97.js.map → MessageCommandParser-Bs9fimmd.js.map} +1 -1
  30. package/dist/MessageCommandParser-q3dQcE5N.d.ts +194 -0
  31. package/dist/{Modal-Calb46SJ.d.ts → Modal-CZT9MZsy.d.ts} +20 -10
  32. package/dist/{ModalKit-Cq2ns6jv.d.ts → ModalKit-BWXI3Z26.d.ts} +33 -34
  33. package/dist/{PluginCommon-CPWV5xuX.js → PluginCommon-BLxWww5u.js} +6 -7
  34. package/dist/{PluginCommon-CPWV5xuX.js.map → PluginCommon-BLxWww5u.js.map} +1 -1
  35. package/dist/RoleSelectMenuKit-BY-JJ18w.d.ts +66 -0
  36. package/dist/{RuntimePlugin-COeXe8rP.js → RuntimePlugin-CtobluSU.js} +2 -2
  37. package/dist/{RuntimePlugin-COeXe8rP.js.map → RuntimePlugin-CtobluSU.js.map} +1 -1
  38. package/dist/{SelectMenu-VcDhOGoJ.d.ts → SelectMenu-q_b3Mjv9.d.ts} +9 -10
  39. package/dist/StringSelectMenuKit-lVhUMc3g.d.ts +66 -0
  40. package/dist/UserSelectMenuKit-CCj4Fpkr.d.ts +66 -0
  41. package/dist/analytics/analytics-engine.d.ts +1 -33
  42. package/dist/analytics/analytics-engine.js +22 -37
  43. package/dist/analytics/analytics-provider.d.ts +1 -33
  44. package/dist/analytics/constants.js +1 -1
  45. package/dist/analytics/utils.js +22 -37
  46. package/dist/{analytics-engine-NOInIjv8.d.ts → analytics-engine-WQhXmx3H.d.ts} +844 -841
  47. package/dist/app/commands/AppCommandRunner.d.ts +1 -33
  48. package/dist/app/commands/AppCommandRunner.js +22 -37
  49. package/dist/app/commands/Context.d.ts +1 -33
  50. package/dist/app/commands/Context.js +22 -37
  51. package/dist/app/commands/MessageCommandParser.d.ts +1 -1
  52. package/dist/app/commands/MessageCommandParser.js +1 -2
  53. package/dist/app/commands/helpers.d.ts +1 -1
  54. package/dist/app/commands/helpers.js +1 -1
  55. package/dist/app/events/EventWorkerContext.d.ts +42 -35
  56. package/dist/app/events/EventWorkerContext.js +1 -1
  57. package/dist/app/handlers/AppCommandHandler.d.ts +1 -33
  58. package/dist/app/handlers/AppCommandHandler.js +22 -37
  59. package/dist/app/handlers/AppEventsHandler.d.ts +1 -33
  60. package/dist/app/handlers/AppEventsHandler.js +22 -37
  61. package/dist/app/index.d.ts +4 -33
  62. package/dist/app/index.js +22 -38
  63. package/dist/app/interrupt/signals.d.ts +1 -1
  64. package/dist/app/interrupt/signals.js +2 -3
  65. package/dist/app/middlewares/permissions.d.ts +1 -33
  66. package/dist/app/middlewares/permissions.js +22 -37
  67. package/dist/app/register/CommandRegistrar.d.ts +1 -33
  68. package/dist/app/register/CommandRegistrar.js +22 -37
  69. package/dist/app/router/CommandsRouter.d.ts +1 -1
  70. package/dist/app/router/CommandsRouter.js +1 -1
  71. package/dist/app/router/EventsRouter.d.ts +1 -1
  72. package/dist/app/router/EventsRouter.js +1 -1
  73. package/dist/app/router/index.d.ts +2 -3
  74. package/dist/app/router/index.js +2 -2
  75. package/dist/{chunk-nOFOJqeH.js → chunk-kSYXY2_d.js} +10 -6
  76. package/dist/cli/app-process.d.ts +0 -1
  77. package/dist/cli/app-process.js +62 -7
  78. package/dist/cli/app-process.js.map +1 -0
  79. package/dist/cli/build.d.ts +2 -33
  80. package/dist/cli/build.js +189 -42
  81. package/dist/cli/build.js.map +1 -0
  82. package/dist/cli/common.d.ts +1 -33
  83. package/dist/cli/common.js +4 -4
  84. package/dist/cli/development.d.ts +18 -1
  85. package/dist/cli/development.js +41 -49
  86. package/dist/cli/development.js.map +1 -1
  87. package/dist/cli/env.d.ts +4 -0
  88. package/dist/cli/env.js +1 -1
  89. package/dist/cli/generators.js +5 -8
  90. package/dist/cli/generators.js.map +1 -1
  91. package/dist/cli/information.js +5 -5
  92. package/dist/cli/information.js.map +1 -1
  93. package/dist/cli/init.d.ts +12 -2
  94. package/dist/cli/init.js +100 -39
  95. package/dist/cli/init.js.map +1 -0
  96. package/dist/cli/production.d.ts +0 -1
  97. package/dist/cli/production.js +36 -49
  98. package/dist/cli/production.js.map +1 -1
  99. package/dist/cli/type-checker.js +5 -5
  100. package/dist/cli/utils.d.ts +0 -1
  101. package/dist/cli/utils.js +17 -2
  102. package/dist/cli/utils.js.map +1 -0
  103. package/dist/{colors-DL3ucTiT.js → colors-Csc0X4QJ.js} +2 -3
  104. package/dist/{colors-DL3ucTiT.js.map → colors-Csc0X4QJ.js.map} +1 -1
  105. package/dist/{commandkit-DabqpQ6v.js → commandkit-SIjTLD2R.js} +145 -46
  106. package/dist/commandkit-SIjTLD2R.js.map +1 -0
  107. package/dist/commandkit.d.ts +1 -33
  108. package/dist/commandkit.js +22 -37
  109. package/dist/{common-CCx-FJI4.js → common-CEordwf3.js} +1 -1
  110. package/dist/{common-CCx-FJI4.js.map → common-CEordwf3.js.map} +1 -1
  111. package/dist/{common-fIO6fqGZ.js → common-DSRs_mfw.js} +9 -12
  112. package/dist/{common-fIO6fqGZ.js.map → common-DSRs_mfw.js.map} +1 -1
  113. package/dist/{common-DHTTnX82.d.ts → common-DnwCYit8.d.ts} +3 -4
  114. package/dist/components/common/EventInterceptor.d.ts +1 -1
  115. package/dist/components/common/element.d.ts +1 -4
  116. package/dist/components/common/types.d.ts +1 -1
  117. package/dist/components/common/types.js +0 -1
  118. package/dist/components/display/common.d.ts +0 -1
  119. package/dist/components/display/common.js +1 -1
  120. package/dist/components/display/container.d.ts +1 -1
  121. package/dist/components/display/container.js +1 -2
  122. package/dist/components/display/file.d.ts +1 -1
  123. package/dist/components/display/file.js +1 -1
  124. package/dist/components/display/index.d.ts +8 -9
  125. package/dist/components/display/index.js +8 -9
  126. package/dist/components/display/label.d.ts +1 -1
  127. package/dist/components/display/label.js +1 -2
  128. package/dist/components/display/media-gallery.d.ts +1 -1
  129. package/dist/components/display/media-gallery.js +1 -2
  130. package/dist/components/display/poll.d.ts +1 -1
  131. package/dist/components/display/poll.js +1 -1
  132. package/dist/components/display/section.d.ts +1 -1
  133. package/dist/components/display/section.js +1 -2
  134. package/dist/components/display/separator.d.ts +1 -1
  135. package/dist/components/display/separator.js +1 -1
  136. package/dist/components/display/text-display.d.ts +1 -1
  137. package/dist/components/display/text-display.js +1 -1
  138. package/dist/components/index.d.ts +23 -26
  139. package/dist/components/index.js +23 -36
  140. package/dist/components/interactive/action-row/ActionRow.d.ts +1 -5
  141. package/dist/components/interactive/action-row/ActionRow.js +1 -1
  142. package/dist/components/interactive/button/Button.d.ts +1 -6
  143. package/dist/components/interactive/button/Button.js +22 -37
  144. package/dist/components/interactive/button/ButtonKit.d.ts +1 -2
  145. package/dist/components/interactive/button/ButtonKit.js +22 -37
  146. package/dist/components/interactive/modal/Modal.d.ts +2 -7
  147. package/dist/components/interactive/modal/Modal.js +23 -37
  148. package/dist/components/interactive/modal/ModalKit.d.ts +1 -2
  149. package/dist/components/interactive/modal/ModalKit.js +22 -37
  150. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.d.ts +1 -3
  151. package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +22 -37
  152. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.d.ts +1 -3
  153. package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +22 -37
  154. package/dist/components/interactive/select-menu/RoleSelectMenuKit.d.ts +1 -3
  155. package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +22 -37
  156. package/dist/components/interactive/select-menu/SelectMenu.d.ts +1 -9
  157. package/dist/components/interactive/select-menu/SelectMenu.js +22 -37
  158. package/dist/components/interactive/select-menu/StringSelectMenuKit.d.ts +1 -3
  159. package/dist/components/interactive/select-menu/StringSelectMenuKit.js +22 -37
  160. package/dist/components/interactive/select-menu/UserSelectMenuKit.d.ts +1 -3
  161. package/dist/components/interactive/select-menu/UserSelectMenuKit.js +22 -37
  162. package/dist/components/interactive/select-menu/common.d.ts +1 -2
  163. package/dist/components/interactive/select-menu/common.js +0 -1
  164. package/dist/config/config.d.ts +15 -35
  165. package/dist/config/config.js +22 -37
  166. package/dist/config/default.d.ts +1 -33
  167. package/dist/config/default.js +22 -37
  168. package/dist/config/loader.d.ts +1 -33
  169. package/dist/config/loader.js +22 -37
  170. package/dist/config/types.d.ts +1 -33
  171. package/dist/config/utils.d.ts +1 -33
  172. package/dist/constants-BFFK-hfP.js +27 -0
  173. package/dist/{constants-AH-9qJ89.js.map → constants-BFFK-hfP.js.map} +1 -1
  174. package/dist/{constants-DqnSDZ6l.d.ts → constants-CuYW0K10.d.ts} +14 -8
  175. package/dist/{constants-D0dawKxO.js → constants-Cw8VjCVz.js} +2 -3
  176. package/dist/{constants-D0dawKxO.js.map → constants-Cw8VjCVz.js.map} +1 -1
  177. package/dist/{constants-BMWH2YUr.js → constants-CxkFFZ7p.js} +16 -1
  178. package/dist/constants-CxkFFZ7p.js.map +1 -0
  179. package/dist/{constants-CCFSX2NG.d.ts → constants-EpKcj0dH.d.ts} +2 -2
  180. package/dist/{container-DC0eQigs.js → container-DCPljKVH.js} +3 -4
  181. package/dist/{container-DC0eQigs.js.map → container-DCPljKVH.js.map} +1 -1
  182. package/dist/{container-1ltvkavy.d.ts → container-DYcb7zGw.d.ts} +2 -3
  183. package/dist/context/async-context.d.ts +1 -33
  184. package/dist/context/async-context.js +22 -37
  185. package/dist/context/environment.d.ts +1 -33
  186. package/dist/context/environment.js +22 -37
  187. package/dist/element-DibzzA5L.js.map +1 -1
  188. package/dist/{element-CvNhvLZ8.d.ts → element-wQo0heGj.d.ts} +4 -5
  189. package/dist/{env-8yY-6pbC.js → env-CmspDhHy.js} +7 -3
  190. package/dist/env-CmspDhHy.js.map +1 -0
  191. package/dist/error-codes-Ds0bnPvT.js.map +1 -1
  192. package/dist/events/CommandKitEventsChannel.d.ts +1 -33
  193. package/dist/events/CommandKitEventsChannel.js +1 -1
  194. package/dist/{file-DAUOZYhC.js → file-Ca1kpEtE.js} +2 -3
  195. package/dist/{file-DAUOZYhC.js.map → file-Ca1kpEtE.js.map} +1 -1
  196. package/dist/{file-n2yl_-vl.d.ts → file-CrV4lSnl.d.ts} +2 -3
  197. package/dist/flags/FlagProvider.d.ts +1 -33
  198. package/dist/flags/feature-flags.d.ts +1 -33
  199. package/dist/flags/feature-flags.js +163 -41
  200. package/dist/flags/feature-flags.js.map +1 -0
  201. package/dist/flags/store.d.ts +1 -33
  202. package/dist/flags/store.js +1 -1
  203. package/dist/{helpers-hDh_tMb6.d.ts → helpers-AQPLVY35.d.ts} +2 -3
  204. package/dist/{helpers-D2_1jih6.js → helpers-Btx1FSZx.js} +2 -3
  205. package/dist/{helpers-D2_1jih6.js.map → helpers-Btx1FSZx.js.map} +1 -1
  206. package/dist/index.d.ts +41 -44
  207. package/dist/index.js +39 -45
  208. package/dist/index.js.map +1 -1
  209. package/dist/kv/constants.d.ts +1 -1
  210. package/dist/kv/constants.js +1 -1
  211. package/dist/kv/dotprops.js +25 -3
  212. package/dist/kv/dotprops.js.map +1 -0
  213. package/dist/kv/kv.d.ts +289 -290
  214. package/dist/kv/kv.js +14 -16
  215. package/dist/kv/kv.js.map +1 -1
  216. package/dist/kv/serde.d.ts +12 -3
  217. package/dist/kv/serde.js +86 -4
  218. package/dist/kv/serde.js.map +1 -0
  219. package/dist/{label-D0KXeBhk.d.ts → label-37kaNWMH.d.ts} +4 -5
  220. package/dist/{label-D-uJWRZ0.js → label-B6vXvwLM.js} +4 -5
  221. package/dist/{label-D-uJWRZ0.js.map → label-B6vXvwLM.js.map} +1 -1
  222. package/dist/logger/DefaultLogger.d.ts +66 -3
  223. package/dist/logger/DefaultLogger.js +22 -37
  224. package/dist/logger/ILogger.d.ts +64 -2
  225. package/dist/logger/ILogger.js +0 -1
  226. package/dist/logger/Logger.d.ts +36 -3
  227. package/dist/logger/Logger.js +22 -37
  228. package/dist/logger/NoopLogger.d.ts +36 -37
  229. package/dist/{media-gallery-BzG70ued.d.ts → media-gallery-Ci3I4ElH.d.ts} +2 -3
  230. package/dist/{media-gallery-BLhwe5lO.js → media-gallery-u3gjX7yD.js} +3 -4
  231. package/dist/{media-gallery-BLhwe5lO.js.map → media-gallery-u3gjX7yD.js.map} +1 -1
  232. package/dist/plugins/CompilerPlugin.d.ts +1 -33
  233. package/dist/plugins/CompilerPlugin.js +1 -2
  234. package/dist/plugins/PluginCommon.d.ts +1 -33
  235. package/dist/plugins/PluginCommon.js +1 -1
  236. package/dist/plugins/RuntimePlugin.d.ts +1 -33
  237. package/dist/plugins/RuntimePlugin.js +1 -2
  238. package/dist/plugins/index.d.ts +1 -33
  239. package/dist/plugins/index.js +24 -37
  240. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -33
  241. package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +22 -37
  242. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -33
  243. package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +22 -37
  244. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -33
  245. package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +22 -37
  246. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -33
  247. package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +22 -37
  248. package/dist/plugins/plugin-runtime/runtime.d.ts +1 -33
  249. package/dist/plugins/plugin-runtime/runtime.js +0 -1
  250. package/dist/plugins/types.d.ts +1 -33
  251. package/dist/plugins/types.js +0 -1
  252. package/dist/{poll-Bc6rjeUS.js → poll-CFe8yvoJ.js} +12 -13
  253. package/dist/{poll-Bc6rjeUS.js.map → poll-CFe8yvoJ.js.map} +1 -1
  254. package/dist/{poll-HnaJcB0o.d.ts → poll-Ddtapd6n.d.ts} +8 -9
  255. package/dist/{resolve-file-url-CJoD0FAn.js → resolve-file-url-CdHqwWs3.js} +2 -2
  256. package/dist/{resolve-file-url-CJoD0FAn.js.map → resolve-file-url-CdHqwWs3.js.map} +1 -1
  257. package/dist/{section-BMcHN97i.js → section-BC8LF-B2.js} +3 -4
  258. package/dist/{section-BMcHN97i.js.map → section-BC8LF-B2.js.map} +1 -1
  259. package/dist/{section-BOaJKXiy.d.ts → section-DkUKULnB.d.ts} +2 -3
  260. package/dist/{separator-C___2K-f.js → separator-BUTiW7uz.js} +2 -3
  261. package/dist/{separator-C___2K-f.js.map → separator-BUTiW7uz.js.map} +1 -1
  262. package/dist/{separator-Cb7-6T6N.d.ts → separator-CbXsIFCa.d.ts} +2 -3
  263. package/dist/{signals-Cnqe9dFV.js → signals-B8z1wJ6W.js} +2 -2
  264. package/dist/{signals-Cnqe9dFV.js.map → signals-B8z1wJ6W.js.map} +1 -1
  265. package/dist/{signals-DBS60vTo.d.ts → signals-BbTgTc0i.d.ts} +2 -2
  266. package/dist/{store-ZwL2gN6a.js → store-D8r_hryO.js} +2 -3
  267. package/dist/{store-ZwL2gN6a.js.map → store-D8r_hryO.js.map} +1 -1
  268. package/dist/{text-display-B_hpz50P.d.ts → text-display-D7j39VC-.d.ts} +2 -3
  269. package/dist/{text-display-BtQR88kY.js → text-display-DANahMN3.js} +2 -3
  270. package/dist/{text-display-BtQR88kY.js.map → text-display-DANahMN3.js.map} +1 -1
  271. package/dist/{type-checker-CEFHoQoV.js → type-checker-cVd3Hpnh.js} +4 -6
  272. package/dist/{type-checker-CEFHoQoV.js.map → type-checker-cVd3Hpnh.js.map} +1 -1
  273. package/dist/{types-CJ-XvOFN.d.ts → types-BywA9d2Z.d.ts} +2 -2
  274. package/dist/{types-package-D11rQXLs.js → types-package-CsTNfvv2.js} +3 -6
  275. package/dist/{types-package-D11rQXLs.js.map → types-package-CsTNfvv2.js.map} +1 -1
  276. package/dist/types.d.ts +1 -33
  277. package/dist/utils/colors.js +1 -1
  278. package/dist/utils/constants.d.ts +2 -2
  279. package/dist/utils/constants.js +3 -2
  280. package/dist/utils/dev-hooks.d.ts +1 -33
  281. package/dist/utils/dev-hooks.js +22 -37
  282. package/dist/utils/error-codes.d.ts +54 -2
  283. package/dist/utils/resolve-file-url.d.ts +11 -2
  284. package/dist/utils/resolve-file-url.js +1 -1
  285. package/dist/utils/types-package.js +2 -2
  286. package/dist/utils/useful-stuff/async-queue.d.ts +21 -21
  287. package/dist/utils/useful-stuff/mutex.d.ts +62 -62
  288. package/dist/utils/useful-stuff/ratelimiter.d.ts +56 -56
  289. package/dist/utils/useful-stuff/ratelimiter.js.map +1 -1
  290. package/dist/utils/useful-stuff/semaphore.d.ts +82 -82
  291. package/dist/utils/utilities.d.ts +113 -2
  292. package/dist/utils/utilities.js +25 -38
  293. package/dist/utils-Br3eenD1.js.map +1 -1
  294. package/dist/version.d.ts +8 -2
  295. package/dist/version.js +12 -2
  296. package/dist/version.js.map +1 -0
  297. package/dist/warning-CszH8HeS.js.map +1 -1
  298. package/hooks.cjs +11 -4
  299. package/package.json +14 -7
  300. package/dist/ChannelSelectMenuKit-CsYgIyKe.d.ts +0 -67
  301. package/dist/DefaultLogger-CHMVsizQ.d.ts +0 -67
  302. package/dist/EventWorkerContext-CLhZRHhH.d.ts +0 -43
  303. package/dist/EventsRouter-4pT6vj-U.d.ts +0 -90
  304. package/dist/ILogger-BQ2ew4zR.d.ts +0 -64
  305. package/dist/Logger-DyV7oli4.d.ts +0 -37
  306. package/dist/MentionableSelectMenuKit-CO9phWMf.d.ts +0 -62
  307. package/dist/MessageCommandParser-DEOl_ifb.d.ts +0 -195
  308. package/dist/RoleSelectMenuKit-DvBxzpWh.d.ts +0 -67
  309. package/dist/StringSelectMenuKit-CJ0MzUZJ.d.ts +0 -67
  310. package/dist/UserSelectMenuKit-C_J-9RJs.d.ts +0 -67
  311. package/dist/app-CrjK9yWX.js +0 -0
  312. package/dist/app-process-AQ3Cbf6j.js +0 -68
  313. package/dist/app-process-AQ3Cbf6j.js.map +0 -1
  314. package/dist/build-BYMHMOl_.js +0 -173
  315. package/dist/build-BYMHMOl_.js.map +0 -1
  316. package/dist/commandkit-DabqpQ6v.js.map +0 -1
  317. package/dist/common-0Iw8ZeM6.js +0 -0
  318. package/dist/config-DbgXt6mf.d.ts +0 -16
  319. package/dist/constants-AH-9qJ89.js +0 -27
  320. package/dist/constants-BMWH2YUr.js.map +0 -1
  321. package/dist/dotprops-DvJUE8fw.js +0 -36
  322. package/dist/dotprops-DvJUE8fw.js.map +0 -1
  323. package/dist/env-8yY-6pbC.js.map +0 -1
  324. package/dist/error-codes-BiNRVMiV.d.ts +0 -54
  325. package/dist/feature-flags-BoBV4Dsj.js +0 -160
  326. package/dist/feature-flags-BoBV4Dsj.js.map +0 -1
  327. package/dist/init-CBb0StSB.js +0 -91
  328. package/dist/init-CBb0StSB.js.map +0 -1
  329. package/dist/init-DSYckXwx.d.ts +0 -13
  330. package/dist/resolve-file-url-DFtR8jRR.d.ts +0 -11
  331. package/dist/serde-D4H23l2F.d.ts +0 -12
  332. package/dist/serde-DHHwhltz.js +0 -97
  333. package/dist/serde-DHHwhltz.js.map +0 -1
  334. package/dist/utilities-CQUaua43.d.ts +0 -87
  335. package/dist/utils-Bf-3Eevb.js +0 -23
  336. package/dist/utils-Bf-3Eevb.js.map +0 -1
  337. package/dist/version-DC4j2ZwU.js +0 -18
  338. package/dist/version-DC4j2ZwU.js.map +0 -1
  339. package/dist/version-DggMfP_1.d.ts +0 -8
  340. /package/dist/{ILogger-B0q7p7L1.js → common-C2jAjX4U.js} +0 -0
  341. /package/dist/{index-B5F3AfVc.d.ts → index-BJfko-dP.d.ts} +0 -0
  342. /package/dist/{index-BLwMeReG.d.ts → index-CCggO_hw.d.ts} +0 -0
  343. /package/dist/{index-h64gcVNJ.d.ts → index-CLjpoGi1.d.ts} +0 -0
package/dist/kv/kv.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import "../constants-CCFSX2NG.js";
2
- import { SerializedValue } from "../serde-D4H23l2F.js";
1
+ import { SerializedValue } from "./serde.js";
3
2
  import { DatabaseSync } from "node:sqlite";
4
3
 
5
4
  //#region src/kv/kv.d.ts
@@ -46,342 +45,342 @@ declare class KV implements Disposable, AsyncDisposable {
46
45
  private db;
47
46
  private statements;
48
47
  /**
49
- * Creates a new KV store instance
50
- *
51
- * @param path - Database file path, buffer, URL, or existing DatabaseSync instance
52
- * @param options - Configuration options for the KV store
53
- */
48
+ * Creates a new KV store instance
49
+ *
50
+ * @param path - Database file path, buffer, URL, or existing DatabaseSync instance
51
+ * @param options - Configuration options for the KV store
52
+ */
54
53
  constructor(path: string | Buffer | URL | DatabaseSync, options?: KvOptions);
55
54
  /**
56
- * Gets the current timestamp in milliseconds
57
- */
55
+ * Gets the current timestamp in milliseconds
56
+ */
58
57
  private getCurrentTime;
59
58
  /**
60
- * Checks if the database connection is open
61
- *
62
- * @returns `true` if the database is open, `false` otherwise
63
- */
59
+ * Checks if the database connection is open
60
+ *
61
+ * @returns `true` if the database is open, `false` otherwise
62
+ */
64
63
  isOpen(): boolean;
65
64
  /**
66
- * Gets the underlying SQLite database instance
67
- *
68
- * @returns The DatabaseSync instance
69
- */
65
+ * Gets the underlying SQLite database instance
66
+ *
67
+ * @returns The DatabaseSync instance
68
+ */
70
69
  getDatabase(): DatabaseSync;
71
70
  /**
72
- * Closes the database connection
73
- */
71
+ * Closes the database connection
72
+ */
74
73
  close(): void;
75
74
  /**
76
- * Disposable implementation - closes the database when disposed
77
- */
75
+ * Disposable implementation - closes the database when disposed
76
+ */
78
77
  [Symbol.dispose](): void;
79
78
  /**
80
- * AsyncDisposable implementation - closes the database when disposed
81
- */
79
+ * AsyncDisposable implementation - closes the database when disposed
80
+ */
82
81
  [Symbol.asyncDispose](): Promise<void>;
83
82
  /**
84
- * Retrieves a value by key
85
- *
86
- * @param key - The key to retrieve (supports dot notation for nested properties)
87
- * @returns The value associated with the key, or `undefined` if not found or expired
88
- *
89
- * @example
90
- * ```typescript
91
- * // Store an object
92
- * kv.set('user:123', { name: 'John', age: 30, settings: { theme: 'dark' } });
93
- *
94
- * // Get the entire object
95
- * const user = kv.get('user:123');
96
- * // { name: 'John', age: 30, settings: { theme: 'dark' } }
97
- *
98
- * // Get nested properties using dot notation
99
- * const name = kv.get('user:123.name'); // 'John'
100
- * const theme = kv.get('user:123.settings.theme'); // 'dark'
101
- * ```
102
- */
83
+ * Retrieves a value by key
84
+ *
85
+ * @param key - The key to retrieve (supports dot notation for nested properties)
86
+ * @returns The value associated with the key, or `undefined` if not found or expired
87
+ *
88
+ * @example
89
+ * ```typescript
90
+ * // Store an object
91
+ * kv.set('user:123', { name: 'John', age: 30, settings: { theme: 'dark' } });
92
+ *
93
+ * // Get the entire object
94
+ * const user = kv.get('user:123');
95
+ * // { name: 'John', age: 30, settings: { theme: 'dark' } }
96
+ *
97
+ * // Get nested properties using dot notation
98
+ * const name = kv.get('user:123.name'); // 'John'
99
+ * const theme = kv.get('user:123.settings.theme'); // 'dark'
100
+ * ```
101
+ */
103
102
  get<T = any>(key: string): T | undefined;
104
103
  /**
105
- * Sets a key-value pair
106
- *
107
- * @param key - The key to set (supports dot notation for nested properties)
108
- * @param value - The value to associate with the key (any JSON-serializable type)
109
- *
110
- * @example
111
- * ```typescript
112
- * // Store primitive values
113
- * kv.set('counter', 42);
114
- * kv.set('active', true);
115
- * kv.set('name', 'John');
116
- *
117
- * // Store objects
118
- * kv.set('user:123', { name: 'John', age: 30 });
119
- *
120
- * // Store arrays
121
- * kv.set('tags', ['javascript', 'typescript', 'sqlite']);
122
- *
123
- * // Store dates
124
- * kv.set('created', new Date());
125
- *
126
- * // Store maps and sets
127
- * kv.set('permissions', new Map([['admin', true], ['user', false]]));
128
- * kv.set('unique_ids', new Set([1, 2, 3, 4, 5]));
129
- *
130
- * // Use dot notation for nested properties
131
- * kv.set('user:123.settings.theme', 'dark');
132
- * kv.set('user:123.settings.notifications', true);
133
- * ```
134
- */
104
+ * Sets a key-value pair
105
+ *
106
+ * @param key - The key to set (supports dot notation for nested properties)
107
+ * @param value - The value to associate with the key (any JSON-serializable type)
108
+ *
109
+ * @example
110
+ * ```typescript
111
+ * // Store primitive values
112
+ * kv.set('counter', 42);
113
+ * kv.set('active', true);
114
+ * kv.set('name', 'John');
115
+ *
116
+ * // Store objects
117
+ * kv.set('user:123', { name: 'John', age: 30 });
118
+ *
119
+ * // Store arrays
120
+ * kv.set('tags', ['javascript', 'typescript', 'sqlite']);
121
+ *
122
+ * // Store dates
123
+ * kv.set('created', new Date());
124
+ *
125
+ * // Store maps and sets
126
+ * kv.set('permissions', new Map([['admin', true], ['user', false]]));
127
+ * kv.set('unique_ids', new Set([1, 2, 3, 4, 5]));
128
+ *
129
+ * // Use dot notation for nested properties
130
+ * kv.set('user:123.settings.theme', 'dark');
131
+ * kv.set('user:123.settings.notifications', true);
132
+ * ```
133
+ */
135
134
  set(key: string, value: any): void;
136
135
  /**
137
- * Sets a key-value pair with expiration
138
- *
139
- * @param key - The key to set (supports dot notation for nested properties)
140
- * @param value - The value to associate with the key (any JSON-serializable type)
141
- * @param ttl - Time to live in milliseconds
142
- *
143
- * @example
144
- * ```typescript
145
- * // Set with 1 hour expiration
146
- * kv.setex('session:123', { userId: 123, token: 'abc123' }, 60 * 60 * 1000);
147
- *
148
- * // Set with 5 minutes expiration
149
- * kv.setex('temp:data', { cached: true, timestamp: Date.now() }, 5 * 60 * 1000);
150
- *
151
- * // Use dot notation with expiration
152
- * kv.setex('user:123.temp_settings', { theme: 'light' }, 30 * 60 * 1000);
153
- * ```
154
- */
136
+ * Sets a key-value pair with expiration
137
+ *
138
+ * @param key - The key to set (supports dot notation for nested properties)
139
+ * @param value - The value to associate with the key (any JSON-serializable type)
140
+ * @param ttl - Time to live in milliseconds
141
+ *
142
+ * @example
143
+ * ```typescript
144
+ * // Set with 1 hour expiration
145
+ * kv.setex('session:123', { userId: 123, token: 'abc123' }, 60 * 60 * 1000);
146
+ *
147
+ * // Set with 5 minutes expiration
148
+ * kv.setex('temp:data', { cached: true, timestamp: Date.now() }, 5 * 60 * 1000);
149
+ *
150
+ * // Use dot notation with expiration
151
+ * kv.setex('user:123.temp_settings', { theme: 'light' }, 30 * 60 * 1000);
152
+ * ```
153
+ */
155
154
  setex(key: string, value: any, ttl: number): void;
156
155
  /**
157
- * Performs mathematical operations on numeric values in the KV store
158
- *
159
- * @param key - The key to perform math operation on (supports dot notation for nested properties)
160
- * @param operator - The mathematical operator to apply
161
- * @param value - The value to use in the operation
162
- * @returns The updated value after the mathematical operation
163
- * @throws Error if the existing value is not numeric or if the operation is invalid
164
- *
165
- * @example
166
- * ```typescript
167
- * // Initialize a counter
168
- * kv.set('counter', 10);
169
- *
170
- * // Increment by 5
171
- * const result1 = kv.math('counter', '+', 5); // 15
172
- *
173
- * // Multiply by 2
174
- * const result2 = kv.math('counter', '*', 2); // 30
175
- *
176
- * // Use with bigint
177
- * kv.set('big_counter', BigInt(1000));
178
- * const result3 = kv.math('big_counter', '+', BigInt(500)); // 1500n
179
- *
180
- * // Use with dot notation
181
- * kv.set('user:123', { score: 100, level: 5 });
182
- * const result4 = kv.math('user:123.score', '+', 50); // 150
183
- * ```
184
- */
156
+ * Performs mathematical operations on numeric values in the KV store
157
+ *
158
+ * @param key - The key to perform math operation on (supports dot notation for nested properties)
159
+ * @param operator - The mathematical operator to apply
160
+ * @param value - The value to use in the operation
161
+ * @returns The updated value after the mathematical operation
162
+ * @throws Error if the existing value is not numeric or if the operation is invalid
163
+ *
164
+ * @example
165
+ * ```typescript
166
+ * // Initialize a counter
167
+ * kv.set('counter', 10);
168
+ *
169
+ * // Increment by 5
170
+ * const result1 = kv.math('counter', '+', 5); // 15
171
+ *
172
+ * // Multiply by 2
173
+ * const result2 = kv.math('counter', '*', 2); // 30
174
+ *
175
+ * // Use with bigint
176
+ * kv.set('big_counter', BigInt(1000));
177
+ * const result3 = kv.math('big_counter', '+', BigInt(500)); // 1500n
178
+ *
179
+ * // Use with dot notation
180
+ * kv.set('user:123', { score: 100, level: 5 });
181
+ * const result4 = kv.math('user:123.score', '+', 50); // 150
182
+ * ```
183
+ */
185
184
  math(key: string, operator: KvMathOperator, value: number | bigint): number | bigint;
186
185
  /**
187
- * Sets expiration for an existing key
188
- *
189
- * @param key - The key to set expiration for
190
- * @param ttl - Time to live in milliseconds
191
- * @returns `true` if the key exists and expiration was set, `false` otherwise
192
- *
193
- * @example
194
- * ```typescript
195
- * kv.set('user:123', { name: 'John', age: 30 });
196
- *
197
- * // Set 30 minute expiration
198
- * if (kv.expire('user:123', 30 * 60 * 1000)) {
199
- * console.log('Expiration set successfully');
200
- * }
201
- * ```
202
- */
186
+ * Sets expiration for an existing key
187
+ *
188
+ * @param key - The key to set expiration for
189
+ * @param ttl - Time to live in milliseconds
190
+ * @returns `true` if the key exists and expiration was set, `false` otherwise
191
+ *
192
+ * @example
193
+ * ```typescript
194
+ * kv.set('user:123', { name: 'John', age: 30 });
195
+ *
196
+ * // Set 30 minute expiration
197
+ * if (kv.expire('user:123', 30 * 60 * 1000)) {
198
+ * console.log('Expiration set successfully');
199
+ * }
200
+ * ```
201
+ */
203
202
  expire(key: string, ttl: number): boolean;
204
203
  /**
205
- * Gets the time to live for a key
206
- *
207
- * @param key - The key to check
208
- * @returns Time to live in milliseconds, or `-1` if the key doesn't exist, or `-2` if the key has no expiration
209
- *
210
- * @example
211
- * ```typescript
212
- * const ttl = kv.ttl('user:123');
213
- * if (ttl > 0) {
214
- * console.log(`Key expires in ${ttl}ms`);
215
- * } else if (ttl === -2) {
216
- * console.log('Key has no expiration');
217
- * } else {
218
- * console.log('Key does not exist');
219
- * }
220
- * ```
221
- */
204
+ * Gets the time to live for a key
205
+ *
206
+ * @param key - The key to check
207
+ * @returns Time to live in milliseconds, or `-1` if the key doesn't exist, or `-2` if the key has no expiration
208
+ *
209
+ * @example
210
+ * ```typescript
211
+ * const ttl = kv.ttl('user:123');
212
+ * if (ttl > 0) {
213
+ * console.log(`Key expires in ${ttl}ms`);
214
+ * } else if (ttl === -2) {
215
+ * console.log('Key has no expiration');
216
+ * } else {
217
+ * console.log('Key does not exist');
218
+ * }
219
+ * ```
220
+ */
222
221
  ttl(key: string): number;
223
222
  /**
224
- * Deletes a key-value pair
225
- *
226
- * @param key - The key to delete
227
- *
228
- * @example
229
- * ```typescript
230
- * kv.delete('user:123');
231
- * kv.delete('user:123.settings.theme'); // Delete nested property
232
- * ```
233
- */
223
+ * Deletes a key-value pair
224
+ *
225
+ * @param key - The key to delete
226
+ *
227
+ * @example
228
+ * ```typescript
229
+ * kv.delete('user:123');
230
+ * kv.delete('user:123.settings.theme'); // Delete nested property
231
+ * ```
232
+ */
234
233
  delete(key: string): void;
235
234
  /**
236
- * Checks if a key exists and is not expired
237
- *
238
- * @param key - The key to check
239
- * @returns `true` if the key exists and is not expired, `false` otherwise
240
- *
241
- * @example
242
- * ```typescript
243
- * if (kv.has('user:123')) {
244
- * console.log('User exists and is not expired');
245
- * }
246
- *
247
- * if (kv.has('user:123.settings.theme')) {
248
- * console.log('Theme setting exists');
249
- * }
250
- * ```
251
- */
235
+ * Checks if a key exists and is not expired
236
+ *
237
+ * @param key - The key to check
238
+ * @returns `true` if the key exists and is not expired, `false` otherwise
239
+ *
240
+ * @example
241
+ * ```typescript
242
+ * if (kv.has('user:123')) {
243
+ * console.log('User exists and is not expired');
244
+ * }
245
+ *
246
+ * if (kv.has('user:123.settings.theme')) {
247
+ * console.log('Theme setting exists');
248
+ * }
249
+ * ```
250
+ */
252
251
  has(key: string): boolean;
253
252
  /**
254
- * Gets all keys in the current namespace (excluding expired keys)
255
- *
256
- * @returns Array of all non-expired keys
257
- *
258
- * @example
259
- * ```typescript
260
- * const keys = kv.keys();
261
- * console.log('All keys:', keys);
262
- * ```
263
- */
253
+ * Gets all keys in the current namespace (excluding expired keys)
254
+ *
255
+ * @returns Array of all non-expired keys
256
+ *
257
+ * @example
258
+ * ```typescript
259
+ * const keys = kv.keys();
260
+ * console.log('All keys:', keys);
261
+ * ```
262
+ */
264
263
  keys(): string[];
265
264
  /**
266
- * Gets all values in the current namespace (excluding expired keys)
267
- *
268
- * @returns Array of all non-expired values
269
- *
270
- * @example
271
- * ```typescript
272
- * const values = kv.values();
273
- * console.log('All values:', values);
274
- * ```
275
- */
265
+ * Gets all values in the current namespace (excluding expired keys)
266
+ *
267
+ * @returns Array of all non-expired values
268
+ *
269
+ * @example
270
+ * ```typescript
271
+ * const values = kv.values();
272
+ * console.log('All values:', values);
273
+ * ```
274
+ */
276
275
  values(): any[];
277
276
  /**
278
- * Gets the total number of key-value pairs in the current namespace (excluding expired keys)
279
- *
280
- * @returns The count of non-expired key-value pairs
281
- *
282
- * @example
283
- * ```typescript
284
- * const count = kv.count();
285
- * console.log(`Total entries: ${count}`);
286
- * ```
287
- */
277
+ * Gets the total number of key-value pairs in the current namespace (excluding expired keys)
278
+ *
279
+ * @returns The count of non-expired key-value pairs
280
+ *
281
+ * @example
282
+ * ```typescript
283
+ * const count = kv.count();
284
+ * console.log(`Total entries: ${count}`);
285
+ * ```
286
+ */
288
287
  count(): number;
289
288
  /**
290
- * Removes all key-value pairs from the current namespace
291
- *
292
- * @example
293
- * ```typescript
294
- * kv.clear(); // Removes all entries in current namespace
295
- * ```
296
- */
289
+ * Removes all key-value pairs from the current namespace
290
+ *
291
+ * @example
292
+ * ```typescript
293
+ * kv.clear(); // Removes all entries in current namespace
294
+ * ```
295
+ */
297
296
  clear(): void;
298
297
  /**
299
- * Gets all key-value pairs as an object (excluding expired keys)
300
- *
301
- * @returns Object with all non-expired key-value pairs
302
- *
303
- * @example
304
- * ```typescript
305
- * const all = kv.all();
306
- * console.log('All entries:', all);
307
- * // Output: { 'key1': value1, 'key2': value2 }
308
- * ```
309
- */
298
+ * Gets all key-value pairs as an object (excluding expired keys)
299
+ *
300
+ * @returns Object with all non-expired key-value pairs
301
+ *
302
+ * @example
303
+ * ```typescript
304
+ * const all = kv.all();
305
+ * console.log('All entries:', all);
306
+ * // Output: { 'key1': value1, 'key2': value2 }
307
+ * ```
308
+ */
310
309
  all(): Record<string, any>;
311
310
  /**
312
- * Gets all available namespaces (tables) in the database
313
- *
314
- * @returns Array of namespace names
315
- *
316
- * @example
317
- * ```typescript
318
- * const namespaces = kv.namespaces();
319
- * console.log('Available namespaces:', namespaces);
320
- * ```
321
- */
311
+ * Gets all available namespaces (tables) in the database
312
+ *
313
+ * @returns Array of namespace names
314
+ *
315
+ * @example
316
+ * ```typescript
317
+ * const namespaces = kv.namespaces();
318
+ * console.log('Available namespaces:', namespaces);
319
+ * ```
320
+ */
322
321
  namespaces(): string[];
323
322
  /**
324
- * Gets the current namespace name
325
- *
326
- * @returns The current namespace string
327
- */
323
+ * Gets the current namespace name
324
+ *
325
+ * @returns The current namespace string
326
+ */
328
327
  getCurrentNamespace(): string;
329
328
  /**
330
- * Creates a new KV instance with a different namespace
331
- *
332
- * @param namespace - The namespace to use for the new instance
333
- * @returns A new KV instance with the specified namespace
334
- *
335
- * @example
336
- * ```typescript
337
- * const userKv = kv.namespace('users');
338
- * const configKv = kv.namespace('config');
339
- *
340
- * userKv.set('123', { name: 'John', age: 30 });
341
- * configKv.set('theme', 'dark');
342
- * ```
343
- */
329
+ * Creates a new KV instance with a different namespace
330
+ *
331
+ * @param namespace - The namespace to use for the new instance
332
+ * @returns A new KV instance with the specified namespace
333
+ *
334
+ * @example
335
+ * ```typescript
336
+ * const userKv = kv.namespace('users');
337
+ * const configKv = kv.namespace('config');
338
+ *
339
+ * userKv.set('123', { name: 'John', age: 30 });
340
+ * configKv.set('theme', 'dark');
341
+ * ```
342
+ */
344
343
  namespace(namespace: string): KV;
345
344
  /**
346
- * Iterator implementation for iterating over all non-expired key-value pairs
347
- *
348
- * @returns Iterator yielding [key, value] tuples
349
- *
350
- * @example
351
- * ```typescript
352
- * for (const [key, value] of kv) {
353
- * console.log(`${key}:`, value);
354
- * }
355
- *
356
- * // Or using spread operator
357
- * const entries = [...kv];
358
- * ```
359
- */
345
+ * Iterator implementation for iterating over all non-expired key-value pairs
346
+ *
347
+ * @returns Iterator yielding [key, value] tuples
348
+ *
349
+ * @example
350
+ * ```typescript
351
+ * for (const [key, value] of kv) {
352
+ * console.log(`${key}:`, value);
353
+ * }
354
+ *
355
+ * // Or using spread operator
356
+ * const entries = [...kv];
357
+ * ```
358
+ */
360
359
  [Symbol.iterator](): Iterator<[string, any]>;
361
360
  /**
362
- * Executes a function within a transaction
363
- *
364
- * @param fn - Function to execute within the transaction (can be async)
365
- * @returns The result of the function
366
- *
367
- * @example
368
- * ```typescript
369
- * // Synchronous transaction
370
- * kv.transaction(() => {
371
- * kv.set('user:123', { name: 'John', age: 30 });
372
- * kv.set('user:456', { name: 'Jane', age: 25 });
373
- * // If any operation fails, all changes are rolled back
374
- * });
375
- *
376
- * // Async transaction
377
- * await kv.transaction(async () => {
378
- * kv.set('user:123', { name: 'John', age: 30 });
379
- * await someAsyncOperation();
380
- * kv.set('user:456', { name: 'Jane', age: 25 });
381
- * // If any operation fails, all changes are rolled back
382
- * });
383
- * ```
384
- */
361
+ * Executes a function within a transaction
362
+ *
363
+ * @param fn - Function to execute within the transaction (can be async)
364
+ * @returns The result of the function
365
+ *
366
+ * @example
367
+ * ```typescript
368
+ * // Synchronous transaction
369
+ * kv.transaction(() => {
370
+ * kv.set('user:123', { name: 'John', age: 30 });
371
+ * kv.set('user:456', { name: 'Jane', age: 25 });
372
+ * // If any operation fails, all changes are rolled back
373
+ * });
374
+ *
375
+ * // Async transaction
376
+ * await kv.transaction(async () => {
377
+ * kv.set('user:123', { name: 'John', age: 30 });
378
+ * await someAsyncOperation();
379
+ * kv.set('user:456', { name: 'Jane', age: 25 });
380
+ * // If any operation fails, all changes are rolled back
381
+ * });
382
+ * ```
383
+ */
385
384
  transaction<T>(fn: () => T | Promise<T>): Promise<T>;
386
385
  }
387
386
  /**