@runlith/tagma 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +129 -3
  25. package/plugin/Held-6krt6ncs.js +6 -0
  26. package/plugin/accountKey-tdjj67f5.js +2 -0
  27. package/plugin/adapter-qdnpxs6n.js +1 -0
  28. package/plugin/anthropic-a4pdzrv2.js +2 -0
  29. package/plugin/anthropic-messages-7gtja121.js +2 -0
  30. package/plugin/anthropic-z9xqmm3q.js +2 -0
  31. package/plugin/auth-0w6kk39v.js +2 -0
  32. package/plugin/authStatus-a1g3eb9p.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-0wrzmjfx.js +16 -0
  37. package/plugin/capabilities-n3vfpy41.js +2 -0
  38. package/plugin/claudeHooks-edpg1e46.js +3 -0
  39. package/plugin/cli.js +21 -0
  40. package/plugin/cliStore-9rhjxtht.js +2 -0
  41. package/plugin/clientSession-tmmxm39z.js +2 -0
  42. package/plugin/codec-aa8mxqyr.js +1 -0
  43. package/plugin/connect-vrdsw05j.js +2 -0
  44. package/plugin/contract-qn0z7r9c.js +1 -0
  45. package/plugin/credential-5sgapkh0.js +2 -0
  46. package/plugin/deepseek-fvdrmjr9.js +2 -0
  47. package/plugin/deepseek-v388d1wv.js +2 -0
  48. package/plugin/definition-s3xx207f.js +2 -0
  49. package/plugin/description-8xhxryaq.js +2 -0
  50. package/plugin/deviceGrant-vgbscpr4.js +2 -0
  51. package/plugin/devin-hy98d305.js +2 -0
  52. package/plugin/duplex-kpmftvf7.js +2 -0
  53. package/plugin/endpoint-kvf97tz7.js +2 -0
  54. package/plugin/errors-5t42p4q1.js +2 -0
  55. package/plugin/events-e8vv9hda.js +2 -0
  56. package/plugin/events-s95ybm4g.js +2 -0
  57. package/plugin/executor-q8kp5q8h.js +2 -0
  58. package/plugin/failure-vr32debc.js +2 -0
  59. package/plugin/framing-nktw5sts.js +2 -0
  60. package/plugin/grant-67b10nhx.js +2 -0
  61. package/plugin/harness-nrh78w4d.js +2 -0
  62. package/plugin/headers-ss3dzznj.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-n269hc5k.js +2 -0
  70. package/plugin/images-q80x3bt1.js +2 -0
  71. package/plugin/index-cyd7v366.js +2 -0
  72. package/plugin/index-jpmjpmkn.js +2 -0
  73. package/plugin/lifecycle-qf4fh5m8.js +2 -0
  74. package/plugin/manual-2mdscj84.js +2 -0
  75. package/plugin/messages-1szh3p3k.js +2 -0
  76. package/plugin/metadata-zm1v3ptf.js +4 -0
  77. package/plugin/muse-r16jp51z.js +2 -0
  78. package/plugin/muse-tfe6sph7.js +2 -0
  79. package/plugin/museToolSchema-tbe0f3wa.js +2 -0
  80. package/plugin/notes-6amdhm6h.js +2 -0
  81. package/plugin/object-9pjtdam7.js +2 -0
  82. package/plugin/open-browser-vqb7ckt1.js +2 -0
  83. package/plugin/openai-0z6fy497.js +2 -0
  84. package/plugin/openai-37dne8v0.js +2 -0
  85. package/plugin/openai-compatible-chat-tq9w69h4.js +2 -0
  86. package/plugin/openai-images-x1sj79qh.js +2 -0
  87. package/plugin/openai-responses-dka6k753.js +2 -0
  88. package/plugin/opencodeGo-173fz5c5.js +3 -0
  89. package/plugin/opencodeGo-qgw3pfg6.js +2 -0
  90. package/plugin/options-pxwjpfdk.js +2 -0
  91. package/plugin/payload-2gr4q9g8.js +2 -0
  92. package/plugin/pkce-nrpept7w.js +2 -0
  93. package/plugin/plugin-1n46me5n.js +6 -0
  94. package/plugin/plugin-1vpp5mqk.js +4 -0
  95. package/plugin/plugin-1x94cj6e.js +3 -0
  96. package/plugin/plugin-1xze8f5y.js +3 -0
  97. package/plugin/plugin-285exjxd.js +3 -0
  98. package/plugin/plugin-3b8x73y6.js +3 -0
  99. package/plugin/plugin-3pfrkxg1.js +3 -0
  100. package/plugin/plugin-3whwpedj.js +3 -0
  101. package/plugin/plugin-521srf94.js +3 -0
  102. package/plugin/plugin-55fbx586.js +3 -0
  103. package/plugin/plugin-5zq084fb.js +3 -0
  104. package/plugin/plugin-60bdzk1r.js +4 -0
  105. package/plugin/plugin-6a56xsx3.js +3 -0
  106. package/plugin/plugin-6xpcmvm3.js +36 -0
  107. package/plugin/plugin-72xxqm1t.js +3 -0
  108. package/plugin/plugin-7y7ndrk9.js +3 -0
  109. package/plugin/plugin-80gqwmjy.js +3 -0
  110. package/plugin/plugin-8230g28p.js +3 -0
  111. package/plugin/plugin-8jf7f360.js +3 -0
  112. package/plugin/plugin-92redty0.js +3 -0
  113. package/plugin/plugin-9gha9fx3.js +3 -0
  114. package/plugin/plugin-a4ng6krf.js +3 -0
  115. package/plugin/plugin-ak62rhwz.js +3 -0
  116. package/plugin/plugin-ay29ch70.js +3 -0
  117. package/plugin/plugin-ba1sv0th.js +3 -0
  118. package/plugin/plugin-ca4vf4j5.js +3 -0
  119. package/plugin/plugin-cydz2zhy.js +3 -0
  120. package/plugin/plugin-d6hbav22.js +3 -0
  121. package/plugin/plugin-e2y95zm5.js +3 -0
  122. package/plugin/plugin-ff38dxy1.js +3 -0
  123. package/plugin/plugin-ff9hx5a4.js +3 -0
  124. package/plugin/plugin-fhc5q7r3.js +3 -0
  125. package/plugin/plugin-frrvs5yc.js +3 -0
  126. package/plugin/plugin-g65b14k1.js +3 -0
  127. package/plugin/plugin-gh857xdd.js +3 -0
  128. package/plugin/plugin-gkgs7vfv.js +3 -0
  129. package/plugin/plugin-h66k1zhn.js +14 -0
  130. package/plugin/plugin-je5cfnqn.js +3 -0
  131. package/plugin/plugin-jjm52353.js +3 -0
  132. package/plugin/plugin-jxvmq18y.js +3 -0
  133. package/plugin/plugin-kc4z9msd.js +3 -0
  134. package/plugin/plugin-kjtzm2q6.js +3 -0
  135. package/plugin/plugin-krbbb4ts.js +3 -0
  136. package/plugin/plugin-me00x60n.js +3 -0
  137. package/plugin/plugin-mqr325kz.js +3 -0
  138. package/plugin/plugin-njh1f7b2.js +5 -0
  139. package/plugin/plugin-nkb5bb2q.js +3 -0
  140. package/plugin/plugin-nqmb78ez.js +4 -0
  141. package/plugin/plugin-nzacjxf9.js +3 -0
  142. package/plugin/plugin-p59gy5xd.js +3 -0
  143. package/plugin/plugin-pfj9nc2e.js +3 -0
  144. package/plugin/plugin-pkxw1pfs.js +3 -0
  145. package/plugin/plugin-q1n5kwx0.js +3 -0
  146. package/plugin/plugin-q1sqj2tc.js +3 -0
  147. package/plugin/plugin-q7rk75bs.js +3 -0
  148. package/plugin/plugin-qpda63gv.js +3 -0
  149. package/plugin/plugin-rrgyjesv.js +3 -0
  150. package/plugin/plugin-sfdxgkds.js +3 -0
  151. package/plugin/plugin-v7k9fx92.js +3 -0
  152. package/plugin/plugin-vfjhxng8.js +3 -0
  153. package/plugin/plugin-vv72e4ah.js +3 -0
  154. package/plugin/plugin-w8f977my.js +3 -0
  155. package/plugin/plugin-xbnw80pk.js +3 -0
  156. package/plugin/plugin-yxgg03s0.js +5 -0
  157. package/plugin/plugin-z6hkd9rw.js +3 -0
  158. package/plugin/plugin-zew2m18x.js +3 -0
  159. package/plugin/plugin-zphe2a5v.js +9 -0
  160. package/plugin/plugin-zvyk8bnr.js +3 -0
  161. package/plugin/plugin-zw3ywa4b.js +3 -0
  162. package/plugin/plugin-zxe49p72.js +3 -0
  163. package/plugin/plugin-zz7yc97m.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-hwnfh4h1.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-vrrmfag6.js +2 -0
  175. package/plugin/quotaRead-vj6e90xc.js +2 -0
  176. package/plugin/reasoning-5nanktp2.js +2 -0
  177. package/plugin/record-1m3vvy60.js +2 -0
  178. package/plugin/requests-2zyr1g8e.js +1 -0
  179. package/plugin/responseFold-w4526gvb.js +2 -0
  180. package/plugin/settings-vdypzert.js +2 -0
  181. package/plugin/shared-a2yyy8ry.js +2 -0
  182. package/plugin/speech-067caz1a.js +2 -0
  183. package/plugin/stepfun-3en5g41d.js +2 -0
  184. package/plugin/stepfun-bwsz4nrd.js +2 -0
  185. package/plugin/stream-bt8etfpc.js +2 -0
  186. package/plugin/svelteProgram-73v9yajk.js +2 -0
  187. package/plugin/synthesisDuplex-m2j6pmyv.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-b9jtprr7.js +2 -0
  193. package/plugin/tool-stream-gdajdxn0.js +2 -0
  194. package/plugin/transport-7hfp9sn4.js +2 -0
  195. package/plugin/ui.generated.d.ts +1044 -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-hv01nwsp.js +2 -0
  201. package/plugin/vendorPayload-awxqr7t8.js +2 -0
  202. package/plugin/vendorWeb-vnf344r1.js +2 -0
  203. package/plugin/verbatim-mqt9x4aa.js +2 -0
  204. package/plugin/xai-e8sbtk6a.js +2 -0
  205. package/plugin/xai-z1ysta23.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,199 @@
