@psnext/slingcli 3.3.20260911-1 → 3.3.20260914-1

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 (420) hide show
  1. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-VDBOM5UG.js → chunk-BRL3MDQL.js} +1 -1
  2. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
  3. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
  4. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
  5. package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/model-selector.js +79 -32
  6. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -0
  7. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +25 -8
  8. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -0
  9. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
  10. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
  11. package/node_modules/@smithy/core/package.json +1 -1
  12. package/node_modules/@types/node/README.md +2 -2
  13. package/node_modules/@types/node/assert/strict.d.ts +13 -56
  14. package/node_modules/@types/node/assert.d.ts +189 -190
  15. package/node_modules/@types/node/async_hooks.d.ts +151 -43
  16. package/node_modules/@types/node/buffer.buffer.d.ts +12 -13
  17. package/node_modules/@types/node/buffer.d.ts +103 -237
  18. package/node_modules/@types/node/child_process.d.ts +39 -154
  19. package/node_modules/@types/node/cluster.d.ts +238 -384
  20. package/node_modules/@types/node/console.d.ts +45 -404
  21. package/node_modules/@types/node/constants.d.ts +3 -10
  22. package/node_modules/@types/node/crypto.d.ts +1000 -1593
  23. package/node_modules/@types/node/dgram.d.ts +133 -81
  24. package/node_modules/@types/node/diagnostics_channel.d.ts +277 -59
  25. package/node_modules/@types/node/dns/promises.d.ts +9 -15
  26. package/node_modules/@types/node/dns.d.ts +136 -183
  27. package/node_modules/@types/node/domain.d.ts +12 -32
  28. package/node_modules/@types/node/events.d.ts +872 -840
  29. package/node_modules/@types/node/ffi.d.ts +486 -0
  30. package/node_modules/@types/node/fs/promises.d.ts +256 -85
  31. package/node_modules/@types/node/fs.d.ts +865 -525
  32. package/node_modules/@types/node/globals.d.ts +12 -34
  33. package/node_modules/@types/node/globals.typedarray.d.ts +63 -0
  34. package/node_modules/@types/node/http.d.ts +433 -312
  35. package/node_modules/@types/node/http2.d.ts +545 -891
  36. package/node_modules/@types/node/https.d.ts +64 -243
  37. package/node_modules/@types/node/index.d.ts +25 -7
  38. package/node_modules/@types/node/inspector/promises.d.ts +35 -0
  39. package/node_modules/@types/node/inspector.d.ts +70 -58
  40. package/node_modules/@types/node/inspector.generated.d.ts +764 -410
  41. package/node_modules/@types/node/module.d.ts +54 -219
  42. package/node_modules/@types/node/net.d.ts +208 -222
  43. package/node_modules/@types/node/os.d.ts +41 -49
  44. package/node_modules/@types/node/package.json +13 -3
  45. package/node_modules/@types/node/path/posix.d.ts +8 -0
  46. package/node_modules/@types/node/path/win32.d.ts +8 -0
  47. package/node_modules/@types/node/path.d.ts +119 -141
  48. package/node_modules/@types/node/perf_hooks.d.ts +339 -690
  49. package/node_modules/@types/node/process.d.ts +389 -205
  50. package/node_modules/@types/node/punycode.d.ts +3 -31
  51. package/node_modules/@types/node/querystring.d.ts +3 -16
  52. package/node_modules/@types/node/quic.d.ts +2153 -0
  53. package/node_modules/@types/node/readline/promises.d.ts +3 -6
  54. package/node_modules/@types/node/readline.d.ts +66 -152
  55. package/node_modules/@types/node/repl.d.ts +101 -109
  56. package/node_modules/@types/node/sea.d.ts +1 -116
  57. package/node_modules/@types/node/sqlite.d.ts +486 -68
  58. package/node_modules/@types/node/stream/consumers.d.ts +91 -15
  59. package/node_modules/@types/node/stream/iter.d.ts +452 -0
  60. package/node_modules/@types/node/stream/promises.d.ts +136 -15
  61. package/node_modules/@types/node/stream/web.d.ts +197 -454
  62. package/node_modules/@types/node/stream.d.ts +603 -491
  63. package/node_modules/@types/node/string_decoder.d.ts +3 -43
  64. package/node_modules/@types/node/test/reporters.d.ts +59 -0
  65. package/node_modules/@types/node/test.d.ts +513 -292
  66. package/node_modules/@types/node/timers/promises.d.ts +3 -18
  67. package/node_modules/@types/node/timers.d.ts +3 -141
  68. package/node_modules/@types/node/tls.d.ts +166 -257
  69. package/node_modules/@types/node/trace_events.d.ts +3 -97
  70. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -8
  71. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  72. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +2 -0
  73. package/node_modules/@types/node/ts5.6/index.d.ts +26 -6
  74. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  75. package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
  76. package/node_modules/@types/node/tty.d.ts +61 -43
  77. package/node_modules/@types/node/url.d.ts +156 -584
  78. package/node_modules/@types/node/util/types.d.ts +558 -0
  79. package/node_modules/@types/node/util.d.ts +170 -1099
  80. package/node_modules/@types/node/v8.d.ts +175 -36
  81. package/node_modules/@types/node/vfs.d.ts +211 -0
  82. package/node_modules/@types/node/vm.d.ts +292 -209
  83. package/node_modules/@types/node/wasi.d.ts +24 -74
  84. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
  85. package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  86. package/node_modules/@types/node/web-globals/console.d.ts +9 -0
  87. package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  88. package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
  89. package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  90. package/node_modules/@types/node/web-globals/events.d.ts +9 -0
  91. package/node_modules/@types/node/web-globals/fetch.d.ts +14 -0
  92. package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  93. package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  94. package/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
  95. package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  96. package/node_modules/@types/node/web-globals/streams.d.ts +97 -0
  97. package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  98. package/node_modules/@types/node/web-globals/url.d.ts +24 -0
  99. package/node_modules/@types/node/worker_threads.d.ts +257 -407
  100. package/node_modules/@types/node/zlib/iter.d.ts +131 -0
  101. package/node_modules/@types/node/zlib.d.ts +24 -165
  102. package/node_modules/undici-types/agent.d.ts +12 -13
  103. package/node_modules/undici-types/api.d.ts +26 -26
  104. package/node_modules/undici-types/balanced-pool.d.ts +13 -12
  105. package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  106. package/node_modules/undici-types/client-stats.d.ts +15 -0
  107. package/node_modules/undici-types/client.d.ts +63 -37
  108. package/node_modules/undici-types/connector.d.ts +5 -2
  109. package/node_modules/undici-types/cookies.d.ts +3 -1
  110. package/node_modules/undici-types/diagnostics-channel.d.ts +18 -10
  111. package/node_modules/undici-types/dispatcher.d.ts +136 -139
  112. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  113. package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
  114. package/node_modules/undici-types/errors.d.ts +92 -54
  115. package/node_modules/undici-types/eventsource.d.ts +9 -4
  116. package/node_modules/undici-types/fetch.d.ts +51 -25
  117. package/node_modules/undici-types/formdata.d.ts +7 -7
  118. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  119. package/node_modules/undici-types/global-origin.d.ts +5 -5
  120. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  121. package/node_modules/undici-types/handlers.d.ts +10 -9
  122. package/node_modules/undici-types/header.d.ts +162 -1
  123. package/node_modules/undici-types/index.d.ts +69 -47
  124. package/node_modules/undici-types/interceptors.d.ts +72 -9
  125. package/node_modules/undici-types/mock-agent.d.ts +36 -18
  126. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  127. package/node_modules/undici-types/mock-client.d.ts +6 -4
  128. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  129. package/node_modules/undici-types/mock-interceptor.d.ts +26 -21
  130. package/node_modules/undici-types/mock-pool.d.ts +6 -4
  131. package/node_modules/undici-types/package.json +1 -1
  132. package/node_modules/undici-types/patch.d.ts +0 -4
  133. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  134. package/node_modules/undici-types/pool.d.ts +14 -14
  135. package/node_modules/undici-types/proxy-agent.d.ts +14 -6
  136. package/node_modules/undici-types/readable.d.ts +19 -16
  137. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  138. package/node_modules/undici-types/retry-handler.d.ts +19 -10
  139. package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
  140. package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
  141. package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  142. package/node_modules/undici-types/util.d.ts +3 -3
  143. package/node_modules/undici-types/utility.d.ts +7 -0
  144. package/node_modules/undici-types/webidl.d.ts +148 -30
  145. package/node_modules/undici-types/websocket.d.ts +48 -10
  146. package/node_modules/zod/README.md +2 -2
  147. package/node_modules/zod/package.json +1 -1
  148. package/node_modules/zod/src/v4/classic/checks.ts +1 -0
  149. package/node_modules/zod/src/v4/classic/schemas.ts +14 -30
  150. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +1 -0
  151. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +2 -11
  152. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -4
  153. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +22 -0
  154. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +1 -1
  155. package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
  156. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +53 -137
  157. package/node_modules/zod/src/v4/classic/tests/string.test.ts +70 -1
  158. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +87 -35
  159. package/node_modules/zod/src/v4/core/api.ts +21 -29
  160. package/node_modules/zod/src/v4/core/checks.ts +61 -1
  161. package/node_modules/zod/src/v4/core/compile.ts +35 -24
  162. package/node_modules/zod/src/v4/core/core.ts +1 -3
  163. package/node_modules/zod/src/v4/core/json-schema-processors.ts +9 -63
  164. package/node_modules/zod/src/v4/core/memoizer.ts +2 -5
  165. package/node_modules/zod/src/v4/core/regexes.ts +4 -0
  166. package/node_modules/zod/src/v4/core/schemas.ts +36 -109
  167. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
  168. package/node_modules/zod/src/v4/core/tests/compile.test.ts +177 -0
  169. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
  170. package/node_modules/zod/src/v4/core/to-json-schema.ts +1 -1
  171. package/node_modules/zod/src/v4/core/util.ts +0 -4
  172. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  173. package/node_modules/zod/src/v4/core/visit.ts +0 -11
  174. package/node_modules/zod/src/v4/locales/ar.ts +1 -0
  175. package/node_modules/zod/src/v4/locales/az.ts +1 -0
  176. package/node_modules/zod/src/v4/locales/be.ts +1 -0
  177. package/node_modules/zod/src/v4/locales/bg.ts +1 -0
  178. package/node_modules/zod/src/v4/locales/bn.ts +1 -0
  179. package/node_modules/zod/src/v4/locales/ca.ts +1 -0
  180. package/node_modules/zod/src/v4/locales/ckb.ts +1 -0
  181. package/node_modules/zod/src/v4/locales/cs.ts +1 -0
  182. package/node_modules/zod/src/v4/locales/da.ts +1 -0
  183. package/node_modules/zod/src/v4/locales/de.ts +1 -0
  184. package/node_modules/zod/src/v4/locales/el.ts +1 -0
  185. package/node_modules/zod/src/v4/locales/en.ts +1 -0
  186. package/node_modules/zod/src/v4/locales/eo.ts +1 -0
  187. package/node_modules/zod/src/v4/locales/es.ts +1 -0
  188. package/node_modules/zod/src/v4/locales/fa.ts +1 -0
  189. package/node_modules/zod/src/v4/locales/fi.ts +1 -0
  190. package/node_modules/zod/src/v4/locales/fr-CA.ts +1 -0
  191. package/node_modules/zod/src/v4/locales/fr.ts +1 -0
  192. package/node_modules/zod/src/v4/locales/gu.ts +1 -0
  193. package/node_modules/zod/src/v4/locales/he.ts +1 -0
  194. package/node_modules/zod/src/v4/locales/hi.ts +1 -0
  195. package/node_modules/zod/src/v4/locales/hr.ts +1 -0
  196. package/node_modules/zod/src/v4/locales/hu.ts +1 -0
  197. package/node_modules/zod/src/v4/locales/hy.ts +1 -0
  198. package/node_modules/zod/src/v4/locales/id.ts +1 -0
  199. package/node_modules/zod/src/v4/locales/is.ts +1 -0
  200. package/node_modules/zod/src/v4/locales/it.ts +1 -0
  201. package/node_modules/zod/src/v4/locales/ja.ts +1 -0
  202. package/node_modules/zod/src/v4/locales/ka.ts +1 -0
  203. package/node_modules/zod/src/v4/locales/km.ts +1 -0
  204. package/node_modules/zod/src/v4/locales/kn.ts +1 -0
  205. package/node_modules/zod/src/v4/locales/ko.ts +1 -0
  206. package/node_modules/zod/src/v4/locales/lt.ts +1 -0
  207. package/node_modules/zod/src/v4/locales/mk.ts +1 -0
  208. package/node_modules/zod/src/v4/locales/ms.ts +1 -0
  209. package/node_modules/zod/src/v4/locales/ne.ts +1 -0
  210. package/node_modules/zod/src/v4/locales/nl.ts +1 -0
  211. package/node_modules/zod/src/v4/locales/nn.ts +1 -0
  212. package/node_modules/zod/src/v4/locales/no.ts +1 -0
  213. package/node_modules/zod/src/v4/locales/ota.ts +1 -0
  214. package/node_modules/zod/src/v4/locales/pl.ts +1 -0
  215. package/node_modules/zod/src/v4/locales/ps.ts +1 -0
  216. package/node_modules/zod/src/v4/locales/pt-BR.ts +1 -0
  217. package/node_modules/zod/src/v4/locales/pt.ts +1 -0
  218. package/node_modules/zod/src/v4/locales/ro.ts +1 -0
  219. package/node_modules/zod/src/v4/locales/ru.ts +1 -0
  220. package/node_modules/zod/src/v4/locales/sk.ts +1 -0
  221. package/node_modules/zod/src/v4/locales/sl.ts +1 -0
  222. package/node_modules/zod/src/v4/locales/sv.ts +1 -0
  223. package/node_modules/zod/src/v4/locales/ta.ts +1 -0
  224. package/node_modules/zod/src/v4/locales/tg.ts +1 -0
  225. package/node_modules/zod/src/v4/locales/th.ts +1 -0
  226. package/node_modules/zod/src/v4/locales/tk.ts +1 -0
  227. package/node_modules/zod/src/v4/locales/tr.ts +1 -0
  228. package/node_modules/zod/src/v4/locales/uk.ts +1 -0
  229. package/node_modules/zod/src/v4/locales/ur.ts +1 -0
  230. package/node_modules/zod/src/v4/locales/uz.ts +1 -0
  231. package/node_modules/zod/src/v4/locales/vi.ts +1 -0
  232. package/node_modules/zod/src/v4/locales/yo.ts +1 -0
  233. package/node_modules/zod/src/v4/locales/zh-CN.ts +1 -0
  234. package/node_modules/zod/src/v4/locales/zh-TW.ts +1 -0
  235. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  236. package/node_modules/zod/src/v4/mini/schemas.ts +12 -23
  237. package/node_modules/zod/src/v4/mini/tests/index.test.ts +56 -0
  238. package/node_modules/zod/src/v4/mini/tests/string.test.ts +7 -0
  239. package/node_modules/zod/v4/classic/checks.cjs +2 -1
  240. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  241. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  242. package/node_modules/zod/v4/classic/checks.js +1 -1
  243. package/node_modules/zod/v4/classic/schemas.cjs +11 -15
  244. package/node_modules/zod/v4/classic/schemas.d.cts +4 -6
  245. package/node_modules/zod/v4/classic/schemas.d.ts +4 -6
  246. package/node_modules/zod/v4/classic/schemas.js +9 -13
  247. package/node_modules/zod/v4/core/api.cjs +11 -23
  248. package/node_modules/zod/v4/core/api.d.cts +8 -4
  249. package/node_modules/zod/v4/core/api.d.ts +8 -4
  250. package/node_modules/zod/v4/core/api.js +11 -23
  251. package/node_modules/zod/v4/core/checks.cjs +32 -1
  252. package/node_modules/zod/v4/core/checks.d.cts +16 -0
  253. package/node_modules/zod/v4/core/checks.d.ts +16 -0
  254. package/node_modules/zod/v4/core/checks.js +31 -0
  255. package/node_modules/zod/v4/core/compile.cjs +12 -17
  256. package/node_modules/zod/v4/core/compile.js +13 -18
  257. package/node_modules/zod/v4/core/core.cjs +1 -1
  258. package/node_modules/zod/v4/core/core.js +1 -1
  259. package/node_modules/zod/v4/core/json-schema-processors.cjs +8 -44
  260. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -1
  261. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -1
  262. package/node_modules/zod/v4/core/json-schema-processors.js +8 -43
  263. package/node_modules/zod/v4/core/memoizer.cjs +2 -5
  264. package/node_modules/zod/v4/core/memoizer.js +2 -5
  265. package/node_modules/zod/v4/core/regexes.cjs +4 -2
  266. package/node_modules/zod/v4/core/regexes.d.cts +1 -0
  267. package/node_modules/zod/v4/core/regexes.d.ts +1 -0
  268. package/node_modules/zod/v4/core/regexes.js +2 -0
  269. package/node_modules/zod/v4/core/schemas.cjs +33 -73
  270. package/node_modules/zod/v4/core/schemas.d.cts +7 -22
  271. package/node_modules/zod/v4/core/schemas.d.ts +7 -22
  272. package/node_modules/zod/v4/core/schemas.js +30 -72
  273. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -1
  274. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -3
  275. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -3
  276. package/node_modules/zod/v4/core/to-json-schema.js +1 -1
  277. package/node_modules/zod/v4/core/util.cjs +0 -4
  278. package/node_modules/zod/v4/core/util.js +0 -4
  279. package/node_modules/zod/v4/core/versions.cjs +1 -1
  280. package/node_modules/zod/v4/core/versions.js +1 -1
  281. package/node_modules/zod/v4/core/visit.cjs +0 -12
  282. package/node_modules/zod/v4/core/visit.js +0 -12
  283. package/node_modules/zod/v4/locales/ar.cjs +1 -0
  284. package/node_modules/zod/v4/locales/ar.js +1 -0
  285. package/node_modules/zod/v4/locales/az.cjs +1 -0
  286. package/node_modules/zod/v4/locales/az.js +1 -0
  287. package/node_modules/zod/v4/locales/be.cjs +1 -0
  288. package/node_modules/zod/v4/locales/be.js +1 -0
  289. package/node_modules/zod/v4/locales/bg.cjs +1 -0
  290. package/node_modules/zod/v4/locales/bg.js +1 -0
  291. package/node_modules/zod/v4/locales/bn.cjs +1 -0
  292. package/node_modules/zod/v4/locales/bn.js +1 -0
  293. package/node_modules/zod/v4/locales/ca.cjs +1 -0
  294. package/node_modules/zod/v4/locales/ca.js +1 -0
  295. package/node_modules/zod/v4/locales/ckb.cjs +1 -0
  296. package/node_modules/zod/v4/locales/ckb.js +1 -0
  297. package/node_modules/zod/v4/locales/cs.cjs +1 -0
  298. package/node_modules/zod/v4/locales/cs.js +1 -0
  299. package/node_modules/zod/v4/locales/da.cjs +1 -0
  300. package/node_modules/zod/v4/locales/da.js +1 -0
  301. package/node_modules/zod/v4/locales/de.cjs +1 -0
  302. package/node_modules/zod/v4/locales/de.js +1 -0
  303. package/node_modules/zod/v4/locales/el.cjs +1 -0
  304. package/node_modules/zod/v4/locales/el.js +1 -0
  305. package/node_modules/zod/v4/locales/en.cjs +1 -0
  306. package/node_modules/zod/v4/locales/en.js +1 -0
  307. package/node_modules/zod/v4/locales/eo.cjs +1 -0
  308. package/node_modules/zod/v4/locales/eo.js +1 -0
  309. package/node_modules/zod/v4/locales/es.cjs +1 -0
  310. package/node_modules/zod/v4/locales/es.js +1 -0
  311. package/node_modules/zod/v4/locales/fa.cjs +1 -0
  312. package/node_modules/zod/v4/locales/fa.js +1 -0
  313. package/node_modules/zod/v4/locales/fi.cjs +1 -0
  314. package/node_modules/zod/v4/locales/fi.js +1 -0
  315. package/node_modules/zod/v4/locales/fr-CA.cjs +1 -0
  316. package/node_modules/zod/v4/locales/fr-CA.js +1 -0
  317. package/node_modules/zod/v4/locales/fr.cjs +1 -0
  318. package/node_modules/zod/v4/locales/fr.js +1 -0
  319. package/node_modules/zod/v4/locales/gu.cjs +1 -0
  320. package/node_modules/zod/v4/locales/gu.js +1 -0
  321. package/node_modules/zod/v4/locales/he.cjs +1 -0
  322. package/node_modules/zod/v4/locales/he.js +1 -0
  323. package/node_modules/zod/v4/locales/hi.cjs +1 -0
  324. package/node_modules/zod/v4/locales/hi.js +1 -0
  325. package/node_modules/zod/v4/locales/hr.cjs +1 -0
  326. package/node_modules/zod/v4/locales/hr.js +1 -0
  327. package/node_modules/zod/v4/locales/hu.cjs +1 -0
  328. package/node_modules/zod/v4/locales/hu.js +1 -0
  329. package/node_modules/zod/v4/locales/hy.cjs +1 -0
  330. package/node_modules/zod/v4/locales/hy.js +1 -0
  331. package/node_modules/zod/v4/locales/id.cjs +1 -0
  332. package/node_modules/zod/v4/locales/id.js +1 -0
  333. package/node_modules/zod/v4/locales/is.cjs +1 -0
  334. package/node_modules/zod/v4/locales/is.js +1 -0
  335. package/node_modules/zod/v4/locales/it.cjs +1 -0
  336. package/node_modules/zod/v4/locales/it.js +1 -0
  337. package/node_modules/zod/v4/locales/ja.cjs +1 -0
  338. package/node_modules/zod/v4/locales/ja.js +1 -0
  339. package/node_modules/zod/v4/locales/ka.cjs +1 -0
  340. package/node_modules/zod/v4/locales/ka.js +1 -0
  341. package/node_modules/zod/v4/locales/km.cjs +1 -0
  342. package/node_modules/zod/v4/locales/km.js +1 -0
  343. package/node_modules/zod/v4/locales/kn.cjs +1 -0
  344. package/node_modules/zod/v4/locales/kn.js +1 -0
  345. package/node_modules/zod/v4/locales/ko.cjs +1 -0
  346. package/node_modules/zod/v4/locales/ko.js +1 -0
  347. package/node_modules/zod/v4/locales/lt.cjs +1 -0
  348. package/node_modules/zod/v4/locales/lt.js +1 -0
  349. package/node_modules/zod/v4/locales/mk.cjs +1 -0
  350. package/node_modules/zod/v4/locales/mk.js +1 -0
  351. package/node_modules/zod/v4/locales/ms.cjs +1 -0
  352. package/node_modules/zod/v4/locales/ms.js +1 -0
  353. package/node_modules/zod/v4/locales/ne.cjs +1 -0
  354. package/node_modules/zod/v4/locales/ne.js +1 -0
  355. package/node_modules/zod/v4/locales/nl.cjs +1 -0
  356. package/node_modules/zod/v4/locales/nl.js +1 -0
  357. package/node_modules/zod/v4/locales/nn.cjs +1 -0
  358. package/node_modules/zod/v4/locales/nn.js +1 -0
  359. package/node_modules/zod/v4/locales/no.cjs +1 -0
  360. package/node_modules/zod/v4/locales/no.js +1 -0
  361. package/node_modules/zod/v4/locales/ota.cjs +1 -0
  362. package/node_modules/zod/v4/locales/ota.js +1 -0
  363. package/node_modules/zod/v4/locales/pl.cjs +1 -0
  364. package/node_modules/zod/v4/locales/pl.js +1 -0
  365. package/node_modules/zod/v4/locales/ps.cjs +1 -0
  366. package/node_modules/zod/v4/locales/ps.js +1 -0
  367. package/node_modules/zod/v4/locales/pt-BR.cjs +1 -0
  368. package/node_modules/zod/v4/locales/pt-BR.js +1 -0
  369. package/node_modules/zod/v4/locales/pt.cjs +1 -0
  370. package/node_modules/zod/v4/locales/pt.js +1 -0
  371. package/node_modules/zod/v4/locales/ro.cjs +1 -0
  372. package/node_modules/zod/v4/locales/ro.js +1 -0
  373. package/node_modules/zod/v4/locales/ru.cjs +1 -0
  374. package/node_modules/zod/v4/locales/ru.js +1 -0
  375. package/node_modules/zod/v4/locales/sk.cjs +1 -0
  376. package/node_modules/zod/v4/locales/sk.js +1 -0
  377. package/node_modules/zod/v4/locales/sl.cjs +1 -0
  378. package/node_modules/zod/v4/locales/sl.js +1 -0
  379. package/node_modules/zod/v4/locales/sv.cjs +1 -0
  380. package/node_modules/zod/v4/locales/sv.js +1 -0
  381. package/node_modules/zod/v4/locales/ta.cjs +1 -0
  382. package/node_modules/zod/v4/locales/ta.js +1 -0
  383. package/node_modules/zod/v4/locales/tg.cjs +1 -0
  384. package/node_modules/zod/v4/locales/tg.js +1 -0
  385. package/node_modules/zod/v4/locales/th.cjs +1 -0
  386. package/node_modules/zod/v4/locales/th.js +1 -0
  387. package/node_modules/zod/v4/locales/tk.cjs +1 -0
  388. package/node_modules/zod/v4/locales/tk.js +1 -0
  389. package/node_modules/zod/v4/locales/tr.cjs +1 -0
  390. package/node_modules/zod/v4/locales/tr.js +1 -0
  391. package/node_modules/zod/v4/locales/uk.cjs +1 -0
  392. package/node_modules/zod/v4/locales/uk.js +1 -0
  393. package/node_modules/zod/v4/locales/ur.cjs +1 -0
  394. package/node_modules/zod/v4/locales/ur.js +1 -0
  395. package/node_modules/zod/v4/locales/uz.cjs +1 -0
  396. package/node_modules/zod/v4/locales/uz.js +1 -0
  397. package/node_modules/zod/v4/locales/vi.cjs +1 -0
  398. package/node_modules/zod/v4/locales/vi.js +1 -0
  399. package/node_modules/zod/v4/locales/yo.cjs +1 -0
  400. package/node_modules/zod/v4/locales/yo.js +1 -0
  401. package/node_modules/zod/v4/locales/zh-CN.cjs +1 -0
  402. package/node_modules/zod/v4/locales/zh-CN.js +1 -0
  403. package/node_modules/zod/v4/locales/zh-TW.cjs +1 -0
  404. package/node_modules/zod/v4/locales/zh-TW.js +1 -0
  405. package/node_modules/zod/v4/mini/checks.cjs +2 -1
  406. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  407. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  408. package/node_modules/zod/v4/mini/checks.js +1 -1
  409. package/node_modules/zod/v4/mini/schemas.cjs +11 -13
  410. package/node_modules/zod/v4/mini/schemas.d.cts +1 -4
  411. package/node_modules/zod/v4/mini/schemas.d.ts +1 -4
  412. package/node_modules/zod/v4/mini/schemas.js +9 -11
  413. package/package.json +2 -2
  414. package/slingshot/index.js +183 -182
  415. package/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  416. package/node_modules/@types/node/compatibility/index.d.ts +0 -9
  417. package/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  418. package/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  419. package/node_modules/undici-types/file.d.ts +0 -39
  420. package/node_modules/undici-types/filereader.d.ts +0 -54
