@runlith/tagma 0.0.0-stage → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) hide show
  1. package/adapter/claudeHooks.d.ts +10 -0
  2. package/adapter/claudeHooks.js +4 -0
  3. package/adapter/declaration.d.ts +14 -0
  4. package/adapter/declaration.js +2 -0
  5. package/adapter/harness.d.ts +454 -0
  6. package/adapter/harness.js +2 -0
  7. package/adapter/hook.d.ts +43 -0
  8. package/adapter/hook.js +2 -0
  9. package/adapter/hostModules.d.ts +19 -0
  10. package/adapter/hostModules.js +2 -0
  11. package/adapter/loader.d.ts +10 -0
  12. package/adapter/loader.js +2 -0
  13. package/adapter/metadata.d.ts +179 -0
  14. package/adapter/metadata.js +4 -0
  15. package/adapter/payload.d.ts +19 -0
  16. package/adapter/payload.js +3 -0
  17. package/adapter/provider.d.ts +209 -0
  18. package/adapter/provider.js +2 -0
  19. package/adapter/settings.d.ts +182 -0
  20. package/adapter/settings.js +2 -0
  21. package/adapter/speech.d.ts +4 -0
  22. package/adapter/speech.js +2 -0
  23. package/host.d.ts +61223 -0
  24. package/package.json +134 -3
  25. package/plugin/Held-cvetk2wg.js +6 -0
  26. package/plugin/accountKey-t44g9avw.js +2 -0
  27. package/plugin/adapter-qdnpxs6n.js +1 -0
  28. package/plugin/anthropic-a4pdzrv2.js +2 -0
  29. package/plugin/anthropic-messages-svq0svwe.js +2 -0
  30. package/plugin/anthropic-q1xa9n0j.js +2 -0
  31. package/plugin/auth-cp8wnd0z.js +2 -0
  32. package/plugin/authStatus-d6scztz5.js +2 -0
  33. package/plugin/bundling.d.ts +30 -0
  34. package/plugin/bundling.js +2 -0
  35. package/plugin/cacheLifetime-c5mpw676.js +2 -0
  36. package/plugin/callback-server-q2asby82.js +16 -0
  37. package/plugin/capabilities-jfhf61dt.js +2 -0
  38. package/plugin/claudeHooks-edpg1e46.js +3 -0
  39. package/plugin/cli.js +21 -0
  40. package/plugin/cliStore-5s0qerr7.js +2 -0
  41. package/plugin/clientSession-tmmxm39z.js +2 -0
  42. package/plugin/codec-aa8mxqyr.js +1 -0
  43. package/plugin/connect-d7ec6kfh.js +2 -0
  44. package/plugin/contract-qn0z7r9c.js +1 -0
  45. package/plugin/credential-garn07qc.js +2 -0
  46. package/plugin/deepseek-fvdrmjr9.js +2 -0
  47. package/plugin/deepseek-sp4vxjqy.js +2 -0
  48. package/plugin/definition-0h3gqd2z.js +2 -0
  49. package/plugin/description-8xhxryaq.js +2 -0
  50. package/plugin/deviceGrant-axpyc7xr.js +2 -0
  51. package/plugin/devin-hy98d305.js +2 -0
  52. package/plugin/duplex-yexjcpv2.js +2 -0
  53. package/plugin/endpoint-0b9bsb4q.js +2 -0
  54. package/plugin/errors-kck87dpv.js +2 -0
  55. package/plugin/events-81m69vqz.js +2 -0
  56. package/plugin/events-s95ybm4g.js +2 -0
  57. package/plugin/executor-avear8af.js +2 -0
  58. package/plugin/failure-ddv4456n.js +2 -0
  59. package/plugin/framing-jnd2zm0h.js +2 -0
  60. package/plugin/grant-85r3bbqn.js +2 -0
  61. package/plugin/harness-jm3fhnwg.js +2 -0
  62. package/plugin/headers-w6p5sp18.js +2 -0
  63. package/plugin/hook-hjrk83m8.js +2 -0
  64. package/plugin/icon-044pa3y8.js +6 -0
  65. package/plugin/icon-j22svmgp.js +4 -0
  66. package/plugin/icon-ny6qbjvc.js +4 -0
  67. package/plugin/icon-pz54e8n3.js +4 -0
  68. package/plugin/icon-qy92jx2b.js +4 -0
  69. package/plugin/ids-2dndaq8y.js +2 -0
  70. package/plugin/images-s2kqebfv.js +2 -0
  71. package/plugin/index-b3yp4szm.js +2 -0
  72. package/plugin/index-xs7nfsck.js +2 -0
  73. package/plugin/lifecycle-er51apxp.js +2 -0
  74. package/plugin/manual-2mdscj84.js +2 -0
  75. package/plugin/messages-gmwcg1pq.js +2 -0
  76. package/plugin/metadata-gpazs3f5.js +4 -0
  77. package/plugin/muse-g8bc58v8.js +2 -0
  78. package/plugin/muse-tfe6sph7.js +2 -0
  79. package/plugin/museToolSchema-tbe0f3wa.js +2 -0
  80. package/plugin/notes-5m0m3pdr.js +2 -0
  81. package/plugin/object-9pjtdam7.js +2 -0
  82. package/plugin/open-browser-vqb7ckt1.js +2 -0
  83. package/plugin/openai-6f50tf64.js +2 -0
  84. package/plugin/openai-compatible-chat-eez8hkge.js +2 -0
  85. package/plugin/openai-images-haszbnft.js +2 -0
  86. package/plugin/openai-mfqwg6pa.js +2 -0
  87. package/plugin/openai-responses-1gpyp640.js +2 -0
  88. package/plugin/opencodeGo-1wgdjtjz.js +3 -0
  89. package/plugin/opencodeGo-qgw3pfg6.js +2 -0
  90. package/plugin/options-476akxaj.js +2 -0
  91. package/plugin/payload-2gr4q9g8.js +2 -0
  92. package/plugin/pkce-y3sh5pk8.js +2 -0
  93. package/plugin/plugin-0e34qaar.js +3 -0
  94. package/plugin/plugin-1vpp5mqk.js +4 -0
  95. package/plugin/plugin-1zkx860n.js +3 -0
  96. package/plugin/plugin-217mw9ck.js +3 -0
  97. package/plugin/plugin-24j9hnc7.js +3 -0
  98. package/plugin/plugin-2s6bq45c.js +3 -0
  99. package/plugin/plugin-3969dy0b.js +3 -0
  100. package/plugin/plugin-3b8x73y6.js +3 -0
  101. package/plugin/plugin-3t0qp574.js +3 -0
  102. package/plugin/plugin-55fbx586.js +3 -0
  103. package/plugin/plugin-5zq084fb.js +3 -0
  104. package/plugin/plugin-6a56xsx3.js +3 -0
  105. package/plugin/plugin-6vzw5yyr.js +3 -0
  106. package/plugin/plugin-72xxqm1t.js +3 -0
  107. package/plugin/plugin-7swap1ad.js +3 -0
  108. package/plugin/plugin-7te9b50h.js +3 -0
  109. package/plugin/plugin-7xmwhj5h.js +3 -0
  110. package/plugin/plugin-80gqwmjy.js +3 -0
  111. package/plugin/plugin-8g8myq9g.js +3 -0
  112. package/plugin/plugin-8q44b578.js +3 -0
  113. package/plugin/plugin-8v4g0q0b.js +3 -0
  114. package/plugin/plugin-8x3c401q.js +9 -0
  115. package/plugin/plugin-92sxs4r1.js +3 -0
  116. package/plugin/plugin-9gha9fx3.js +3 -0
  117. package/plugin/plugin-9zbh7788.js +3 -0
  118. package/plugin/plugin-a3vzpk4e.js +3 -0
  119. package/plugin/plugin-ak62rhwz.js +3 -0
  120. package/plugin/plugin-azkzdkpk.js +3 -0
  121. package/plugin/plugin-cydz2zhy.js +3 -0
  122. package/plugin/plugin-d28d8jar.js +4 -0
  123. package/plugin/plugin-dd951075.js +3 -0
  124. package/plugin/plugin-dqxdznvd.js +3 -0
  125. package/plugin/plugin-dsjq4tye.js +3 -0
  126. package/plugin/plugin-e5ybk2a2.js +3 -0
  127. package/plugin/plugin-eksq91yp.js +5 -0
  128. package/plugin/plugin-er1kc6f6.js +5 -0
  129. package/plugin/plugin-fjsmz1vy.js +4 -0
  130. package/plugin/plugin-fre9hdcg.js +3 -0
  131. package/plugin/plugin-g0zv4vrz.js +3 -0
  132. package/plugin/plugin-g4hst0jz.js +3 -0
  133. package/plugin/plugin-g7hrtg2p.js +3 -0
  134. package/plugin/plugin-gh857xdd.js +3 -0
  135. package/plugin/plugin-hkjxkgty.js +3 -0
  136. package/plugin/plugin-jxvmq18y.js +3 -0
  137. package/plugin/plugin-kc4z9msd.js +3 -0
  138. package/plugin/plugin-krbbb4ts.js +3 -0
  139. package/plugin/plugin-me00x60n.js +3 -0
  140. package/plugin/plugin-mqr325kz.js +3 -0
  141. package/plugin/plugin-nzacjxf9.js +3 -0
  142. package/plugin/plugin-p59gy5xd.js +3 -0
  143. package/plugin/plugin-p6x7emar.js +3 -0
  144. package/plugin/plugin-pdww1ma8.js +3 -0
  145. package/plugin/plugin-psj9935q.js +3 -0
  146. package/plugin/plugin-q6pvb1xf.js +3 -0
  147. package/plugin/plugin-r342d8zf.js +3 -0
  148. package/plugin/plugin-r7g3vqrm.js +3 -0
  149. package/plugin/plugin-rrgyjesv.js +3 -0
  150. package/plugin/plugin-t4xrq5q2.js +3 -0
  151. package/plugin/plugin-tetj2cr3.js +3 -0
  152. package/plugin/plugin-v80m00bq.js +14 -0
  153. package/plugin/plugin-vfjhxng8.js +3 -0
  154. package/plugin/plugin-vqrd05eg.js +3 -0
  155. package/plugin/plugin-w3zbkmy6.js +3 -0
  156. package/plugin/plugin-w8f977my.js +3 -0
  157. package/plugin/plugin-xbnw80pk.js +3 -0
  158. package/plugin/plugin-xfcgt5ba.js +36 -0
  159. package/plugin/plugin-y9cdpmbv.js +6 -0
  160. package/plugin/plugin-yg0h5k5d.js +3 -0
  161. package/plugin/plugin-yp736z4n.js +3 -0
  162. package/plugin/plugin-zrb8bbr4.js +3 -0
  163. package/plugin/plugin-zsv7wawc.js +3 -0
  164. package/plugin/plugin.d.ts +175 -0
  165. package/plugin/plugin.js +2 -0
  166. package/plugin/points.generated.d.ts +341 -0
  167. package/plugin/points.generated.js +2 -0
  168. package/plugin/process.d.ts +4 -0
  169. package/plugin/process.js +85 -0
  170. package/plugin/protocol-8c26dk6v.js +2 -0
  171. package/plugin/protocol.d.ts +115 -0
  172. package/plugin/protocol.js +2 -0
  173. package/plugin/provider-0b7xxyhn.js +2 -0
  174. package/plugin/quota-v63yvp13.js +2 -0
  175. package/plugin/quotaRead-esmjycnd.js +2 -0
  176. package/plugin/reasoning-1saw6tds.js +2 -0
  177. package/plugin/record-1m3vvy60.js +2 -0
  178. package/plugin/requests-2zyr1g8e.js +1 -0
  179. package/plugin/responseFold-xxhqx4sa.js +2 -0
  180. package/plugin/settings-8xq8dvhp.js +2 -0
  181. package/plugin/shared-4jndfh28.js +2 -0
  182. package/plugin/speech-067caz1a.js +2 -0
  183. package/plugin/stepfun-3en5g41d.js +2 -0
  184. package/plugin/stepfun-xp1c5wpk.js +2 -0
  185. package/plugin/stream-8yrr289z.js +2 -0
  186. package/plugin/svelteProgram-73v9yajk.js +2 -0
  187. package/plugin/synthesisDuplex-ch9jhqzt.js +2 -0
  188. package/plugin/template.d.ts +14 -0
  189. package/plugin/template.js +2 -0
  190. package/plugin/testing.d.ts +85 -0
  191. package/plugin/testing.js +4 -0
  192. package/plugin/tool-content-vean6rqa.js +2 -0
  193. package/plugin/tool-stream-fb180jmt.js +2 -0
  194. package/plugin/transport-j784dsdr.js +2 -0
  195. package/plugin/ui.generated.d.ts +1041 -0
  196. package/plugin/value.d.ts +8 -0
  197. package/plugin/value.js +2 -0
  198. package/plugin/vendor-pn6b5a8f.js +2 -0
  199. package/plugin/vendorCall-6n5chrn0.js +2 -0
  200. package/plugin/vendorCall-82evk8b3.js +2 -0
  201. package/plugin/vendorPayload-458354fv.js +2 -0
  202. package/plugin/vendorWeb-cz5t01m7.js +2 -0
  203. package/plugin/verbatim-2f2d9n02.js +2 -0
  204. package/plugin/xai-2cqraa99.js +2 -0
  205. package/plugin/xai-e8sbtk6a.js +2 -0
  206. package/rules/effect.d.ts +55 -0
  207. package/rules/effect.js +11 -0
  208. package/rules/rules.d.ts +342 -0
  209. package/rules/rules.js +50 -0
  210. package/types/node/assert/strict.d.ts +12 -0
  211. package/types/node/assert.d.ts +76 -0
  212. package/types/node/async_hooks.d.ts +113 -0
  213. package/types/node/buffer.buffer.d.ts +29 -0
  214. package/types/node/buffer.d.ts +162 -0
  215. package/types/node/child_process.d.ts +337 -0
  216. package/types/node/cluster.d.ts +118 -0
  217. package/types/node/compatibility/iterators.d.ts +11 -0
  218. package/types/node/console.d.ts +48 -0
  219. package/types/node/constants.d.ts +8 -0
  220. package/types/node/crypto.d.ts +847 -0
  221. package/types/node/dgram.d.ts +88 -0
  222. package/types/node/diagnostics_channel.d.ts +61 -0
  223. package/types/node/dns/promises.d.ts +94 -0
  224. package/types/node/dns.d.ts +276 -0
  225. package/types/node/domain.d.ts +17 -0
  226. package/types/node/events.d.ts +138 -0
  227. package/types/node/fs/promises.d.ts +253 -0
  228. package/types/node/fs.d.ts +1038 -0
  229. package/types/node/globals.d.ts +73 -0
  230. package/types/node/globals.typedarray.d.ts +22 -0
  231. package/types/node/http.d.ts +530 -0
  232. package/types/node/http2.d.ts +794 -0
  233. package/types/node/https.d.ts +66 -0
  234. package/types/node/index.d.ts +84 -0
  235. package/types/node/inspector/promises.d.ts +13 -0
  236. package/types/node/inspector.d.ts +61 -0
  237. package/types/node/inspector.generated.d.ts +1624 -0
  238. package/types/node/module.d.ts +187 -0
  239. package/types/node/net.d.ts +266 -0
  240. package/types/node/os.d.ts +236 -0
  241. package/types/node/path/posix.d.ts +8 -0
  242. package/types/node/path/win32.d.ts +8 -0
  243. package/types/node/path.d.ts +40 -0
  244. package/types/node/perf_hooks.d.ts +236 -0
  245. package/types/node/process.d.ts +436 -0
  246. package/types/node/punycode.d.ts +15 -0
  247. package/types/node/querystring.d.ts +22 -0
  248. package/types/node/quic.d.ts +203 -0
  249. package/types/node/readline/promises.d.ts +28 -0
  250. package/types/node/readline.d.ts +94 -0
  251. package/types/node/repl.d.ts +104 -0
  252. package/types/node/sea.d.ts +11 -0
  253. package/types/node/sqlite.d.ts +183 -0
  254. package/types/node/stream/consumers.d.ts +13 -0
  255. package/types/node/stream/iter.d.ts +240 -0
  256. package/types/node/stream/promises.d.ts +37 -0
  257. package/types/node/stream/web.d.ts +297 -0
  258. package/types/node/stream.d.ts +378 -0
  259. package/types/node/string_decoder.d.ts +10 -0
  260. package/types/node/test/reporters.d.ts +66 -0
  261. package/types/node/test.d.ts +462 -0
  262. package/types/node/timers/promises.d.ts +16 -0
  263. package/types/node/timers.d.ts +43 -0
  264. package/types/node/tls.d.ts +279 -0
  265. package/types/node/trace_events.d.ts +16 -0
  266. package/types/node/ts5.6/buffer.buffer.d.ts +26 -0
  267. package/types/node/ts5.6/compatibility/float16array.d.ts +43 -0
  268. package/types/node/ts5.6/globals.typedarray.d.ts +22 -0
  269. package/types/node/ts5.6/index.d.ts +84 -0
  270. package/types/node/ts5.7/compatibility/float16array.d.ts +50 -0
  271. package/types/node/ts5.7/index.d.ts +84 -0
  272. package/types/node/tty.d.ts +61 -0
  273. package/types/node/url.d.ts +165 -0
  274. package/types/node/util/types.d.ts +49 -0
  275. package/types/node/util.d.ts +320 -0
  276. package/types/node/v8.d.ts +178 -0
  277. package/types/node/vm.d.ts +130 -0
  278. package/types/node/wasi.d.ts +26 -0
  279. package/types/node/web-globals/abortcontroller.d.ts +47 -0
  280. package/types/node/web-globals/blob.d.ts +34 -0
  281. package/types/node/web-globals/console.d.ts +7 -0
  282. package/types/node/web-globals/crypto.d.ts +46 -0
  283. package/types/node/web-globals/domexception.d.ts +74 -0
  284. package/types/node/web-globals/encoding.d.ts +16 -0
  285. package/types/node/web-globals/events.d.ts +111 -0
  286. package/types/node/web-globals/fetch.d.ts +121 -0
  287. package/types/node/web-globals/importmeta.d.ts +11 -0
  288. package/types/node/web-globals/messaging.d.ts +32 -0
  289. package/types/node/web-globals/navigator.d.ts +28 -0
  290. package/types/node/web-globals/performance.d.ts +71 -0
  291. package/types/node/web-globals/storage.d.ts +26 -0
  292. package/types/node/web-globals/streams.d.ts +162 -0
  293. package/types/node/web-globals/timers.d.ts +22 -0
  294. package/types/node/web-globals/url.d.ts +27 -0
  295. package/types/node/worker_threads.d.ts +199 -0
  296. package/types/node/zlib/iter.d.ts +49 -0
  297. package/types/node/zlib.d.ts +360 -0
  298. package/types/undici/agent.d.ts +24 -0
  299. package/types/undici/api.d.ts +19 -0
  300. package/types/undici/balanced-pool.d.ts +16 -0
  301. package/types/undici/cache-interceptor.d.ts +98 -0
  302. package/types/undici/cache.d.ts +30 -0
  303. package/types/undici/client-stats.d.ts +9 -0
  304. package/types/undici/client.d.ts +61 -0
  305. package/types/undici/connector.d.ts +37 -0
  306. package/types/undici/content-type.d.ts +9 -0
  307. package/types/undici/cookies.d.ts +22 -0
  308. package/types/undici/diagnostics-channel.d.ts +72 -0
  309. package/types/undici/dispatcher.d.ts +207 -0
  310. package/types/undici/env-http-proxy-agent.d.ts +15 -0
  311. package/types/undici/errors.d.ts +117 -0
  312. package/types/undici/eventsource.d.ts +39 -0
  313. package/types/undici/fetch.d.ts +122 -0
  314. package/types/undici/formdata.d.ts +24 -0
  315. package/types/undici/global-dispatcher.d.ts +4 -0
  316. package/types/undici/global-origin.d.ts +3 -0
  317. package/types/undici/h2c-client.d.ts +35 -0
  318. package/types/undici/handlers.d.ts +7 -0
  319. package/types/undici/header.d.ts +10 -0
  320. package/types/undici/index.d.ts +85 -0
  321. package/types/undici/interceptors.d.ts +70 -0
  322. package/types/undici/mock-agent.d.ts +43 -0
  323. package/types/undici/mock-call-history.d.ts +57 -0
  324. package/types/undici/mock-client.d.ts +17 -0
  325. package/types/undici/mock-errors.d.ts +9 -0
  326. package/types/undici/mock-interceptor.d.ts +60 -0
  327. package/types/undici/mock-pool.d.ts +17 -0
  328. package/types/undici/patch.d.ts +21 -0
  329. package/types/undici/pool-stats.d.ts +11 -0
  330. package/types/undici/pool.d.ts +25 -0
  331. package/types/undici/proxy-agent.d.ts +22 -0
  332. package/types/undici/readable.d.ts +24 -0
  333. package/types/undici/retry-agent.d.ts +6 -0
  334. package/types/undici/retry-handler.d.ts +41 -0
  335. package/types/undici/round-robin-pool.d.ts +25 -0
  336. package/types/undici/snapshot-agent.d.ts +98 -0
  337. package/types/undici/socks5-proxy-agent.d.ts +17 -0
  338. package/types/undici/util.d.ts +4 -0
  339. package/types/undici/utility.d.ts +2 -0
  340. package/types/undici/webidl.d.ts +121 -0
  341. package/types/undici/websocket.d.ts +130 -0
  342. package/README.md +0 -3
