@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,279 @@
1
+ declare module "node:tls" {
2
+ import { NonSharedBuffer } from "node:buffer";
3
+ import { X509Certificate } from "node:crypto";
4
+ import * as net from "node:net";
5
+ import * as stream from "stream";
6
+ const CLIENT_RENEG_LIMIT: number;
7
+ const CLIENT_RENEG_WINDOW: number;
8
+ interface Certificate extends NodeJS.Dict<string | string[]> {
9
+ C?: string | string[];
10
+ ST?: string | string[];
11
+ L?: string | string[];
12
+ O?: string | string[];
13
+ OU?: string | string[];
14
+ CN?: string | string[];
15
+ }
16
+ interface PeerCertificate {
17
+ ca: boolean;
18
+ raw: NonSharedBuffer;
19
+ subject: Certificate;
20
+ issuer: Certificate;
21
+ valid_from: string;
22
+ valid_to: string;
23
+ serialNumber: string;
24
+ fingerprint: string;
25
+ fingerprint256: string;
26
+ fingerprint512: string;
27
+ ext_key_usage?: string[];
28
+ subjectaltname?: string;
29
+ infoAccess?: NodeJS.Dict<string[]>;
30
+ bits?: number;
31
+ exponent?: string;
32
+ modulus?: string;
33
+ pubkey?: NonSharedBuffer;
34
+ asn1Curve?: string;
35
+ nistCurve?: string;
36
+ }
37
+ interface DetailedPeerCertificate extends PeerCertificate {
38
+ issuerCertificate: DetailedPeerCertificate;
39
+ }
40
+ interface CipherNameAndProtocol {
41
+ name: string;
42
+ version: string;
43
+ standardName: string;
44
+ }
45
+ interface EphemeralKeyInfo {
46
+ type: string;
47
+ name?: string | undefined;
48
+ size: number;
49
+ }
50
+ interface KeyObject {
51
+ pem: string | Buffer;
52
+ passphrase?: string | undefined;
53
+ }
54
+ interface PxfObject {
55
+ buf: string | Buffer;
56
+ passphrase?: string | undefined;
57
+ }
58
+ interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions {
59
+ isServer?: boolean | undefined;
60
+ server?: net.Server | undefined;
61
+ session?: Buffer | undefined;
62
+ }
63
+ interface TLSSocketEventMap extends net.SocketEventMap {
64
+ "keylog": [
65
+ line: NonSharedBuffer
66
+ ];
67
+ "OCSPResponse": [
68
+ response: NonSharedBuffer
69
+ ];
70
+ "secure": [
71
+ ];
72
+ "secureConnect": [
73
+ ];
74
+ "session": [
75
+ session: NonSharedBuffer
76
+ ];
77
+ }
78
+ class TLSSocket extends net.Socket {
79
+ constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions);
80
+ authorized: boolean;
81
+ authorizationError: Error;
82
+ encrypted: true;
83
+ alpnProtocol: string | false | null;
84
+ servername: string | false | null;
85
+ getCertificate(): PeerCertificate | object | null;
86
+ getCipher(): CipherNameAndProtocol;
87
+ getEphemeralKeyInfo(): EphemeralKeyInfo | object | null;
88
+ getFinished(): NonSharedBuffer | undefined;
89
+ getPeerCertificate(detailed: true): DetailedPeerCertificate;
90
+ getPeerCertificate(detailed?: false): PeerCertificate;
91
+ getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
92
+ getPeerFinished(): NonSharedBuffer | undefined;
93
+ getProtocol(): string | null;
94
+ getSession(): NonSharedBuffer | undefined;
95
+ getSharedSigalgs(): string[];
96
+ getTLSTicket(): NonSharedBuffer | undefined;
97
+ isSessionReused(): boolean;
98
+ renegotiate(options: {
99
+ rejectUnauthorized?: boolean | undefined;
100
+ requestCert?: boolean | undefined;
101
+ }, callback: (err: Error | null) => void): undefined | boolean;
102
+ setKeyCert(context: SecureContextOptions | SecureContext): void;
103
+ setMaxSendFragment(size: number): boolean;
104
+ disableRenegotiation(): void;
105
+ enableTrace(): void;
106
+ getPeerX509Certificate(): X509Certificate | undefined;
107
+ getX509Certificate(): X509Certificate | undefined;
108
+ exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer;
109
+ addListener<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
110
+ addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
111
+ emit<E extends keyof TLSSocketEventMap>(eventName: E, ...args: TLSSocketEventMap[E]): boolean;
112
+ emit(eventName: string | symbol, ...args: any[]): boolean;
113
+ listenerCount<E extends keyof TLSSocketEventMap>(eventName: E, listener?: (...args: TLSSocketEventMap[E]) => void): number;
114
+ listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
115
+ listeners<E extends keyof TLSSocketEventMap>(eventName: E): ((...args: TLSSocketEventMap[E]) => void)[];
116
+ listeners(eventName: string | symbol): ((...args: any[]) => void)[];
117
+ off<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
118
+ off(eventName: string | symbol, listener: (...args: any[]) => void): this;
119
+ on<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
120
+ on(eventName: string | symbol, listener: (...args: any[]) => void): this;
121
+ once<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
122
+ once(eventName: string | symbol, listener: (...args: any[]) => void): this;
123
+ prependListener<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
124
+ prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
125
+ prependOnceListener<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
126
+ prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
127
+ rawListeners<E extends keyof TLSSocketEventMap>(eventName: E): ((...args: TLSSocketEventMap[E]) => void)[];
128
+ rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
129
+ removeAllListeners<E extends keyof TLSSocketEventMap>(eventName?: E): this;
130
+ removeAllListeners(eventName?: string | symbol): this;
131
+ removeListener<E extends keyof TLSSocketEventMap>(eventName: E, listener: (...args: TLSSocketEventMap[E]) => void): this;
132
+ removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
133
+ }
134
+ interface CommonConnectionOptions {
135
+ secureContext?: SecureContext | undefined;
136
+ enableTrace?: boolean | undefined;
137
+ requestCert?: boolean | undefined;
138
+ ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined;
139
+ SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined;
140
+ rejectUnauthorized?: boolean | undefined;
141
+ requestOCSP?: boolean | undefined;
142
+ }
143
+ interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts {
144
+ handshakeTimeout?: number | undefined;
145
+ sessionTimeout?: number | undefined;
146
+ ticketKeys?: Buffer | undefined;
147
+ pskCallback?: ((socket: TLSSocket, identity: string) => NodeJS.ArrayBufferView | null) | undefined;
148
+ pskIdentityHint?: string | undefined;
149
+ }
150
+ interface PSKCallbackNegotation {
151
+ psk: NodeJS.ArrayBufferView;
152
+ identity: string;
153
+ }
154
+ interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions {
155
+ host?: string | undefined;
156
+ port?: number | undefined;
157
+ path?: string | undefined;
158
+ socket?: stream.Duplex | undefined;
159
+ checkServerIdentity?: typeof checkServerIdentity | undefined;
160
+ servername?: string | undefined;
161
+ session?: Buffer | undefined;
162
+ minDHSize?: number | undefined;
163
+ lookup?: net.LookupFunction | undefined;
164
+ timeout?: number | undefined;
165
+ pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined;
166
+ }
167
+ interface ServerEventMap extends net.ServerEventMap {
168
+ "connection": [
169
+ socket: net.Socket
170
+ ];
171
+ "keylog": [
172
+ line: NonSharedBuffer,
173
+ tlsSocket: TLSSocket
174
+ ];
175
+ "newSession": [
176
+ sessionId: NonSharedBuffer,
177
+ sessionData: NonSharedBuffer,
178
+ callback: () => void
179
+ ];
180
+ "OCSPRequest": [
181
+ certificate: NonSharedBuffer,
182
+ issuer: NonSharedBuffer,
183
+ callback: (err: Error | null, resp: Buffer | null) => void
184
+ ];
185
+ "resumeSession": [
186
+ sessionId: Buffer,
187
+ callback: (err: Error | null, sessionData?: Buffer) => void
188
+ ];
189
+ "secureConnection": [
190
+ tlsSocket: TLSSocket
191
+ ];
192
+ "tlsClientError": [
193
+ exception: Error,
194
+ tlsSocket: TLSSocket
195
+ ];
196
+ }
197
+ class Server extends net.Server {
198
+ constructor(secureConnectionListener?: (socket: TLSSocket) => void);
199
+ constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void);
200
+ addContext(hostname: string, context: SecureContextOptions | SecureContext): void;
201
+ getTicketKeys(): NonSharedBuffer;
202
+ setSecureContext(options: SecureContextOptions): void;
203
+ setTicketKeys(keys: Buffer): void;
204
+ addListener<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
205
+ addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
206
+ emit<E extends keyof ServerEventMap>(eventName: E, ...args: ServerEventMap[E]): boolean;
207
+ emit(eventName: string | symbol, ...args: any[]): boolean;
208
+ listenerCount<E extends keyof ServerEventMap>(eventName: E, listener?: (...args: ServerEventMap[E]) => void): number;
209
+ listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
210
+ listeners<E extends keyof ServerEventMap>(eventName: E): ((...args: ServerEventMap[E]) => void)[];
211
+ listeners(eventName: string | symbol): ((...args: any[]) => void)[];
212
+ off<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
213
+ off(eventName: string | symbol, listener: (...args: any[]) => void): this;
214
+ on<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
215
+ on(eventName: string | symbol, listener: (...args: any[]) => void): this;
216
+ once<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
217
+ once(eventName: string | symbol, listener: (...args: any[]) => void): this;
218
+ prependListener<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
219
+ prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
220
+ prependOnceListener<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
221
+ prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
222
+ rawListeners<E extends keyof ServerEventMap>(eventName: E): ((...args: ServerEventMap[E]) => void)[];
223
+ rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
224
+ removeAllListeners<E extends keyof ServerEventMap>(eventName?: E): this;
225
+ removeAllListeners(eventName?: string | symbol): this;
226
+ removeListener<E extends keyof ServerEventMap>(eventName: E, listener: (...args: ServerEventMap[E]) => void): this;
227
+ removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
228
+ }
229
+ type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
230
+ interface SecureContextOptions {
231
+ ALPNCallback?: ((arg: {
232
+ servername: string;
233
+ protocols: string[];
234
+ }) => string | undefined) | undefined;
235
+ allowPartialTrustChain?: boolean | undefined;
236
+ ca?: string | Buffer | Array<string | Buffer> | undefined;
237
+ cert?: string | Buffer | Array<string | Buffer> | undefined;
238
+ sigalgs?: string | undefined;
239
+ ciphers?: string | undefined;
240
+ clientCertEngine?: string | undefined;
241
+ crl?: string | Buffer | Array<string | Buffer> | undefined;
242
+ dhparam?: string | Buffer | undefined;
243
+ ecdhCurve?: string | undefined;
244
+ honorCipherOrder?: boolean | undefined;
245
+ key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
246
+ privateKeyEngine?: string | undefined;
247
+ privateKeyIdentifier?: string | undefined;
248
+ maxVersion?: SecureVersion | undefined;
249
+ minVersion?: SecureVersion | undefined;
250
+ passphrase?: string | undefined;
251
+ pfx?: string | Buffer | Array<string | Buffer | PxfObject> | undefined;
252
+ secureOptions?: number | undefined;
253
+ secureProtocol?: string | undefined;
254
+ sessionIdContext?: string | undefined;
255
+ ticketKeys?: Buffer | undefined;
256
+ sessionTimeout?: number | undefined;
257
+ }
258
+ interface SecureContext {
259
+ context: any;
260
+ }
261
+ function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined;
262
+ function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server;
263
+ function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
264
+ function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
265
+ function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
266
+ function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
267
+ function createSecureContext(options?: SecureContextOptions): SecureContext;
268
+ function getCACertificates(type?: "default" | "system" | "bundled" | "extra"): string[];
269
+ function getCiphers(): string[];
270
+ function setDefaultCACertificates(certs: ReadonlyArray<string | NodeJS.ArrayBufferView>): void;
271
+ let DEFAULT_ECDH_CURVE: string;
272
+ let DEFAULT_MAX_VERSION: SecureVersion;
273
+ let DEFAULT_MIN_VERSION: SecureVersion;
274
+ let DEFAULT_CIPHERS: string;
275
+ const rootCertificates: readonly string[];
276
+ }
277
+ declare module "tls" {
278
+ export * from "node:tls";
279
+ }
@@ -0,0 +1,16 @@
1
+ declare module "node:trace_events" {
2
+ interface Tracing {
3
+ readonly categories: string;
4
+ disable(): void;
5
+ enable(): void;
6
+ readonly enabled: boolean;
7
+ }
8
+ interface CreateTracingOptions {
9
+ categories: string[];
10
+ }
11
+ function createTracing(options: CreateTracingOptions): Tracing;
12
+ function getEnabledCategories(): string | undefined;
13
+ }
14
+ declare module "trace_events" {
15
+ export * from "node:trace_events";
16
+ }
@@ -0,0 +1,26 @@
1
+ declare module "node:buffer" {
2
+ global {
3
+ interface BufferConstructor {
4
+ new (str: string, encoding?: BufferEncoding): Buffer;
5
+ new (size: number): Buffer;
6
+ new (array: ArrayLike<number>): Buffer;
7
+ new (arrayBuffer: ArrayBufferLike): Buffer;
8
+ from(array: WithImplicitCoercion<ArrayLike<number>>): Buffer;
9
+ from(arrayBuffer: WithImplicitCoercion<ArrayBufferLike>, byteOffset?: number, length?: number): Buffer;
10
+ from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer;
11
+ from(arrayOrString: WithImplicitCoercion<ArrayLike<number> | string>): Buffer;
12
+ of(...items: number[]): Buffer;
13
+ concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
14
+ copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer;
15
+ alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
16
+ allocUnsafe(size: number): Buffer;
17
+ allocUnsafeSlow(size: number): Buffer;
18
+ }
19
+ interface Buffer extends Uint8Array {
20
+ slice(start?: number, end?: number): Buffer;
21
+ subarray(start?: number, end?: number): Buffer;
22
+ }
23
+ type NonSharedBuffer = Buffer;
24
+ type AllowSharedBuffer = Buffer;
25
+ }
26
+ }
@@ -0,0 +1,43 @@
1
+ interface Float16Array extends Pick<Float32Array, typeof Symbol.iterator | "entries" | "keys" | "values"> {
2
+ readonly BYTES_PER_ELEMENT: number;
3
+ readonly buffer: ArrayBufferLike;
4
+ readonly byteLength: number;
5
+ readonly byteOffset: number;
6
+ readonly length: number;
7
+ readonly [Symbol.toStringTag]: "Float16Array";
8
+ at(index: number): number | undefined;
9
+ copyWithin(target: number, start: number, end?: number): this;
10
+ every(predicate: (value: number, index: number, array: Float16Array) => unknown, thisArg?: any): boolean;
11
+ fill(value: number, start?: number, end?: number): this;
12
+ filter(predicate: (value: number, index: number, array: Float16Array) => any, thisArg?: any): Float16Array;
13
+ find(predicate: (value: number, index: number, obj: Float16Array) => boolean, thisArg?: any): number | undefined;
14
+ findIndex(predicate: (value: number, index: number, obj: Float16Array) => boolean, thisArg?: any): number;
15
+ findLast<S extends number>(predicate: (value: number, index: number, array: Float16Array) => value is S, thisArg?: any): S | undefined;
16
+ findLast(predicate: (value: number, index: number, array: Float16Array) => unknown, thisArg?: any): number | undefined;
17
+ findLastIndex(predicate: (value: number, index: number, array: Float16Array) => unknown, thisArg?: any): number;
18
+ forEach(callbackfn: (value: number, index: number, array: Float16Array) => void, thisArg?: any): void;
19
+ includes(searchElement: number, fromIndex?: number): boolean;
20
+ indexOf(searchElement: number, fromIndex?: number): number;
21
+ join(separator?: string): string;
22
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
23
+ map(callbackfn: (value: number, index: number, array: Float16Array) => number, thisArg?: any): Float16Array;
24
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float16Array) => number): number;
25
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float16Array) => number, initialValue: number): number;
26
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float16Array) => U, initialValue: U): U;
27
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float16Array) => number): number;
28
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float16Array) => number, initialValue: number): number;
29
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float16Array) => U, initialValue: U): U;
30
+ reverse(): Float16Array;
31
+ set(array: ArrayLike<number>, offset?: number): void;
32
+ slice(start?: number, end?: number): Float16Array;
33
+ some(predicate: (value: number, index: number, array: Float16Array) => unknown, thisArg?: any): boolean;
34
+ sort(compareFn?: (a: number, b: number) => number): this;
35
+ subarray(begin?: number, end?: number): Float16Array;
36
+ toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
37
+ toReversed(): Float16Array;
38
+ toSorted(compareFn?: (a: number, b: number) => number): Float16Array;
39
+ toString(): string;
40
+ valueOf(): Float16Array;
41
+ with(index: number, value: number): Float16Array;
42
+ [index: number]: number;
43
+ }
@@ -0,0 +1,22 @@
1
+ export {};
2
+ declare global {
3
+ namespace NodeJS {
4
+ type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | BigUint64Array | BigInt64Array | Float16Array | Float32Array | Float64Array;
5
+ type ArrayBufferView = TypedArray | DataView;
6
+ type NonSharedUint8Array = Uint8Array;
7
+ type NonSharedUint8ClampedArray = Uint8ClampedArray;
8
+ type NonSharedUint16Array = Uint16Array;
9
+ type NonSharedUint32Array = Uint32Array;
10
+ type NonSharedInt8Array = Int8Array;
11
+ type NonSharedInt16Array = Int16Array;
12
+ type NonSharedInt32Array = Int32Array;
13
+ type NonSharedBigUint64Array = BigUint64Array;
14
+ type NonSharedBigInt64Array = BigInt64Array;
15
+ type NonSharedFloat16Array = Float16Array;
16
+ type NonSharedFloat32Array = Float32Array;
17
+ type NonSharedFloat64Array = Float64Array;
18
+ type NonSharedDataView = DataView;
19
+ type NonSharedTypedArray = TypedArray;
20
+ type NonSharedArrayBufferView = ArrayBufferView;
21
+ }
22
+ }
@@ -0,0 +1,84 @@
1
+ /// <reference path="./compatibility/float16array.d.ts" />
2
+ /// <reference path="../compatibility/iterators.d.ts" />
3
+ /// <reference path="./globals.typedarray.d.ts" />
4
+ /// <reference path="./buffer.buffer.d.ts" />
5
+ /// <reference path="../globals.d.ts" />
6
+ /// <reference path="../web-globals/abortcontroller.d.ts" />
7
+ /// <reference path="../web-globals/blob.d.ts" />
8
+ /// <reference path="../web-globals/console.d.ts" />
9
+ /// <reference path="../web-globals/crypto.d.ts" />
10
+ /// <reference path="../web-globals/domexception.d.ts" />
11
+ /// <reference path="../web-globals/encoding.d.ts" />
12
+ /// <reference path="../web-globals/events.d.ts" />
13
+ /// <reference path="../web-globals/fetch.d.ts" />
14
+ /// <reference path="../web-globals/importmeta.d.ts" />
15
+ /// <reference path="../web-globals/messaging.d.ts" />
16
+ /// <reference path="../web-globals/navigator.d.ts" />
17
+ /// <reference path="../web-globals/performance.d.ts" />
18
+ /// <reference path="../web-globals/storage.d.ts" />
19
+ /// <reference path="../web-globals/streams.d.ts" />
20
+ /// <reference path="../web-globals/timers.d.ts" />
21
+ /// <reference path="../web-globals/url.d.ts" />
22
+ /// <reference path="../assert.d.ts" />
23
+ /// <reference path="../assert/strict.d.ts" />
24
+ /// <reference path="../async_hooks.d.ts" />
25
+ /// <reference path="../buffer.d.ts" />
26
+ /// <reference path="../child_process.d.ts" />
27
+ /// <reference path="../cluster.d.ts" />
28
+ /// <reference path="../console.d.ts" />
29
+ /// <reference path="../constants.d.ts" />
30
+ /// <reference path="../crypto.d.ts" />
31
+ /// <reference path="../dgram.d.ts" />
32
+ /// <reference path="../diagnostics_channel.d.ts" />
33
+ /// <reference path="../dns.d.ts" />
34
+ /// <reference path="../dns/promises.d.ts" />
35
+ /// <reference path="../domain.d.ts" />
36
+ /// <reference path="../events.d.ts" />
37
+ /// <reference path="../fs.d.ts" />
38
+ /// <reference path="../fs/promises.d.ts" />
39
+ /// <reference path="../http.d.ts" />
40
+ /// <reference path="../http2.d.ts" />
41
+ /// <reference path="../https.d.ts" />
42
+ /// <reference path="../inspector.d.ts" />
43
+ /// <reference path="../inspector.generated.d.ts" />
44
+ /// <reference path="../inspector/promises.d.ts" />
45
+ /// <reference path="../module.d.ts" />
46
+ /// <reference path="../net.d.ts" />
47
+ /// <reference path="../os.d.ts" />
48
+ /// <reference path="../path.d.ts" />
49
+ /// <reference path="../path/posix.d.ts" />
50
+ /// <reference path="../path/win32.d.ts" />
51
+ /// <reference path="../perf_hooks.d.ts" />
52
+ /// <reference path="../process.d.ts" />
53
+ /// <reference path="../punycode.d.ts" />
54
+ /// <reference path="../querystring.d.ts" />
55
+ /// <reference path="../quic.d.ts" />
56
+ /// <reference path="../readline.d.ts" />
57
+ /// <reference path="../readline/promises.d.ts" />
58
+ /// <reference path="../repl.d.ts" />
59
+ /// <reference path="../sea.d.ts" />
60
+ /// <reference path="../sqlite.d.ts" />
61
+ /// <reference path="../stream.d.ts" />
62
+ /// <reference path="../stream/consumers.d.ts" />
63
+ /// <reference path="../stream/iter.d.ts" />
64
+ /// <reference path="../stream/promises.d.ts" />
65
+ /// <reference path="../stream/web.d.ts" />
66
+ /// <reference path="../string_decoder.d.ts" />
67
+ /// <reference path="../test.d.ts" />
68
+ /// <reference path="../test/reporters.d.ts" />
69
+ /// <reference path="../timers.d.ts" />
70
+ /// <reference path="../timers/promises.d.ts" />
71
+ /// <reference path="../tls.d.ts" />
72
+ /// <reference path="../trace_events.d.ts" />
73
+ /// <reference path="../tty.d.ts" />
74
+ /// <reference path="../url.d.ts" />
75
+ /// <reference path="../util.d.ts" />
76
+ /// <reference path="../util/types.d.ts" />
77
+ /// <reference path="../v8.d.ts" />
78
+ /// <reference path="../vm.d.ts" />
79
+ /// <reference path="../wasi.d.ts" />
80
+ /// <reference path="../worker_threads.d.ts" />
81
+ /// <reference path="../zlib.d.ts" />
82
+ /// <reference path="../zlib/iter.d.ts" />
83
+ /// <reference lib="es2020" />
84
+ /// <reference lib="esnext.disposable" />
@@ -0,0 +1,50 @@
1
+ interface Float16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
2
+ readonly BYTES_PER_ELEMENT: number;
3
+ readonly buffer: TArrayBuffer;
4
+ readonly byteLength: number;
5
+ readonly byteOffset: number;
6
+ readonly length: number;
7
+ readonly [Symbol.toStringTag]: "Float16Array";
8
+ at(index: number): number | undefined;
9
+ copyWithin(target: number, start: number, end?: number): this;
10
+ entries(): ArrayIterator<[
11
+ number,
12
+ number
13
+ ]>;
14
+ every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
15
+ fill(value: number, start?: number, end?: number): this;
16
+ filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float16Array<ArrayBuffer>;
17
+ find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;
18
+ findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;
19
+ findLast<S extends number>(predicate: (value: number, index: number, array: this) => value is S, thisArg?: any): S | undefined;
20
+ findLast(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): number | undefined;
21
+ findLastIndex(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): number;
22
+ forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
23
+ includes(searchElement: number, fromIndex?: number): boolean;
24
+ indexOf(searchElement: number, fromIndex?: number): number;
25
+ join(separator?: string): string;
26
+ keys(): ArrayIterator<number>;
27
+ lastIndexOf(searchElement: number, fromIndex?: number): number;
28
+ map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float16Array<ArrayBuffer>;
29
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
30
+ reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
31
+ reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
32
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
33
+ reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;
34
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;
35
+ reverse(): this;
36
+ set(array: ArrayLike<number>, offset?: number): void;
37
+ slice(start?: number, end?: number): Float16Array<ArrayBuffer>;
38
+ some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;
39
+ sort(compareFn?: (a: number, b: number) => number): this;
40
+ subarray(begin?: number, end?: number): Float16Array<TArrayBuffer>;
41
+ toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
42
+ toReversed(): Float16Array<ArrayBuffer>;
43
+ toSorted(compareFn?: (a: number, b: number) => number): Float16Array<ArrayBuffer>;
44
+ toString(): string;
45
+ valueOf(): this;
46
+ values(): ArrayIterator<number>;
47
+ with(index: number, value: number): Float16Array<ArrayBuffer>;
48
+ [Symbol.iterator](): ArrayIterator<number>;
49
+ [index: number]: number;
50
+ }
@@ -0,0 +1,84 @@
1
+ /// <reference path="./compatibility/float16array.d.ts" />
2
+ /// <reference path="../compatibility/iterators.d.ts" />
3
+ /// <reference path="../globals.typedarray.d.ts" />
4
+ /// <reference path="../buffer.buffer.d.ts" />
5
+ /// <reference path="../globals.d.ts" />
6
+ /// <reference path="../web-globals/abortcontroller.d.ts" />
7
+ /// <reference path="../web-globals/blob.d.ts" />
8
+ /// <reference path="../web-globals/console.d.ts" />
9
+ /// <reference path="../web-globals/crypto.d.ts" />
10
+ /// <reference path="../web-globals/domexception.d.ts" />
11
+ /// <reference path="../web-globals/encoding.d.ts" />
12
+ /// <reference path="../web-globals/events.d.ts" />
13
+ /// <reference path="../web-globals/fetch.d.ts" />
14
+ /// <reference path="../web-globals/importmeta.d.ts" />
15
+ /// <reference path="../web-globals/messaging.d.ts" />
16
+ /// <reference path="../web-globals/navigator.d.ts" />
17
+ /// <reference path="../web-globals/performance.d.ts" />
18
+ /// <reference path="../web-globals/storage.d.ts" />
19
+ /// <reference path="../web-globals/streams.d.ts" />
20
+ /// <reference path="../web-globals/timers.d.ts" />
21
+ /// <reference path="../web-globals/url.d.ts" />
22
+ /// <reference path="../assert.d.ts" />
23
+ /// <reference path="../assert/strict.d.ts" />
24
+ /// <reference path="../async_hooks.d.ts" />
25
+ /// <reference path="../buffer.d.ts" />
26
+ /// <reference path="../child_process.d.ts" />
27
+ /// <reference path="../cluster.d.ts" />
28
+ /// <reference path="../console.d.ts" />
29
+ /// <reference path="../constants.d.ts" />
30
+ /// <reference path="../crypto.d.ts" />
31
+ /// <reference path="../dgram.d.ts" />
32
+ /// <reference path="../diagnostics_channel.d.ts" />
33
+ /// <reference path="../dns.d.ts" />
34
+ /// <reference path="../dns/promises.d.ts" />
35
+ /// <reference path="../domain.d.ts" />
36
+ /// <reference path="../events.d.ts" />
37
+ /// <reference path="../fs.d.ts" />
38
+ /// <reference path="../fs/promises.d.ts" />
39
+ /// <reference path="../http.d.ts" />
40
+ /// <reference path="../http2.d.ts" />
41
+ /// <reference path="../https.d.ts" />
42
+ /// <reference path="../inspector.d.ts" />
43
+ /// <reference path="../inspector.generated.d.ts" />
44
+ /// <reference path="../inspector/promises.d.ts" />
45
+ /// <reference path="../module.d.ts" />
46
+ /// <reference path="../net.d.ts" />
47
+ /// <reference path="../os.d.ts" />
48
+ /// <reference path="../path.d.ts" />
49
+ /// <reference path="../path/posix.d.ts" />
50
+ /// <reference path="../path/win32.d.ts" />
51
+ /// <reference path="../perf_hooks.d.ts" />
52
+ /// <reference path="../process.d.ts" />
53
+ /// <reference path="../punycode.d.ts" />
54
+ /// <reference path="../querystring.d.ts" />
55
+ /// <reference path="../quic.d.ts" />
56
+ /// <reference path="../readline.d.ts" />
57
+ /// <reference path="../readline/promises.d.ts" />
58
+ /// <reference path="../repl.d.ts" />
59
+ /// <reference path="../sea.d.ts" />
60
+ /// <reference path="../sqlite.d.ts" />
61
+ /// <reference path="../stream.d.ts" />
62
+ /// <reference path="../stream/consumers.d.ts" />
63
+ /// <reference path="../stream/iter.d.ts" />
64
+ /// <reference path="../stream/promises.d.ts" />
65
+ /// <reference path="../stream/web.d.ts" />
66
+ /// <reference path="../string_decoder.d.ts" />
67
+ /// <reference path="../test.d.ts" />
68
+ /// <reference path="../test/reporters.d.ts" />
69
+ /// <reference path="../timers.d.ts" />
70
+ /// <reference path="../timers/promises.d.ts" />
71
+ /// <reference path="../tls.d.ts" />
72
+ /// <reference path="../trace_events.d.ts" />
73
+ /// <reference path="../tty.d.ts" />
74
+ /// <reference path="../url.d.ts" />
75
+ /// <reference path="../util.d.ts" />
76
+ /// <reference path="../util/types.d.ts" />
77
+ /// <reference path="../v8.d.ts" />
78
+ /// <reference path="../vm.d.ts" />
79
+ /// <reference path="../wasi.d.ts" />
80
+ /// <reference path="../worker_threads.d.ts" />
81
+ /// <reference path="../zlib.d.ts" />
82
+ /// <reference path="../zlib/iter.d.ts" />
83
+ /// <reference lib="es2020" />
84
+ /// <reference lib="esnext.disposable" />