@@ -1,56 +1,5 @@
1
- // If lib.dom.d.ts or lib.webworker.d.ts is loaded, then use the global types.
2
- // Otherwise, use the types from node.
3
- type _Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : import("buffer").Blob;
4
- type _File = typeof globalThis extends { onmessage: any; File: any } ? {} : import("buffer").File;
5
-
6
- /**
7
- * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many
8
- * Node.js APIs support `Buffer`s.
9
- *
10
- * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and
11
- * extends it with methods that cover additional use cases. Node.js APIs accept
12
- * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well.
13
- *
14
- * While the `Buffer` class is available within the global scope, it is still
15
- * recommended to explicitly reference it via an import or require statement.
16
- *
17
- * ```js
18
- * import { Buffer } from 'node:buffer';
19
- *
20
- * // Creates a zero-filled Buffer of length 10.
21
- * const buf1 = Buffer.alloc(10);
22
- *
23
- * // Creates a Buffer of length 10,
24
- * // filled with bytes which all have the value `1`.
25
- * const buf2 = Buffer.alloc(10, 1);
26
- *
27
- * // Creates an uninitialized buffer of length 10.
28
- * // This is faster than calling Buffer.alloc() but the returned
29
- * // Buffer instance might contain old data that needs to be
30
- * // overwritten using fill(), write(), or other functions that fill the Buffer's
31
- * // contents.
32
- * const buf3 = Buffer.allocUnsafe(10);
33
- *
34
- * // Creates a Buffer containing the bytes [1, 2, 3].
35
- * const buf4 = Buffer.from([1, 2, 3]);
36
- *
37
- * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries
38
- * // are all truncated using `(value & 255)` to fit into the range 0–255.
39
- * const buf5 = Buffer.from([257, 257.5, -255, '1']);
40
- *
41
- * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést':
42
- * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation)
43
- * // [116, 195, 169, 115, 116] (in decimal notation)
44
- * const buf6 = Buffer.from('tést');
45
- *
46
- * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
47
- * const buf7 = Buffer.from('tést', 'latin1');
48
- * ```
49
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/buffer.js)
50
- */
51
- declare module "buffer" {
52
- import { BinaryLike } from "node:crypto";
53
- import { ReadableStream as WebReadableStream } from "node:stream/web";
1
+ declare module "node:buffer" {
2
+ import { ReadableStream } from "node:stream/web";
54
3
  /**
55
4
  * This function returns `true` if `input` contains only valid UTF-8-encoded data,
56
5
  * including the case in which `input` is empty.
@@ -126,115 +75,6 @@ declare module "buffer" {
126
75
  */
127
76
  export function resolveObjectURL(id: string): Blob | undefined;
128
77
  export { type AllowSharedBuffer, Buffer, type NonSharedBuffer };
129
- /**
130
- * @experimental
131
- */
132
- export interface BlobOptions {
133
- /**
134
- * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts
135
- * will be converted to the platform native line-ending as specified by `import { EOL } from 'node:os'`.
136
- */
137
- endings?: "transparent" | "native";
138
- /**
139
- * The Blob content-type. The intent is for `type` to convey
140
- * the MIME media type of the data, however no validation of the type format
141
- * is performed.
142
- */
143
- type?: string | undefined;
144
- }
145
- /**
146
- * A `Blob` encapsulates immutable, raw data that can be safely shared across
147
- * multiple worker threads.
148
- * @since v15.7.0, v14.18.0
149
- */
150
- export class Blob {
151
- /**
152
- * The total size of the `Blob` in bytes.
153
- * @since v15.7.0, v14.18.0
154
- */
155
- readonly size: number;
156
- /**
157
- * The content-type of the `Blob`.
158
- * @since v15.7.0, v14.18.0
159
- */
160
- readonly type: string;
161
- /**
162
- * Creates a new `Blob` object containing a concatenation of the given sources.
163
- *
164
- * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into
165
- * the 'Blob' and can therefore be safely modified after the 'Blob' is created.
166
- *
167
- * String sources are also copied into the `Blob`.
168
- */
169
- constructor(sources: Array<ArrayBuffer | BinaryLike | Blob>, options?: BlobOptions);
170
- /**
171
- * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
172
- * the `Blob` data.
173
- * @since v15.7.0, v14.18.0
174
- */
175
- arrayBuffer(): Promise<ArrayBuffer>;
176
- /**
177
- * The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise<Uint8Array>`.
178
- *
179
- * ```js
180
- * const blob = new Blob(['hello']);
181
- * blob.bytes().then((bytes) => {
182
- * console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ]
183
- * });
184
- * ```
185
- */
186
- bytes(): Promise<Uint8Array>;
187
- /**
188
- * Creates and returns a new `Blob` containing a subset of this `Blob` objects
189
- * data. The original `Blob` is not altered.
190
- * @since v15.7.0, v14.18.0
191
- * @param start The starting index.
192
- * @param end The ending index.
193
- * @param type The content-type for the new `Blob`
194
- */
195
- slice(start?: number, end?: number, type?: string): Blob;
196
- /**
197
- * Returns a promise that fulfills with the contents of the `Blob` decoded as a
198
- * UTF-8 string.
199
- * @since v15.7.0, v14.18.0
200
- */
201
- text(): Promise<string>;
202
- /**
203
- * Returns a new `ReadableStream` that allows the content of the `Blob` to be read.
204
- * @since v16.7.0
205
- */
206
- stream(): WebReadableStream;
207
- }
208
- export interface FileOptions {
209
- /**
210
- * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be
211
- * converted to the platform native line-ending as specified by `import { EOL } from 'node:os'`.
212
- */
213
- endings?: "native" | "transparent";
214
- /** The File content-type. */
215
- type?: string;
216
- /** The last modified date of the file. `Default`: Date.now(). */
217
- lastModified?: number;
218
- }
219
- /**
220
- * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
221
- * @since v19.2.0, v18.13.0
222
- */
223
- export class File extends Blob {
224
- constructor(sources: Array<BinaryLike | Blob>, fileName: string, options?: FileOptions);
225
- /**
226
- * The name of the `File`.
227
- * @since v19.2.0, v18.13.0
228
- */
229
- readonly name: string;
230
- /**
231
- * The last modified date of the `File`.
232
- * @since v19.2.0, v18.13.0
233
- */
234
- readonly lastModified: number;
235
- }
236
- export import atob = globalThis.atob;
237
- export import btoa = globalThis.btoa;
238
78
  export type WithImplicitCoercion<T> =
239
79
  | T
240
80
  | { valueOf(): T }
@@ -1710,11 +1550,12 @@ declare module "buffer" {
1710
1550
  /**
1711
1551
  * If `value` is:
1712
1552
  *
1713
- * * a string, `value` is interpreted according to the character encoding in `encoding`.
1714
- * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety.
1715
- * To compare a partial `Buffer`, use `buf.subarray`.
1553
+ * * a string, `value` is interpreted according to the character encoding in
1554
+ * `encoding`.
1555
+ * * a `Buffer` or `Uint8Array`, `value` will be used in its entirety.
1556
+ * To compare a partial `Buffer`, use `buf.subarray`.
1716
1557
  * * a number, `value` will be interpreted as an unsigned 8-bit integer
1717
- * value between `0` and `255`.
1558
+ * value between `0` and `255`.
1718
1559
  *
1719
1560
  * ```js
1720
1561
  * import { Buffer } from 'node:buffer';
@@ -1742,12 +1583,13 @@ declare module "buffer" {
1742
1583
  * // Prints: 6
1743
1584
  * ```
1744
1585
  *
1745
- * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1586
+ * If `value` is not a string, number, or `Buffer`, this method will throw a
1587
+ * `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1746
1588
  * an integer between 0 and 255.
1747
1589
  *
1748
1590
  * If `byteOffset` is not a number, it will be coerced to a number. If the result
1749
1591
  * of coercion is `NaN` or `0`, then the entire buffer will be searched. This
1750
- * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf).
1592
+ * behavior matches `String.prototype.indexOf()`.
1751
1593
  *
1752
1594
  * ```js
1753
1595
  * import { Buffer } from 'node:buffer';
@@ -1768,14 +1610,27 @@ declare module "buffer" {
1768
1610
  * ```
1769
1611
  *
1770
1612
  * If `value` is an empty string or empty `Buffer` and `byteOffset` is less
1771
- * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned.
1613
+ * than `buf.length`, `byteOffset` will be returned. If `value` is empty and
1614
+ * `byteOffset` is at least `buf.length`, `buf.length` will be returned.
1772
1615
  * @since v1.5.0
1773
1616
  * @param value What to search for.
1774
- * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
1775
- * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
1776
- * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1777
- */
1778
- indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1617
+ * @param start Where to begin searching in `buf`. If negative, then
1618
+ * offset is calculated from the end of `buf`. **Default:** `0`.
1619
+ * @param end Where to stop searching in `buf` (exclusive). **Default:**
1620
+ * `buf.length`.
1621
+ * @param encoding If `value` is a string, this is the encoding used to
1622
+ * determine the binary representation of the string that will be searched for in
1623
+ * `buf`. **Default:** `'utf8'`.
1624
+ * @returns The index of the first occurrence of `value` in `buf`, or
1625
+ * `-1` if `buf` does not contain `value`.
1626
+ */
1627
+ indexOf(
1628
+ value: string | number | Uint8Array,
1629
+ start?: number,
1630
+ end?: number,
1631
+ encoding?: BufferEncoding,
1632
+ ): number;
1633
+ indexOf(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): number;
1779
1634
  indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1780
1635
  /**
1781
1636
  * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
@@ -1809,12 +1664,13 @@ declare module "buffer" {
1809
1664
  * // Prints: 4
1810
1665
  * ```
1811
1666
  *
1812
- * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1667
+ * If `value` is not a string, number, or `Buffer`, this method will throw a
1668
+ * `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
1813
1669
  * an integer between 0 and 255.
1814
1670
  *
1815
1671
  * If `byteOffset` is not a number, it will be coerced to a number. Any arguments
1816
1672
  * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer.
1817
- * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf).
1673
+ * This behavior matches `String.prototype.lastIndexOf()`.
1818
1674
  *
1819
1675
  * ```js
1820
1676
  * import { Buffer } from 'node:buffer';
@@ -1840,11 +1696,24 @@ declare module "buffer" {
1840
1696
  * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned.
1841
1697
  * @since v6.0.0
1842
1698
  * @param value What to search for.
1843
- * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
1844
- * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`.
1845
- * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1846
- */
1847
- lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1699
+ * @param start Where to begin searching in `buf`. If negative, then
1700
+ * offset is calculated from the end of `buf`. **Default:**
1701
+ * `buf.length - 1`.
1702
+ * @param end Where to stop searching in `buf` (exclusive). **Default:**
1703
+ * `buf.length`.
1704
+ * @param encoding If `value` is a string, this is the encoding used to
1705
+ * determine the binary representation of the string that will be searched for in
1706
+ * `buf`. **Default:** `'utf8'`.
1707
+ * @returns The index of the last occurrence of `value` in `buf`, or
1708
+ * `-1` if `buf` does not contain `value`.
1709
+ */
1710
+ lastIndexOf(
1711
+ value: string | number | Uint8Array,
1712
+ start?: number,
1713
+ end?: number,
1714
+ encoding?: BufferEncoding,
1715
+ ): number;
1716
+ lastIndexOf(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): number;
1848
1717
  lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1849
1718
  /**
1850
1719
  * Equivalent to `buf.indexOf() !== -1`.
@@ -1871,64 +1740,61 @@ declare module "buffer" {
1871
1740
  * ```
1872
1741
  * @since v5.3.0
1873
1742
  * @param value What to search for.
1874
- * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`.
1875
- * @param [encoding='utf8'] If `value` is a string, this is its encoding.
1876
- * @return `true` if `value` was found in `buf`, `false` otherwise.
1877
- */
1878
- includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
1879
- includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
1743
+ * @param start Where to begin searching in `buf`. If negative, then
1744
+ * offset is calculated from the end of `buf`. **Default:** `0`.
1745
+ * @param end Where to stop searching in `buf` (exclusive). **Default:**
1746
+ * `buf.length`.
1747
+ * @param encoding If `value` is a string, this is its encoding.
1748
+ * **Default:** `'utf8'`.
1749
+ * @returns `true` if `value` was found in `buf`, `false` otherwise.
1750
+ */
1751
+ includes(
1752
+ value: string | number | Uint8Array,
1753
+ start?: number,
1754
+ end?: number,
1755
+ encoding?: BufferEncoding,
1756
+ ): boolean;
1757
+ includes(value: string | number | Uint8Array, start: number, encoding: BufferEncoding): boolean;
1758
+ includes(value: string | number | Uint8Array, encoding: BufferEncoding): boolean;
1880
1759
  }
1881
1760
  var Buffer: BufferConstructor;
1882
- /**
1883
- * Decodes a string of Base64-encoded data into bytes, and encodes those bytes
1884
- * into a string using Latin-1 (ISO-8859-1).
1885
- *
1886
- * The `data` may be any JavaScript-value that can be coerced into a string.
1887
- *
1888
- * **This function is only provided for compatibility with legacy web platform APIs**
1889
- * **and should never be used in new code, because they use strings to represent**
1890
- * **binary data and predate the introduction of typed arrays in JavaScript.**
1891
- * **For code running using Node.js APIs, converting between base64-encoded strings**
1892
- * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.**
1893
- * @since v15.13.0, v14.17.0
1894
- * @legacy Use `Buffer.from(data, 'base64')` instead.
1895
- * @param data The Base64-encoded input string.
1896
- */
1897
- function atob(data: string): string;
1898
- /**
1899
- * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
1900
- * into a string using Base64.
1901
- *
1902
- * The `data` may be any JavaScript-value that can be coerced into a string.
1903
- *
1904
- * **This function is only provided for compatibility with legacy web platform APIs**
1905
- * **and should never be used in new code, because they use strings to represent**
1906
- * **binary data and predate the introduction of typed arrays in JavaScript.**
1907
- * **For code running using Node.js APIs, converting between base64-encoded strings**
1908
- * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.**
1909
- * @since v15.13.0, v14.17.0
1910
- * @legacy Use `buf.toString('base64')` instead.
1911
- * @param data An ASCII (Latin1) string.
1912
- */
1913
- function btoa(data: string): string;
1914
- interface Blob extends _Blob {}
1915
- /**
1916
- * `Blob` class is a global reference for `import { Blob } from 'node:buffer'`
1917
- * https://nodejs.org/api/buffer.html#class-blob
1918
- * @since v18.0.0
1919
- */
1920
- var Blob: typeof globalThis extends { onmessage: any; Blob: infer T } ? T
1921
- : typeof import("buffer").Blob;
1922
- interface File extends _File {}
1923
- /**
1924
- * `File` class is a global reference for `import { File } from 'node:buffer'`
1925
- * https://nodejs.org/api/buffer.html#class-file
1926
- * @since v20.0.0
1927
- */
1928
- var File: typeof globalThis extends { onmessage: any; File: infer T } ? T
1929
- : typeof import("buffer").File;
1930
1761
  }
1762
+ // #region web types
1763
+ export type BlobPart = NodeJS.BufferSource | Blob | string;
1764
+ export interface BlobPropertyBag {
1765
+ endings?: "native" | "transparent";
1766
+ type?: string;
1767
+ }
1768
+ export interface FilePropertyBag extends BlobPropertyBag {
1769
+ lastModified?: number;
1770
+ }
1771
+ export interface Blob {
1772
+ readonly size: number;
1773
+ readonly type: string;
1774
+ arrayBuffer(): Promise<ArrayBuffer>;
1775
+ bytes(): Promise<NodeJS.NonSharedUint8Array>;
1776
+ slice(start?: number, end?: number, contentType?: string): Blob;
1777
+ stream(): ReadableStream<NodeJS.NonSharedUint8Array>;
1778
+ text(): Promise<string>;
1779
+ textStream(): ReadableStream<string>;
1780
+ }
1781
+ export var Blob: {
1782
+ prototype: Blob;
1783
+ new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
1784
+ };
1785
+ export interface File extends Blob {
1786
+ readonly lastModified: number;
1787
+ readonly name: string;
1788
+ readonly webkitRelativePath: string;
1789
+ }
1790
+ export var File: {
1791
+ prototype: File;
1792
+ new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
1793
+ };
1794
+ export import atob = globalThis.atob;
1795
+ export import btoa = globalThis.btoa;
1796
+ // #endregion
1931
1797
  }
1932
- declare module "node:buffer" {
1933
- export * from "buffer";
1798
+ declare module "buffer" {
1799
+ export * from "node:buffer";
1934
1800
  }