@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,113 @@
1
+ declare module "node:async_hooks" {
2
+ function executionAsyncId(): number;
3
+ function executionAsyncResource(): object;
4
+ function triggerAsyncId(): number;
5
+ interface HookCallbacks {
6
+ init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
7
+ before?(asyncId: number): void;
8
+ after?(asyncId: number): void;
9
+ promiseResolve?(asyncId: number): void;
10
+ destroy?(asyncId: number): void;
11
+ trackPromises?: boolean | undefined;
12
+ }
13
+ interface AsyncHook {
14
+ enable(): this;
15
+ disable(): this;
16
+ }
17
+ function createHook(options: HookCallbacks): AsyncHook;
18
+ interface AsyncResourceOptions {
19
+ triggerAsyncId?: number | undefined;
20
+ requireManualDestroy?: boolean | undefined;
21
+ }
22
+ class AsyncResource {
23
+ constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
24
+ static bind<Func extends (this: ThisArg, ...args: any[]) => any, ThisArg>(fn: Func, type?: string, thisArg?: ThisArg): Func;
25
+ bind<Func extends (...args: any[]) => any>(fn: Func): Func;
26
+ runInAsyncScope<This, Result>(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result;
27
+ emitDestroy(): this;
28
+ asyncId(): number;
29
+ triggerAsyncId(): number;
30
+ }
31
+ interface AsyncLocalStorageOptions {
32
+ defaultValue?: any;
33
+ name?: string | undefined;
34
+ }
35
+ class AsyncLocalStorage<T> {
36
+ constructor(options?: AsyncLocalStorageOptions);
37
+ static bind<Func extends (...args: any[]) => any>(fn: Func): Func;
38
+ static snapshot(): <R, TArgs extends any[]>(fn: (...args: TArgs) => R, ...args: TArgs) => R;
39
+ disable(): void;
40
+ getStore(): T | undefined;
41
+ readonly name: string;
42
+ run<R>(store: T, callback: () => R): R;
43
+ run<R, TArgs extends any[]>(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R;
44
+ exit<R, TArgs extends any[]>(callback: (...args: TArgs) => R, ...args: TArgs): R;
45
+ withScope(store: T): RunScope;
46
+ enterWith(store: T): void;
47
+ }
48
+ interface RunScope extends Disposable {
49
+ dispose(): void;
50
+ }
51
+ namespace asyncWrapProviders {
52
+ const NONE: number;
53
+ const DIRHANDLE: number;
54
+ const DNSCHANNEL: number;
55
+ const ELDHISTOGRAM: number;
56
+ const FILEHANDLE: number;
57
+ const FILEHANDLECLOSEREQ: number;
58
+ const FIXEDSIZEBLOBCOPY: number;
59
+ const FSEVENTWRAP: number;
60
+ const FSREQCALLBACK: number;
61
+ const FSREQPROMISE: number;
62
+ const GETADDRINFOREQWRAP: number;
63
+ const GETNAMEINFOREQWRAP: number;
64
+ const HEAPSNAPSHOT: number;
65
+ const HTTP2SESSION: number;
66
+ const HTTP2STREAM: number;
67
+ const HTTP2PING: number;
68
+ const HTTP2SETTINGS: number;
69
+ const HTTPINCOMINGMESSAGE: number;
70
+ const HTTPCLIENTREQUEST: number;
71
+ const JSSTREAM: number;
72
+ const JSUDPWRAP: number;
73
+ const MESSAGEPORT: number;
74
+ const PIPECONNECTWRAP: number;
75
+ const PIPESERVERWRAP: number;
76
+ const PIPEWRAP: number;
77
+ const PROCESSWRAP: number;
78
+ const PROMISE: number;
79
+ const QUERYWRAP: number;
80
+ const SHUTDOWNWRAP: number;
81
+ const SIGNALWRAP: number;
82
+ const STATWATCHER: number;
83
+ const STREAMPIPE: number;
84
+ const TCPCONNECTWRAP: number;
85
+ const TCPSERVERWRAP: number;
86
+ const TCPWRAP: number;
87
+ const TTYWRAP: number;
88
+ const UDPSENDWRAP: number;
89
+ const UDPWRAP: number;
90
+ const SIGINTWATCHDOG: number;
91
+ const WORKER: number;
92
+ const WORKERHEAPSNAPSHOT: number;
93
+ const WRITEWRAP: number;
94
+ const ZLIB: number;
95
+ const CHECKPRIMEREQUEST: number;
96
+ const PBKDF2REQUEST: number;
97
+ const KEYPAIRGENREQUEST: number;
98
+ const KEYGENREQUEST: number;
99
+ const KEYEXPORTREQUEST: number;
100
+ const CIPHERREQUEST: number;
101
+ const DERIVEBITSREQUEST: number;
102
+ const HASHREQUEST: number;
103
+ const RANDOMBYTESREQUEST: number;
104
+ const RANDOMPRIMEREQUEST: number;
105
+ const SCRYPTREQUEST: number;
106
+ const SIGNREQUEST: number;
107
+ const TLSWRAP: number;
108
+ const VERIFYREQUEST: number;
109
+ }
110
+ }
111
+ declare module "async_hooks" {
112
+ export * from "node:async_hooks";
113
+ }
@@ -0,0 +1,29 @@
1
+ declare module "node:buffer" {
2
+ type ImplicitArrayBuffer<T extends WithImplicitCoercion<ArrayBufferLike>> = T extends {
3
+ valueOf(): infer V extends ArrayBufferLike;
4
+ } ? V : T;
5
+ global {
6
+ interface BufferConstructor {
7
+ new (str: string, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
8
+ new (size: number): Buffer<ArrayBuffer>;
9
+ new (array: ArrayLike<number>): Buffer<ArrayBuffer>;
10
+ new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(arrayBuffer: TArrayBuffer): Buffer<TArrayBuffer>;
11
+ from(array: WithImplicitCoercion<ArrayLike<number>>): Buffer<ArrayBuffer>;
12
+ from<TArrayBuffer extends WithImplicitCoercion<ArrayBufferLike>>(arrayBuffer: TArrayBuffer, byteOffset?: number, length?: number): Buffer<ImplicitArrayBuffer<TArrayBuffer>>;
13
+ from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
14
+ from(arrayOrString: WithImplicitCoercion<ArrayLike<number> | string>): Buffer<ArrayBuffer>;
15
+ of(...items: number[]): Buffer<ArrayBuffer>;
16
+ concat(list: readonly Uint8Array[], totalLength?: number): Buffer<ArrayBuffer>;
17
+ copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer<ArrayBuffer>;
18
+ alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
19
+ allocUnsafe(size: number): Buffer<ArrayBuffer>;
20
+ allocUnsafeSlow(size: number): Buffer<ArrayBuffer>;
21
+ }
22
+ interface Buffer<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> extends Uint8Array<TArrayBuffer> {
23
+ slice(start?: number, end?: number): Buffer<ArrayBuffer>;
24
+ subarray(start?: number, end?: number): Buffer<TArrayBuffer>;
25
+ }
26
+ type NonSharedBuffer = Buffer<ArrayBuffer>;
27
+ type AllowSharedBuffer = Buffer<ArrayBufferLike>;
28
+ }
29
+ }
@@ -0,0 +1,162 @@
1
+ declare module "node:buffer" {
2
+ import { ReadableStream } from "node:stream/web";
3
+ export function isUtf8(input: ArrayBuffer | NodeJS.TypedArray): boolean;
4
+ export function isAscii(input: ArrayBuffer | NodeJS.TypedArray): boolean;
5
+ export let INSPECT_MAX_BYTES: number;
6
+ export const kMaxLength: number;
7
+ export const kStringMaxLength: number;
8
+ export const constants: {
9
+ MAX_LENGTH: number;
10
+ MAX_STRING_LENGTH: number;
11
+ };
12
+ export type TranscodeEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "latin1" | "binary";
13
+ export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): NonSharedBuffer;
14
+ export function resolveObjectURL(id: string): Blob | undefined;
15
+ export { type AllowSharedBuffer, Buffer, type NonSharedBuffer };
16
+ export interface BlobOptions extends BlobPropertyBag {
17
+ }
18
+ export interface FileOptions extends FilePropertyBag {
19
+ }
20
+ export type WithImplicitCoercion<T> = T | {
21
+ valueOf(): T;
22
+ } | (T extends string ? {
23
+ [Symbol.toPrimitive](hint: "string"): T;
24
+ } : never);
25
+ global {
26
+ namespace NodeJS {
27
+ export { BufferEncoding };
28
+ }
29
+ type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
30
+ interface BufferConstructor {
31
+ isBuffer(obj: any): obj is Buffer;
32
+ isEncoding(encoding: string): encoding is BufferEncoding;
33
+ byteLength(string: string | NodeJS.ArrayBufferView | ArrayBufferLike, encoding?: BufferEncoding): number;
34
+ compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1;
35
+ poolSize: number;
36
+ }
37
+ interface Buffer {
38
+ write(string: string, encoding?: BufferEncoding): number;
39
+ write(string: string, offset: number, encoding?: BufferEncoding): number;
40
+ write(string: string, offset: number, length: number, encoding?: BufferEncoding): number;
41
+ toString(encoding?: BufferEncoding, start?: number, end?: number): string;
42
+ toJSON(): {
43
+ type: "Buffer";
44
+ data: number[];
45
+ };
46
+ equals(otherBuffer: Uint8Array): boolean;
47
+ compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): -1 | 0 | 1;
48
+ copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
49
+ writeBigInt64BE(value: bigint, offset?: number): number;
50
+ writeBigInt64LE(value: bigint, offset?: number): number;
51
+ writeBigUInt64BE(value: bigint, offset?: number): number;
52
+ writeBigUint64BE(value: bigint, offset?: number): number;
53
+ writeBigUInt64LE(value: bigint, offset?: number): number;
54
+ writeBigUint64LE(value: bigint, offset?: number): number;
55
+ writeUIntLE(value: number, offset: number, byteLength: number): number;
56
+ writeUintLE(value: number, offset: number, byteLength: number): number;
57
+ writeUIntBE(value: number, offset: number, byteLength: number): number;
58
+ writeUintBE(value: number, offset: number, byteLength: number): number;
59
+ writeIntLE(value: number, offset: number, byteLength: number): number;
60
+ writeIntBE(value: number, offset: number, byteLength: number): number;
61
+ readBigUInt64BE(offset?: number): bigint;
62
+ readBigUint64BE(offset?: number): bigint;
63
+ readBigUInt64LE(offset?: number): bigint;
64
+ readBigUint64LE(offset?: number): bigint;
65
+ readBigInt64BE(offset?: number): bigint;
66
+ readBigInt64LE(offset?: number): bigint;
67
+ readUIntLE(offset: number, byteLength: number): number;
68
+ readUintLE(offset: number, byteLength: number): number;
69
+ readUIntBE(offset: number, byteLength: number): number;
70
+ readUintBE(offset: number, byteLength: number): number;
71
+ readIntLE(offset: number, byteLength: number): number;
72
+ readIntBE(offset: number, byteLength: number): number;
73
+ readUInt8(offset?: number): number;
74
+ readUint8(offset?: number): number;
75
+ readUInt16LE(offset?: number): number;
76
+ readUint16LE(offset?: number): number;
77
+ readUInt16BE(offset?: number): number;
78
+ readUint16BE(offset?: number): number;
79
+ readUInt32LE(offset?: number): number;
80
+ readUint32LE(offset?: number): number;
81
+ readUInt32BE(offset?: number): number;
82
+ readUint32BE(offset?: number): number;
83
+ readInt8(offset?: number): number;
84
+ readInt16LE(offset?: number): number;
85
+ readInt16BE(offset?: number): number;
86
+ readInt32LE(offset?: number): number;
87
+ readInt32BE(offset?: number): number;
88
+ readFloatLE(offset?: number): number;
89
+ readFloatBE(offset?: number): number;
90
+ readDoubleLE(offset?: number): number;
91
+ readDoubleBE(offset?: number): number;
92
+ reverse(): this;
93
+ swap16(): this;
94
+ swap32(): this;
95
+ swap64(): this;
96
+ writeUInt8(value: number, offset?: number): number;
97
+ writeUint8(value: number, offset?: number): number;
98
+ writeUInt16LE(value: number, offset?: number): number;
99
+ writeUint16LE(value: number, offset?: number): number;
100
+ writeUInt16BE(value: number, offset?: number): number;
101
+ writeUint16BE(value: number, offset?: number): number;
102
+ writeUInt32LE(value: number, offset?: number): number;
103
+ writeUint32LE(value: number, offset?: number): number;
104
+ writeUInt32BE(value: number, offset?: number): number;
105
+ writeUint32BE(value: number, offset?: number): number;
106
+ writeInt8(value: number, offset?: number): number;
107
+ writeInt16LE(value: number, offset?: number): number;
108
+ writeInt16BE(value: number, offset?: number): number;
109
+ writeInt32LE(value: number, offset?: number): number;
110
+ writeInt32BE(value: number, offset?: number): number;
111
+ writeFloatLE(value: number, offset?: number): number;
112
+ writeFloatBE(value: number, offset?: number): number;
113
+ writeDoubleLE(value: number, offset?: number): number;
114
+ writeDoubleBE(value: number, offset?: number): number;
115
+ fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
116
+ fill(value: string | Uint8Array | number, offset: number, encoding: BufferEncoding): this;
117
+ fill(value: string | Uint8Array | number, encoding: BufferEncoding): this;
118
+ indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
119
+ indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
120
+ lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
121
+ lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
122
+ includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
123
+ includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
124
+ }
125
+ var Buffer: BufferConstructor;
126
+ }
127
+ export type BlobPart = NodeJS.BufferSource | Blob | string;
128
+ export interface BlobPropertyBag {
129
+ endings?: "native" | "transparent";
130
+ type?: string;
131
+ }
132
+ export interface FilePropertyBag extends BlobPropertyBag {
133
+ lastModified?: number;
134
+ }
135
+ export interface Blob {
136
+ readonly size: number;
137
+ readonly type: string;
138
+ arrayBuffer(): Promise<ArrayBuffer>;
139
+ bytes(): Promise<NodeJS.NonSharedUint8Array>;
140
+ slice(start?: number, end?: number, contentType?: string): Blob;
141
+ stream(): ReadableStream<NodeJS.NonSharedUint8Array>;
142
+ text(): Promise<string>;
143
+ }
144
+ export var Blob: {
145
+ prototype: Blob;
146
+ new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
147
+ };
148
+ export interface File extends Blob {
149
+ readonly lastModified: number;
150
+ readonly name: string;
151
+ readonly webkitRelativePath: string;
152
+ }
153
+ export var File: {
154
+ prototype: File;
155
+ new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
156
+ };
157
+ export import atob = globalThis.atob;
158
+ export import btoa = globalThis.btoa;
159
+ }
160
+ declare module "buffer" {
161
+ export * from "node:buffer";
162
+ }
@@ -0,0 +1,337 @@
1
+ declare module "node:child_process" {
2
+ import { NonSharedBuffer } from "node:buffer";
3
+ import * as dgram from "node:dgram";
4
+ import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
5
+ import * as net from "node:net";
6
+ import { Readable, Stream, Writable } from "node:stream";
7
+ import { URL } from "node:url";
8
+ type Serializable = string | object | number | boolean | bigint;
9
+ type SendHandle = net.Socket | net.Server | dgram.Socket | undefined;
10
+ interface ChildProcessEventMap {
11
+ "close": [
12
+ code: number | null,
13
+ signal: NodeJS.Signals | null
14
+ ];
15
+ "disconnect": [
16
+ ];
17
+ "error": [
18
+ err: Error
19
+ ];
20
+ "exit": [
21
+ code: number | null,
22
+ signal: NodeJS.Signals | null
23
+ ];
24
+ "message": [
25
+ message: Serializable,
26
+ sendHandle: SendHandle
27
+ ];
28
+ "spawn": [
29
+ ];
30
+ }
31
+ class ChildProcess implements EventEmitter {
32
+ stdin: Writable | null;
33
+ stdout: Readable | null;
34
+ stderr: Readable | null;
35
+ readonly channel?: Control | null;
36
+ readonly stdio: [
37
+ Writable | null,
38
+ Readable | null,
39
+ Readable | null,
40
+ Readable | Writable | null | undefined,
41
+ Readable | Writable | null | undefined
42
+ ];
43
+ readonly killed: boolean;
44
+ readonly pid?: number | undefined;
45
+ readonly connected: boolean;
46
+ readonly exitCode: number | null;
47
+ readonly signalCode: NodeJS.Signals | null;
48
+ readonly spawnargs: string[];
49
+ readonly spawnfile: string;
50
+ kill(signal?: NodeJS.Signals | number): boolean;
51
+ [Symbol.dispose](): void;
52
+ send(message: Serializable, callback?: (error: Error | null) => void): boolean;
53
+ send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
54
+ send(message: Serializable, sendHandle?: SendHandle, options?: MessageOptions, callback?: (error: Error | null) => void): boolean;
55
+ disconnect(): void;
56
+ unref(): void;
57
+ ref(): void;
58
+ }
59
+ interface ChildProcess extends InternalEventEmitter<ChildProcessEventMap> {
60
+ }
61
+ interface ChildProcessWithoutNullStreams extends ChildProcess {
62
+ stdin: Writable;
63
+ stdout: Readable;
64
+ stderr: Readable;
65
+ readonly stdio: [
66
+ Writable,
67
+ Readable,
68
+ Readable,
69
+ Readable | Writable | null | undefined,
70
+ Readable | Writable | null | undefined
71
+ ];
72
+ }
73
+ interface ChildProcessByStdio<I extends null | Writable, O extends null | Readable, E extends null | Readable> extends ChildProcess {
74
+ stdin: I;
75
+ stdout: O;
76
+ stderr: E;
77
+ readonly stdio: [
78
+ I,
79
+ O,
80
+ E,
81
+ Readable | Writable | null | undefined,
82
+ Readable | Writable | null | undefined
83
+ ];
84
+ }
85
+ interface Control extends EventEmitter {
86
+ ref(): void;
87
+ unref(): void;
88
+ }
89
+ interface MessageOptions {
90
+ keepOpen?: boolean | undefined;
91
+ }
92
+ type IOType = "overlapped" | "pipe" | "ignore" | "inherit";
93
+ type StdioOptions = IOType | Array<IOType | "ipc" | Stream | number | null | undefined>;
94
+ type SerializationType = "json" | "advanced";
95
+ interface MessagingOptions extends Abortable {
96
+ serialization?: SerializationType | undefined;
97
+ killSignal?: NodeJS.Signals | number | undefined;
98
+ timeout?: number | undefined;
99
+ }
100
+ interface ProcessEnvOptions {
101
+ uid?: number | undefined;
102
+ gid?: number | undefined;
103
+ cwd?: string | URL | undefined;
104
+ env?: NodeJS.ProcessEnv | undefined;
105
+ }
106
+ interface CommonOptions extends ProcessEnvOptions {
107
+ windowsHide?: boolean | undefined;
108
+ timeout?: number | undefined;
109
+ }
110
+ interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
111
+ argv0?: string | undefined;
112
+ stdio?: StdioOptions | undefined;
113
+ shell?: boolean | string | undefined;
114
+ windowsVerbatimArguments?: boolean | undefined;
115
+ }
116
+ interface SpawnOptions extends CommonSpawnOptions {
117
+ detached?: boolean | undefined;
118
+ }
119
+ interface SpawnOptionsWithoutStdio extends SpawnOptions {
120
+ stdio?: StdioPipeNamed | StdioPipe[] | undefined;
121
+ }
122
+ type StdioNull = "inherit" | "ignore" | Stream;
123
+ type StdioPipeNamed = "pipe" | "overlapped";
124
+ type StdioPipe = undefined | null | StdioPipeNamed;
125
+ interface SpawnOptionsWithStdioTuple<Stdin extends StdioNull | StdioPipe, Stdout extends StdioNull | StdioPipe, Stderr extends StdioNull | StdioPipe> extends SpawnOptions {
126
+ stdio: [
127
+ Stdin,
128
+ Stdout,
129
+ Stderr
130
+ ];
131
+ }
132
+ function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
133
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>): ChildProcessByStdio<Writable, Readable, Readable>;
134
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>): ChildProcessByStdio<Writable, Readable, null>;
135
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>): ChildProcessByStdio<Writable, null, Readable>;
136
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>): ChildProcessByStdio<null, Readable, Readable>;
137
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>): ChildProcessByStdio<Writable, null, null>;
138
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>): ChildProcessByStdio<null, Readable, null>;
139
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>): ChildProcessByStdio<null, null, Readable>;
140
+ function spawn(command: string, options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>): ChildProcessByStdio<null, null, null>;
141
+ function spawn(command: string, options: SpawnOptions): ChildProcess;
142
+ function spawn(command: string, args?: readonly string[], options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
143
+ function spawn(command: string, args: readonly string[], options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>): ChildProcessByStdio<Writable, Readable, Readable>;
144
+ function spawn(command: string, args: readonly string[], options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>): ChildProcessByStdio<Writable, Readable, null>;
145
+ function spawn(command: string, args: readonly string[], options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>): ChildProcessByStdio<Writable, null, Readable>;
146
+ function spawn(command: string, args: readonly string[], options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>): ChildProcessByStdio<null, Readable, Readable>;
147
+ function spawn(command: string, args: readonly string[], options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>): ChildProcessByStdio<Writable, null, null>;
148
+ function spawn(command: string, args: readonly string[], options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>): ChildProcessByStdio<null, Readable, null>;
149
+ function spawn(command: string, args: readonly string[], options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>): ChildProcessByStdio<null, null, Readable>;
150
+ function spawn(command: string, args: readonly string[], options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>): ChildProcessByStdio<null, null, null>;
151
+ function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess;
152
+ interface ExecOptions extends CommonOptions {
153
+ shell?: string | undefined;
154
+ signal?: AbortSignal | undefined;
155
+ maxBuffer?: number | undefined;
156
+ killSignal?: NodeJS.Signals | number | undefined;
157
+ encoding?: string | null | undefined;
158
+ }
159
+ interface ExecOptionsWithStringEncoding extends ExecOptions {
160
+ encoding?: BufferEncoding | undefined;
161
+ }
162
+ interface ExecOptionsWithBufferEncoding extends ExecOptions {
163
+ encoding: "buffer" | null;
164
+ }
165
+ interface ExecException extends Error {
166
+ cmd?: string;
167
+ killed?: boolean;
168
+ code?: number;
169
+ signal?: NodeJS.Signals;
170
+ stdout?: string;
171
+ stderr?: string;
172
+ }
173
+ function exec(command: string, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
174
+ function exec(command: string, options: ExecOptionsWithBufferEncoding, callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void): ChildProcess;
175
+ function exec(command: string, options: ExecOptionsWithStringEncoding, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
176
+ function exec(command: string, options: ExecOptions | undefined | null, callback?: (error: ExecException | null, stdout: string | NonSharedBuffer, stderr: string | NonSharedBuffer) => void): ChildProcess;
177
+ interface PromiseWithChild<T> extends Promise<T> {
178
+ child: ChildProcess;
179
+ }
180
+ namespace exec {
181
+ function __promisify__(command: string): PromiseWithChild<{
182
+ stdout: string;
183
+ stderr: string;
184
+ }>;
185
+ function __promisify__(command: string, options: ExecOptionsWithBufferEncoding): PromiseWithChild<{
186
+ stdout: NonSharedBuffer;
187
+ stderr: NonSharedBuffer;
188
+ }>;
189
+ function __promisify__(command: string, options: ExecOptionsWithStringEncoding): PromiseWithChild<{
190
+ stdout: string;
191
+ stderr: string;
192
+ }>;
193
+ function __promisify__(command: string, options: ExecOptions | undefined | null): PromiseWithChild<{
194
+ stdout: string | NonSharedBuffer;
195
+ stderr: string | NonSharedBuffer;
196
+ }>;
197
+ }
198
+ interface ExecFileOptions extends CommonOptions, Abortable {
199
+ maxBuffer?: number | undefined;
200
+ killSignal?: NodeJS.Signals | number | undefined;
201
+ windowsVerbatimArguments?: boolean | undefined;
202
+ shell?: boolean | string | undefined;
203
+ signal?: AbortSignal | undefined;
204
+ encoding?: string | null | undefined;
205
+ }
206
+ interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
207
+ encoding?: BufferEncoding | undefined;
208
+ }
209
+ interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
210
+ encoding: "buffer" | null;
211
+ }
212
+ interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
213
+ }
214
+ type ExecFileException = Omit<ExecException, "code"> & Omit<NodeJS.ErrnoException, "code"> & {
215
+ code?: string | number | null;
216
+ };
217
+ function execFile(file: string, callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
218
+ function execFile(file: string, args: readonly string[] | undefined | null, callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
219
+ function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void): ChildProcess;
220
+ function execFile(file: string, args: readonly string[] | undefined | null, options: ExecFileOptionsWithBufferEncoding, callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void): ChildProcess;
221
+ function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
222
+ function execFile(file: string, args: readonly string[] | undefined | null, options: ExecFileOptionsWithStringEncoding, callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
223
+ function execFile(file: string, options: ExecFileOptions | undefined | null, callback: ((error: ExecFileException | null, stdout: string | NonSharedBuffer, stderr: string | NonSharedBuffer) => void) | undefined | null): ChildProcess;
224
+ function execFile(file: string, args: readonly string[] | undefined | null, options: ExecFileOptions | undefined | null, callback: ((error: ExecFileException | null, stdout: string | NonSharedBuffer, stderr: string | NonSharedBuffer) => void) | undefined | null): ChildProcess;
225
+ namespace execFile {
226
+ function __promisify__(file: string): PromiseWithChild<{
227
+ stdout: string;
228
+ stderr: string;
229
+ }>;
230
+ function __promisify__(file: string, args: readonly string[] | undefined | null): PromiseWithChild<{
231
+ stdout: string;
232
+ stderr: string;
233
+ }>;
234
+ function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{
235
+ stdout: NonSharedBuffer;
236
+ stderr: NonSharedBuffer;
237
+ }>;
238
+ function __promisify__(file: string, args: readonly string[] | undefined | null, options: ExecFileOptionsWithBufferEncoding): PromiseWithChild<{
239
+ stdout: NonSharedBuffer;
240
+ stderr: NonSharedBuffer;
241
+ }>;
242
+ function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{
243
+ stdout: string;
244
+ stderr: string;
245
+ }>;
246
+ function __promisify__(file: string, args: readonly string[] | undefined | null, options: ExecFileOptionsWithStringEncoding): PromiseWithChild<{
247
+ stdout: string;
248
+ stderr: string;
249
+ }>;
250
+ function __promisify__(file: string, options: ExecFileOptions | undefined | null): PromiseWithChild<{
251
+ stdout: string | NonSharedBuffer;
252
+ stderr: string | NonSharedBuffer;
253
+ }>;
254
+ function __promisify__(file: string, args: readonly string[] | undefined | null, options: ExecFileOptions | undefined | null): PromiseWithChild<{
255
+ stdout: string | NonSharedBuffer;
256
+ stderr: string | NonSharedBuffer;
257
+ }>;
258
+ }
259
+ interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable {
260
+ execPath?: string | undefined;
261
+ execArgv?: string[] | undefined;
262
+ silent?: boolean | undefined;
263
+ stdio?: StdioOptions | undefined;
264
+ detached?: boolean | undefined;
265
+ windowsVerbatimArguments?: boolean | undefined;
266
+ }
267
+ function fork(modulePath: string | URL, options?: ForkOptions): ChildProcess;
268
+ function fork(modulePath: string | URL, args?: readonly string[], options?: ForkOptions): ChildProcess;
269
+ interface SpawnSyncOptions extends CommonSpawnOptions {
270
+ input?: string | NodeJS.ArrayBufferView | undefined;
271
+ maxBuffer?: number | undefined;
272
+ encoding?: BufferEncoding | "buffer" | null | undefined;
273
+ }
274
+ interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
275
+ encoding: BufferEncoding;
276
+ }
277
+ interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
278
+ encoding?: "buffer" | null | undefined;
279
+ }
280
+ interface SpawnSyncReturns<T> {
281
+ pid: number;
282
+ output: Array<T | null>;
283
+ stdout: T;
284
+ stderr: T;
285
+ status: number | null;
286
+ signal: NodeJS.Signals | null;
287
+ error?: Error;
288
+ }
289
+ function spawnSync(command: string): SpawnSyncReturns<NonSharedBuffer>;
290
+ function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
291
+ function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<NonSharedBuffer>;
292
+ function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | NonSharedBuffer>;
293
+ function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns<NonSharedBuffer>;
294
+ function spawnSync(command: string, args: readonly string[], options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
295
+ function spawnSync(command: string, args: readonly string[], options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<NonSharedBuffer>;
296
+ function spawnSync(command: string, args?: readonly string[], options?: SpawnSyncOptions): SpawnSyncReturns<string | NonSharedBuffer>;
297
+ interface CommonExecOptions extends CommonOptions {
298
+ input?: string | NodeJS.ArrayBufferView | undefined;
299
+ stdio?: StdioOptions | undefined;
300
+ killSignal?: NodeJS.Signals | number | undefined;
301
+ maxBuffer?: number | undefined;
302
+ encoding?: BufferEncoding | "buffer" | null | undefined;
303
+ }
304
+ interface ExecSyncOptions extends CommonExecOptions {
305
+ shell?: string | undefined;
306
+ }
307
+ interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
308
+ encoding: BufferEncoding;
309
+ }
310
+ interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
311
+ encoding?: "buffer" | null | undefined;
312
+ }
313
+ function execSync(command: string): NonSharedBuffer;
314
+ function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
315
+ function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): NonSharedBuffer;
316
+ function execSync(command: string, options?: ExecSyncOptions): string | NonSharedBuffer;
317
+ interface ExecFileSyncOptions extends CommonExecOptions {
318
+ shell?: boolean | string | undefined;
319
+ }
320
+ interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions {
321
+ encoding: BufferEncoding;
322
+ }
323
+ interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
324
+ encoding?: "buffer" | null | undefined;
325
+ }
326
+ function execFileSync(file: string): NonSharedBuffer;
327
+ function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string;
328
+ function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): NonSharedBuffer;
329
+ function execFileSync(file: string, options?: ExecFileSyncOptions): string | NonSharedBuffer;
330
+ function execFileSync(file: string, args: readonly string[]): NonSharedBuffer;
331
+ function execFileSync(file: string, args: readonly string[], options: ExecFileSyncOptionsWithStringEncoding): string;
332
+ function execFileSync(file: string, args: readonly string[], options: ExecFileSyncOptionsWithBufferEncoding): NonSharedBuffer;
333
+ function execFileSync(file: string, args?: readonly string[], options?: ExecFileSyncOptions): string | NonSharedBuffer;
334
+ }
335
+ declare module "child_process" {
336
+ export * from "node:child_process";
337
+ }