deskforge 1.0.0

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 (1369) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/README.md +547 -0
  3. package/examples/deskforge-app/App.ts +50 -0
  4. package/examples/deskforge-app/README.md +80 -0
  5. package/examples/deskforge-app/app.json +10 -0
  6. package/examples/deskforge-app/dist/App.d.ts +1 -0
  7. package/examples/deskforge-app/dist/App.js +100 -0
  8. package/examples/deskforge-app/dist/App.js.map +1 -0
  9. package/examples/deskforge-app/dist/deskforge-app-details.png +0 -0
  10. package/examples/deskforge-app/dist/deskforge-app-home.png +0 -0
  11. package/examples/deskforge-app/dist/examples/deskforge-app/App.d.ts +1 -0
  12. package/examples/deskforge-app/dist/examples/deskforge-app/App.js +74 -0
  13. package/examples/deskforge-app/dist/examples/deskforge-app/App.js.map +1 -0
  14. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Details.d.ts +9 -0
  15. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Details.js +14 -0
  16. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Details.js.map +1 -0
  17. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Home.d.ts +9 -0
  18. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Home.js +13 -0
  19. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/Home.js.map +1 -0
  20. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/index.d.ts +2 -0
  21. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/index.js +13 -0
  22. package/examples/deskforge-app/dist/examples/deskforge-app/src/screens/index.js.map +1 -0
  23. package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/Responsive.d.ts +38 -0
  24. package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/Responsive.js +61 -0
  25. package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/Responsive.js.map +1 -0
  26. package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/index.d.ts +1 -0
  27. package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/index.js +18 -0
  28. package/examples/deskforge-app/dist/examples/deskforge-app/src/ui/index.js.map +1 -0
  29. package/examples/deskforge-app/dist/packages/core/src/animation/easing.d.ts +22 -0
  30. package/examples/deskforge-app/dist/packages/core/src/animation/easing.js +91 -0
  31. package/examples/deskforge-app/dist/packages/core/src/animation/easing.js.map +1 -0
  32. package/examples/deskforge-app/dist/packages/core/src/animation/index.d.ts +3 -0
  33. package/examples/deskforge-app/dist/packages/core/src/animation/index.js +26 -0
  34. package/examples/deskforge-app/dist/packages/core/src/animation/index.js.map +1 -0
  35. package/examples/deskforge-app/dist/packages/core/src/animation/interpolate.d.ts +6 -0
  36. package/examples/deskforge-app/dist/packages/core/src/animation/interpolate.js +83 -0
  37. package/examples/deskforge-app/dist/packages/core/src/animation/interpolate.js.map +1 -0
  38. package/examples/deskforge-app/dist/packages/core/src/animation/spring.d.ts +20 -0
  39. package/examples/deskforge-app/dist/packages/core/src/animation/spring.js +79 -0
  40. package/examples/deskforge-app/dist/packages/core/src/animation/spring.js.map +1 -0
  41. package/examples/deskforge-app/dist/packages/core/src/component/component.d.ts +5 -0
  42. package/examples/deskforge-app/dist/packages/core/src/component/component.js +14 -0
  43. package/examples/deskforge-app/dist/packages/core/src/component/component.js.map +1 -0
  44. package/examples/deskforge-app/dist/packages/core/src/component/index.d.ts +1 -0
  45. package/examples/deskforge-app/dist/packages/core/src/component/index.js +18 -0
  46. package/examples/deskforge-app/dist/packages/core/src/component/index.js.map +1 -0
  47. package/examples/deskforge-app/dist/packages/core/src/index.d.ts +5 -0
  48. package/examples/deskforge-app/dist/packages/core/src/index.js +30 -0
  49. package/examples/deskforge-app/dist/packages/core/src/index.js.map +1 -0
  50. package/examples/deskforge-app/dist/packages/core/src/scheduler/index.d.ts +1 -0
  51. package/examples/deskforge-app/dist/packages/core/src/scheduler/index.js +20 -0
  52. package/examples/deskforge-app/dist/packages/core/src/scheduler/index.js.map +1 -0
  53. package/examples/deskforge-app/dist/packages/core/src/scheduler/scheduler.d.ts +11 -0
  54. package/examples/deskforge-app/dist/packages/core/src/scheduler/scheduler.js +61 -0
  55. package/examples/deskforge-app/dist/packages/core/src/scheduler/scheduler.js.map +1 -0
  56. package/examples/deskforge-app/dist/packages/core/src/tree/diff.d.ts +16 -0
  57. package/examples/deskforge-app/dist/packages/core/src/tree/diff.js +67 -0
  58. package/examples/deskforge-app/dist/packages/core/src/tree/diff.js.map +1 -0
  59. package/examples/deskforge-app/dist/packages/core/src/tree/index.d.ts +3 -0
  60. package/examples/deskforge-app/dist/packages/core/src/tree/index.js +23 -0
  61. package/examples/deskforge-app/dist/packages/core/src/tree/index.js.map +1 -0
  62. package/examples/deskforge-app/dist/packages/core/src/tree/node.d.ts +12 -0
  63. package/examples/deskforge-app/dist/packages/core/src/tree/node.js +59 -0
  64. package/examples/deskforge-app/dist/packages/core/src/tree/node.js.map +1 -0
  65. package/examples/deskforge-app/dist/packages/core/src/tree/tree.d.ts +10 -0
  66. package/examples/deskforge-app/dist/packages/core/src/tree/tree.js +43 -0
  67. package/examples/deskforge-app/dist/packages/core/src/tree/tree.js.map +1 -0
  68. package/examples/deskforge-app/dist/packages/renderer/src/canvas.d.ts +23 -0
  69. package/examples/deskforge-app/dist/packages/renderer/src/canvas.js +38 -0
  70. package/examples/deskforge-app/dist/packages/renderer/src/canvas.js.map +1 -0
  71. package/examples/deskforge-app/dist/packages/renderer/src/context.d.ts +33 -0
  72. package/examples/deskforge-app/dist/packages/renderer/src/context.js +45 -0
  73. package/examples/deskforge-app/dist/packages/renderer/src/context.js.map +1 -0
  74. package/examples/deskforge-app/dist/packages/renderer/src/dirty-region.d.ts +42 -0
  75. package/examples/deskforge-app/dist/packages/renderer/src/dirty-region.js +106 -0
  76. package/examples/deskforge-app/dist/packages/renderer/src/dirty-region.js.map +1 -0
  77. package/examples/deskforge-app/dist/packages/renderer/src/engine.d.ts +56 -0
  78. package/examples/deskforge-app/dist/packages/renderer/src/engine.js +95 -0
  79. package/examples/deskforge-app/dist/packages/renderer/src/engine.js.map +1 -0
  80. package/examples/deskforge-app/dist/packages/renderer/src/filters.d.ts +22 -0
  81. package/examples/deskforge-app/dist/packages/renderer/src/filters.js +41 -0
  82. package/examples/deskforge-app/dist/packages/renderer/src/filters.js.map +1 -0
  83. package/examples/deskforge-app/dist/packages/renderer/src/index.d.ts +15 -0
  84. package/examples/deskforge-app/dist/packages/renderer/src/index.js +34 -0
  85. package/examples/deskforge-app/dist/packages/renderer/src/index.js.map +1 -0
  86. package/examples/deskforge-app/dist/packages/renderer/src/painter.d.ts +26 -0
  87. package/examples/deskforge-app/dist/packages/renderer/src/painter.js +127 -0
  88. package/examples/deskforge-app/dist/packages/renderer/src/painter.js.map +1 -0
  89. package/examples/deskforge-app/dist/packages/renderer/src/renderer.d.ts +71 -0
  90. package/examples/deskforge-app/dist/packages/renderer/src/renderer.js +120 -0
  91. package/examples/deskforge-app/dist/packages/renderer/src/renderer.js.map +1 -0
  92. package/examples/deskforge-app/dist/packages/renderer/src/svg-export.d.ts +47 -0
  93. package/examples/deskforge-app/dist/packages/renderer/src/svg-export.js +125 -0
  94. package/examples/deskforge-app/dist/packages/renderer/src/svg-export.js.map +1 -0
  95. package/examples/deskforge-app/dist/packages/router/src/app.d.ts +9 -0
  96. package/examples/deskforge-app/dist/packages/router/src/app.js +12 -0
  97. package/examples/deskforge-app/dist/packages/router/src/app.js.map +1 -0
  98. package/examples/deskforge-app/dist/packages/router/src/file-router.d.ts +35 -0
  99. package/examples/deskforge-app/dist/packages/router/src/file-router.js +145 -0
  100. package/examples/deskforge-app/dist/packages/router/src/file-router.js.map +1 -0
  101. package/examples/deskforge-app/dist/packages/router/src/index.d.ts +5 -0
  102. package/examples/deskforge-app/dist/packages/router/src/index.js +24 -0
  103. package/examples/deskforge-app/dist/packages/router/src/index.js.map +1 -0
  104. package/examples/deskforge-app/dist/packages/router/src/manifest.d.ts +9 -0
  105. package/examples/deskforge-app/dist/packages/router/src/manifest.js +26 -0
  106. package/examples/deskforge-app/dist/packages/router/src/manifest.js.map +1 -0
  107. package/examples/deskforge-app/dist/packages/router/src/router.d.ts +30 -0
  108. package/examples/deskforge-app/dist/packages/router/src/router.js +112 -0
  109. package/examples/deskforge-app/dist/packages/router/src/router.js.map +1 -0
  110. package/examples/deskforge-app/dist/packages/router/src/screen.d.ts +30 -0
  111. package/examples/deskforge-app/dist/packages/router/src/screen.js +34 -0
  112. package/examples/deskforge-app/dist/packages/router/src/screen.js.map +1 -0
  113. package/examples/deskforge-app/dist/src/screens/Details.d.ts +9 -0
  114. package/examples/deskforge-app/dist/src/screens/Details.js +62 -0
  115. package/examples/deskforge-app/dist/src/screens/Details.js.map +1 -0
  116. package/examples/deskforge-app/dist/src/screens/Home.d.ts +9 -0
  117. package/examples/deskforge-app/dist/src/screens/Home.js +68 -0
  118. package/examples/deskforge-app/dist/src/screens/Home.js.map +1 -0
  119. package/examples/deskforge-app/dist/src/screens/index.d.ts +2 -0
  120. package/examples/deskforge-app/dist/src/screens/index.js +11 -0
  121. package/examples/deskforge-app/dist/src/screens/index.js.map +1 -0
  122. package/examples/deskforge-app/node_modules/@types/node/LICENSE +21 -0
  123. package/examples/deskforge-app/node_modules/@types/node/README.md +15 -0
  124. package/examples/deskforge-app/node_modules/@types/node/assert/strict.d.ts +8 -0
  125. package/examples/deskforge-app/node_modules/@types/node/assert.d.ts +1062 -0
  126. package/examples/deskforge-app/node_modules/@types/node/async_hooks.d.ts +605 -0
  127. package/examples/deskforge-app/node_modules/@types/node/buffer.buffer.d.ts +471 -0
  128. package/examples/deskforge-app/node_modules/@types/node/buffer.d.ts +1936 -0
  129. package/examples/deskforge-app/node_modules/@types/node/child_process.d.ts +1475 -0
  130. package/examples/deskforge-app/node_modules/@types/node/cluster.d.ts +577 -0
  131. package/examples/deskforge-app/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  132. package/examples/deskforge-app/node_modules/@types/node/compatibility/index.d.ts +9 -0
  133. package/examples/deskforge-app/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  134. package/examples/deskforge-app/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  135. package/examples/deskforge-app/node_modules/@types/node/console.d.ts +452 -0
  136. package/examples/deskforge-app/node_modules/@types/node/constants.d.ts +21 -0
  137. package/examples/deskforge-app/node_modules/@types/node/crypto.d.ts +4590 -0
  138. package/examples/deskforge-app/node_modules/@types/node/dgram.d.ts +597 -0
  139. package/examples/deskforge-app/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  140. package/examples/deskforge-app/node_modules/@types/node/dns/promises.d.ts +479 -0
  141. package/examples/deskforge-app/node_modules/@types/node/dns.d.ts +871 -0
  142. package/examples/deskforge-app/node_modules/@types/node/domain.d.ts +170 -0
  143. package/examples/deskforge-app/node_modules/@types/node/events.d.ts +977 -0
  144. package/examples/deskforge-app/node_modules/@types/node/fs/promises.d.ts +1270 -0
  145. package/examples/deskforge-app/node_modules/@types/node/fs.d.ts +4375 -0
  146. package/examples/deskforge-app/node_modules/@types/node/globals.d.ts +172 -0
  147. package/examples/deskforge-app/node_modules/@types/node/globals.typedarray.d.ts +38 -0
  148. package/examples/deskforge-app/node_modules/@types/node/http.d.ts +2049 -0
  149. package/examples/deskforge-app/node_modules/@types/node/http2.d.ts +2712 -0
  150. package/examples/deskforge-app/node_modules/@types/node/https.d.ts +578 -0
  151. package/examples/deskforge-app/node_modules/@types/node/index.d.ts +93 -0
  152. package/examples/deskforge-app/node_modules/@types/node/inspector.generated.d.ts +3966 -0
  153. package/examples/deskforge-app/node_modules/@types/node/module.d.ts +539 -0
  154. package/examples/deskforge-app/node_modules/@types/node/net.d.ts +1031 -0
  155. package/examples/deskforge-app/node_modules/@types/node/os.d.ts +506 -0
  156. package/examples/deskforge-app/node_modules/@types/node/package.json +140 -0
  157. package/examples/deskforge-app/node_modules/@types/node/path.d.ts +200 -0
  158. package/examples/deskforge-app/node_modules/@types/node/perf_hooks.d.ts +961 -0
  159. package/examples/deskforge-app/node_modules/@types/node/process.d.ts +1961 -0
  160. package/examples/deskforge-app/node_modules/@types/node/punycode.d.ts +117 -0
  161. package/examples/deskforge-app/node_modules/@types/node/querystring.d.ts +152 -0
  162. package/examples/deskforge-app/node_modules/@types/node/readline/promises.d.ts +162 -0
  163. package/examples/deskforge-app/node_modules/@types/node/readline.d.ts +589 -0
  164. package/examples/deskforge-app/node_modules/@types/node/repl.d.ts +430 -0
  165. package/examples/deskforge-app/node_modules/@types/node/sea.d.ts +153 -0
  166. package/examples/deskforge-app/node_modules/@types/node/stream/consumers.d.ts +38 -0
  167. package/examples/deskforge-app/node_modules/@types/node/stream/promises.d.ts +90 -0
  168. package/examples/deskforge-app/node_modules/@types/node/stream/web.d.ts +533 -0
  169. package/examples/deskforge-app/node_modules/@types/node/stream.d.ts +1698 -0
  170. package/examples/deskforge-app/node_modules/@types/node/string_decoder.d.ts +67 -0
  171. package/examples/deskforge-app/node_modules/@types/node/test.d.ts +1787 -0
  172. package/examples/deskforge-app/node_modules/@types/node/timers/promises.d.ts +108 -0
  173. package/examples/deskforge-app/node_modules/@types/node/timers.d.ts +286 -0
  174. package/examples/deskforge-app/node_modules/@types/node/tls.d.ts +1259 -0
  175. package/examples/deskforge-app/node_modules/@types/node/trace_events.d.ts +197 -0
  176. package/examples/deskforge-app/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  177. package/examples/deskforge-app/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
  178. package/examples/deskforge-app/node_modules/@types/node/ts5.6/index.d.ts +93 -0
  179. package/examples/deskforge-app/node_modules/@types/node/tty.d.ts +208 -0
  180. package/examples/deskforge-app/node_modules/@types/node/url.d.ts +964 -0
  181. package/examples/deskforge-app/node_modules/@types/node/util.d.ts +2331 -0
  182. package/examples/deskforge-app/node_modules/@types/node/v8.d.ts +809 -0
  183. package/examples/deskforge-app/node_modules/@types/node/vm.d.ts +1001 -0
  184. package/examples/deskforge-app/node_modules/@types/node/wasi.d.ts +181 -0
  185. package/examples/deskforge-app/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  186. package/examples/deskforge-app/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  187. package/examples/deskforge-app/node_modules/@types/node/web-globals/events.d.ts +97 -0
  188. package/examples/deskforge-app/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
  189. package/examples/deskforge-app/node_modules/@types/node/worker_threads.d.ts +715 -0
  190. package/examples/deskforge-app/node_modules/@types/node/zlib.d.ts +598 -0
  191. package/examples/deskforge-app/node_modules/undici-types/LICENSE +21 -0
  192. package/examples/deskforge-app/node_modules/undici-types/README.md +6 -0
  193. package/examples/deskforge-app/node_modules/undici-types/agent.d.ts +31 -0
  194. package/examples/deskforge-app/node_modules/undici-types/api.d.ts +43 -0
  195. package/examples/deskforge-app/node_modules/undici-types/balanced-pool.d.ts +29 -0
  196. package/examples/deskforge-app/node_modules/undici-types/cache.d.ts +36 -0
  197. package/examples/deskforge-app/node_modules/undici-types/client.d.ts +108 -0
  198. package/examples/deskforge-app/node_modules/undici-types/connector.d.ts +34 -0
  199. package/examples/deskforge-app/node_modules/undici-types/content-type.d.ts +21 -0
  200. package/examples/deskforge-app/node_modules/undici-types/cookies.d.ts +28 -0
  201. package/examples/deskforge-app/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  202. package/examples/deskforge-app/node_modules/undici-types/dispatcher.d.ts +256 -0
  203. package/examples/deskforge-app/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  204. package/examples/deskforge-app/node_modules/undici-types/errors.d.ts +149 -0
  205. package/examples/deskforge-app/node_modules/undici-types/eventsource.d.ts +61 -0
  206. package/examples/deskforge-app/node_modules/undici-types/fetch.d.ts +209 -0
  207. package/examples/deskforge-app/node_modules/undici-types/file.d.ts +39 -0
  208. package/examples/deskforge-app/node_modules/undici-types/filereader.d.ts +54 -0
  209. package/examples/deskforge-app/node_modules/undici-types/formdata.d.ts +108 -0
  210. package/examples/deskforge-app/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  211. package/examples/deskforge-app/node_modules/undici-types/global-origin.d.ts +7 -0
  212. package/examples/deskforge-app/node_modules/undici-types/handlers.d.ts +15 -0
  213. package/examples/deskforge-app/node_modules/undici-types/header.d.ts +4 -0
  214. package/examples/deskforge-app/node_modules/undici-types/index.d.ts +71 -0
  215. package/examples/deskforge-app/node_modules/undici-types/interceptors.d.ts +17 -0
  216. package/examples/deskforge-app/node_modules/undici-types/mock-agent.d.ts +50 -0
  217. package/examples/deskforge-app/node_modules/undici-types/mock-client.d.ts +25 -0
  218. package/examples/deskforge-app/node_modules/undici-types/mock-errors.d.ts +12 -0
  219. package/examples/deskforge-app/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  220. package/examples/deskforge-app/node_modules/undici-types/mock-pool.d.ts +25 -0
  221. package/examples/deskforge-app/node_modules/undici-types/package.json +55 -0
  222. package/examples/deskforge-app/node_modules/undici-types/patch.d.ts +33 -0
  223. package/examples/deskforge-app/node_modules/undici-types/pool-stats.d.ts +19 -0
  224. package/examples/deskforge-app/node_modules/undici-types/pool.d.ts +39 -0
  225. package/examples/deskforge-app/node_modules/undici-types/proxy-agent.d.ts +28 -0
  226. package/examples/deskforge-app/node_modules/undici-types/readable.d.ts +65 -0
  227. package/examples/deskforge-app/node_modules/undici-types/retry-agent.d.ts +8 -0
  228. package/examples/deskforge-app/node_modules/undici-types/retry-handler.d.ts +116 -0
  229. package/examples/deskforge-app/node_modules/undici-types/util.d.ts +18 -0
  230. package/examples/deskforge-app/node_modules/undici-types/webidl.d.ts +228 -0
  231. package/examples/deskforge-app/node_modules/undici-types/websocket.d.ts +150 -0
  232. package/examples/deskforge-app/package.json +19 -0
  233. package/examples/deskforge-app/src/screens/Details.ts +20 -0
  234. package/examples/deskforge-app/src/screens/Home.ts +19 -0
  235. package/examples/deskforge-app/src/screens/index.ts +2 -0
  236. package/examples/deskforge-app/src/ui/Responsive.ts +88 -0
  237. package/examples/deskforge-app/src/ui/index.ts +1 -0
  238. package/examples/deskforge-app/tsconfig.json +24 -0
  239. package/examples/notekeeper/dist/app.d.ts +1 -0
  240. package/examples/notekeeper/dist/app.js +96 -0
  241. package/examples/notekeeper/dist/app.js.map +1 -0
  242. package/examples/notekeeper/dist/components/noteCard.d.ts +1 -0
  243. package/examples/notekeeper/dist/components/noteCard.js +124 -0
  244. package/examples/notekeeper/dist/components/noteCard.js.map +1 -0
  245. package/examples/notekeeper/dist/hooks/useNotes.d.ts +14 -0
  246. package/examples/notekeeper/dist/hooks/useNotes.js +127 -0
  247. package/examples/notekeeper/dist/hooks/useNotes.js.map +1 -0
  248. package/examples/notekeeper/dist/notekeeper.png +0 -0
  249. package/examples/notekeeper/dist/state/appState.d.ts +11 -0
  250. package/examples/notekeeper/dist/state/appState.js +125 -0
  251. package/examples/notekeeper/dist/state/appState.js.map +1 -0
  252. package/examples/notekeeper/package.json +19 -0
  253. package/examples/notekeeper/src/README.md +10 -0
  254. package/examples/notekeeper/src/app.ts +98 -0
  255. package/examples/notekeeper/src/components/noteCard.ts +147 -0
  256. package/examples/notekeeper/src/hooks/useNotes.ts +169 -0
  257. package/examples/notekeeper/src/state/appState.ts +142 -0
  258. package/examples/notekeeper/tsconfig.json +16 -0
  259. package/examples/tsconfig.json +34 -0
  260. package/local-app/addlibrary.ts +7 -0
  261. package/local-app/app.ts +29 -0
  262. package/local-app/package.json +13 -0
  263. package/local-app/screens/Home.ts +20 -0
  264. package/local-app/tsconfig.json +8 -0
  265. package/package.json +30 -0
  266. package/packages/ai/dist/brain.d.ts +32 -0
  267. package/packages/ai/dist/brain.d.ts.map +1 -0
  268. package/packages/ai/dist/brain.js +94 -0
  269. package/packages/ai/dist/brain.js.map +1 -0
  270. package/packages/ai/dist/index.d.ts +5 -0
  271. package/packages/ai/dist/index.d.ts.map +1 -0
  272. package/packages/ai/dist/index.js +27 -0
  273. package/packages/ai/dist/index.js.map +1 -0
  274. package/packages/ai/dist/nodes/logic.d.ts +23 -0
  275. package/packages/ai/dist/nodes/logic.d.ts.map +1 -0
  276. package/packages/ai/dist/nodes/logic.js +55 -0
  277. package/packages/ai/dist/nodes/logic.js.map +1 -0
  278. package/packages/ai/dist/nodes/memory.d.ts +28 -0
  279. package/packages/ai/dist/nodes/memory.d.ts.map +1 -0
  280. package/packages/ai/dist/nodes/memory.js +93 -0
  281. package/packages/ai/dist/nodes/memory.js.map +1 -0
  282. package/packages/ai/dist/nodes/perception.d.ts +21 -0
  283. package/packages/ai/dist/nodes/perception.d.ts.map +1 -0
  284. package/packages/ai/dist/nodes/perception.js +28 -0
  285. package/packages/ai/dist/nodes/perception.js.map +1 -0
  286. package/packages/ai/package.json +30 -0
  287. package/packages/ai/src/brain.ts +209 -0
  288. package/packages/ai/src/index.ts +14 -0
  289. package/packages/ai/src/nodes/logic.ts +109 -0
  290. package/packages/ai/src/nodes/memory.ts +172 -0
  291. package/packages/ai/src/nodes/perception.ts +90 -0
  292. package/packages/ai/tsconfig.json +17 -0
  293. package/packages/background/dist/background.d.ts +42 -0
  294. package/packages/background/dist/background.d.ts.map +1 -0
  295. package/packages/background/dist/background.js +149 -0
  296. package/packages/background/dist/background.js.map +1 -0
  297. package/packages/background/dist/index.d.ts +2 -0
  298. package/packages/background/dist/index.d.ts.map +1 -0
  299. package/packages/background/dist/index.js +20 -0
  300. package/packages/background/dist/index.js.map +1 -0
  301. package/packages/background/package.json +30 -0
  302. package/packages/background/src/background.ts +263 -0
  303. package/packages/background/src/index.ts +4 -0
  304. package/packages/background/tsconfig.json +17 -0
  305. package/packages/bridge/dist/bridge.d.ts +22 -0
  306. package/packages/bridge/dist/bridge.d.ts.map +1 -0
  307. package/packages/bridge/dist/bridge.js +44 -0
  308. package/packages/bridge/dist/bridge.js.map +1 -0
  309. package/packages/bridge/dist/c.d.ts +10 -0
  310. package/packages/bridge/dist/c.d.ts.map +1 -0
  311. package/packages/bridge/dist/c.js +23 -0
  312. package/packages/bridge/dist/c.js.map +1 -0
  313. package/packages/bridge/dist/dotnet.d.ts +11 -0
  314. package/packages/bridge/dist/dotnet.d.ts.map +1 -0
  315. package/packages/bridge/dist/dotnet.js +26 -0
  316. package/packages/bridge/dist/dotnet.js.map +1 -0
  317. package/packages/bridge/dist/go.d.ts +10 -0
  318. package/packages/bridge/dist/go.d.ts.map +1 -0
  319. package/packages/bridge/dist/go.js +27 -0
  320. package/packages/bridge/dist/go.js.map +1 -0
  321. package/packages/bridge/dist/http.d.ts +22 -0
  322. package/packages/bridge/dist/http.d.ts.map +1 -0
  323. package/packages/bridge/dist/http.js +110 -0
  324. package/packages/bridge/dist/http.js.map +1 -0
  325. package/packages/bridge/dist/index.d.ts +5 -0
  326. package/packages/bridge/dist/index.d.ts.map +1 -0
  327. package/packages/bridge/dist/index.js +27 -0
  328. package/packages/bridge/dist/index.js.map +1 -0
  329. package/packages/bridge/dist/kotlin.d.ts +11 -0
  330. package/packages/bridge/dist/kotlin.d.ts.map +1 -0
  331. package/packages/bridge/dist/kotlin.js +25 -0
  332. package/packages/bridge/dist/kotlin.js.map +1 -0
  333. package/packages/bridge/dist/php.d.ts +11 -0
  334. package/packages/bridge/dist/php.d.ts.map +1 -0
  335. package/packages/bridge/dist/php.js +28 -0
  336. package/packages/bridge/dist/php.js.map +1 -0
  337. package/packages/bridge/dist/process.d.ts +27 -0
  338. package/packages/bridge/dist/process.d.ts.map +1 -0
  339. package/packages/bridge/dist/process.js +101 -0
  340. package/packages/bridge/dist/process.js.map +1 -0
  341. package/packages/bridge/dist/python.d.ts +15 -0
  342. package/packages/bridge/dist/python.d.ts.map +1 -0
  343. package/packages/bridge/dist/python.js +34 -0
  344. package/packages/bridge/dist/python.js.map +1 -0
  345. package/packages/bridge/dist/rust.d.ts +10 -0
  346. package/packages/bridge/dist/rust.d.ts.map +1 -0
  347. package/packages/bridge/dist/rust.js +24 -0
  348. package/packages/bridge/dist/rust.js.map +1 -0
  349. package/packages/bridge/dist/swift.d.ts +11 -0
  350. package/packages/bridge/dist/swift.d.ts.map +1 -0
  351. package/packages/bridge/dist/swift.js +26 -0
  352. package/packages/bridge/dist/swift.js.map +1 -0
  353. package/packages/bridge/package.json +30 -0
  354. package/packages/bridge/src/bridge.ts +38 -0
  355. package/packages/bridge/src/c.ts +41 -0
  356. package/packages/bridge/src/dotnet.ts +50 -0
  357. package/packages/bridge/src/go.ts +48 -0
  358. package/packages/bridge/src/http.ts +198 -0
  359. package/packages/bridge/src/index.ts +14 -0
  360. package/packages/bridge/src/kotlin.ts +48 -0
  361. package/packages/bridge/src/php.ts +59 -0
  362. package/packages/bridge/src/process.ts +174 -0
  363. package/packages/bridge/src/python.ts +69 -0
  364. package/packages/bridge/src/rust.ts +43 -0
  365. package/packages/bridge/src/swift.ts +50 -0
  366. package/packages/bridge/tsconfig.json +18 -0
  367. package/packages/cli/dist/commands/build.d.ts +17 -0
  368. package/packages/cli/dist/commands/build.d.ts.map +1 -0
  369. package/packages/cli/dist/commands/build.js +79 -0
  370. package/packages/cli/dist/commands/build.js.map +1 -0
  371. package/packages/cli/dist/commands/create.d.ts +11 -0
  372. package/packages/cli/dist/commands/create.d.ts.map +1 -0
  373. package/packages/cli/dist/commands/create.js +287 -0
  374. package/packages/cli/dist/commands/create.js.map +1 -0
  375. package/packages/cli/dist/commands/lib/add.d.ts +3 -0
  376. package/packages/cli/dist/commands/lib/add.d.ts.map +1 -0
  377. package/packages/cli/dist/commands/lib/add.js +39 -0
  378. package/packages/cli/dist/commands/lib/add.js.map +1 -0
  379. package/packages/cli/dist/commands/lib/list.d.ts +3 -0
  380. package/packages/cli/dist/commands/lib/list.d.ts.map +1 -0
  381. package/packages/cli/dist/commands/lib/list.js +29 -0
  382. package/packages/cli/dist/commands/lib/list.js.map +1 -0
  383. package/packages/cli/dist/commands/lib/remove.d.ts +3 -0
  384. package/packages/cli/dist/commands/lib/remove.d.ts.map +1 -0
  385. package/packages/cli/dist/commands/lib/remove.js +30 -0
  386. package/packages/cli/dist/commands/lib/remove.js.map +1 -0
  387. package/packages/cli/dist/commands/lib/restore.d.ts +3 -0
  388. package/packages/cli/dist/commands/lib/restore.d.ts.map +1 -0
  389. package/packages/cli/dist/commands/lib/restore.js +49 -0
  390. package/packages/cli/dist/commands/lib/restore.js.map +1 -0
  391. package/packages/cli/dist/commands/lib/search.d.ts +3 -0
  392. package/packages/cli/dist/commands/lib/search.d.ts.map +1 -0
  393. package/packages/cli/dist/commands/lib/search.js +30 -0
  394. package/packages/cli/dist/commands/lib/search.js.map +1 -0
  395. package/packages/cli/dist/commands/start.d.ts +10 -0
  396. package/packages/cli/dist/commands/start.d.ts.map +1 -0
  397. package/packages/cli/dist/commands/start.js +88 -0
  398. package/packages/cli/dist/commands/start.js.map +1 -0
  399. package/packages/cli/dist/index.d.ts +3 -0
  400. package/packages/cli/dist/index.d.ts.map +1 -0
  401. package/packages/cli/dist/index.js +193 -0
  402. package/packages/cli/dist/index.js.map +1 -0
  403. package/packages/cli/dist/registry/client.d.ts +24 -0
  404. package/packages/cli/dist/registry/client.d.ts.map +1 -0
  405. package/packages/cli/dist/registry/client.js +73 -0
  406. package/packages/cli/dist/registry/client.js.map +1 -0
  407. package/packages/cli/dist/registry/installer.d.ts +16 -0
  408. package/packages/cli/dist/registry/installer.d.ts.map +1 -0
  409. package/packages/cli/dist/registry/installer.js +135 -0
  410. package/packages/cli/dist/registry/installer.js.map +1 -0
  411. package/packages/cli/dist/registry/manifest.d.ts +13 -0
  412. package/packages/cli/dist/registry/manifest.d.ts.map +1 -0
  413. package/packages/cli/dist/registry/manifest.js +100 -0
  414. package/packages/cli/dist/registry/manifest.js.map +1 -0
  415. package/packages/cli/package.json +36 -0
  416. package/packages/cli/src/commands/build.ts +138 -0
  417. package/packages/cli/src/commands/create.ts +363 -0
  418. package/packages/cli/src/commands/lib/add.ts +56 -0
  419. package/packages/cli/src/commands/lib/list.ts +42 -0
  420. package/packages/cli/src/commands/lib/remove.ts +39 -0
  421. package/packages/cli/src/commands/lib/restore.ts +65 -0
  422. package/packages/cli/src/commands/lib/search.ts +45 -0
  423. package/packages/cli/src/commands/start.ts +117 -0
  424. package/packages/cli/src/index.ts +224 -0
  425. package/packages/cli/src/registry/client.ts +153 -0
  426. package/packages/cli/src/registry/installer.ts +197 -0
  427. package/packages/cli/src/registry/manifest.ts +145 -0
  428. package/packages/cli/test/create.test.js +22 -0
  429. package/packages/cli/tsconfig.json +18 -0
  430. package/packages/core/dist/animation/easing.d.ts +23 -0
  431. package/packages/core/dist/animation/easing.d.ts.map +1 -0
  432. package/packages/core/dist/animation/easing.js +91 -0
  433. package/packages/core/dist/animation/easing.js.map +1 -0
  434. package/packages/core/dist/animation/index.d.ts +4 -0
  435. package/packages/core/dist/animation/index.d.ts.map +1 -0
  436. package/packages/core/dist/animation/index.js +26 -0
  437. package/packages/core/dist/animation/index.js.map +1 -0
  438. package/packages/core/dist/animation/interpolate.d.ts +7 -0
  439. package/packages/core/dist/animation/interpolate.d.ts.map +1 -0
  440. package/packages/core/dist/animation/interpolate.js +83 -0
  441. package/packages/core/dist/animation/interpolate.js.map +1 -0
  442. package/packages/core/dist/animation/spring.d.ts +21 -0
  443. package/packages/core/dist/animation/spring.d.ts.map +1 -0
  444. package/packages/core/dist/animation/spring.js +79 -0
  445. package/packages/core/dist/animation/spring.js.map +1 -0
  446. package/packages/core/dist/component/component.d.ts +6 -0
  447. package/packages/core/dist/component/component.d.ts.map +1 -0
  448. package/packages/core/dist/component/component.js +14 -0
  449. package/packages/core/dist/component/component.js.map +1 -0
  450. package/packages/core/dist/component/index.d.ts +2 -0
  451. package/packages/core/dist/component/index.d.ts.map +1 -0
  452. package/packages/core/dist/component/index.js +18 -0
  453. package/packages/core/dist/component/index.js.map +1 -0
  454. package/packages/core/dist/index.d.ts +6 -0
  455. package/packages/core/dist/index.d.ts.map +1 -0
  456. package/packages/core/dist/index.js +30 -0
  457. package/packages/core/dist/index.js.map +1 -0
  458. package/packages/core/dist/scheduler/index.d.ts +2 -0
  459. package/packages/core/dist/scheduler/index.d.ts.map +1 -0
  460. package/packages/core/dist/scheduler/index.js +20 -0
  461. package/packages/core/dist/scheduler/index.js.map +1 -0
  462. package/packages/core/dist/scheduler/scheduler.d.ts +12 -0
  463. package/packages/core/dist/scheduler/scheduler.d.ts.map +1 -0
  464. package/packages/core/dist/scheduler/scheduler.js +61 -0
  465. package/packages/core/dist/scheduler/scheduler.js.map +1 -0
  466. package/packages/core/dist/tree/diff.d.ts +17 -0
  467. package/packages/core/dist/tree/diff.d.ts.map +1 -0
  468. package/packages/core/dist/tree/diff.js +67 -0
  469. package/packages/core/dist/tree/diff.js.map +1 -0
  470. package/packages/core/dist/tree/index.d.ts +4 -0
  471. package/packages/core/dist/tree/index.d.ts.map +1 -0
  472. package/packages/core/dist/tree/index.js +23 -0
  473. package/packages/core/dist/tree/index.js.map +1 -0
  474. package/packages/core/dist/tree/node.d.ts +13 -0
  475. package/packages/core/dist/tree/node.d.ts.map +1 -0
  476. package/packages/core/dist/tree/node.js +59 -0
  477. package/packages/core/dist/tree/node.js.map +1 -0
  478. package/packages/core/dist/tree/tree.d.ts +11 -0
  479. package/packages/core/dist/tree/tree.d.ts.map +1 -0
  480. package/packages/core/dist/tree/tree.js +43 -0
  481. package/packages/core/dist/tree/tree.js.map +1 -0
  482. package/packages/core/package.json +30 -0
  483. package/packages/core/src/animation/easing.d.ts +22 -0
  484. package/packages/core/src/animation/easing.js +91 -0
  485. package/packages/core/src/animation/easing.js.map +1 -0
  486. package/packages/core/src/animation/easing.ts +88 -0
  487. package/packages/core/src/animation/index.d.ts +3 -0
  488. package/packages/core/src/animation/index.js +26 -0
  489. package/packages/core/src/animation/index.js.map +1 -0
  490. package/packages/core/src/animation/index.ts +12 -0
  491. package/packages/core/src/animation/interpolate.d.ts +6 -0
  492. package/packages/core/src/animation/interpolate.js +83 -0
  493. package/packages/core/src/animation/interpolate.js.map +1 -0
  494. package/packages/core/src/animation/interpolate.ts +107 -0
  495. package/packages/core/src/animation/spring.d.ts +20 -0
  496. package/packages/core/src/animation/spring.js +79 -0
  497. package/packages/core/src/animation/spring.js.map +1 -0
  498. package/packages/core/src/animation/spring.ts +118 -0
  499. package/packages/core/src/component/component.d.ts +5 -0
  500. package/packages/core/src/component/component.js +14 -0
  501. package/packages/core/src/component/component.js.map +1 -0
  502. package/packages/core/src/component/component.ts +22 -0
  503. package/packages/core/src/component/index.d.ts +1 -0
  504. package/packages/core/src/component/index.js +18 -0
  505. package/packages/core/src/component/index.js.map +1 -0
  506. package/packages/core/src/component/index.ts +1 -0
  507. package/packages/core/src/index.d.ts +5 -0
  508. package/packages/core/src/index.js +30 -0
  509. package/packages/core/src/index.js.map +1 -0
  510. package/packages/core/src/index.ts +18 -0
  511. package/packages/core/src/scheduler/index.d.ts +1 -0
  512. package/packages/core/src/scheduler/index.d.ts.map +1 -0
  513. package/packages/core/src/scheduler/index.js +20 -0
  514. package/packages/core/src/scheduler/index.js.map +1 -0
  515. package/packages/core/src/scheduler/index.ts +4 -0
  516. package/packages/core/src/scheduler/scheduler.d.ts +11 -0
  517. package/packages/core/src/scheduler/scheduler.d.ts.map +1 -0
  518. package/packages/core/src/scheduler/scheduler.js +61 -0
  519. package/packages/core/src/scheduler/scheduler.js.map +1 -0
  520. package/packages/core/src/scheduler/scheduler.ts +76 -0
  521. package/packages/core/src/tree/diff.d.ts +16 -0
  522. package/packages/core/src/tree/diff.js +67 -0
  523. package/packages/core/src/tree/diff.js.map +1 -0
  524. package/packages/core/src/tree/diff.ts +125 -0
  525. package/packages/core/src/tree/index.d.ts +3 -0
  526. package/packages/core/src/tree/index.js +23 -0
  527. package/packages/core/src/tree/index.js.map +1 -0
  528. package/packages/core/src/tree/index.ts +7 -0
  529. package/packages/core/src/tree/node.d.ts +12 -0
  530. package/packages/core/src/tree/node.d.ts.map +1 -0
  531. package/packages/core/src/tree/node.js +59 -0
  532. package/packages/core/src/tree/node.js.map +1 -0
  533. package/packages/core/src/tree/node.ts +96 -0
  534. package/packages/core/src/tree/tree.d.ts +10 -0
  535. package/packages/core/src/tree/tree.d.ts.map +1 -0
  536. package/packages/core/src/tree/tree.js +43 -0
  537. package/packages/core/src/tree/tree.js.map +1 -0
  538. package/packages/core/src/tree/tree.ts +64 -0
  539. package/packages/core/tsconfig.json +18 -0
  540. package/packages/db/dist/adapters/mongodb.d.ts +17 -0
  541. package/packages/db/dist/adapters/mongodb.d.ts.map +1 -0
  542. package/packages/db/dist/adapters/mongodb.js +64 -0
  543. package/packages/db/dist/adapters/mongodb.js.map +1 -0
  544. package/packages/db/dist/adapters/mysql.d.ts +15 -0
  545. package/packages/db/dist/adapters/mysql.d.ts.map +1 -0
  546. package/packages/db/dist/adapters/mysql.js +37 -0
  547. package/packages/db/dist/adapters/mysql.js.map +1 -0
  548. package/packages/db/dist/adapters/postgres.d.ts +15 -0
  549. package/packages/db/dist/adapters/postgres.d.ts.map +1 -0
  550. package/packages/db/dist/adapters/postgres.js +38 -0
  551. package/packages/db/dist/adapters/postgres.js.map +1 -0
  552. package/packages/db/dist/adapters/sqlite.d.ts +24 -0
  553. package/packages/db/dist/adapters/sqlite.d.ts.map +1 -0
  554. package/packages/db/dist/adapters/sqlite.js +56 -0
  555. package/packages/db/dist/adapters/sqlite.js.map +1 -0
  556. package/packages/db/dist/db.d.ts +45 -0
  557. package/packages/db/dist/db.d.ts.map +1 -0
  558. package/packages/db/dist/db.js +111 -0
  559. package/packages/db/dist/db.js.map +1 -0
  560. package/packages/db/dist/index.d.ts +7 -0
  561. package/packages/db/dist/index.d.ts.map +1 -0
  562. package/packages/db/dist/index.js +31 -0
  563. package/packages/db/dist/index.js.map +1 -0
  564. package/packages/db/dist/query.d.ts +26 -0
  565. package/packages/db/dist/query.d.ts.map +1 -0
  566. package/packages/db/dist/query.js +71 -0
  567. package/packages/db/dist/query.js.map +1 -0
  568. package/packages/db/package.json +30 -0
  569. package/packages/db/src/adapters/mongodb.ts +130 -0
  570. package/packages/db/src/adapters/mysql.ts +78 -0
  571. package/packages/db/src/adapters/postgres.ts +80 -0
  572. package/packages/db/src/adapters/sqlite.ts +99 -0
  573. package/packages/db/src/db.ts +175 -0
  574. package/packages/db/src/index.ts +20 -0
  575. package/packages/db/src/query.ts +154 -0
  576. package/packages/db/tsconfig.json +17 -0
  577. package/packages/device/README.md +21 -0
  578. package/packages/device/dist/camera.d.ts +28 -0
  579. package/packages/device/dist/camera.d.ts.map +1 -0
  580. package/packages/device/dist/camera.js +42 -0
  581. package/packages/device/dist/camera.js.map +1 -0
  582. package/packages/device/dist/contacts.d.ts +19 -0
  583. package/packages/device/dist/contacts.d.ts.map +1 -0
  584. package/packages/device/dist/contacts.js +40 -0
  585. package/packages/device/dist/contacts.js.map +1 -0
  586. package/packages/device/dist/index.d.ts +33 -0
  587. package/packages/device/dist/index.d.ts.map +1 -0
  588. package/packages/device/dist/index.js +35 -0
  589. package/packages/device/dist/index.js.map +1 -0
  590. package/packages/device/dist/media.d.ts +60 -0
  591. package/packages/device/dist/media.d.ts.map +1 -0
  592. package/packages/device/dist/media.js +129 -0
  593. package/packages/device/dist/media.js.map +1 -0
  594. package/packages/device/dist/sensors.d.ts +17 -0
  595. package/packages/device/dist/sensors.d.ts.map +1 -0
  596. package/packages/device/dist/sensors.js +32 -0
  597. package/packages/device/dist/sensors.js.map +1 -0
  598. package/packages/device/package.json +30 -0
  599. package/packages/device/src/camera.ts +65 -0
  600. package/packages/device/src/contacts.ts +57 -0
  601. package/packages/device/src/index.ts +20 -0
  602. package/packages/device/src/media.ts +194 -0
  603. package/packages/device/src/sensors.ts +51 -0
  604. package/packages/device/test/api.test.js +21 -0
  605. package/packages/device/tsconfig.json +9 -0
  606. package/packages/file/dist/file.d.ts +55 -0
  607. package/packages/file/dist/file.d.ts.map +1 -0
  608. package/packages/file/dist/file.js +114 -0
  609. package/packages/file/dist/file.js.map +1 -0
  610. package/packages/file/dist/index.d.ts +2 -0
  611. package/packages/file/dist/index.d.ts.map +1 -0
  612. package/packages/file/dist/index.js +20 -0
  613. package/packages/file/dist/index.js.map +1 -0
  614. package/packages/file/package.json +30 -0
  615. package/packages/file/src/file.ts +209 -0
  616. package/packages/file/src/index.ts +4 -0
  617. package/packages/file/tsconfig.json +17 -0
  618. package/packages/i18n/dist/i18n.d.ts +33 -0
  619. package/packages/i18n/dist/i18n.d.ts.map +1 -0
  620. package/packages/i18n/dist/i18n.js +149 -0
  621. package/packages/i18n/dist/i18n.js.map +1 -0
  622. package/packages/i18n/dist/index.d.ts +2 -0
  623. package/packages/i18n/dist/index.d.ts.map +1 -0
  624. package/packages/i18n/dist/index.js +20 -0
  625. package/packages/i18n/dist/index.js.map +1 -0
  626. package/packages/i18n/package.json +30 -0
  627. package/packages/i18n/src/i18n.ts +225 -0
  628. package/packages/i18n/src/index.ts +4 -0
  629. package/packages/i18n/tsconfig.json +17 -0
  630. package/packages/logger/dist/index.d.ts +2 -0
  631. package/packages/logger/dist/index.d.ts.map +1 -0
  632. package/packages/logger/dist/index.js +20 -0
  633. package/packages/logger/dist/index.js.map +1 -0
  634. package/packages/logger/dist/logger.d.ts +50 -0
  635. package/packages/logger/dist/logger.d.ts.map +1 -0
  636. package/packages/logger/dist/logger.js +147 -0
  637. package/packages/logger/dist/logger.js.map +1 -0
  638. package/packages/logger/package.json +30 -0
  639. package/packages/logger/src/index.ts +4 -0
  640. package/packages/logger/src/logger.ts +240 -0
  641. package/packages/logger/tsconfig.json +17 -0
  642. package/packages/network/dist/discovery.d.ts +20 -0
  643. package/packages/network/dist/discovery.d.ts.map +1 -0
  644. package/packages/network/dist/discovery.js +58 -0
  645. package/packages/network/dist/discovery.js.map +1 -0
  646. package/packages/network/dist/index.d.ts +3 -0
  647. package/packages/network/dist/index.d.ts.map +1 -0
  648. package/packages/network/dist/index.js +23 -0
  649. package/packages/network/dist/index.js.map +1 -0
  650. package/packages/network/dist/transfer.d.ts +40 -0
  651. package/packages/network/dist/transfer.d.ts.map +1 -0
  652. package/packages/network/dist/transfer.js +73 -0
  653. package/packages/network/dist/transfer.js.map +1 -0
  654. package/packages/network/package.json +30 -0
  655. package/packages/network/src/discovery.ts +107 -0
  656. package/packages/network/src/index.ts +8 -0
  657. package/packages/network/src/transfer.ts +182 -0
  658. package/packages/network/tsconfig.json +17 -0
  659. package/packages/notifications/dist/alert.d.ts +34 -0
  660. package/packages/notifications/dist/alert.d.ts.map +1 -0
  661. package/packages/notifications/dist/alert.js +99 -0
  662. package/packages/notifications/dist/alert.js.map +1 -0
  663. package/packages/notifications/dist/email.d.ts +41 -0
  664. package/packages/notifications/dist/email.d.ts.map +1 -0
  665. package/packages/notifications/dist/email.js +51 -0
  666. package/packages/notifications/dist/email.js.map +1 -0
  667. package/packages/notifications/dist/index.d.ts +84 -0
  668. package/packages/notifications/dist/index.d.ts.map +1 -0
  669. package/packages/notifications/dist/index.js +52 -0
  670. package/packages/notifications/dist/index.js.map +1 -0
  671. package/packages/notifications/dist/notify.d.ts +36 -0
  672. package/packages/notifications/dist/notify.d.ts.map +1 -0
  673. package/packages/notifications/dist/notify.js +62 -0
  674. package/packages/notifications/dist/notify.js.map +1 -0
  675. package/packages/notifications/dist/push.d.ts +49 -0
  676. package/packages/notifications/dist/push.d.ts.map +1 -0
  677. package/packages/notifications/dist/push.js +76 -0
  678. package/packages/notifications/dist/push.js.map +1 -0
  679. package/packages/notifications/dist/sms.d.ts +34 -0
  680. package/packages/notifications/dist/sms.d.ts.map +1 -0
  681. package/packages/notifications/dist/sms.js +44 -0
  682. package/packages/notifications/dist/sms.js.map +1 -0
  683. package/packages/notifications/dist/storage.d.ts +30 -0
  684. package/packages/notifications/dist/storage.d.ts.map +1 -0
  685. package/packages/notifications/dist/storage.js +93 -0
  686. package/packages/notifications/dist/storage.js.map +1 -0
  687. package/packages/notifications/dist/toast.d.ts +47 -0
  688. package/packages/notifications/dist/toast.d.ts.map +1 -0
  689. package/packages/notifications/dist/toast.js +138 -0
  690. package/packages/notifications/dist/toast.js.map +1 -0
  691. package/packages/notifications/dist/users.d.ts +36 -0
  692. package/packages/notifications/dist/users.d.ts.map +1 -0
  693. package/packages/notifications/dist/users.js +87 -0
  694. package/packages/notifications/dist/users.js.map +1 -0
  695. package/packages/notifications/notifications.db +0 -0
  696. package/packages/notifications/package.json +33 -0
  697. package/packages/notifications/src/alert.ts +133 -0
  698. package/packages/notifications/src/email.ts +127 -0
  699. package/packages/notifications/src/index.ts +44 -0
  700. package/packages/notifications/src/notify.ts +126 -0
  701. package/packages/notifications/src/push.ts +145 -0
  702. package/packages/notifications/src/sms.ts +97 -0
  703. package/packages/notifications/src/storage.ts +109 -0
  704. package/packages/notifications/src/toast.ts +186 -0
  705. package/packages/notifications/src/types/better-sqlite3.d.ts +5 -0
  706. package/packages/notifications/src/users.ts +121 -0
  707. package/packages/notifications/test/notifications.test.js +41 -0
  708. package/packages/notifications/test/storage.test.js +34 -0
  709. package/packages/notifications/tsconfig.json +19 -0
  710. package/packages/payments/dist/gateways/momo.d.ts +25 -0
  711. package/packages/payments/dist/gateways/momo.d.ts.map +1 -0
  712. package/packages/payments/dist/gateways/momo.js +44 -0
  713. package/packages/payments/dist/gateways/momo.js.map +1 -0
  714. package/packages/payments/dist/gateways/paystack.d.ts +24 -0
  715. package/packages/payments/dist/gateways/paystack.d.ts.map +1 -0
  716. package/packages/payments/dist/gateways/paystack.js +51 -0
  717. package/packages/payments/dist/gateways/paystack.js.map +1 -0
  718. package/packages/payments/dist/index.d.ts +4 -0
  719. package/packages/payments/dist/index.d.ts.map +1 -0
  720. package/packages/payments/dist/index.js +25 -0
  721. package/packages/payments/dist/index.js.map +1 -0
  722. package/packages/payments/dist/payment.d.ts +42 -0
  723. package/packages/payments/dist/payment.d.ts.map +1 -0
  724. package/packages/payments/dist/payment.js +124 -0
  725. package/packages/payments/dist/payment.js.map +1 -0
  726. package/packages/payments/package.json +30 -0
  727. package/packages/payments/src/gateways/momo.ts +97 -0
  728. package/packages/payments/src/gateways/paystack.ts +102 -0
  729. package/packages/payments/src/index.ts +11 -0
  730. package/packages/payments/src/payment.ts +229 -0
  731. package/packages/payments/tsconfig.json +17 -0
  732. package/packages/renderer/README.md +188 -0
  733. package/packages/renderer/dist/canvas.d.ts +24 -0
  734. package/packages/renderer/dist/canvas.d.ts.map +1 -0
  735. package/packages/renderer/dist/canvas.js +38 -0
  736. package/packages/renderer/dist/canvas.js.map +1 -0
  737. package/packages/renderer/dist/context.d.ts +34 -0
  738. package/packages/renderer/dist/context.d.ts.map +1 -0
  739. package/packages/renderer/dist/context.js +45 -0
  740. package/packages/renderer/dist/context.js.map +1 -0
  741. package/packages/renderer/dist/dirty-region.d.ts +43 -0
  742. package/packages/renderer/dist/dirty-region.d.ts.map +1 -0
  743. package/packages/renderer/dist/dirty-region.js +106 -0
  744. package/packages/renderer/dist/dirty-region.js.map +1 -0
  745. package/packages/renderer/dist/engine.d.ts +57 -0
  746. package/packages/renderer/dist/engine.d.ts.map +1 -0
  747. package/packages/renderer/dist/engine.js +95 -0
  748. package/packages/renderer/dist/engine.js.map +1 -0
  749. package/packages/renderer/dist/example.d.ts +14 -0
  750. package/packages/renderer/dist/example.d.ts.map +1 -0
  751. package/packages/renderer/dist/example.js +160 -0
  752. package/packages/renderer/dist/example.js.map +1 -0
  753. package/packages/renderer/dist/filters.d.ts +23 -0
  754. package/packages/renderer/dist/filters.d.ts.map +1 -0
  755. package/packages/renderer/dist/filters.js +41 -0
  756. package/packages/renderer/dist/filters.js.map +1 -0
  757. package/packages/renderer/dist/icons.d.ts +7 -0
  758. package/packages/renderer/dist/icons.d.ts.map +1 -0
  759. package/packages/renderer/dist/icons.js +31 -0
  760. package/packages/renderer/dist/icons.js.map +1 -0
  761. package/packages/renderer/dist/index.d.ts +16 -0
  762. package/packages/renderer/dist/index.d.ts.map +1 -0
  763. package/packages/renderer/dist/index.js +34 -0
  764. package/packages/renderer/dist/index.js.map +1 -0
  765. package/packages/renderer/dist/painter.d.ts +27 -0
  766. package/packages/renderer/dist/painter.d.ts.map +1 -0
  767. package/packages/renderer/dist/painter.js +221 -0
  768. package/packages/renderer/dist/painter.js.map +1 -0
  769. package/packages/renderer/dist/renderer.d.ts +72 -0
  770. package/packages/renderer/dist/renderer.d.ts.map +1 -0
  771. package/packages/renderer/dist/renderer.js +120 -0
  772. package/packages/renderer/dist/renderer.js.map +1 -0
  773. package/packages/renderer/dist/svg-export.d.ts +52 -0
  774. package/packages/renderer/dist/svg-export.d.ts.map +1 -0
  775. package/packages/renderer/dist/svg-export.js +159 -0
  776. package/packages/renderer/dist/svg-export.js.map +1 -0
  777. package/packages/renderer/package.json +34 -0
  778. package/packages/renderer/src/canvas.d.ts +23 -0
  779. package/packages/renderer/src/canvas.js +38 -0
  780. package/packages/renderer/src/canvas.js.map +1 -0
  781. package/packages/renderer/src/canvas.ts +70 -0
  782. package/packages/renderer/src/context.d.ts +33 -0
  783. package/packages/renderer/src/context.js +45 -0
  784. package/packages/renderer/src/context.js.map +1 -0
  785. package/packages/renderer/src/context.ts +83 -0
  786. package/packages/renderer/src/dirty-region.d.ts +42 -0
  787. package/packages/renderer/src/dirty-region.js +106 -0
  788. package/packages/renderer/src/dirty-region.js.map +1 -0
  789. package/packages/renderer/src/dirty-region.ts +125 -0
  790. package/packages/renderer/src/engine.d.ts +56 -0
  791. package/packages/renderer/src/engine.js +95 -0
  792. package/packages/renderer/src/engine.js.map +1 -0
  793. package/packages/renderer/src/engine.ts +131 -0
  794. package/packages/renderer/src/example.ts +184 -0
  795. package/packages/renderer/src/filters.d.ts +22 -0
  796. package/packages/renderer/src/filters.js +41 -0
  797. package/packages/renderer/src/filters.js.map +1 -0
  798. package/packages/renderer/src/filters.ts +63 -0
  799. package/packages/renderer/src/icons.ts +33 -0
  800. package/packages/renderer/src/index.d.ts +15 -0
  801. package/packages/renderer/src/index.js +34 -0
  802. package/packages/renderer/src/index.js.map +1 -0
  803. package/packages/renderer/src/index.ts +19 -0
  804. package/packages/renderer/src/painter.d.ts +26 -0
  805. package/packages/renderer/src/painter.js +127 -0
  806. package/packages/renderer/src/painter.js.map +1 -0
  807. package/packages/renderer/src/painter.ts +269 -0
  808. package/packages/renderer/src/renderer.d.ts +71 -0
  809. package/packages/renderer/src/renderer.js +120 -0
  810. package/packages/renderer/src/renderer.js.map +1 -0
  811. package/packages/renderer/src/renderer.ts +171 -0
  812. package/packages/renderer/src/svg-export.d.ts +47 -0
  813. package/packages/renderer/src/svg-export.js +125 -0
  814. package/packages/renderer/src/svg-export.js.map +1 -0
  815. package/packages/renderer/src/svg-export.ts +270 -0
  816. package/packages/renderer/test/renderer.test.js +41 -0
  817. package/packages/renderer/tsconfig.json +10 -0
  818. package/packages/router/dist/app.d.ts +10 -0
  819. package/packages/router/dist/app.d.ts.map +1 -0
  820. package/packages/router/dist/app.js +12 -0
  821. package/packages/router/dist/app.js.map +1 -0
  822. package/packages/router/dist/file-router.d.ts +36 -0
  823. package/packages/router/dist/file-router.d.ts.map +1 -0
  824. package/packages/router/dist/file-router.js +145 -0
  825. package/packages/router/dist/file-router.js.map +1 -0
  826. package/packages/router/dist/index.d.ts +6 -0
  827. package/packages/router/dist/index.d.ts.map +1 -0
  828. package/packages/router/dist/index.js +24 -0
  829. package/packages/router/dist/index.js.map +1 -0
  830. package/packages/router/dist/manifest.d.ts +10 -0
  831. package/packages/router/dist/manifest.d.ts.map +1 -0
  832. package/packages/router/dist/manifest.js +26 -0
  833. package/packages/router/dist/manifest.js.map +1 -0
  834. package/packages/router/dist/router.d.ts +31 -0
  835. package/packages/router/dist/router.d.ts.map +1 -0
  836. package/packages/router/dist/router.js +112 -0
  837. package/packages/router/dist/router.js.map +1 -0
  838. package/packages/router/dist/screen.d.ts +31 -0
  839. package/packages/router/dist/screen.d.ts.map +1 -0
  840. package/packages/router/dist/screen.js +34 -0
  841. package/packages/router/dist/screen.js.map +1 -0
  842. package/packages/router/package.json +30 -0
  843. package/packages/router/src/app.ts +16 -0
  844. package/packages/router/src/file-router.ts +181 -0
  845. package/packages/router/src/index.d.ts +2 -0
  846. package/packages/router/src/index.js +23 -0
  847. package/packages/router/src/index.js.map +1 -0
  848. package/packages/router/src/index.ts +7 -0
  849. package/packages/router/src/manifest.ts +27 -0
  850. package/packages/router/src/router.d.ts +30 -0
  851. package/packages/router/src/router.js +112 -0
  852. package/packages/router/src/router.js.map +1 -0
  853. package/packages/router/src/router.ts +161 -0
  854. package/packages/router/src/screen.d.ts +24 -0
  855. package/packages/router/src/screen.js +18 -0
  856. package/packages/router/src/screen.js.map +1 -0
  857. package/packages/router/src/screen.ts +68 -0
  858. package/packages/router/test/router.test.js +30 -0
  859. package/packages/router/tsconfig.json +17 -0
  860. package/packages/security/dist/biometric.d.ts +27 -0
  861. package/packages/security/dist/biometric.d.ts.map +1 -0
  862. package/packages/security/dist/biometric.js +63 -0
  863. package/packages/security/dist/biometric.js.map +1 -0
  864. package/packages/security/dist/index.d.ts +2 -0
  865. package/packages/security/dist/index.d.ts.map +1 -0
  866. package/packages/security/dist/index.js +21 -0
  867. package/packages/security/dist/index.js.map +1 -0
  868. package/packages/security/package.json +30 -0
  869. package/packages/security/src/biometric.ts +121 -0
  870. package/packages/security/src/index.ts +5 -0
  871. package/packages/security/tsconfig.json +17 -0
  872. package/packages/state/dist/computed.d.ts +10 -0
  873. package/packages/state/dist/computed.d.ts.map +1 -0
  874. package/packages/state/dist/computed.js +55 -0
  875. package/packages/state/dist/computed.js.map +1 -0
  876. package/packages/state/dist/context.d.ts +9 -0
  877. package/packages/state/dist/context.d.ts.map +1 -0
  878. package/packages/state/dist/context.js +36 -0
  879. package/packages/state/dist/context.js.map +1 -0
  880. package/packages/state/dist/core/src/animation/easing.d.ts +23 -0
  881. package/packages/state/dist/core/src/animation/easing.d.ts.map +1 -0
  882. package/packages/state/dist/core/src/animation/easing.js +91 -0
  883. package/packages/state/dist/core/src/animation/easing.js.map +1 -0
  884. package/packages/state/dist/core/src/animation/index.d.ts +4 -0
  885. package/packages/state/dist/core/src/animation/index.d.ts.map +1 -0
  886. package/packages/state/dist/core/src/animation/index.js +26 -0
  887. package/packages/state/dist/core/src/animation/index.js.map +1 -0
  888. package/packages/state/dist/core/src/animation/interpolate.d.ts +7 -0
  889. package/packages/state/dist/core/src/animation/interpolate.d.ts.map +1 -0
  890. package/packages/state/dist/core/src/animation/interpolate.js +83 -0
  891. package/packages/state/dist/core/src/animation/interpolate.js.map +1 -0
  892. package/packages/state/dist/core/src/animation/spring.d.ts +21 -0
  893. package/packages/state/dist/core/src/animation/spring.d.ts.map +1 -0
  894. package/packages/state/dist/core/src/animation/spring.js +79 -0
  895. package/packages/state/dist/core/src/animation/spring.js.map +1 -0
  896. package/packages/state/dist/core/src/component/component.d.ts +6 -0
  897. package/packages/state/dist/core/src/component/component.d.ts.map +1 -0
  898. package/packages/state/dist/core/src/component/component.js +14 -0
  899. package/packages/state/dist/core/src/component/component.js.map +1 -0
  900. package/packages/state/dist/core/src/component/index.d.ts +2 -0
  901. package/packages/state/dist/core/src/component/index.d.ts.map +1 -0
  902. package/packages/state/dist/core/src/component/index.js +18 -0
  903. package/packages/state/dist/core/src/component/index.js.map +1 -0
  904. package/packages/state/dist/core/src/index.d.ts +6 -0
  905. package/packages/state/dist/core/src/index.d.ts.map +1 -0
  906. package/packages/state/dist/core/src/index.js +30 -0
  907. package/packages/state/dist/core/src/index.js.map +1 -0
  908. package/packages/state/dist/core/src/scheduler/index.d.ts +2 -0
  909. package/packages/state/dist/core/src/scheduler/index.d.ts.map +1 -0
  910. package/packages/state/dist/core/src/scheduler/index.js +20 -0
  911. package/packages/state/dist/core/src/scheduler/index.js.map +1 -0
  912. package/packages/state/dist/core/src/scheduler/scheduler.d.ts +12 -0
  913. package/packages/state/dist/core/src/scheduler/scheduler.d.ts.map +1 -0
  914. package/packages/state/dist/core/src/scheduler/scheduler.js +61 -0
  915. package/packages/state/dist/core/src/scheduler/scheduler.js.map +1 -0
  916. package/packages/state/dist/core/src/tree/diff.d.ts +17 -0
  917. package/packages/state/dist/core/src/tree/diff.d.ts.map +1 -0
  918. package/packages/state/dist/core/src/tree/diff.js +67 -0
  919. package/packages/state/dist/core/src/tree/diff.js.map +1 -0
  920. package/packages/state/dist/core/src/tree/index.d.ts +4 -0
  921. package/packages/state/dist/core/src/tree/index.d.ts.map +1 -0
  922. package/packages/state/dist/core/src/tree/index.js +23 -0
  923. package/packages/state/dist/core/src/tree/index.js.map +1 -0
  924. package/packages/state/dist/core/src/tree/node.d.ts +13 -0
  925. package/packages/state/dist/core/src/tree/node.d.ts.map +1 -0
  926. package/packages/state/dist/core/src/tree/node.js +59 -0
  927. package/packages/state/dist/core/src/tree/node.js.map +1 -0
  928. package/packages/state/dist/core/src/tree/tree.d.ts +11 -0
  929. package/packages/state/dist/core/src/tree/tree.d.ts.map +1 -0
  930. package/packages/state/dist/core/src/tree/tree.js +43 -0
  931. package/packages/state/dist/core/src/tree/tree.js.map +1 -0
  932. package/packages/state/dist/effect.d.ts +13 -0
  933. package/packages/state/dist/effect.d.ts.map +1 -0
  934. package/packages/state/dist/effect.js +74 -0
  935. package/packages/state/dist/effect.js.map +1 -0
  936. package/packages/state/dist/events/dispatch.d.ts +9 -0
  937. package/packages/state/dist/events/dispatch.d.ts.map +1 -0
  938. package/packages/state/dist/events/dispatch.js +64 -0
  939. package/packages/state/dist/events/dispatch.js.map +1 -0
  940. package/packages/state/dist/events/event.d.ts +18 -0
  941. package/packages/state/dist/events/event.d.ts.map +1 -0
  942. package/packages/state/dist/events/event.js +28 -0
  943. package/packages/state/dist/events/event.js.map +1 -0
  944. package/packages/state/dist/events/hittest.d.ts +15 -0
  945. package/packages/state/dist/events/hittest.d.ts.map +1 -0
  946. package/packages/state/dist/events/hittest.js +56 -0
  947. package/packages/state/dist/events/hittest.js.map +1 -0
  948. package/packages/state/dist/events/index.d.ts +6 -0
  949. package/packages/state/dist/events/index.d.ts.map +1 -0
  950. package/packages/state/dist/events/index.js +30 -0
  951. package/packages/state/dist/events/index.js.map +1 -0
  952. package/packages/state/dist/events/ingestion.d.ts +25 -0
  953. package/packages/state/dist/events/ingestion.d.ts.map +1 -0
  954. package/packages/state/dist/events/ingestion.js +61 -0
  955. package/packages/state/dist/events/ingestion.js.map +1 -0
  956. package/packages/state/dist/events/propagation.d.ts +9 -0
  957. package/packages/state/dist/events/propagation.d.ts.map +1 -0
  958. package/packages/state/dist/events/propagation.js +58 -0
  959. package/packages/state/dist/events/propagation.js.map +1 -0
  960. package/packages/state/dist/index.d.ts +10 -0
  961. package/packages/state/dist/index.d.ts.map +1 -0
  962. package/packages/state/dist/index.js +38 -0
  963. package/packages/state/dist/index.js.map +1 -0
  964. package/packages/state/dist/reducer.d.ts +18 -0
  965. package/packages/state/dist/reducer.d.ts.map +1 -0
  966. package/packages/state/dist/reducer.js +44 -0
  967. package/packages/state/dist/reducer.js.map +1 -0
  968. package/packages/state/dist/ref.d.ts +9 -0
  969. package/packages/state/dist/ref.d.ts.map +1 -0
  970. package/packages/state/dist/ref.js +33 -0
  971. package/packages/state/dist/ref.js.map +1 -0
  972. package/packages/state/dist/state/src/computed.d.ts +10 -0
  973. package/packages/state/dist/state/src/computed.d.ts.map +1 -0
  974. package/packages/state/dist/state/src/computed.js +55 -0
  975. package/packages/state/dist/state/src/computed.js.map +1 -0
  976. package/packages/state/dist/state/src/context.d.ts +9 -0
  977. package/packages/state/dist/state/src/context.d.ts.map +1 -0
  978. package/packages/state/dist/state/src/context.js +36 -0
  979. package/packages/state/dist/state/src/context.js.map +1 -0
  980. package/packages/state/dist/state/src/effect.d.ts +13 -0
  981. package/packages/state/dist/state/src/effect.d.ts.map +1 -0
  982. package/packages/state/dist/state/src/effect.js +74 -0
  983. package/packages/state/dist/state/src/effect.js.map +1 -0
  984. package/packages/state/dist/state/src/events/dispatch.d.ts +9 -0
  985. package/packages/state/dist/state/src/events/dispatch.d.ts.map +1 -0
  986. package/packages/state/dist/state/src/events/dispatch.js +64 -0
  987. package/packages/state/dist/state/src/events/dispatch.js.map +1 -0
  988. package/packages/state/dist/state/src/events/event.d.ts +18 -0
  989. package/packages/state/dist/state/src/events/event.d.ts.map +1 -0
  990. package/packages/state/dist/state/src/events/event.js +28 -0
  991. package/packages/state/dist/state/src/events/event.js.map +1 -0
  992. package/packages/state/dist/state/src/events/hittest.d.ts +16 -0
  993. package/packages/state/dist/state/src/events/hittest.d.ts.map +1 -0
  994. package/packages/state/dist/state/src/events/hittest.js +56 -0
  995. package/packages/state/dist/state/src/events/hittest.js.map +1 -0
  996. package/packages/state/dist/state/src/events/index.d.ts +6 -0
  997. package/packages/state/dist/state/src/events/index.d.ts.map +1 -0
  998. package/packages/state/dist/state/src/events/index.js +30 -0
  999. package/packages/state/dist/state/src/events/index.js.map +1 -0
  1000. package/packages/state/dist/state/src/events/ingestion.d.ts +25 -0
  1001. package/packages/state/dist/state/src/events/ingestion.d.ts.map +1 -0
  1002. package/packages/state/dist/state/src/events/ingestion.js +61 -0
  1003. package/packages/state/dist/state/src/events/ingestion.js.map +1 -0
  1004. package/packages/state/dist/state/src/events/propagation.d.ts +10 -0
  1005. package/packages/state/dist/state/src/events/propagation.d.ts.map +1 -0
  1006. package/packages/state/dist/state/src/events/propagation.js +58 -0
  1007. package/packages/state/dist/state/src/events/propagation.js.map +1 -0
  1008. package/packages/state/dist/state/src/index.d.ts +9 -0
  1009. package/packages/state/dist/state/src/index.d.ts.map +1 -0
  1010. package/packages/state/dist/state/src/index.js +36 -0
  1011. package/packages/state/dist/state/src/index.js.map +1 -0
  1012. package/packages/state/dist/state/src/reducer.d.ts +18 -0
  1013. package/packages/state/dist/state/src/reducer.d.ts.map +1 -0
  1014. package/packages/state/dist/state/src/reducer.js +44 -0
  1015. package/packages/state/dist/state/src/reducer.js.map +1 -0
  1016. package/packages/state/dist/state/src/ref.d.ts +9 -0
  1017. package/packages/state/dist/state/src/ref.d.ts.map +1 -0
  1018. package/packages/state/dist/state/src/ref.js +33 -0
  1019. package/packages/state/dist/state/src/ref.js.map +1 -0
  1020. package/packages/state/dist/state/src/state.d.ts +10 -0
  1021. package/packages/state/dist/state/src/state.d.ts.map +1 -0
  1022. package/packages/state/dist/state/src/state.js +70 -0
  1023. package/packages/state/dist/state/src/state.js.map +1 -0
  1024. package/packages/state/dist/state/src/store.d.ts +19 -0
  1025. package/packages/state/dist/state/src/store.d.ts.map +1 -0
  1026. package/packages/state/dist/state/src/store.js +42 -0
  1027. package/packages/state/dist/state/src/store.js.map +1 -0
  1028. package/packages/state/dist/state/src/watch.d.ts +15 -0
  1029. package/packages/state/dist/state/src/watch.d.ts.map +1 -0
  1030. package/packages/state/dist/state/src/watch.js +79 -0
  1031. package/packages/state/dist/state/src/watch.js.map +1 -0
  1032. package/packages/state/dist/state.d.ts +10 -0
  1033. package/packages/state/dist/state.d.ts.map +1 -0
  1034. package/packages/state/dist/state.js +69 -0
  1035. package/packages/state/dist/state.js.map +1 -0
  1036. package/packages/state/dist/store.d.ts +19 -0
  1037. package/packages/state/dist/store.d.ts.map +1 -0
  1038. package/packages/state/dist/store.js +42 -0
  1039. package/packages/state/dist/store.js.map +1 -0
  1040. package/packages/state/dist/watch.d.ts +15 -0
  1041. package/packages/state/dist/watch.d.ts.map +1 -0
  1042. package/packages/state/dist/watch.js +79 -0
  1043. package/packages/state/dist/watch.js.map +1 -0
  1044. package/packages/state/package.json +30 -0
  1045. package/packages/state/src/computed.ts +75 -0
  1046. package/packages/state/src/context.ts +56 -0
  1047. package/packages/state/src/effect.ts +100 -0
  1048. package/packages/state/src/events/dispatch.ts +79 -0
  1049. package/packages/state/src/events/event.ts +97 -0
  1050. package/packages/state/src/events/hittest.ts +95 -0
  1051. package/packages/state/src/events/index.ts +18 -0
  1052. package/packages/state/src/events/ingestion.ts +102 -0
  1053. package/packages/state/src/events/propagation.ts +83 -0
  1054. package/packages/state/src/index.ts +32 -0
  1055. package/packages/state/src/reducer.ts +87 -0
  1056. package/packages/state/src/ref.ts +41 -0
  1057. package/packages/state/src/state.ts +97 -0
  1058. package/packages/state/src/store.ts +79 -0
  1059. package/packages/state/src/watch.ts +131 -0
  1060. package/packages/state/test/api.test.js +16 -0
  1061. package/packages/state/tsconfig.json +17 -0
  1062. package/packages/states/src/computed.ts +0 -0
  1063. package/packages/states/src/state.ts +0 -0
  1064. package/packages/states/tsconfig.json +0 -0
  1065. package/packages/theme/dist/animate.d.ts +72 -0
  1066. package/packages/theme/dist/animate.d.ts.map +1 -0
  1067. package/packages/theme/dist/animate.js +154 -0
  1068. package/packages/theme/dist/animate.js.map +1 -0
  1069. package/packages/theme/dist/index.d.ts +7 -0
  1070. package/packages/theme/dist/index.d.ts.map +1 -0
  1071. package/packages/theme/dist/index.js +32 -0
  1072. package/packages/theme/dist/index.js.map +1 -0
  1073. package/packages/theme/dist/style.d.ts +55 -0
  1074. package/packages/theme/dist/style.d.ts.map +1 -0
  1075. package/packages/theme/dist/style.js +29 -0
  1076. package/packages/theme/dist/style.js.map +1 -0
  1077. package/packages/theme/dist/stylesheet.d.ts +8 -0
  1078. package/packages/theme/dist/stylesheet.d.ts.map +1 -0
  1079. package/packages/theme/dist/stylesheet.js +22 -0
  1080. package/packages/theme/dist/stylesheet.js.map +1 -0
  1081. package/packages/theme/dist/theme.d.ts +23 -0
  1082. package/packages/theme/dist/theme.d.ts.map +1 -0
  1083. package/packages/theme/dist/theme.js +109 -0
  1084. package/packages/theme/dist/theme.js.map +1 -0
  1085. package/packages/theme/dist/tokens.d.ts +116 -0
  1086. package/packages/theme/dist/tokens.d.ts.map +1 -0
  1087. package/packages/theme/dist/tokens.js +127 -0
  1088. package/packages/theme/dist/tokens.js.map +1 -0
  1089. package/packages/theme/dist/variant.d.ts +17 -0
  1090. package/packages/theme/dist/variant.d.ts.map +1 -0
  1091. package/packages/theme/dist/variant.js +35 -0
  1092. package/packages/theme/dist/variant.js.map +1 -0
  1093. package/packages/theme/package.json +30 -0
  1094. package/packages/theme/src/animate.ts +207 -0
  1095. package/packages/theme/src/index.ts +21 -0
  1096. package/packages/theme/src/style.ts +109 -0
  1097. package/packages/theme/src/stylesheet.ts +40 -0
  1098. package/packages/theme/src/theme.ts +145 -0
  1099. package/packages/theme/src/tokens.ts +303 -0
  1100. package/packages/theme/src/variant.ts +68 -0
  1101. package/packages/theme/tsconfig.json +17 -0
  1102. package/packages/ui/dist/charts/BarChart.d.ts +23 -0
  1103. package/packages/ui/dist/charts/BarChart.d.ts.map +1 -0
  1104. package/packages/ui/dist/charts/BarChart.js +34 -0
  1105. package/packages/ui/dist/charts/BarChart.js.map +1 -0
  1106. package/packages/ui/dist/charts/LineChart.d.ts +27 -0
  1107. package/packages/ui/dist/charts/LineChart.d.ts.map +1 -0
  1108. package/packages/ui/dist/charts/LineChart.js +35 -0
  1109. package/packages/ui/dist/charts/LineChart.js.map +1 -0
  1110. package/packages/ui/dist/charts/index.d.ts +3 -0
  1111. package/packages/ui/dist/charts/index.d.ts.map +1 -0
  1112. package/packages/ui/dist/charts/index.js +21 -0
  1113. package/packages/ui/dist/charts/index.js.map +1 -0
  1114. package/packages/ui/dist/conditional/If.d.ts +4 -0
  1115. package/packages/ui/dist/conditional/If.d.ts.map +1 -0
  1116. package/packages/ui/dist/conditional/If.js +25 -0
  1117. package/packages/ui/dist/conditional/If.js.map +1 -0
  1118. package/packages/ui/dist/data/List.d.ts +18 -0
  1119. package/packages/ui/dist/data/List.d.ts.map +1 -0
  1120. package/packages/ui/dist/data/List.js +27 -0
  1121. package/packages/ui/dist/data/List.js.map +1 -0
  1122. package/packages/ui/dist/data/Table.d.ts +3 -0
  1123. package/packages/ui/dist/data/Table.d.ts.map +1 -0
  1124. package/packages/ui/dist/data/Table.js +21 -0
  1125. package/packages/ui/dist/data/Table.js.map +1 -0
  1126. package/packages/ui/dist/data/index.d.ts +34 -0
  1127. package/packages/ui/dist/data/index.d.ts.map +1 -0
  1128. package/packages/ui/dist/data/index.js +30 -0
  1129. package/packages/ui/dist/data/index.js.map +1 -0
  1130. package/packages/ui/dist/display/Avatar.d.ts +18 -0
  1131. package/packages/ui/dist/display/Avatar.d.ts.map +1 -0
  1132. package/packages/ui/dist/display/Avatar.js +53 -0
  1133. package/packages/ui/dist/display/Avatar.js.map +1 -0
  1134. package/packages/ui/dist/display/Badge.d.ts +17 -0
  1135. package/packages/ui/dist/display/Badge.d.ts.map +1 -0
  1136. package/packages/ui/dist/display/Badge.js +31 -0
  1137. package/packages/ui/dist/display/Badge.js.map +1 -0
  1138. package/packages/ui/dist/display/Card.d.ts +20 -0
  1139. package/packages/ui/dist/display/Card.d.ts.map +1 -0
  1140. package/packages/ui/dist/display/Card.js +35 -0
  1141. package/packages/ui/dist/display/Card.js.map +1 -0
  1142. package/packages/ui/dist/display/Icon.d.ts +14 -0
  1143. package/packages/ui/dist/display/Icon.d.ts.map +1 -0
  1144. package/packages/ui/dist/display/Icon.js +23 -0
  1145. package/packages/ui/dist/display/Icon.js.map +1 -0
  1146. package/packages/ui/dist/display/Image.d.ts +22 -0
  1147. package/packages/ui/dist/display/Image.d.ts.map +1 -0
  1148. package/packages/ui/dist/display/Image.js +30 -0
  1149. package/packages/ui/dist/display/Image.js.map +1 -0
  1150. package/packages/ui/dist/display/index.d.ts +6 -0
  1151. package/packages/ui/dist/display/index.d.ts.map +1 -0
  1152. package/packages/ui/dist/display/index.js +24 -0
  1153. package/packages/ui/dist/display/index.js.map +1 -0
  1154. package/packages/ui/dist/feedback/EmptyState.d.ts +16 -0
  1155. package/packages/ui/dist/feedback/EmptyState.d.ts.map +1 -0
  1156. package/packages/ui/dist/feedback/EmptyState.js +25 -0
  1157. package/packages/ui/dist/feedback/EmptyState.js.map +1 -0
  1158. package/packages/ui/dist/feedback/Skeleton.d.ts +15 -0
  1159. package/packages/ui/dist/feedback/Skeleton.d.ts.map +1 -0
  1160. package/packages/ui/dist/feedback/Skeleton.js +24 -0
  1161. package/packages/ui/dist/feedback/Skeleton.js.map +1 -0
  1162. package/packages/ui/dist/feedback/Spinner.d.ts +13 -0
  1163. package/packages/ui/dist/feedback/Spinner.d.ts.map +1 -0
  1164. package/packages/ui/dist/feedback/Spinner.js +35 -0
  1165. package/packages/ui/dist/feedback/Spinner.js.map +1 -0
  1166. package/packages/ui/dist/feedback/index.d.ts +4 -0
  1167. package/packages/ui/dist/feedback/index.d.ts.map +1 -0
  1168. package/packages/ui/dist/feedback/index.js +22 -0
  1169. package/packages/ui/dist/feedback/index.js.map +1 -0
  1170. package/packages/ui/dist/index.d.ts +11 -0
  1171. package/packages/ui/dist/index.d.ts.map +1 -0
  1172. package/packages/ui/dist/index.js +40 -0
  1173. package/packages/ui/dist/index.js.map +1 -0
  1174. package/packages/ui/dist/input/Button.d.ts +26 -0
  1175. package/packages/ui/dist/input/Button.d.ts.map +1 -0
  1176. package/packages/ui/dist/input/Button.js +39 -0
  1177. package/packages/ui/dist/input/Button.js.map +1 -0
  1178. package/packages/ui/dist/input/Checkbox.d.ts +16 -0
  1179. package/packages/ui/dist/input/Checkbox.d.ts.map +1 -0
  1180. package/packages/ui/dist/input/Checkbox.js +25 -0
  1181. package/packages/ui/dist/input/Checkbox.js.map +1 -0
  1182. package/packages/ui/dist/input/Dropdown.d.ts +27 -0
  1183. package/packages/ui/dist/input/Dropdown.d.ts.map +1 -0
  1184. package/packages/ui/dist/input/Dropdown.js +30 -0
  1185. package/packages/ui/dist/input/Dropdown.js.map +1 -0
  1186. package/packages/ui/dist/input/Input.d.ts +34 -0
  1187. package/packages/ui/dist/input/Input.d.ts.map +1 -0
  1188. package/packages/ui/dist/input/Input.js +43 -0
  1189. package/packages/ui/dist/input/Input.js.map +1 -0
  1190. package/packages/ui/dist/input/SearchBar.d.ts +20 -0
  1191. package/packages/ui/dist/input/SearchBar.d.ts.map +1 -0
  1192. package/packages/ui/dist/input/SearchBar.js +31 -0
  1193. package/packages/ui/dist/input/SearchBar.js.map +1 -0
  1194. package/packages/ui/dist/input/Slider.d.ts +22 -0
  1195. package/packages/ui/dist/input/Slider.d.ts.map +1 -0
  1196. package/packages/ui/dist/input/Slider.js +32 -0
  1197. package/packages/ui/dist/input/Slider.js.map +1 -0
  1198. package/packages/ui/dist/input/Toggle.d.ts +17 -0
  1199. package/packages/ui/dist/input/Toggle.d.ts.map +1 -0
  1200. package/packages/ui/dist/input/Toggle.js +29 -0
  1201. package/packages/ui/dist/input/Toggle.js.map +1 -0
  1202. package/packages/ui/dist/input/index.d.ts +8 -0
  1203. package/packages/ui/dist/input/index.d.ts.map +1 -0
  1204. package/packages/ui/dist/input/index.js +26 -0
  1205. package/packages/ui/dist/input/index.js.map +1 -0
  1206. package/packages/ui/dist/layout/Box.d.ts +25 -0
  1207. package/packages/ui/dist/layout/Box.d.ts.map +1 -0
  1208. package/packages/ui/dist/layout/Box.js +34 -0
  1209. package/packages/ui/dist/layout/Box.js.map +1 -0
  1210. package/packages/ui/dist/layout/Column.d.ts +30 -0
  1211. package/packages/ui/dist/layout/Column.d.ts.map +1 -0
  1212. package/packages/ui/dist/layout/Column.js +32 -0
  1213. package/packages/ui/dist/layout/Column.js.map +1 -0
  1214. package/packages/ui/dist/layout/Divider.d.ts +14 -0
  1215. package/packages/ui/dist/layout/Divider.d.ts.map +1 -0
  1216. package/packages/ui/dist/layout/Divider.js +23 -0
  1217. package/packages/ui/dist/layout/Divider.js.map +1 -0
  1218. package/packages/ui/dist/layout/Grid.d.ts +17 -0
  1219. package/packages/ui/dist/layout/Grid.d.ts.map +1 -0
  1220. package/packages/ui/dist/layout/Grid.js +26 -0
  1221. package/packages/ui/dist/layout/Grid.js.map +1 -0
  1222. package/packages/ui/dist/layout/Row.d.ts +28 -0
  1223. package/packages/ui/dist/layout/Row.d.ts.map +1 -0
  1224. package/packages/ui/dist/layout/Row.js +29 -0
  1225. package/packages/ui/dist/layout/Row.js.map +1 -0
  1226. package/packages/ui/dist/layout/ScrollView.d.ts +18 -0
  1227. package/packages/ui/dist/layout/ScrollView.d.ts.map +1 -0
  1228. package/packages/ui/dist/layout/ScrollView.js +25 -0
  1229. package/packages/ui/dist/layout/ScrollView.js.map +1 -0
  1230. package/packages/ui/dist/layout/Spacer.d.ts +9 -0
  1231. package/packages/ui/dist/layout/Spacer.d.ts.map +1 -0
  1232. package/packages/ui/dist/layout/Spacer.js +21 -0
  1233. package/packages/ui/dist/layout/Spacer.js.map +1 -0
  1234. package/packages/ui/dist/layout/Stack.d.ts +14 -0
  1235. package/packages/ui/dist/layout/Stack.d.ts.map +1 -0
  1236. package/packages/ui/dist/layout/Stack.js +25 -0
  1237. package/packages/ui/dist/layout/Stack.js.map +1 -0
  1238. package/packages/ui/dist/layout/index.d.ts +9 -0
  1239. package/packages/ui/dist/layout/index.d.ts.map +1 -0
  1240. package/packages/ui/dist/layout/index.js +27 -0
  1241. package/packages/ui/dist/layout/index.js.map +1 -0
  1242. package/packages/ui/dist/navigation/BottomNav.d.ts +23 -0
  1243. package/packages/ui/dist/navigation/BottomNav.d.ts.map +1 -0
  1244. package/packages/ui/dist/navigation/BottomNav.js +25 -0
  1245. package/packages/ui/dist/navigation/BottomNav.js.map +1 -0
  1246. package/packages/ui/dist/navigation/Drawer.d.ts +18 -0
  1247. package/packages/ui/dist/navigation/Drawer.d.ts.map +1 -0
  1248. package/packages/ui/dist/navigation/Drawer.js +29 -0
  1249. package/packages/ui/dist/navigation/Drawer.js.map +1 -0
  1250. package/packages/ui/dist/navigation/TabBar.d.ts +22 -0
  1251. package/packages/ui/dist/navigation/TabBar.d.ts.map +1 -0
  1252. package/packages/ui/dist/navigation/TabBar.js +26 -0
  1253. package/packages/ui/dist/navigation/TabBar.js.map +1 -0
  1254. package/packages/ui/dist/navigation/index.d.ts +4 -0
  1255. package/packages/ui/dist/navigation/index.d.ts.map +1 -0
  1256. package/packages/ui/dist/navigation/index.js +22 -0
  1257. package/packages/ui/dist/navigation/index.js.map +1 -0
  1258. package/packages/ui/dist/overlay/Dialog.d.ts +31 -0
  1259. package/packages/ui/dist/overlay/Dialog.d.ts.map +1 -0
  1260. package/packages/ui/dist/overlay/Dialog.js +81 -0
  1261. package/packages/ui/dist/overlay/Dialog.js.map +1 -0
  1262. package/packages/ui/dist/overlay/Modal.d.ts +19 -0
  1263. package/packages/ui/dist/overlay/Modal.d.ts.map +1 -0
  1264. package/packages/ui/dist/overlay/Modal.js +31 -0
  1265. package/packages/ui/dist/overlay/Modal.js.map +1 -0
  1266. package/packages/ui/dist/overlay/Sheet.d.ts +20 -0
  1267. package/packages/ui/dist/overlay/Sheet.d.ts.map +1 -0
  1268. package/packages/ui/dist/overlay/Sheet.js +31 -0
  1269. package/packages/ui/dist/overlay/Sheet.js.map +1 -0
  1270. package/packages/ui/dist/overlay/index.d.ts +4 -0
  1271. package/packages/ui/dist/overlay/index.d.ts.map +1 -0
  1272. package/packages/ui/dist/overlay/index.js +22 -0
  1273. package/packages/ui/dist/overlay/index.js.map +1 -0
  1274. package/packages/ui/dist/typography/Code.d.ts +18 -0
  1275. package/packages/ui/dist/typography/Code.d.ts.map +1 -0
  1276. package/packages/ui/dist/typography/Code.js +29 -0
  1277. package/packages/ui/dist/typography/Code.js.map +1 -0
  1278. package/packages/ui/dist/typography/Heading.d.ts +14 -0
  1279. package/packages/ui/dist/typography/Heading.d.ts.map +1 -0
  1280. package/packages/ui/dist/typography/Heading.js +39 -0
  1281. package/packages/ui/dist/typography/Heading.js.map +1 -0
  1282. package/packages/ui/dist/typography/Markdown.d.ts +14 -0
  1283. package/packages/ui/dist/typography/Markdown.d.ts.map +1 -0
  1284. package/packages/ui/dist/typography/Markdown.js +27 -0
  1285. package/packages/ui/dist/typography/Markdown.js.map +1 -0
  1286. package/packages/ui/dist/typography/Text.d.ts +25 -0
  1287. package/packages/ui/dist/typography/Text.d.ts.map +1 -0
  1288. package/packages/ui/dist/typography/Text.js +34 -0
  1289. package/packages/ui/dist/typography/Text.js.map +1 -0
  1290. package/packages/ui/dist/typography/index.d.ts +5 -0
  1291. package/packages/ui/dist/typography/index.d.ts.map +1 -0
  1292. package/packages/ui/dist/typography/index.js +23 -0
  1293. package/packages/ui/dist/typography/index.js.map +1 -0
  1294. package/packages/ui/package.json +35 -0
  1295. package/packages/ui/src/charts/BarChart.ts +86 -0
  1296. package/packages/ui/src/charts/LineChart.ts +98 -0
  1297. package/packages/ui/src/charts/index.ts +5 -0
  1298. package/packages/ui/src/conditional/If.ts +30 -0
  1299. package/packages/ui/src/data/List.ts +72 -0
  1300. package/packages/ui/src/data/Table.ts +5 -0
  1301. package/packages/ui/src/data/index.ts +111 -0
  1302. package/packages/ui/src/display/Avatar.ts +93 -0
  1303. package/packages/ui/src/display/Badge.ts +72 -0
  1304. package/packages/ui/src/display/Card.ts +82 -0
  1305. package/packages/ui/src/display/Icon.ts +75 -0
  1306. package/packages/ui/src/display/Image.ts +80 -0
  1307. package/packages/ui/src/display/index.ts +8 -0
  1308. package/packages/ui/src/feedback/EmptyState.ts +56 -0
  1309. package/packages/ui/src/feedback/Skeleton.ts +53 -0
  1310. package/packages/ui/src/feedback/Spinner.ts +61 -0
  1311. package/packages/ui/src/feedback/index.ts +6 -0
  1312. package/packages/ui/src/index.ts +33 -0
  1313. package/packages/ui/src/input/Button.ts +104 -0
  1314. package/packages/ui/src/input/Checkbox.ts +58 -0
  1315. package/packages/ui/src/input/Dropdown.ts +92 -0
  1316. package/packages/ui/src/input/Input.ts +138 -0
  1317. package/packages/ui/src/input/SearchBar.ts +77 -0
  1318. package/packages/ui/src/input/Slider.ts +82 -0
  1319. package/packages/ui/src/input/Toggle.ts +65 -0
  1320. package/packages/ui/src/input/index.ts +10 -0
  1321. package/packages/ui/src/layout/Box.ts +94 -0
  1322. package/packages/ui/src/layout/Column.ts +86 -0
  1323. package/packages/ui/src/layout/Divider.ts +50 -0
  1324. package/packages/ui/src/layout/Grid.ts +62 -0
  1325. package/packages/ui/src/layout/Row.ts +77 -0
  1326. package/packages/ui/src/layout/ScrollView.ts +64 -0
  1327. package/packages/ui/src/layout/Spacer.ts +34 -0
  1328. package/packages/ui/src/layout/Stack.ts +54 -0
  1329. package/packages/ui/src/layout/index.ts +11 -0
  1330. package/packages/ui/src/navigation/BottomNav.ts +73 -0
  1331. package/packages/ui/src/navigation/Drawer.ts +72 -0
  1332. package/packages/ui/src/navigation/TabBar.ts +73 -0
  1333. package/packages/ui/src/navigation/index.ts +6 -0
  1334. package/packages/ui/src/overlay/Dialog.ts +124 -0
  1335. package/packages/ui/src/overlay/Modal.ts +76 -0
  1336. package/packages/ui/src/overlay/Sheet.ts +79 -0
  1337. package/packages/ui/src/overlay/index.ts +6 -0
  1338. package/packages/ui/src/typography/Code.ts +88 -0
  1339. package/packages/ui/src/typography/Heading.ts +70 -0
  1340. package/packages/ui/src/typography/Markdown.ts +56 -0
  1341. package/packages/ui/src/typography/Text.ts +104 -0
  1342. package/packages/ui/src/typography/index.ts +7 -0
  1343. package/packages/ui/tsconfig.json +18 -0
  1344. package/packages/updater/dist/index.d.ts +2 -0
  1345. package/packages/updater/dist/index.d.ts.map +1 -0
  1346. package/packages/updater/dist/index.js +20 -0
  1347. package/packages/updater/dist/index.js.map +1 -0
  1348. package/packages/updater/dist/updater.d.ts +49 -0
  1349. package/packages/updater/dist/updater.d.ts.map +1 -0
  1350. package/packages/updater/dist/updater.js +119 -0
  1351. package/packages/updater/dist/updater.js.map +1 -0
  1352. package/packages/updater/package.json +30 -0
  1353. package/packages/updater/src/index.ts +4 -0
  1354. package/packages/updater/src/updater.ts +254 -0
  1355. package/packages/updater/tsconfig.json +17 -0
  1356. package/prompt-app/addlibrary.ts +7 -0
  1357. package/prompt-app/app.dtx +27 -0
  1358. package/prompt-app/package.json +13 -0
  1359. package/prompt-app/screens/Home.dtx +20 -0
  1360. package/prompt-app/tsconfig.json +8 -0
  1361. package/tools/build/build.js +38 -0
  1362. package/tools/build/publish.js +39 -0
  1363. package/tools/build/test.js +24 -0
  1364. package/ts-app/addlibrary.ts +7 -0
  1365. package/ts-app/app.ts +29 -0
  1366. package/ts-app/package.json +13 -0
  1367. package/ts-app/screens/Home.ts +20 -0
  1368. package/ts-app/tsconfig.json +8 -0
  1369. package/tsconfig.json +13 -0