@@ -0,0 +1,436 @@
1
+ declare module "node:process" {
2
+ import { Control, MessageOptions, SendHandle } from "node:child_process";
3
+ import { PathLike } from "node:fs";
4
+ import * as tty from "node:tty";
5
+ import { Worker } from "node:worker_threads";
6
+ interface BuiltInModule {
7
+ "assert": typeof import("assert");
8
+ "node:assert": typeof import("node:assert");
9
+ "assert/strict": typeof import("assert/strict");
10
+ "node:assert/strict": typeof import("node:assert/strict");
11
+ "async_hooks": typeof import("async_hooks");
12
+ "node:async_hooks": typeof import("node:async_hooks");
13
+ "buffer": typeof import("buffer");
14
+ "node:buffer": typeof import("node:buffer");
15
+ "child_process": typeof import("child_process");
16
+ "node:child_process": typeof import("node:child_process");
17
+ "cluster": typeof import("cluster");
18
+ "node:cluster": typeof import("node:cluster");
19
+ "console": typeof import("console");
20
+ "node:console": typeof import("node:console");
21
+ "constants": typeof import("constants");
22
+ "node:constants": typeof import("node:constants");
23
+ "crypto": typeof import("crypto");
24
+ "node:crypto": typeof import("node:crypto");
25
+ "dgram": typeof import("dgram");
26
+ "node:dgram": typeof import("node:dgram");
27
+ "diagnostics_channel": typeof import("diagnostics_channel");
28
+ "node:diagnostics_channel": typeof import("node:diagnostics_channel");
29
+ "dns": typeof import("dns");
30
+ "node:dns": typeof import("node:dns");
31
+ "dns/promises": typeof import("dns/promises");
32
+ "node:dns/promises": typeof import("node:dns/promises");
33
+ "domain": typeof import("domain");
34
+ "node:domain": typeof import("node:domain");
35
+ "events": typeof import("events");
36
+ "node:events": typeof import("node:events");
37
+ "fs": typeof import("fs");
38
+ "node:fs": typeof import("node:fs");
39
+ "fs/promises": typeof import("fs/promises");
40
+ "node:fs/promises": typeof import("node:fs/promises");
41
+ "http": typeof import("http");
42
+ "node:http": typeof import("node:http");
43
+ "http2": typeof import("http2");
44
+ "node:http2": typeof import("node:http2");
45
+ "https": typeof import("https");
46
+ "node:https": typeof import("node:https");
47
+ "inspector": typeof import("inspector");
48
+ "node:inspector": typeof import("node:inspector");
49
+ "inspector/promises": typeof import("inspector/promises");
50
+ "node:inspector/promises": typeof import("node:inspector/promises");
51
+ "module": typeof import("module");
52
+ "node:module": typeof import("node:module");
53
+ "net": typeof import("net");
54
+ "node:net": typeof import("node:net");
55
+ "os": typeof import("os");
56
+ "node:os": typeof import("node:os");
57
+ "path": typeof import("path");
58
+ "node:path": typeof import("node:path");
59
+ "path/posix": typeof import("path/posix");
60
+ "node:path/posix": typeof import("node:path/posix");
61
+ "path/win32": typeof import("path/win32");
62
+ "node:path/win32": typeof import("node:path/win32");
63
+ "perf_hooks": typeof import("perf_hooks");
64
+ "node:perf_hooks": typeof import("node:perf_hooks");
65
+ "process": typeof import("process");
66
+ "node:process": typeof import("node:process");
67
+ "punycode": typeof import("punycode");
68
+ "node:punycode": typeof import("node:punycode");
69
+ "querystring": typeof import("querystring");
70
+ "node:querystring": typeof import("node:querystring");
71
+ "node:quic": typeof import("node:quic");
72
+ "readline": typeof import("readline");
73
+ "node:readline": typeof import("node:readline");
74
+ "readline/promises": typeof import("readline/promises");
75
+ "node:readline/promises": typeof import("node:readline/promises");
76
+ "repl": typeof import("repl");
77
+ "node:repl": typeof import("node:repl");
78
+ "node:sea": typeof import("node:sea");
79
+ "node:sqlite": typeof import("node:sqlite");
80
+ "stream": typeof import("stream");
81
+ "node:stream": typeof import("node:stream");
82
+ "stream/consumers": typeof import("stream/consumers");
83
+ "node:stream/consumers": typeof import("node:stream/consumers");
84
+ "stream/iter": typeof import("stream/iter");
85
+ "node:stream/iter": typeof import("node:stream/iter");
86
+ "stream/promises": typeof import("stream/promises");
87
+ "node:stream/promises": typeof import("node:stream/promises");
88
+ "stream/web": typeof import("stream/web");
89
+ "node:stream/web": typeof import("node:stream/web");
90
+ "string_decoder": typeof import("string_decoder");
91
+ "node:string_decoder": typeof import("node:string_decoder");
92
+ "node:test": typeof import("node:test");
93
+ "node:test/reporters": typeof import("node:test/reporters");
94
+ "timers": typeof import("timers");
95
+ "node:timers": typeof import("node:timers");
96
+ "timers/promises": typeof import("timers/promises");
97
+ "node:timers/promises": typeof import("node:timers/promises");
98
+ "tls": typeof import("tls");
99
+ "node:tls": typeof import("node:tls");
100
+ "trace_events": typeof import("trace_events");
101
+ "node:trace_events": typeof import("node:trace_events");
102
+ "tty": typeof import("tty");
103
+ "node:tty": typeof import("node:tty");
104
+ "url": typeof import("url");
105
+ "node:url": typeof import("node:url");
106
+ "util": typeof import("util");
107
+ "node:util": typeof import("node:util");
108
+ "util/types": typeof import("util/types");
109
+ "node:util/types": typeof import("node:util/types");
110
+ "v8": typeof import("v8");
111
+ "node:v8": typeof import("node:v8");
112
+ "vm": typeof import("vm");
113
+ "node:vm": typeof import("node:vm");
114
+ "wasi": typeof import("wasi");
115
+ "node:wasi": typeof import("node:wasi");
116
+ "worker_threads": typeof import("worker_threads");
117
+ "node:worker_threads": typeof import("node:worker_threads");
118
+ "zlib": typeof import("zlib");
119
+ "node:zlib": typeof import("node:zlib");
120
+ }
121
+ type SignalsEventMap = {
122
+ [S in NodeJS.Signals]: [
123
+ signal: S
124
+ ];
125
+ };
126
+ interface ProcessEventMap extends SignalsEventMap {
127
+ "beforeExit": [
128
+ code: number
129
+ ];
130
+ "disconnect": [
131
+ ];
132
+ "exit": [
133
+ code: number
134
+ ];
135
+ "message": [
136
+ message: object | boolean | number | string | null,
137
+ sendHandle: SendHandle | undefined
138
+ ];
139
+ "rejectionHandled": [
140
+ promise: Promise<unknown>
141
+ ];
142
+ "uncaughtException": [
143
+ error: Error,
144
+ origin: NodeJS.UncaughtExceptionOrigin
145
+ ];
146
+ "uncaughtExceptionMonitor": [
147
+ error: Error,
148
+ origin: NodeJS.UncaughtExceptionOrigin
149
+ ];
150
+ "unhandledRejection": [
151
+ reason: unknown,
152
+ promise: Promise<unknown>
153
+ ];
154
+ "warning": [
155
+ warning: Error
156
+ ];
157
+ "worker": [
158
+ worker: Worker
159
+ ];
160
+ "workerMessage": [
161
+ value: any,
162
+ source: number
163
+ ];
164
+ }
165
+ global {
166
+ var process: NodeJS.Process;
167
+ namespace process {
168
+ export { ProcessEventMap };
169
+ }
170
+ namespace NodeJS {
171
+ interface ReadStream extends tty.ReadStream {
172
+ }
173
+ interface WriteStream extends tty.WriteStream {
174
+ }
175
+ interface MemoryUsageFn {
176
+ (): MemoryUsage;
177
+ rss(): number;
178
+ }
179
+ interface MemoryUsage {
180
+ rss: number;
181
+ heapTotal: number;
182
+ heapUsed: number;
183
+ external: number;
184
+ arrayBuffers: number;
185
+ }
186
+ interface CpuUsage {
187
+ user: number;
188
+ system: number;
189
+ }
190
+ interface ProcessRelease {
191
+ name: string;
192
+ sourceUrl?: string | undefined;
193
+ headersUrl?: string | undefined;
194
+ libUrl?: string | undefined;
195
+ lts?: string | undefined;
196
+ }
197
+ interface ProcessFeatures {
198
+ readonly cached_builtins: boolean;
199
+ readonly debug: boolean;
200
+ readonly inspector: boolean;
201
+ readonly ipv6: boolean;
202
+ readonly require_module: boolean;
203
+ readonly tls: boolean;
204
+ readonly tls_alpn: boolean;
205
+ readonly tls_ocsp: boolean;
206
+ readonly tls_sni: boolean;
207
+ readonly typescript: "strip" | "transform" | false;
208
+ readonly uv: boolean;
209
+ }
210
+ interface ProcessVersions extends Dict<string> {
211
+ http_parser: string;
212
+ node: string;
213
+ v8: string;
214
+ ares: string;
215
+ uv: string;
216
+ zlib: string;
217
+ modules: string;
218
+ openssl: string;
219
+ }
220
+ type Platform = "aix" | "android" | "darwin" | "freebsd" | "haiku" | "linux" | "openbsd" | "sunos" | "win32" | "cygwin" | "netbsd";
221
+ type Architecture = "arm" | "arm64" | "ia32" | "loong64" | "mips" | "mipsel" | "ppc64" | "riscv64" | "s390x" | "x64";
222
+ type Signals = "SIGABRT" | "SIGALRM" | "SIGBUS" | "SIGCHLD" | "SIGCONT" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGIO" | "SIGIOT" | "SIGKILL" | "SIGPIPE" | "SIGPOLL" | "SIGPROF" | "SIGPWR" | "SIGQUIT" | "SIGSEGV" | "SIGSTKFLT" | "SIGSTOP" | "SIGSYS" | "SIGTERM" | "SIGTRAP" | "SIGTSTP" | "SIGTTIN" | "SIGTTOU" | "SIGUNUSED" | "SIGURG" | "SIGUSR1" | "SIGUSR2" | "SIGVTALRM" | "SIGWINCH" | "SIGXCPU" | "SIGXFSZ" | "SIGBREAK" | "SIGLOST" | "SIGINFO";
223
+ type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
224
+ type BeforeExitListener = (...args: ProcessEventMap["beforeExit"]) => void;
225
+ type DisconnectListener = (...args: ProcessEventMap["disconnect"]) => void;
226
+ type ExitListener = (...args: ProcessEventMap["exit"]) => void;
227
+ type MessageListener = (...args: ProcessEventMap["message"]) => void;
228
+ type RejectionHandledListener = (...args: ProcessEventMap["rejectionHandled"]) => void;
229
+ type SignalsListener = (signal: Signals) => void;
230
+ type UncaughtExceptionListener = (...args: ProcessEventMap["uncaughtException"]) => void;
231
+ type UnhandledRejectionListener = (...args: ProcessEventMap["unhandledRejection"]) => void;
232
+ type WarningListener = (...args: ProcessEventMap["warning"]) => void;
233
+ type WorkerListener = (...args: ProcessEventMap["worker"]) => void;
234
+ interface Socket extends ReadWriteStream {
235
+ isTTY?: true | undefined;
236
+ }
237
+ interface ProcessEnv extends Dict<string> {
238
+ }
239
+ interface HRTime {
240
+ (time?: [
241
+ number,
242
+ number
243
+ ]): [
244
+ number,
245
+ number
246
+ ];
247
+ bigint(): bigint;
248
+ }
249
+ interface ProcessPermission {
250
+ has(scope: string, reference?: string): boolean;
251
+ }
252
+ interface ProcessReport {
253
+ compact: boolean;
254
+ directory: string;
255
+ filename: string;
256
+ getReport(err?: Error): object;
257
+ reportOnFatalError: boolean;
258
+ reportOnSignal: boolean;
259
+ reportOnUncaughtException: boolean;
260
+ excludeEnv: boolean;
261
+ signal: Signals;
262
+ writeReport(fileName?: string, err?: Error): string;
263
+ writeReport(err?: Error): string;
264
+ }
265
+ interface ResourceUsage {
266
+ fsRead: number;
267
+ fsWrite: number;
268
+ involuntaryContextSwitches: number;
269
+ ipcReceived: number;
270
+ ipcSent: number;
271
+ majorPageFault: number;
272
+ maxRSS: number;
273
+ minorPageFault: number;
274
+ sharedMemorySize: number;
275
+ signalsCount: number;
276
+ swappedOut: number;
277
+ systemCPUTime: number;
278
+ unsharedDataSize: number;
279
+ unsharedStackSize: number;
280
+ userCPUTime: number;
281
+ voluntaryContextSwitches: number;
282
+ }
283
+ interface EmitWarningOptions {
284
+ type?: string | undefined;
285
+ code?: string | undefined;
286
+ ctor?: Function | undefined;
287
+ detail?: string | undefined;
288
+ }
289
+ interface ProcessConfig {
290
+ readonly target_defaults: {
291
+ readonly cflags: any[];
292
+ readonly default_configuration: string;
293
+ readonly defines: string[];
294
+ readonly include_dirs: string[];
295
+ readonly libraries: string[];
296
+ };
297
+ readonly variables: {
298
+ readonly clang: number;
299
+ readonly host_arch: string;
300
+ readonly node_install_npm: boolean;
301
+ readonly node_install_waf: boolean;
302
+ readonly node_prefix: string;
303
+ readonly node_shared_openssl: boolean;
304
+ readonly node_shared_v8: boolean;
305
+ readonly node_shared_zlib: boolean;
306
+ readonly node_use_dtrace: boolean;
307
+ readonly node_use_etw: boolean;
308
+ readonly node_use_openssl: boolean;
309
+ readonly target_arch: string;
310
+ readonly v8_no_strict_aliasing: number;
311
+ readonly v8_use_snapshot: boolean;
312
+ readonly visibility: string;
313
+ };
314
+ }
315
+ interface Process extends EventEmitter {
316
+ stdout: WriteStream & {
317
+ fd: 1;
318
+ };
319
+ stderr: WriteStream & {
320
+ fd: 2;
321
+ };
322
+ stdin: ReadStream & {
323
+ fd: 0;
324
+ };
325
+ argv: string[];
326
+ argv0: string;
327
+ execArgv: string[];
328
+ execPath: string;
329
+ abort(): never;
330
+ addUncaughtExceptionCaptureCallback(fn: (err: unknown) => boolean): void;
331
+ chdir(directory: string): void;
332
+ cwd(): string;
333
+ debugPort: number;
334
+ dlopen(module: object, filename: string, flags?: number): void;
335
+ emitWarning(warning: string | Error, ctor?: Function): void;
336
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
337
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
338
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
339
+ env: ProcessEnv;
340
+ exit(code?: number | string | null): never;
341
+ exitCode: number | string | null | undefined;
342
+ finalization: {
343
+ register<T extends object>(ref: T, callback: (ref: T, event: "exit") => void): void;
344
+ registerBeforeExit<T extends object>(ref: T, callback: (ref: T, event: "beforeExit") => void): void;
345
+ unregister(ref: object): void;
346
+ };
347
+ getActiveResourcesInfo(): string[];
348
+ getBuiltinModule<ID extends keyof BuiltInModule>(id: ID): BuiltInModule[ID];
349
+ getBuiltinModule(id: string): object | undefined;
350
+ getgid?: () => number;
351
+ setgid?: (id: number | string) => void;
352
+ getuid?: () => number;
353
+ setuid?: (id: number | string) => void;
354
+ geteuid?: () => number;
355
+ seteuid?: (id: number | string) => void;
356
+ getegid?: () => number;
357
+ setegid?: (id: number | string) => void;
358
+ getgroups?: () => number[];
359
+ setgroups?: (groups: ReadonlyArray<string | number>) => void;
360
+ setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
361
+ hasUncaughtExceptionCaptureCallback(): boolean;
362
+ readonly sourceMapsEnabled: boolean;
363
+ setSourceMapsEnabled(value: boolean): void;
364
+ readonly version: string;
365
+ readonly versions: ProcessVersions;
366
+ readonly config: ProcessConfig;
367
+ kill(pid: number, signal?: string | number): true;
368
+ loadEnvFile(path?: PathLike): void;
369
+ readonly pid: number;
370
+ readonly ppid: number;
371
+ threadCpuUsage(previousValue?: CpuUsage): CpuUsage;
372
+ title: string;
373
+ readonly arch: Architecture;
374
+ readonly platform: Platform;
375
+ mainModule?: Module;
376
+ memoryUsage: MemoryUsageFn;
377
+ constrainedMemory(): number;
378
+ availableMemory(): number;
379
+ cpuUsage(previousValue?: CpuUsage): CpuUsage;
380
+ nextTick(callback: Function, ...args: any[]): void;
381
+ noDeprecation?: boolean;
382
+ permission: ProcessPermission;
383
+ readonly release: ProcessRelease;
384
+ readonly features: ProcessFeatures;
385
+ traceProcessWarnings: boolean;
386
+ umask(): number;
387
+ umask(mask: string | number): number;
388
+ uptime(): number;
389
+ hrtime: HRTime;
390
+ channel?: Control;
391
+ send?(message: any, sendHandle?: SendHandle, options?: MessageOptions, callback?: (error: Error | null) => void): boolean;
392
+ send?(message: any, sendHandle: SendHandle, callback?: (error: Error | null) => void): boolean;
393
+ send?(message: any, callback: (error: Error | null) => void): boolean;
394
+ disconnect?(): void;
395
+ connected: boolean;
396
+ allowedNodeEnvironmentFlags: ReadonlySet<string>;
397
+ report: ProcessReport;
398
+ resourceUsage(): ResourceUsage;
399
+ throwDeprecation: boolean;
400
+ traceDeprecation: boolean;
401
+ ref(maybeRefable: any): void;
402
+ unref(maybeRefable: any): void;
403
+ execve?(file: string, args?: readonly string[], env?: ProcessEnv): never;
404
+ addListener<E extends keyof ProcessEventMap>(eventName: E, listener: (...args: ProcessEventMap[E]) => void): this;
405
+ addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
406
+ emit<E extends keyof ProcessEventMap>(eventName: E, ...args: ProcessEventMap[E]): boolean;
407
+ emit(eventName: string | symbol, ...args: any[]): boolean;
408
+ listenerCount<E extends keyof ProcessEventMap>(eventName: E, listener?: (...args: ProcessEventMap[E]) => void): number;
409
+ listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
410
+ listeners<E extends keyof ProcessEventMap>(eventName: E): ((...args: ProcessEventMap[E]) => void)[];
411
+ listeners(eventName: string | symbol): ((...args: any[]) => void)[];
412
+ off<E extends keyof ProcessEventMap>(eventName: E, listener: (...args: ProcessEventMap[E]) => void): this;
413
+ off(eventName: string | symbol, listener: (...args: any[]) => void): this;
414
+ on<E extends keyof ProcessEventMap>(eventName: E, listener: (...args: ProcessEventMap[E]) => void): this;
415
+ on(eventName: string | symbol, listener: (...args: any[]) => void): this;
416
+ once<E extends keyof ProcessEventMap>(eventName: E, listener: (...args: ProcessEventMap[E]) => void): this;
417
+ once(eventName: string | symbol, listener: (...args: any[]) => void): this;
418
+ prependListener<E extends keyof ProcessEventMap>(eventName: E, listener: (...args: ProcessEventMap[E]) => void): this;
419
+ prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
420
+ prependOnceListener<E extends keyof ProcessEventMap>(eventName: E, listener: (...args: ProcessEventMap[E]) => void): this;
421
+ prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
422
+ rawListeners<E extends keyof ProcessEventMap>(eventName: E): ((...args: ProcessEventMap[E]) => void)[];
423
+ rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
424
+ removeAllListeners<E extends keyof ProcessEventMap>(eventName?: E): this;
425
+ removeAllListeners(eventName?: string | symbol): this;
426
+ removeListener<E extends keyof ProcessEventMap>(eventName: E, listener: (...args: ProcessEventMap[E]) => void): this;
427
+ removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
428
+ }
429
+ }
430
+ }
431
+ export = process;
432
+ }
433
+ declare module "process" {
434
+ import process = require("node:process");
435
+ export = process;
436
+ }
@@ -0,0 +1,15 @@
1
+ declare module "node:punycode" {
2
+ function decode(string: string): string;
3
+ function encode(string: string): string;
4
+ function toUnicode(domain: string): string;
5
+ function toASCII(domain: string): string;
6
+ const ucs2: ucs2;
7
+ interface ucs2 {
8
+ decode(string: string): number[];
9
+ encode(codePoints: readonly number[]): string;
10
+ }
11
+ const version: string;
12
+ }
13
+ declare module "punycode" {
14
+ export * from "node:punycode";
15
+ }
@@ -0,0 +1,22 @@
1
+ declare module "node:querystring" {
2
+ interface StringifyOptions {
3
+ encodeURIComponent?: ((str: string) => string) | undefined;
4
+ }
5
+ interface ParseOptions {
6
+ maxKeys?: number | undefined;
7
+ decodeURIComponent?: ((str: string) => string) | undefined;
8
+ }
9
+ interface ParsedUrlQuery extends NodeJS.Dict<string | string[]> {
10
+ }
11
+ interface ParsedUrlQueryInput extends NodeJS.Dict<string | number | boolean | bigint | ReadonlyArray<string | number | boolean | bigint> | null> {
12
+ }
13
+ function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
14
+ function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
15
+ const encode: typeof stringify;
16
+ const decode: typeof parse;
17
+ function escape(str: string): string;
18
+ function unescape(str: string): string;
19
+ }
20
+ declare module "querystring" {
21
+ export * from "node:querystring";
22
+ }
@@ -0,0 +1,203 @@
1
+ declare module "node:quic" {
2
+ import { KeyObject, webcrypto } from "node:crypto";
3
+ import { SocketAddress } from "node:net";
4
+ import { ReadableStream } from "node:stream/web";
5
+ type OnSessionCallback = (this: QuicEndpoint, session: QuicSession) => void;
6
+ type OnStreamCallback = (this: QuicSession, stream: QuicStream) => void;
7
+ type OnDatagramCallback = (this: QuicSession, datagram: Uint8Array, early: boolean) => void;
8
+ type OnDatagramStatusCallback = (this: QuicSession, id: bigint, status: "lost" | "acknowledged") => void;
9
+ type OnPathValidationCallback = (this: QuicSession, result: "success" | "failure" | "aborted", newLocalAddress: SocketAddress, newRemoteAddress: SocketAddress, oldLocalAddress: SocketAddress, oldRemoteAddress: SocketAddress, preferredAddress: boolean) => void;
10
+ type OnSessionTicketCallback = (this: QuicSession, ticket: object) => void;
11
+ type OnVersionNegotiationCallback = (this: QuicSession, version: number, requestedVersions: number[], supportedVersions: number[]) => void;
12
+ type OnHandshakeCallback = (this: QuicSession, sni: string, alpn: string, cipher: string, cipherVersion: string, validationErrorReason: string, validationErrorCode: number, earlyDataAccepted: boolean) => void;
13
+ type OnBlockedCallback = (this: QuicStream) => void;
14
+ type OnStreamErrorCallback = (this: QuicStream, error: any) => void;
15
+ interface TransportParams {
16
+ preferredAddressIpv4?: SocketAddress | undefined;
17
+ preferredAddressIpv6?: SocketAddress | undefined;
18
+ initialMaxStreamDataBidiLocal?: bigint | number | undefined;
19
+ initialMaxStreamDataBidiRemote?: bigint | number | undefined;
20
+ initialMaxStreamDataUni?: bigint | number | undefined;
21
+ initialMaxData?: bigint | number | undefined;
22
+ initialMaxStreamsBidi?: bigint | number | undefined;
23
+ initialMaxStreamsUni?: bigint | number | undefined;
24
+ maxIdleTimeout?: bigint | number | undefined;
25
+ activeConnectionIDLimit?: bigint | number | undefined;
26
+ ackDelayExponent?: bigint | number | undefined;
27
+ maxAckDelay?: bigint | number | undefined;
28
+ maxDatagramFrameSize?: bigint | number | undefined;
29
+ }
30
+ interface SessionOptions {
31
+ endpoint?: EndpointOptions | QuicEndpoint | undefined;
32
+ alpn?: string | undefined;
33
+ ca?: ArrayBuffer | NodeJS.ArrayBufferView | ReadonlyArray<ArrayBuffer | NodeJS.ArrayBufferView> | undefined;
34
+ cc?: `${constants.cc}` | undefined;
35
+ certs?: ArrayBuffer | NodeJS.ArrayBufferView | ReadonlyArray<ArrayBuffer | NodeJS.ArrayBufferView> | undefined;
36
+ ciphers?: string | undefined;
37
+ crl?: ArrayBuffer | NodeJS.ArrayBufferView | ReadonlyArray<ArrayBuffer | NodeJS.ArrayBufferView> | undefined;
38
+ groups?: string | undefined;
39
+ keylog?: boolean | undefined;
40
+ keys?: KeyObject | readonly KeyObject[] | undefined;
41
+ maxPayloadSize?: bigint | number | undefined;
42
+ maxStreamWindow?: bigint | number | undefined;
43
+ maxWindow?: bigint | number | undefined;
44
+ minVersion?: number | undefined;
45
+ preferredAddressPolicy?: "use" | "ignore" | "default" | undefined;
46
+ qlog?: boolean | undefined;
47
+ sessionTicket?: NodeJS.ArrayBufferView | undefined;
48
+ handshakeTimeout?: bigint | number | undefined;
49
+ sni?: string | undefined;
50
+ tlsTrace?: boolean | undefined;
51
+ transportParams?: TransportParams | undefined;
52
+ unacknowledgedPacketThreshold?: bigint | number | undefined;
53
+ verifyClient?: boolean | undefined;
54
+ verifyPrivateKey?: boolean | undefined;
55
+ version?: number | undefined;
56
+ }
57
+ function connect(address: string | SocketAddress, options?: SessionOptions): Promise<QuicSession>;
58
+ function listen(onsession: OnSessionCallback, options?: SessionOptions): Promise<QuicEndpoint>;
59
+ interface EndpointOptions {
60
+ address?: SocketAddress | string | undefined;
61
+ addressLRUSize?: bigint | number | undefined;
62
+ ipv6Only?: boolean | undefined;
63
+ maxConnectionsPerHost?: bigint | number | undefined;
64
+ maxConnectionsTotal?: bigint | number | undefined;
65
+ maxRetries?: bigint | number | undefined;
66
+ maxStatelessResetsPerHost?: bigint | number | undefined;
67
+ retryTokenExpiration?: bigint | number | undefined;
68
+ resetTokenSecret?: NodeJS.ArrayBufferView | undefined;
69
+ tokenExpiration?: bigint | number | undefined;
70
+ tokenSecret?: NodeJS.ArrayBufferView | undefined;
71
+ udpReceiveBufferSize?: number | undefined;
72
+ udpSendBufferSize?: number | undefined;
73
+ udpTTL?: number | undefined;
74
+ validateAddress?: boolean | undefined;
75
+ }
76
+ class QuicEndpoint implements AsyncDisposable {
77
+ constructor(options?: EndpointOptions);
78
+ readonly address: SocketAddress | undefined;
79
+ busy: boolean;
80
+ close(): Promise<void>;
81
+ readonly closed: Promise<void>;
82
+ readonly closing: boolean;
83
+ destroy(error?: any): void;
84
+ readonly destroyed: boolean;
85
+ readonly stats: QuicEndpoint.Stats;
86
+ [Symbol.asyncDispose](): Promise<void>;
87
+ }
88
+ namespace QuicEndpoint {
89
+ class Stats {
90
+ private constructor();
91
+ readonly createdAt: bigint;
92
+ readonly destroyedAt: bigint;
93
+ readonly bytesReceived: bigint;
94
+ readonly bytesSent: bigint;
95
+ readonly packetsReceived: bigint;
96
+ readonly packetsSent: bigint;
97
+ readonly serverSessions: bigint;
98
+ readonly clientSessions: bigint;
99
+ readonly serverBusyCount: bigint;
100
+ readonly retryCount: bigint;
101
+ readonly versionNegotiationCount: bigint;
102
+ readonly statelessResetCount: bigint;
103
+ readonly immediateCloseCount: bigint;
104
+ }
105
+ }
106
+ interface CreateStreamOptions {
107
+ body?: ArrayBuffer | NodeJS.ArrayBufferView | Blob | undefined;
108
+ sendOrder?: number | undefined;
109
+ }
110
+ interface SessionPath {
111
+ local: SocketAddress;
112
+ remote: SocketAddress;
113
+ }
114
+ class QuicSession implements AsyncDisposable {
115
+ private constructor();
116
+ close(): Promise<void>;
117
+ readonly closed: Promise<void>;
118
+ destroy(error?: any): void;
119
+ readonly destroyed: boolean;
120
+ readonly endpoint: QuicEndpoint;
121
+ onstream: OnStreamCallback | undefined;
122
+ ondatagram: OnDatagramCallback | undefined;
123
+ ondatagramstatus: OnDatagramStatusCallback | undefined;
124
+ onpathvalidation: OnPathValidationCallback | undefined;
125
+ onsessionticket: OnSessionTicketCallback | undefined;
126
+ onversionnegotiation: OnVersionNegotiationCallback | undefined;
127
+ onhandshake: OnHandshakeCallback | undefined;
128
+ createBidirectionalStream(options?: CreateStreamOptions): Promise<QuicStream>;
129
+ createUnidirectionalStream(options?: CreateStreamOptions): Promise<QuicStream>;
130
+ path: SessionPath | undefined;
131
+ sendDatagram(datagram: string | NodeJS.ArrayBufferView): bigint;
132
+ readonly stats: QuicSession.Stats;
133
+ updateKey(): void;
134
+ [Symbol.asyncDispose](): Promise<void>;
135
+ }
136
+ namespace QuicSession {
137
+ class Stats {
138
+ private constructor();
139
+ readonly createdAt: bigint;
140
+ readonly closingAt: bigint;
141
+ readonly handshakeCompletedAt: bigint;
142
+ readonly handshakeConfirmedAt: bigint;
143
+ readonly bytesReceived: bigint;
144
+ readonly bytesSent: bigint;
145
+ readonly bidiInStreamCount: bigint;
146
+ readonly bidiOutStreamCount: bigint;
147
+ readonly uniInStreamCount: bigint;
148
+ readonly uniOutStreamCount: bigint;
149
+ readonly maxBytesInFlights: bigint;
150
+ readonly bytesInFlight: bigint;
151
+ readonly blockCount: bigint;
152
+ readonly cwnd: bigint;
153
+ readonly latestRtt: bigint;
154
+ readonly minRtt: bigint;
155
+ readonly rttVar: bigint;
156
+ readonly smoothedRtt: bigint;
157
+ readonly ssthresh: bigint;
158
+ readonly datagramsReceived: bigint;
159
+ readonly datagramsSent: bigint;
160
+ readonly datagramsAcknowledged: bigint;
161
+ readonly datagramsLost: bigint;
162
+ }
163
+ }
164
+ class QuicStream {
165
+ private constructor();
166
+ readonly closed: Promise<void>;
167
+ destroy(error?: any): void;
168
+ readonly destroyed: boolean;
169
+ readonly direction: "bidi" | "uni";
170
+ readonly id: bigint;
171
+ onblocked: OnBlockedCallback | undefined;
172
+ onreset: OnStreamErrorCallback | undefined;
173
+ readonly readable: ReadableStream<Uint8Array>;
174
+ readonly session: QuicSession;
175
+ readonly stats: QuicStream.Stats;
176
+ }
177
+ namespace QuicStream {
178
+ class Stats {
179
+ private constructor();
180
+ readonly ackedAt: bigint;
181
+ readonly bytesReceived: bigint;
182
+ readonly bytesSent: bigint;
183
+ readonly createdAt: bigint;
184
+ readonly destroyedAt: bigint;
185
+ readonly finalSize: bigint;
186
+ readonly isConnected: bigint;
187
+ readonly maxOffset: bigint;
188
+ readonly maxOffsetAcknowledged: bigint;
189
+ readonly maxOffsetReceived: bigint;
190
+ readonly openedAt: bigint;
191
+ readonly receivedAt: bigint;
192
+ }
193
+ }
194
+ namespace constants {
195
+ enum cc {
196
+ RENO = "reno",
197
+ CUBIC = "cubic",
198
+ BBR = "bbr"
199
+ }
200
+ const DEFAULT_CIPHERS: string;
201
+ const DEFAULT_GROUPS: string;
202
+ }
203
+ }