1
+ declare module "node:worker_threads" {
2
+ import { EventEmitter, InternalEventEmitter, InternalEventTargetEventProperties, NodeEventTarget, } from "node:events";
3
+ import { FileHandle } from "node:fs/promises";
4
+ import { Performance } from "node:perf_hooks";
5
+ import { Readable, Writable } from "node:stream";
6
+ import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
7
+ import { URL } from "node:url";
8
+ import { CPUProfileHandle, HeapInfo, HeapProfileHandle } from "node:v8";
9
+ import { Context } from "node:vm";
10
+ const isInternalThread: boolean;
11
+ const isMainThread: boolean;
12
+ const parentPort: null | MessagePort;
13
+ const resourceLimits: ResourceLimits;
14
+ const SHARE_ENV: unique symbol;
15
+ const threadId: number;
16
+ const threadName: string | null;
17
+ const workerData: any;
18
+ interface WorkerPerformance extends Pick<Performance, "eventLoopUtilization"> {
19
+ }
20
+ type TransferListItem = Transferable;
21
+ interface WorkerOptions {
22
+ argv?: any[] | undefined;
23
+ env?: NodeJS.Dict<string> | typeof SHARE_ENV | undefined;
24
+ eval?: boolean | undefined;
25
+ workerData?: any;
26
+ stdin?: boolean | undefined;
27
+ stdout?: boolean | undefined;
28
+ stderr?: boolean | undefined;
29
+ execArgv?: string[] | undefined;
30
+ resourceLimits?: ResourceLimits | undefined;
31
+ transferList?: Transferable[] | undefined;
32
+ trackUnmanagedFds?: boolean | undefined;
33
+ name?: string | undefined;
34
+ }
35
+ interface ResourceLimits {
36
+ maxYoungGenerationSizeMb?: number | undefined;
37
+ maxOldGenerationSizeMb?: number | undefined;
38
+ codeRangeSizeMb?: number | undefined;
39
+ stackSizeMb?: number | undefined;
40
+ }
41
+ interface WorkerEventMap {
42
+ "error": [
43
+ err: unknown
44
+ ];
45
+ "exit": [
46
+ exitCode: number
47
+ ];
48
+ "message": [
49
+ value: any
50
+ ];
51
+ "messageerror": [
52
+ error: Error
53
+ ];
54
+ "online": [
55
+ ];
56
+ }
57
+ class Worker implements EventEmitter {
58
+ readonly stdin: Writable | null;
59
+ readonly stdout: Readable;
60
+ readonly stderr: Readable;
61
+ readonly threadId: number;
62
+ readonly threadName: string | null;
63
+ readonly resourceLimits?: ResourceLimits | undefined;
64
+ readonly performance: WorkerPerformance;
65
+ constructor(filename: string | URL, options?: WorkerOptions);
66
+ postMessage(value: any, transferList?: readonly Transferable[]): void;
67
+ ref(): void;
68
+ unref(): void;
69
+ terminate(): Promise<number>;
70
+ cpuUsage(prev?: NodeJS.CpuUsage): Promise<NodeJS.CpuUsage>;
71
+ getHeapSnapshot(): Promise<Readable>;
72
+ getHeapStatistics(): Promise<HeapInfo>;
73
+ startCpuProfile(): Promise<CPUProfileHandle>;
74
+ startHeapProfile(): Promise<HeapProfileHandle>;
75
+ [Symbol.asyncDispose](): Promise<void>;
76
+ }
77
+ interface Worker extends InternalEventEmitter<WorkerEventMap> {
78
+ }
79
+ function markAsUntransferable(object: object): void;
80
+ function isMarkedAsUntransferable(object: object): boolean;
81
+ function markAsUncloneable(object: object): void;
82
+ function moveMessagePortToContext(port: MessagePort, contextifiedSandbox: Context): MessagePort;
83
+ function receiveMessageOnPort(port: MessagePort): {
84
+ message: any;
85
+ } | undefined;
86
+ type Serializable = string | object | number | boolean | bigint;
87
+ function getEnvironmentData(key: Serializable): Serializable;
88
+ function setEnvironmentData(key: Serializable, value?: Serializable): void;
89
+ function postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>;
90
+ function postMessageToThread(threadId: number, value: any, transferList: readonly Transferable[], timeout?: number): Promise<void>;
91
+ type LockMode = "exclusive" | "shared";
92
+ type Transferable = ArrayBuffer | MessagePort | AbortSignal | FileHandle | ReadableStream | WritableStream | TransformStream;
93
+ interface LockGrantedCallback<T> {
94
+ (lock: Lock | null): T;
95
+ }
96
+ interface LockInfo {
97
+ clientId: string;
98
+ mode: LockMode;
99
+ name: string;
100
+ }
101
+ interface LockManagerSnapshot {
102
+ held: LockInfo[];
103
+ pending: LockInfo[];
104
+ }
105
+ interface LockOptions {
106
+ ifAvailable?: boolean;
107
+ mode?: LockMode;
108
+ signal?: AbortSignal;
109
+ steal?: boolean;
110
+ }
111
+ interface StructuredSerializeOptions {
112
+ transfer?: Transferable[];
113
+ }
114
+ interface BroadcastChannelEventMap {
115
+ "message": import("../undici/index").MessageEvent;
116
+ "messageerror": import("../undici/index").MessageEvent;
117
+ }
118
+ interface BroadcastChannel extends EventTarget, InternalEventTargetEventProperties<BroadcastChannelEventMap>, NodeJS.RefCounted {
119
+ readonly name: string;
120
+ close(): void;
121
+ postMessage(message: any): void;
122
+ addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (ev: BroadcastChannelEventMap[K]) => void, options?: AddEventListenerOptions | boolean): void;
123
+ addEventListener(type: string, listener: EventListener | EventListenerObject, options?: AddEventListenerOptions | boolean): void;
124
+ removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (ev: BroadcastChannelEventMap[K]) => void, options?: EventListenerOptions | boolean): void;
125
+ removeEventListener(type: string, listener: EventListener | EventListenerObject, options?: EventListenerOptions | boolean): void;
126
+ }
127
+ var BroadcastChannel: {
128
+ prototype: BroadcastChannel;
129
+ new (name: string): BroadcastChannel;
130
+ };
131
+ interface Lock {
132
+ readonly mode: LockMode;
133
+ readonly name: string;
134
+ }
135
+ interface LockManager {
136
+ query(): Promise<LockManagerSnapshot>;
137
+ request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
138
+ request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
139
+ }
140
+ interface MessageChannel {
141
+ readonly port1: MessagePort;
142
+ readonly port2: MessagePort;
143
+ }
144
+ var MessageChannel: {
145
+ prototype: MessageChannel;
146
+ new (): MessageChannel;
147
+ };
148
+ interface MessagePortEventMap {
149
+ "close": Event;
150
+ "message": import("../undici/index").MessageEvent;
151
+ "messageerror": import("../undici/index").MessageEvent;
152
+ }
153
+ interface MessagePort extends NodeEventTarget, InternalEventTargetEventProperties<MessagePortEventMap> {
154
+ close(): void;
155
+ postMessage(message: any, transfer: Transferable[]): void;
156
+ postMessage(message: any, options?: StructuredSerializeOptions): void;
157
+ start(): void;
158
+ hasRef(): boolean;
159
+ ref(): void;
160
+ unref(): void;
161
+ addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (ev: MessagePortEventMap[K]) => void, options?: AddEventListenerOptions | boolean): void;
162
+ addEventListener(type: string, listener: EventListener | EventListenerObject, options?: AddEventListenerOptions | boolean): void;
163
+ removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (ev: MessagePortEventMap[K]) => void, options?: EventListenerOptions | boolean): void;
164
+ removeEventListener(type: string, listener: EventListener | EventListenerObject, options?: EventListenerOptions | boolean): void;
165
+ addListener(event: "close", listener: (ev: Event) => void): this;
166
+ addListener(event: "message", listener: (value: any) => void): this;
167
+ addListener(event: "messageerror", listener: (error: Error) => void): this;
168
+ addListener(event: string, listener: (arg: any) => void): this;
169
+ emit(event: "close", ev: Event): boolean;
170
+ emit(event: "message", value: any): boolean;
171
+ emit(event: "messageerror", error: Error): boolean;
172
+ emit(event: string, arg: any): boolean;
173
+ off(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
174
+ off(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
175
+ off(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
176
+ off(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
177
+ on(event: "close", listener: (ev: Event) => void): this;
178
+ on(event: "message", listener: (value: any) => void): this;
179
+ on(event: "messageerror", listener: (error: Error) => void): this;
180
+ on(event: string, listener: (arg: any) => void): this;
181
+ once(event: "close", listener: (ev: Event) => void): this;
182
+ once(event: "message", listener: (value: any) => void): this;
183
+ once(event: "messageerror", listener: (error: Error) => void): this;
184
+ once(event: string, listener: (arg: any) => void): this;
185
+ removeListener(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
186
+ removeListener(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
187
+ removeListener(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
188
+ removeListener(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
189
+ }
190
+ var MessagePort: {
191
+ prototype: MessagePort;
192
+ new (): MessagePort;
193
+ };
194
+ var locks: LockManager;
195
+ export import structuredClone = globalThis.structuredClone;
196
+ }
197
+ declare module "worker_threads" {
198
+ export * from "node:worker_threads";
199
+ }
@@ -0,0 +1,49 @@
1
+ declare module "node:zlib/iter" {
2
+ import { StatefulTransform, SyncStatefulTransform } from "node:stream/iter";
3
+ interface BrotliOptions {
4
+ chunkSize?: number | undefined;
5
+ params?: {
6
+ [key: number]: number | boolean;
7
+ } | undefined;
8
+ dictionary?: NodeJS.ArrayBufferView | undefined;
9
+ }
10
+ interface ZlibOptions {
11
+ chunkSize?: number | undefined;
12
+ windowBits?: number | undefined;
13
+ dictionary?: NodeJS.ArrayBufferView | undefined;
14
+ }
15
+ interface ZlibCompressionOptions extends ZlibOptions {
16
+ level?: number | undefined;
17
+ memLevel?: number | undefined;
18
+ strategy?: number | undefined;
19
+ }
20
+ interface ZstdOptions {
21
+ chunkSize?: number | undefined;
22
+ params?: {
23
+ [key: number]: number | boolean;
24
+ } | undefined;
25
+ dictionary?: NodeJS.ArrayBufferView | undefined;
26
+ }
27
+ interface ZstdCompressionOptions extends ZstdOptions {
28
+ pledgedSrcSize?: number | undefined;
29
+ }
30
+ function compressBrotli(options?: BrotliOptions): StatefulTransform;
31
+ function compressBrotliSync(options?: BrotliOptions): SyncStatefulTransform;
32
+ function compressDeflate(options?: ZlibCompressionOptions): StatefulTransform;
33
+ function compressDeflateSync(options?: ZlibCompressionOptions): SyncStatefulTransform;
34
+ function compressGzip(options?: ZlibCompressionOptions): StatefulTransform;
35
+ function compressGzipSync(options?: ZlibCompressionOptions): SyncStatefulTransform;
36
+ function compressZstd(options?: ZstdCompressionOptions): StatefulTransform;
37
+ function compressZstdSync(options?: ZstdCompressionOptions): SyncStatefulTransform;
38
+ function decompressBrotli(options?: BrotliOptions): StatefulTransform;
39
+ function decompressBrotliSync(options?: BrotliOptions): SyncStatefulTransform;
40
+ function decompressDeflate(options?: ZlibOptions): StatefulTransform;
41
+ function decompressDeflateSync(options?: ZlibOptions): SyncStatefulTransform;
42
+ function decompressGzip(options?: ZlibOptions): StatefulTransform;
43
+ function decompressGzipSync(options?: ZlibOptions): SyncStatefulTransform;
44
+ function decompressZstd(options?: ZstdOptions): StatefulTransform;
45
+ function decompressZstdSync(options?: ZstdOptions): SyncStatefulTransform;
46
+ }
47
+ declare module "zlib/iter" {
48
+ export * from "node:zlib/iter";
49
+ }
@@ -0,0 +1,360 @@
1
+ declare module "node:zlib" {
2
+ import { NonSharedBuffer } from "node:buffer";
3
+ import * as stream from "node:stream";
4
+ interface ZlibOptions {
5
+ flush?: number | undefined;
6
+ finishFlush?: number | undefined;
7
+ chunkSize?: number | undefined;
8
+ windowBits?: number | undefined;
9
+ level?: number | undefined;
10
+ memLevel?: number | undefined;
11
+ strategy?: number | undefined;
12
+ dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined;
13
+ info?: boolean | undefined;
14
+ maxOutputLength?: number | undefined;
15
+ }
16
+ interface BrotliOptions {
17
+ flush?: number | undefined;
18
+ finishFlush?: number | undefined;
19
+ chunkSize?: number | undefined;
20
+ params?: {
21
+ [key: number]: boolean | number;
22
+ } | undefined;
23
+ maxOutputLength?: number | undefined;
24
+ info?: boolean | undefined;
25
+ }
26
+ interface ZstdOptions {
27
+ flush?: number | undefined;
28
+ finishFlush?: number | undefined;
29
+ chunkSize?: number | undefined;
30
+ params?: {
31
+ [key: number]: number | boolean;
32
+ } | undefined;
33
+ maxOutputLength?: number | undefined;
34
+ info?: boolean | undefined;
35
+ dictionary?: NodeJS.ArrayBufferView | undefined;
36
+ }
37
+ interface Zlib {
38
+ readonly bytesWritten: number;
39
+ shell?: boolean | string | undefined;
40
+ close(callback?: () => void): void;
41
+ flush(kind?: number, callback?: () => void): void;
42
+ flush(callback?: () => void): void;
43
+ }
44
+ interface ZlibParams {
45
+ params(level: number, strategy: number, callback: () => void): void;
46
+ }
47
+ interface ZlibReset {
48
+ reset(): void;
49
+ }
50
+ class BrotliCompress extends stream.Transform {
51
+ constructor(options?: BrotliOptions);
52
+ }
53
+ interface BrotliCompress extends stream.Transform, Zlib {
54
+ }
55
+ class BrotliDecompress extends stream.Transform {
56
+ constructor(options?: BrotliOptions);
57
+ }
58
+ interface BrotliDecompress extends stream.Transform, Zlib {
59
+ }
60
+ class Gzip extends stream.Transform {
61
+ constructor(options?: ZlibOptions);
62
+ }
63
+ interface Gzip extends stream.Transform, Zlib {
64
+ }
65
+ class Gunzip extends stream.Transform {
66
+ constructor(options?: ZlibOptions);
67
+ }
68
+ interface Gunzip extends stream.Transform, Zlib {
69
+ }
70
+ class Deflate extends stream.Transform {
71
+ constructor(options?: ZlibOptions);
72
+ }
73
+ interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {
74
+ }
75
+ class Inflate extends stream.Transform {
76
+ constructor(options?: ZlibOptions);
77
+ }
78
+ interface Inflate extends stream.Transform, Zlib, ZlibReset {
79
+ }
80
+ class DeflateRaw extends stream.Transform {
81
+ constructor(options?: ZlibOptions);
82
+ }
83
+ interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {
84
+ }
85
+ class InflateRaw extends stream.Transform {
86
+ constructor(options?: ZlibOptions);
87
+ }
88
+ interface InflateRaw extends stream.Transform, Zlib, ZlibReset {
89
+ }
90
+ class Unzip extends stream.Transform {
91
+ constructor(options?: ZlibOptions);
92
+ }
93
+ interface Unzip extends stream.Transform, Zlib {
94
+ }
95
+ class ZstdCompress extends stream.Transform {
96
+ constructor(options?: ZstdOptions);
97
+ }
98
+ interface ZstdCompress extends stream.Transform, Zlib {
99
+ }
100
+ class ZstdDecompress extends stream.Transform {
101
+ constructor(options?: ZstdOptions);
102
+ }
103
+ interface ZstdDecompress extends stream.Transform, Zlib {
104
+ }
105
+ function crc32(data: string | NodeJS.ArrayBufferView, value?: number): number;
106
+ function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
107
+ function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
108
+ function createGzip(options?: ZlibOptions): Gzip;
109
+ function createGunzip(options?: ZlibOptions): Gunzip;
110
+ function createDeflate(options?: ZlibOptions): Deflate;
111
+ function createInflate(options?: ZlibOptions): Inflate;
112
+ function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
113
+ function createInflateRaw(options?: ZlibOptions): InflateRaw;
114
+ function createUnzip(options?: ZlibOptions): Unzip;
115
+ function createZstdCompress(options?: ZstdOptions): ZstdCompress;
116
+ function createZstdDecompress(options?: ZstdOptions): ZstdDecompress;
117
+ type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
118
+ type CompressCallback = (error: Error | null, result: NonSharedBuffer) => void;
119
+ function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
120
+ function brotliCompress(buf: InputType, callback: CompressCallback): void;
121
+ namespace brotliCompress {
122
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
123
+ }
124
+ function brotliCompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
125
+ function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
126
+ function brotliDecompress(buf: InputType, callback: CompressCallback): void;
127
+ namespace brotliDecompress {
128
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
129
+ }
130
+ function brotliDecompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
131
+ function deflate(buf: InputType, callback: CompressCallback): void;
132
+ function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
133
+ namespace deflate {
134
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
135
+ }
136
+ function deflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
137
+ function deflateRaw(buf: InputType, callback: CompressCallback): void;
138
+ function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
139
+ namespace deflateRaw {
140
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
141
+ }
142
+ function deflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
143
+ function gzip(buf: InputType, callback: CompressCallback): void;
144
+ function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
145
+ namespace gzip {
146
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
147
+ }
148
+ function gzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
149
+ function gunzip(buf: InputType, callback: CompressCallback): void;
150
+ function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
151
+ namespace gunzip {
152
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
153
+ }
154
+ function gunzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
155
+ function inflate(buf: InputType, callback: CompressCallback): void;
156
+ function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
157
+ namespace inflate {
158
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
159
+ }
160
+ function inflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
161
+ function inflateRaw(buf: InputType, callback: CompressCallback): void;
162
+ function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
163
+ namespace inflateRaw {
164
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
165
+ }
166
+ function inflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
167
+ function unzip(buf: InputType, callback: CompressCallback): void;
168
+ function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
169
+ namespace unzip {
170
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
171
+ }
172
+ function unzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
173
+ function zstdCompress(buf: InputType, callback: CompressCallback): void;
174
+ function zstdCompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
175
+ namespace zstdCompress {
176
+ function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
177
+ }
178
+ function zstdCompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
179
+ function zstdDecompress(buf: InputType, callback: CompressCallback): void;
180
+ function zstdDecompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
181
+ namespace zstdDecompress {
182
+ function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
183
+ }
184
+ function zstdDecompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
185
+ namespace constants {
186
+ const BROTLI_DECODE: number;
187
+ const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
188
+ const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
189
+ const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
190
+ const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
191
+ const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
192
+ const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
193
+ const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
194
+ const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
195
+ const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
196
+ const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
197
+ const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
198
+ const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
199
+ const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
200
+ const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
201
+ const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
202
+ const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
203
+ const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
204
+ const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
205
+ const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
206
+ const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
207
+ const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
208
+ const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
209
+ const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
210
+ const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
211
+ const BROTLI_DECODER_ERROR_UNREACHABLE: number;
212
+ const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
213
+ const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
214
+ const BROTLI_DECODER_NO_ERROR: number;
215
+ const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
216
+ const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
217
+ const BROTLI_DECODER_RESULT_ERROR: number;
218
+ const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
219
+ const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
220
+ const BROTLI_DECODER_RESULT_SUCCESS: number;
221
+ const BROTLI_DECODER_SUCCESS: number;
222
+ const BROTLI_DEFAULT_MODE: number;
223
+ const BROTLI_DEFAULT_QUALITY: number;
224
+ const BROTLI_DEFAULT_WINDOW: number;
225
+ const BROTLI_ENCODE: number;
226
+ const BROTLI_LARGE_MAX_WINDOW_BITS: number;
227
+ const BROTLI_MAX_INPUT_BLOCK_BITS: number;
228
+ const BROTLI_MAX_QUALITY: number;
229
+ const BROTLI_MAX_WINDOW_BITS: number;
230
+ const BROTLI_MIN_INPUT_BLOCK_BITS: number;
231
+ const BROTLI_MIN_QUALITY: number;
232
+ const BROTLI_MIN_WINDOW_BITS: number;
233
+ const BROTLI_MODE_FONT: number;
234
+ const BROTLI_MODE_GENERIC: number;
235
+ const BROTLI_MODE_TEXT: number;
236
+ const BROTLI_OPERATION_EMIT_METADATA: number;
237
+ const BROTLI_OPERATION_FINISH: number;
238
+ const BROTLI_OPERATION_FLUSH: number;
239
+ const BROTLI_OPERATION_PROCESS: number;
240
+ const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
241
+ const BROTLI_PARAM_LARGE_WINDOW: number;
242
+ const BROTLI_PARAM_LGBLOCK: number;
243
+ const BROTLI_PARAM_LGWIN: number;
244
+ const BROTLI_PARAM_MODE: number;
245
+ const BROTLI_PARAM_NDIRECT: number;
246
+ const BROTLI_PARAM_NPOSTFIX: number;
247
+ const BROTLI_PARAM_QUALITY: number;
248
+ const BROTLI_PARAM_SIZE_HINT: number;
249
+ const DEFLATE: number;
250
+ const DEFLATERAW: number;
251
+ const GUNZIP: number;
252
+ const GZIP: number;
253
+ const INFLATE: number;
254
+ const INFLATERAW: number;
255
+ const UNZIP: number;
256
+ const ZLIB_VERNUM: number;
257
+ const ZSTD_CLEVEL_DEFAULT: number;
258
+ const ZSTD_COMPRESS: number;
259
+ const ZSTD_DECOMPRESS: number;
260
+ const ZSTD_btlazy2: number;
261
+ const ZSTD_btopt: number;
262
+ const ZSTD_btultra: number;
263
+ const ZSTD_btultra2: number;
264
+ const ZSTD_c_chainLog: number;
265
+ const ZSTD_c_checksumFlag: number;
266
+ const ZSTD_c_compressionLevel: number;
267
+ const ZSTD_c_contentSizeFlag: number;
268
+ const ZSTD_c_dictIDFlag: number;
269
+ const ZSTD_c_enableLongDistanceMatching: number;
270
+ const ZSTD_c_hashLog: number;
271
+ const ZSTD_c_jobSize: number;
272
+ const ZSTD_c_ldmBucketSizeLog: number;
273
+ const ZSTD_c_ldmHashLog: number;
274
+ const ZSTD_c_ldmHashRateLog: number;
275
+ const ZSTD_c_ldmMinMatch: number;
276
+ const ZSTD_c_minMatch: number;
277
+ const ZSTD_c_nbWorkers: number;
278
+ const ZSTD_c_overlapLog: number;
279
+ const ZSTD_c_searchLog: number;
280
+ const ZSTD_c_strategy: number;
281
+ const ZSTD_c_targetLength: number;
282
+ const ZSTD_c_windowLog: number;
283
+ const ZSTD_d_windowLogMax: number;
284
+ const ZSTD_dfast: number;
285
+ const ZSTD_e_continue: number;
286
+ const ZSTD_e_end: number;
287
+ const ZSTD_e_flush: number;
288
+ const ZSTD_error_GENERIC: number;
289
+ const ZSTD_error_checksum_wrong: number;
290
+ const ZSTD_error_corruption_detected: number;
291
+ const ZSTD_error_dictionaryCreation_failed: number;
292
+ const ZSTD_error_dictionary_corrupted: number;
293
+ const ZSTD_error_dictionary_wrong: number;
294
+ const ZSTD_error_dstBuffer_null: number;
295
+ const ZSTD_error_dstSize_tooSmall: number;
296
+ const ZSTD_error_frameParameter_unsupported: number;
297
+ const ZSTD_error_frameParameter_windowTooLarge: number;
298
+ const ZSTD_error_init_missing: number;
299
+ const ZSTD_error_literals_headerWrong: number;
300
+ const ZSTD_error_maxSymbolValue_tooLarge: number;
301
+ const ZSTD_error_maxSymbolValue_tooSmall: number;
302
+ const ZSTD_error_memory_allocation: number;
303
+ const ZSTD_error_noForwardProgress_destFull: number;
304
+ const ZSTD_error_noForwardProgress_inputEmpty: number;
305
+ const ZSTD_error_no_error: number;
306
+ const ZSTD_error_parameter_combination_unsupported: number;
307
+ const ZSTD_error_parameter_outOfBound: number;
308
+ const ZSTD_error_parameter_unsupported: number;
309
+ const ZSTD_error_prefix_unknown: number;
310
+ const ZSTD_error_srcSize_wrong: number;
311
+ const ZSTD_error_stabilityCondition_notRespected: number;
312
+ const ZSTD_error_stage_wrong: number;
313
+ const ZSTD_error_tableLog_tooLarge: number;
314
+ const ZSTD_error_version_unsupported: number;
315
+ const ZSTD_error_workSpace_tooSmall: number;
316
+ const ZSTD_fast: number;
317
+ const ZSTD_greedy: number;
318
+ const ZSTD_lazy: number;
319
+ const ZSTD_lazy2: number;
320
+ const Z_BEST_COMPRESSION: number;
321
+ const Z_BEST_SPEED: number;
322
+ const Z_BLOCK: number;
323
+ const Z_BUF_ERROR: number;
324
+ const Z_DATA_ERROR: number;
325
+ const Z_DEFAULT_CHUNK: number;
326
+ const Z_DEFAULT_COMPRESSION: number;
327
+ const Z_DEFAULT_LEVEL: number;
328
+ const Z_DEFAULT_MEMLEVEL: number;
329
+ const Z_DEFAULT_STRATEGY: number;
330
+ const Z_DEFAULT_WINDOWBITS: number;
331
+ const Z_ERRNO: number;
332
+ const Z_FILTERED: number;
333
+ const Z_FINISH: number;
334
+ const Z_FIXED: number;
335
+ const Z_FULL_FLUSH: number;
336
+ const Z_HUFFMAN_ONLY: number;
337
+ const Z_MAX_CHUNK: number;
338
+ const Z_MAX_LEVEL: number;
339
+ const Z_MAX_MEMLEVEL: number;
340
+ const Z_MAX_WINDOWBITS: number;
341
+ const Z_MEM_ERROR: number;
342
+ const Z_MIN_CHUNK: number;
343
+ const Z_MIN_LEVEL: number;
344
+ const Z_MIN_MEMLEVEL: number;
345
+ const Z_MIN_WINDOWBITS: number;
346
+ const Z_NEED_DICT: number;
347
+ const Z_NO_COMPRESSION: number;
348
+ const Z_NO_FLUSH: number;
349
+ const Z_OK: number;
350
+ const Z_PARTIAL_FLUSH: number;
351
+ const Z_RLE: number;
352
+ const Z_STREAM_END: number;
353
+ const Z_STREAM_ERROR: number;
354
+ const Z_SYNC_FLUSH: number;
355
+ const Z_VERSION_ERROR: number;
356
+ }
357
+ }
358
+ declare module "zlib" {
359
+ export * from "node:zlib";
360
+ }
@@ -0,0 +1,24 @@
1
+ import { URL } from 'node:url';
2
+ import Pool from './pool';
3
+ import Dispatcher from './dispatcher';
4
+ import TClientStats from './client-stats';
5
+ import TPoolStats from './pool-stats';
6
+ export default Agent;
7
+ declare class Agent extends Dispatcher {
8
+ constructor(opts?: Agent.Options);
9
+ closed: boolean;
10
+ destroyed: boolean;
11
+ dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean;
12
+ readonly stats: Record<string, TClientStats | TPoolStats>;
13
+ }
14
+ declare namespace Agent {
15
+ export interface Options extends Pool.Options {
16
+ factory?(origin: string | URL, opts: Object): Dispatcher;
17
+ interceptors?: {
18
+ Agent?: readonly Dispatcher.DispatchInterceptor[];
19
+ } & Pool.Options['interceptors'];
20
+ maxOrigins?: number;
21
+ }
22
+ export interface DispatchOptions extends Dispatcher.DispatchOptions {
23
+ }
24
+ }
@@ -0,0 +1,19 @@
1
+ import { URL, UrlObject } from 'node:url';
2
+ import { Duplex } from 'node:stream';
3
+ import Dispatcher from './dispatcher';
4
+ declare function request<TOpaque = null>(url: string | URL | UrlObject, options?: {
5
+ dispatcher?: Dispatcher;
6
+ } & Omit<Dispatcher.RequestOptions<TOpaque>, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>): Promise<Dispatcher.ResponseData<TOpaque>>;
7
+ declare function stream<TOpaque = null>(url: string | URL | UrlObject, options: {
8
+ dispatcher?: Dispatcher;
9
+ } & Omit<Dispatcher.RequestOptions<TOpaque>, 'origin' | 'path'>, factory: Dispatcher.StreamFactory<TOpaque>): Promise<Dispatcher.StreamData<TOpaque>>;
10
+ declare function pipeline<TOpaque = null>(url: string | URL | UrlObject, options: {
11
+ dispatcher?: Dispatcher;
12
+ } & Omit<Dispatcher.PipelineOptions<TOpaque>, 'origin' | 'path'>, handler: Dispatcher.PipelineHandler<TOpaque>): Duplex;
13
+ declare function connect<TOpaque = null>(url: string | URL | UrlObject, options?: {
14
+ dispatcher?: Dispatcher;
15
+ } & Omit<Dispatcher.ConnectOptions<TOpaque>, 'origin' | 'path'>): Promise<Dispatcher.ConnectData<TOpaque>>;
16
+ declare function upgrade(url: string | URL | UrlObject, options?: {
17
+ dispatcher?: Dispatcher;
18
+ } & Omit<Dispatcher.UpgradeOptions, 'origin' | 'path'>): Promise<Dispatcher.UpgradeData>;
19
+ export { request, stream, pipeline, connect, upgrade };
@@ -0,0 +1,16 @@
1
+ import Pool from './pool';
2
+ import Dispatcher from './dispatcher';
3
+ import { URL } from 'node:url';
4
+ export default BalancedPool;
5
+ type BalancedPoolConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>;
6
+ declare class BalancedPool extends Dispatcher {
7
+ constructor(url: string | string[] | URL | URL[], options?: Pool.Options);
8
+ addUpstream(upstream: string | URL): BalancedPool;
9
+ removeUpstream(upstream: string | URL): BalancedPool;
10
+ getUpstream(upstream: string | URL): Pool | undefined;
11
+ upstreams: Array<string>;
12
+ closed: boolean;
13
+ destroyed: boolean;
14
+ override connect(options: BalancedPoolConnectOptions): Promise<Dispatcher.ConnectData>;
15
+ override connect(options: BalancedPoolConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void;
16
+ }