@@ -0,0 +1,597 @@
1
+ /**
2
+ * The `node:dgram` module provides an implementation of UDP datagram sockets.
3
+ *
4
+ * ```js
5
+ * import dgram from 'node:dgram';
6
+ *
7
+ * const server = dgram.createSocket('udp4');
8
+ *
9
+ * server.on('error', (err) => {
10
+ * console.error(`server error:\n${err.stack}`);
11
+ * server.close();
12
+ * });
13
+ *
14
+ * server.on('message', (msg, rinfo) => {
15
+ * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
16
+ * });
17
+ *
18
+ * server.on('listening', () => {
19
+ * const address = server.address();
20
+ * console.log(`server listening ${address.address}:${address.port}`);
21
+ * });
22
+ *
23
+ * server.bind(41234);
24
+ * // Prints: server listening 0.0.0.0:41234
25
+ * ```
26
+ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/dgram.js)
27
+ */
28
+ declare module "dgram" {
29
+ import { NonSharedBuffer } from "node:buffer";
30
+ import { AddressInfo } from "node:net";
31
+ import * as dns from "node:dns";
32
+ import { Abortable, EventEmitter } from "node:events";
33
+ interface RemoteInfo {
34
+ address: string;
35
+ family: "IPv4" | "IPv6";
36
+ port: number;
37
+ size: number;
38
+ }
39
+ interface BindOptions {
40
+ port?: number | undefined;
41
+ address?: string | undefined;
42
+ exclusive?: boolean | undefined;
43
+ fd?: number | undefined;
44
+ }
45
+ type SocketType = "udp4" | "udp6";
46
+ interface SocketOptions extends Abortable {
47
+ type: SocketType;
48
+ reuseAddr?: boolean | undefined;
49
+ /**
50
+ * @default false
51
+ */
52
+ ipv6Only?: boolean | undefined;
53
+ recvBufferSize?: number | undefined;
54
+ sendBufferSize?: number | undefined;
55
+ lookup?:
56
+ | ((
57
+ hostname: string,
58
+ options: dns.LookupOneOptions,
59
+ callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
60
+ ) => void)
61
+ | undefined;
62
+ }
63
+ /**
64
+ * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram
65
+ * messages. When `address` and `port` are not passed to `socket.bind()` the
66
+ * method will bind the socket to the "all interfaces" address on a random port
67
+ * (it does the right thing for both `udp4` and `udp6` sockets). The bound address
68
+ * and port can be retrieved using `socket.address().address` and `socket.address().port`.
69
+ *
70
+ * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.close()` on the socket:
71
+ *
72
+ * ```js
73
+ * const controller = new AbortController();
74
+ * const { signal } = controller;
75
+ * const server = dgram.createSocket({ type: 'udp4', signal });
76
+ * server.on('message', (msg, rinfo) => {
77
+ * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
78
+ * });
79
+ * // Later, when you want to close the server.
80
+ * controller.abort();
81
+ * ```
82
+ * @since v0.11.13
83
+ * @param options Available options are:
84
+ * @param callback Attached as a listener for `'message'` events. Optional.
85
+ */
86
+ function createSocket(type: SocketType, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket;
87
+ function createSocket(options: SocketOptions, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket;
88
+ /**
89
+ * Encapsulates the datagram functionality.
90
+ *
91
+ * New instances of `dgram.Socket` are created using {@link createSocket}.
92
+ * The `new` keyword is not to be used to create `dgram.Socket` instances.
93
+ * @since v0.1.99
94
+ */
95
+ class Socket extends EventEmitter {
96
+ /**
97
+ * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` argument is not
98
+ * specified, the operating system will choose
99
+ * one interface and will add membership to it. To add membership to every
100
+ * available interface, call `addMembership` multiple times, once per interface.
101
+ *
102
+ * When called on an unbound socket, this method will implicitly bind to a random
103
+ * port, listening on all interfaces.
104
+ *
105
+ * When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur:
106
+ *
107
+ * ```js
108
+ * import cluster from 'node:cluster';
109
+ * import dgram from 'node:dgram';
110
+ *
111
+ * if (cluster.isPrimary) {
112
+ * cluster.fork(); // Works ok.
113
+ * cluster.fork(); // Fails with EADDRINUSE.
114
+ * } else {
115
+ * const s = dgram.createSocket('udp4');
116
+ * s.bind(1234, () => {
117
+ * s.addMembership('224.0.0.114');
118
+ * });
119
+ * }
120
+ * ```
121
+ * @since v0.6.9
122
+ */
123
+ addMembership(multicastAddress: string, multicastInterface?: string): void;
124
+ /**
125
+ * Returns an object containing the address information for a socket.
126
+ * For UDP sockets, this object will contain `address`, `family`, and `port` properties.
127
+ *
128
+ * This method throws `EBADF` if called on an unbound socket.
129
+ * @since v0.1.99
130
+ */
131
+ address(): AddressInfo;
132
+ /**
133
+ * For UDP sockets, causes the `dgram.Socket` to listen for datagram
134
+ * messages on a named `port` and optional `address`. If `port` is not
135
+ * specified or is `0`, the operating system will attempt to bind to a
136
+ * random port. If `address` is not specified, the operating system will
137
+ * attempt to listen on all addresses. Once binding is complete, a `'listening'` event is emitted and the optional `callback` function is
138
+ * called.
139
+ *
140
+ * Specifying both a `'listening'` event listener and passing a `callback` to the `socket.bind()` method is not harmful but not very
141
+ * useful.
142
+ *
143
+ * A bound datagram socket keeps the Node.js process running to receive
144
+ * datagram messages.
145
+ *
146
+ * If binding fails, an `'error'` event is generated. In rare case (e.g.
147
+ * attempting to bind with a closed socket), an `Error` may be thrown.
148
+ *
149
+ * Example of a UDP server listening on port 41234:
150
+ *
151
+ * ```js
152
+ * import dgram from 'node:dgram';
153
+ *
154
+ * const server = dgram.createSocket('udp4');
155
+ *
156
+ * server.on('error', (err) => {
157
+ * console.error(`server error:\n${err.stack}`);
158
+ * server.close();
159
+ * });
160
+ *
161
+ * server.on('message', (msg, rinfo) => {
162
+ * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
163
+ * });
164
+ *
165
+ * server.on('listening', () => {
166
+ * const address = server.address();
167
+ * console.log(`server listening ${address.address}:${address.port}`);
168
+ * });
169
+ *
170
+ * server.bind(41234);
171
+ * // Prints: server listening 0.0.0.0:41234
172
+ * ```
173
+ * @since v0.1.99
174
+ * @param callback with no parameters. Called when binding is complete.
175
+ */
176
+ bind(port?: number, address?: string, callback?: () => void): this;
177
+ bind(port?: number, callback?: () => void): this;
178
+ bind(callback?: () => void): this;
179
+ bind(options: BindOptions, callback?: () => void): this;
180
+ /**
181
+ * Close the underlying socket and stop listening for data on it. If a callback is
182
+ * provided, it is added as a listener for the `'close'` event.
183
+ * @since v0.1.99
184
+ * @param callback Called when the socket has been closed.
185
+ */
186
+ close(callback?: () => void): this;
187
+ /**
188
+ * Associates the `dgram.Socket` to a remote address and port. Every
189
+ * message sent by this handle is automatically sent to that destination. Also,
190
+ * the socket will only receive messages from that remote peer.
191
+ * Trying to call `connect()` on an already connected socket will result
192
+ * in an `ERR_SOCKET_DGRAM_IS_CONNECTED` exception. If `address` is not
193
+ * provided, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets)
194
+ * will be used by default. Once the connection is complete, a `'connect'` event
195
+ * is emitted and the optional `callback` function is called. In case of failure,
196
+ * the `callback` is called or, failing this, an `'error'` event is emitted.
197
+ * @since v12.0.0
198
+ * @param callback Called when the connection is completed or on error.
199
+ */
200
+ connect(port: number, address?: string, callback?: () => void): void;
201
+ connect(port: number, callback: () => void): void;
202
+ /**
203
+ * A synchronous function that disassociates a connected `dgram.Socket` from
204
+ * its remote address. Trying to call `disconnect()` on an unbound or already
205
+ * disconnected socket will result in an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception.
206
+ * @since v12.0.0
207
+ */
208
+ disconnect(): void;
209
+ /**
210
+ * Instructs the kernel to leave a multicast group at `multicastAddress` using the `IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the
211
+ * kernel when the socket is closed or the process terminates, so most apps will
212
+ * never have reason to call this.
213
+ *
214
+ * If `multicastInterface` is not specified, the operating system will attempt to
215
+ * drop membership on all valid interfaces.
216
+ * @since v0.6.9
217
+ */
218
+ dropMembership(multicastAddress: string, multicastInterface?: string): void;
219
+ /**
220
+ * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket.
221
+ * @since v8.7.0
222
+ * @return the `SO_RCVBUF` socket receive buffer size in bytes.
223
+ */
224
+ getRecvBufferSize(): number;
225
+ /**
226
+ * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket.
227
+ * @since v8.7.0
228
+ * @return the `SO_SNDBUF` socket send buffer size in bytes.
229
+ */
230
+ getSendBufferSize(): number;
231
+ /**
232
+ * @since v18.8.0, v16.19.0
233
+ * @return Number of bytes queued for sending.
234
+ */
235
+ getSendQueueSize(): number;
236
+ /**
237
+ * @since v18.8.0, v16.19.0
238
+ * @return Number of send requests currently in the queue awaiting to be processed.
239
+ */
240
+ getSendQueueCount(): number;
241
+ /**
242
+ * By default, binding a socket will cause it to block the Node.js process from
243
+ * exiting as long as the socket is open. The `socket.unref()` method can be used
244
+ * to exclude the socket from the reference counting that keeps the Node.js
245
+ * process active. The `socket.ref()` method adds the socket back to the reference
246
+ * counting and restores the default behavior.
247
+ *
248
+ * Calling `socket.ref()` multiples times will have no additional effect.
249
+ *
250
+ * The `socket.ref()` method returns a reference to the socket so calls can be
251
+ * chained.
252
+ * @since v0.9.1
253
+ */
254
+ ref(): this;
255
+ /**
256
+ * Returns an object containing the `address`, `family`, and `port` of the remote
257
+ * endpoint. This method throws an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception
258
+ * if the socket is not connected.
259
+ * @since v12.0.0
260
+ */
261
+ remoteAddress(): AddressInfo;
262
+ /**
263
+ * Broadcasts a datagram on the socket.
264
+ * For connectionless sockets, the destination `port` and `address` must be
265
+ * specified. Connected sockets, on the other hand, will use their associated
266
+ * remote endpoint, so the `port` and `address` arguments must not be set.
267
+ *
268
+ * The `msg` argument contains the message to be sent.
269
+ * Depending on its type, different behavior can apply. If `msg` is a `Buffer`,
270
+ * any `TypedArray` or a `DataView`,
271
+ * the `offset` and `length` specify the offset within the `Buffer` where the
272
+ * message begins and the number of bytes in the message, respectively.
273
+ * If `msg` is a `String`, then it is automatically converted to a `Buffer` with `'utf8'` encoding. With messages that
274
+ * contain multi-byte characters, `offset` and `length` will be calculated with
275
+ * respect to `byte length` and not the character position.
276
+ * If `msg` is an array, `offset` and `length` must not be specified.
277
+ *
278
+ * The `address` argument is a string. If the value of `address` is a host name,
279
+ * DNS will be used to resolve the address of the host. If `address` is not
280
+ * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default.
281
+ *
282
+ * If the socket has not been previously bound with a call to `bind`, the socket
283
+ * is assigned a random port number and is bound to the "all interfaces" address
284
+ * (`'0.0.0.0'` for `udp4` sockets, `'::0'` for `udp6` sockets.)
285
+ *
286
+ * An optional `callback` function may be specified to as a way of reporting
287
+ * DNS errors or for determining when it is safe to reuse the `buf` object.
288
+ * DNS lookups delay the time to send for at least one tick of the
289
+ * Node.js event loop.
290
+ *
291
+ * The only way to know for sure that the datagram has been sent is by using a `callback`. If an error occurs and a `callback` is given, the error will be
292
+ * passed as the first argument to the `callback`. If a `callback` is not given,
293
+ * the error is emitted as an `'error'` event on the `socket` object.
294
+ *
295
+ * Offset and length are optional but both _must_ be set if either are used.
296
+ * They are supported only when the first argument is a `Buffer`, a `TypedArray`,
297
+ * or a `DataView`.
298
+ *
299
+ * This method throws `ERR_SOCKET_BAD_PORT` if called on an unbound socket.
300
+ *
301
+ * Example of sending a UDP packet to a port on `localhost`;
302
+ *
303
+ * ```js
304
+ * import dgram from 'node:dgram';
305
+ * import { Buffer } from 'node:buffer';
306
+ *
307
+ * const message = Buffer.from('Some bytes');
308
+ * const client = dgram.createSocket('udp4');
309
+ * client.send(message, 41234, 'localhost', (err) => {
310
+ * client.close();
311
+ * });
312
+ * ```
313
+ *
314
+ * Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`;
315
+ *
316
+ * ```js
317
+ * import dgram from 'node:dgram';
318
+ * import { Buffer } from 'node:buffer';
319
+ *
320
+ * const buf1 = Buffer.from('Some ');
321
+ * const buf2 = Buffer.from('bytes');
322
+ * const client = dgram.createSocket('udp4');
323
+ * client.send([buf1, buf2], 41234, (err) => {
324
+ * client.close();
325
+ * });
326
+ * ```
327
+ *
328
+ * Sending multiple buffers might be faster or slower depending on the
329
+ * application and operating system. Run benchmarks to
330
+ * determine the optimal strategy on a case-by-case basis. Generally speaking,
331
+ * however, sending multiple buffers is faster.
332
+ *
333
+ * Example of sending a UDP packet using a socket connected to a port on `localhost`:
334
+ *
335
+ * ```js
336
+ * import dgram from 'node:dgram';
337
+ * import { Buffer } from 'node:buffer';
338
+ *
339
+ * const message = Buffer.from('Some bytes');
340
+ * const client = dgram.createSocket('udp4');
341
+ * client.connect(41234, 'localhost', (err) => {
342
+ * client.send(message, (err) => {
343
+ * client.close();
344
+ * });
345
+ * });
346
+ * ```
347
+ * @since v0.1.99
348
+ * @param msg Message to be sent.
349
+ * @param offset Offset in the buffer where the message starts.
350
+ * @param length Number of bytes in the message.
351
+ * @param port Destination port.
352
+ * @param address Destination host name or IP address.
353
+ * @param callback Called when the message has been sent.
354
+ */
355
+ send(
356
+ msg: string | NodeJS.ArrayBufferView | readonly any[],
357
+ port?: number,
358
+ address?: string,
359
+ callback?: (error: Error | null, bytes: number) => void,
360
+ ): void;
361
+ send(
362
+ msg: string | NodeJS.ArrayBufferView | readonly any[],
363
+ port?: number,
364
+ callback?: (error: Error | null, bytes: number) => void,
365
+ ): void;
366
+ send(
367
+ msg: string | NodeJS.ArrayBufferView | readonly any[],
368
+ callback?: (error: Error | null, bytes: number) => void,
369
+ ): void;
370
+ send(
371
+ msg: string | NodeJS.ArrayBufferView,
372
+ offset: number,
373
+ length: number,
374
+ port?: number,
375
+ address?: string,
376
+ callback?: (error: Error | null, bytes: number) => void,
377
+ ): void;
378
+ send(
379
+ msg: string | NodeJS.ArrayBufferView,
380
+ offset: number,
381
+ length: number,
382
+ port?: number,
383
+ callback?: (error: Error | null, bytes: number) => void,
384
+ ): void;
385
+ send(
386
+ msg: string | NodeJS.ArrayBufferView,
387
+ offset: number,
388
+ length: number,
389
+ callback?: (error: Error | null, bytes: number) => void,
390
+ ): void;
391
+ /**
392
+ * Sets or clears the `SO_BROADCAST` socket option. When set to `true`, UDP
393
+ * packets may be sent to a local interface's broadcast address.
394
+ *
395
+ * This method throws `EBADF` if called on an unbound socket.
396
+ * @since v0.6.9
397
+ */
398
+ setBroadcast(flag: boolean): void;
399
+ /**
400
+ * _All references to scope in this section are referring to [IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC
401
+ * 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_
402
+ * _with a scope index is written as `'IP%scope'` where scope is an interface name_
403
+ * _or interface number._
404
+ *
405
+ * Sets the default outgoing multicast interface of the socket to a chosen
406
+ * interface or back to system interface selection. The `multicastInterface` must
407
+ * be a valid string representation of an IP from the socket's family.
408
+ *
409
+ * For IPv4 sockets, this should be the IP configured for the desired physical
410
+ * interface. All packets sent to multicast on the socket will be sent on the
411
+ * interface determined by the most recent successful use of this call.
412
+ *
413
+ * For IPv6 sockets, `multicastInterface` should include a scope to indicate the
414
+ * interface as in the examples that follow. In IPv6, individual `send` calls can
415
+ * also use explicit scope in addresses, so only packets sent to a multicast
416
+ * address without specifying an explicit scope are affected by the most recent
417
+ * successful use of this call.
418
+ *
419
+ * This method throws `EBADF` if called on an unbound socket.
420
+ *
421
+ * #### Example: IPv6 outgoing multicast interface
422
+ *
423
+ * On most systems, where scope format uses the interface name:
424
+ *
425
+ * ```js
426
+ * const socket = dgram.createSocket('udp6');
427
+ *
428
+ * socket.bind(1234, () => {
429
+ * socket.setMulticastInterface('::%eth1');
430
+ * });
431
+ * ```
432
+ *
433
+ * On Windows, where scope format uses an interface number:
434
+ *
435
+ * ```js
436
+ * const socket = dgram.createSocket('udp6');
437
+ *
438
+ * socket.bind(1234, () => {
439
+ * socket.setMulticastInterface('::%2');
440
+ * });
441
+ * ```
442
+ *
443
+ * #### Example: IPv4 outgoing multicast interface
444
+ *
445
+ * All systems use an IP of the host on the desired physical interface:
446
+ *
447
+ * ```js
448
+ * const socket = dgram.createSocket('udp4');
449
+ *
450
+ * socket.bind(1234, () => {
451
+ * socket.setMulticastInterface('10.0.0.2');
452
+ * });
453
+ * ```
454
+ * @since v8.6.0
455
+ */
456
+ setMulticastInterface(multicastInterface: string): void;
457
+ /**
458
+ * Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`,
459
+ * multicast packets will also be received on the local interface.
460
+ *
461
+ * This method throws `EBADF` if called on an unbound socket.
462
+ * @since v0.3.8
463
+ */
464
+ setMulticastLoopback(flag: boolean): boolean;
465
+ /**
466
+ * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for
467
+ * "Time to Live", in this context it specifies the number of IP hops that a
468
+ * packet is allowed to travel through, specifically for multicast traffic. Each
469
+ * router or gateway that forwards a packet decrements the TTL. If the TTL is
470
+ * decremented to 0 by a router, it will not be forwarded.
471
+ *
472
+ * The `ttl` argument may be between 0 and 255\. The default on most systems is `1`.
473
+ *
474
+ * This method throws `EBADF` if called on an unbound socket.
475
+ * @since v0.3.8
476
+ */
477
+ setMulticastTTL(ttl: number): number;
478
+ /**
479
+ * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer
480
+ * in bytes.
481
+ *
482
+ * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket.
483
+ * @since v8.7.0
484
+ */
485
+ setRecvBufferSize(size: number): void;
486
+ /**
487
+ * Sets the `SO_SNDBUF` socket option. Sets the maximum socket send buffer
488
+ * in bytes.
489
+ *
490
+ * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket.
491
+ * @since v8.7.0
492
+ */
493
+ setSendBufferSize(size: number): void;
494
+ /**
495
+ * Sets the `IP_TTL` socket option. While TTL generally stands for "Time to Live",
496
+ * in this context it specifies the number of IP hops that a packet is allowed to
497
+ * travel through. Each router or gateway that forwards a packet decrements the
498
+ * TTL. If the TTL is decremented to 0 by a router, it will not be forwarded.
499
+ * Changing TTL values is typically done for network probes or when multicasting.
500
+ *
501
+ * The `ttl` argument may be between 1 and 255\. The default on most systems
502
+ * is 64.
503
+ *
504
+ * This method throws `EBADF` if called on an unbound socket.
505
+ * @since v0.1.101
506
+ */
507
+ setTTL(ttl: number): number;
508
+ /**
509
+ * By default, binding a socket will cause it to block the Node.js process from
510
+ * exiting as long as the socket is open. The `socket.unref()` method can be used
511
+ * to exclude the socket from the reference counting that keeps the Node.js
512
+ * process active, allowing the process to exit even if the socket is still
513
+ * listening.
514
+ *
515
+ * Calling `socket.unref()` multiple times will have no additional effect.
516
+ *
517
+ * The `socket.unref()` method returns a reference to the socket so calls can be
518
+ * chained.
519
+ * @since v0.9.1
520
+ */
521
+ unref(): this;
522
+ /**
523
+ * Tells the kernel to join a source-specific multicast channel at the given `sourceAddress` and `groupAddress`, using the `multicastInterface` with the `IP_ADD_SOURCE_MEMBERSHIP` socket
524
+ * option. If the `multicastInterface` argument
525
+ * is not specified, the operating system will choose one interface and will add
526
+ * membership to it. To add membership to every available interface, call `socket.addSourceSpecificMembership()` multiple times, once per interface.
527
+ *
528
+ * When called on an unbound socket, this method will implicitly bind to a random
529
+ * port, listening on all interfaces.
530
+ * @since v13.1.0, v12.16.0
531
+ */
532
+ addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
533
+ /**
534
+ * Instructs the kernel to leave a source-specific multicast channel at the given `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP` socket option. This method is
535
+ * automatically called by the kernel when the
536
+ * socket is closed or the process terminates, so most apps will never have
537
+ * reason to call this.
538
+ *
539
+ * If `multicastInterface` is not specified, the operating system will attempt to
540
+ * drop membership on all valid interfaces.
541
+ * @since v13.1.0, v12.16.0
542
+ */
543
+ dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
544
+ /**
545
+ * events.EventEmitter
546
+ * 1. close
547
+ * 2. connect
548
+ * 3. error
549
+ * 4. listening
550
+ * 5. message
551
+ */
552
+ addListener(event: string, listener: (...args: any[]) => void): this;
553
+ addListener(event: "close", listener: () => void): this;
554
+ addListener(event: "connect", listener: () => void): this;
555
+ addListener(event: "error", listener: (err: Error) => void): this;
556
+ addListener(event: "listening", listener: () => void): this;
557
+ addListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
558
+ emit(event: string | symbol, ...args: any[]): boolean;
559
+ emit(event: "close"): boolean;
560
+ emit(event: "connect"): boolean;
561
+ emit(event: "error", err: Error): boolean;
562
+ emit(event: "listening"): boolean;
563
+ emit(event: "message", msg: NonSharedBuffer, rinfo: RemoteInfo): boolean;
564
+ on(event: string, listener: (...args: any[]) => void): this;
565
+ on(event: "close", listener: () => void): this;
566
+ on(event: "connect", listener: () => void): this;
567
+ on(event: "error", listener: (err: Error) => void): this;
568
+ on(event: "listening", listener: () => void): this;
569
+ on(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
570
+ once(event: string, listener: (...args: any[]) => void): this;
571
+ once(event: "close", listener: () => void): this;
572
+ once(event: "connect", listener: () => void): this;
573
+ once(event: "error", listener: (err: Error) => void): this;
574
+ once(event: "listening", listener: () => void): this;
575
+ once(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
576
+ prependListener(event: string, listener: (...args: any[]) => void): this;
577
+ prependListener(event: "close", listener: () => void): this;
578
+ prependListener(event: "connect", listener: () => void): this;
579
+ prependListener(event: "error", listener: (err: Error) => void): this;
580
+ prependListener(event: "listening", listener: () => void): this;
581
+ prependListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
582
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
583
+ prependOnceListener(event: "close", listener: () => void): this;
584
+ prependOnceListener(event: "connect", listener: () => void): this;
585
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
586
+ prependOnceListener(event: "listening", listener: () => void): this;
587
+ prependOnceListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
588
+ /**
589
+ * Calls `socket.close()` and returns a promise that fulfills when the socket has closed.
590
+ * @since v20.5.0
591
+ */
592
+ [Symbol.asyncDispose](): Promise<void>;
593
+ }
594
+ }
595
+ declare module "node:dgram" {
596
+ export * from "dgram";
597
+ }