@psnext/slingcli 3.1.20260904-1 → 3.3.20260911-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 (711) hide show
  1. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
  2. package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
  3. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
  4. package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
  5. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
  6. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
  7. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
  8. package/node_modules/@aws-sdk/core/package.json +1 -1
  9. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  10. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  12. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  13. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  14. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +3 -3
  16. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  17. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  18. package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  21. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  22. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  23. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  25. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-PBNSMEG7.js → chunk-VDBOM5UG.js} +9 -9
  26. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
  27. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
  28. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
  29. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +25 -8
  30. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  31. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  32. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  33. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  34. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +33 -43
  35. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  36. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +16 -2
  37. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +3 -0
  38. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +7 -2
  39. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  40. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +9 -1
  41. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +221 -12
  42. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +76 -30
  43. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  44. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  45. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  46. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +37 -8
  47. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  48. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  49. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  50. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +106 -22
  51. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +29 -5
  52. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  53. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  54. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  55. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +155 -32
  56. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +65 -9
  57. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +115 -13
  58. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  59. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +7 -0
  60. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dump.js +10 -23
  61. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +13 -1
  62. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-utils.js +217 -27
  63. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +43 -3
  64. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/parse.js +150 -147
  65. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  66. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  67. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +6 -0
  68. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +2 -3
  69. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +6 -1
  70. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +3 -3
  71. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +1 -1
  72. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  73. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  74. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +22 -0
  75. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +3 -3
  76. package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +4 -4
  77. package/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
  78. package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
  79. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
  80. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
  81. package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
  82. package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
  83. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
  84. package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
  85. package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
  86. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  87. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
  88. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
  89. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  90. package/node_modules/@smithy/core/errors.d.ts +5 -0
  91. package/node_modules/@smithy/core/errors.js +5 -0
  92. package/node_modules/@smithy/core/package.json +11 -2
  93. package/node_modules/@types/node/README.md +3 -3
  94. package/node_modules/@types/node/assert/strict.d.ts +56 -13
  95. package/node_modules/@types/node/assert.d.ts +190 -189
  96. package/node_modules/@types/node/async_hooks.d.ts +43 -151
  97. package/node_modules/@types/node/buffer.buffer.d.ts +13 -12
  98. package/node_modules/@types/node/buffer.d.ts +237 -102
  99. package/node_modules/@types/node/child_process.d.ts +154 -39
  100. package/node_modules/@types/node/cluster.d.ts +384 -238
  101. package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  102. package/node_modules/@types/node/compatibility/index.d.ts +9 -0
  103. package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  104. package/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
  105. package/node_modules/@types/node/console.d.ts +404 -45
  106. package/node_modules/@types/node/constants.d.ts +10 -3
  107. package/node_modules/@types/node/crypto.d.ts +1600 -1007
  108. package/node_modules/@types/node/dgram.d.ts +81 -133
  109. package/node_modules/@types/node/diagnostics_channel.d.ts +59 -277
  110. package/node_modules/@types/node/dns/promises.d.ts +15 -9
  111. package/node_modules/@types/node/dns.d.ts +183 -136
  112. package/node_modules/@types/node/domain.d.ts +32 -12
  113. package/node_modules/@types/node/events.d.ts +696 -728
  114. package/node_modules/@types/node/fs/promises.d.ts +85 -256
  115. package/node_modules/@types/node/fs.d.ts +525 -865
  116. package/node_modules/@types/node/globals.d.ts +34 -12
  117. package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
  118. package/node_modules/@types/node/http.d.ts +311 -432
  119. package/node_modules/@types/node/http2.d.ts +891 -545
  120. package/node_modules/@types/node/https.d.ts +243 -64
  121. package/node_modules/@types/node/index.d.ts +7 -25
  122. package/node_modules/@types/node/inspector.d.ts +58 -70
  123. package/node_modules/@types/node/inspector.generated.d.ts +411 -765
  124. package/node_modules/@types/node/module.d.ts +219 -54
  125. package/node_modules/@types/node/net.d.ts +222 -208
  126. package/node_modules/@types/node/os.d.ts +49 -41
  127. package/node_modules/@types/node/package.json +3 -13
  128. package/node_modules/@types/node/path.d.ts +141 -119
  129. package/node_modules/@types/node/perf_hooks.d.ts +673 -310
  130. package/node_modules/@types/node/process.d.ts +205 -389
  131. package/node_modules/@types/node/punycode.d.ts +31 -3
  132. package/node_modules/@types/node/querystring.d.ts +16 -3
  133. package/node_modules/@types/node/readline/promises.d.ts +6 -3
  134. package/node_modules/@types/node/readline.d.ts +152 -66
  135. package/node_modules/@types/node/repl.d.ts +109 -101
  136. package/node_modules/@types/node/sea.d.ts +116 -1
  137. package/node_modules/@types/node/sqlite.d.ts +68 -486
  138. package/node_modules/@types/node/stream/consumers.d.ts +15 -91
  139. package/node_modules/@types/node/stream/promises.d.ts +15 -136
  140. package/node_modules/@types/node/stream/web.d.ts +456 -179
  141. package/node_modules/@types/node/stream.d.ts +491 -603
  142. package/node_modules/@types/node/string_decoder.d.ts +43 -3
  143. package/node_modules/@types/node/test.d.ts +292 -513
  144. package/node_modules/@types/node/timers/promises.d.ts +18 -3
  145. package/node_modules/@types/node/timers.d.ts +141 -3
  146. package/node_modules/@types/node/tls.d.ts +242 -140
  147. package/node_modules/@types/node/trace_events.d.ts +97 -3
  148. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +8 -7
  149. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
  150. package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
  151. package/node_modules/@types/node/tty.d.ts +43 -61
  152. package/node_modules/@types/node/url.d.ts +584 -156
  153. package/node_modules/@types/node/util.d.ts +1110 -181
  154. package/node_modules/@types/node/v8.d.ts +36 -175
  155. package/node_modules/@types/node/vm.d.ts +209 -292
  156. package/node_modules/@types/node/wasi.d.ts +74 -24
  157. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
  158. package/node_modules/@types/node/web-globals/domexception.d.ts +0 -15
  159. package/node_modules/@types/node/web-globals/events.d.ts +0 -9
  160. package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
  161. package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
  162. package/node_modules/@types/node/web-globals/streams.d.ts +0 -93
  163. package/node_modules/@types/node/worker_threads.d.ts +407 -257
  164. package/node_modules/@types/node/zlib.d.ts +165 -7
  165. package/node_modules/hono/dist/cjs/client/client.js +4 -4
  166. package/node_modules/hono/dist/cjs/hono-base.js +7 -6
  167. package/node_modules/hono/dist/cjs/jsx/base.js +18 -1
  168. package/node_modules/hono/dist/cjs/jsx/components.js +25 -26
  169. package/node_modules/hono/dist/cjs/jsx/context.js +5 -5
  170. package/node_modules/hono/dist/cjs/jsx/dom/server.js +5 -1
  171. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +2 -2
  172. package/node_modules/hono/dist/cjs/jsx/streaming.js +4 -5
  173. package/node_modules/hono/dist/client/client.js +4 -4
  174. package/node_modules/hono/dist/hono-base.js +7 -6
  175. package/node_modules/hono/dist/jsx/base.js +15 -1
  176. package/node_modules/hono/dist/jsx/components.js +26 -27
  177. package/node_modules/hono/dist/jsx/context.js +6 -6
  178. package/node_modules/hono/dist/jsx/dom/server.js +5 -1
  179. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +3 -3
  180. package/node_modules/hono/dist/jsx/streaming.js +5 -6
  181. package/node_modules/hono/dist/types/context.d.ts +2 -2
  182. package/node_modules/hono/dist/types/jsx/base.d.ts +3 -0
  183. package/node_modules/hono/package.json +2 -2
  184. package/node_modules/jose/dist/types/index.d.ts +1 -2
  185. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -11
  186. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
  187. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
  188. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
  189. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
  190. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
  191. package/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
  192. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
  193. package/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
  194. package/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
  195. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
  196. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
  197. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
  198. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
  199. package/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
  200. package/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
  201. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
  202. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
  203. package/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
  204. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
  205. package/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
  206. package/node_modules/jose/dist/types/key/export.d.ts +6 -6
  207. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
  208. package/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
  209. package/node_modules/jose/dist/types/key/import.d.ts +19 -18
  210. package/node_modules/jose/dist/types/types.d.ts +152 -247
  211. package/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
  212. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +6 -1
  213. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
  214. package/node_modules/jose/dist/types/util/errors.d.ts +29 -40
  215. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
  216. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
  217. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
  218. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
  219. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
  220. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
  221. package/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
  222. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
  223. package/node_modules/jose/dist/webapi/jwks/local.js +16 -10
  224. package/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
  225. package/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
  226. package/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
  227. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
  228. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
  229. package/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
  230. package/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
  231. package/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
  232. package/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
  233. package/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
  234. package/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
  235. package/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
  236. package/node_modules/jose/dist/webapi/key/export.js +12 -16
  237. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
  238. package/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
  239. package/node_modules/jose/dist/webapi/key/import.js +5 -9
  240. package/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
  241. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
  242. package/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
  243. package/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
  244. package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
  245. package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
  246. package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
  247. package/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
  248. package/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
  249. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
  250. package/node_modules/jose/dist/webapi/lib/key.js +119 -59
  251. package/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
  252. package/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
  253. package/node_modules/jose/dist/webapi/util/base64url.js +5 -19
  254. package/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
  255. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
  256. package/node_modules/jose/package.json +1 -1
  257. package/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
  258. package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  259. package/node_modules/undici/lib/dispatcher/client-h2.js +70 -14
  260. package/node_modules/undici/lib/dispatcher/client.js +6 -2
  261. package/node_modules/undici/lib/handler/cache-handler.js +21 -5
  262. package/node_modules/undici/lib/handler/retry-handler.js +42 -7
  263. package/node_modules/undici/lib/interceptor/cache.js +20 -1
  264. package/node_modules/undici/lib/interceptor/decompress.js +146 -14
  265. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  266. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
  267. package/node_modules/undici/lib/web/websocket/connection.js +1 -1
  268. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  269. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  270. package/node_modules/undici/package.json +1 -1
  271. package/node_modules/undici/types/interceptors.d.ts +2 -0
  272. package/node_modules/undici-types/agent.d.ts +13 -12
  273. package/node_modules/undici-types/api.d.ts +26 -26
  274. package/node_modules/undici-types/balanced-pool.d.ts +12 -13
  275. package/node_modules/undici-types/client.d.ts +34 -55
  276. package/node_modules/undici-types/connector.d.ts +2 -4
  277. package/node_modules/undici-types/cookies.d.ts +0 -2
  278. package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
  279. package/node_modules/undici-types/dispatcher.d.ts +137 -134
  280. package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
  281. package/node_modules/undici-types/errors.d.ts +54 -82
  282. package/node_modules/undici-types/eventsource.d.ts +4 -9
  283. package/node_modules/undici-types/fetch.d.ts +24 -46
  284. package/node_modules/undici-types/file.d.ts +39 -0
  285. package/node_modules/undici-types/filereader.d.ts +54 -0
  286. package/node_modules/undici-types/formdata.d.ts +7 -7
  287. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  288. package/node_modules/undici-types/global-origin.d.ts +5 -5
  289. package/node_modules/undici-types/handlers.d.ts +9 -8
  290. package/node_modules/undici-types/header.d.ts +1 -162
  291. package/node_modules/undici-types/index.d.ts +47 -69
  292. package/node_modules/undici-types/interceptors.d.ts +9 -72
  293. package/node_modules/undici-types/mock-agent.d.ts +18 -36
  294. package/node_modules/undici-types/mock-client.d.ts +4 -6
  295. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  296. package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
  297. package/node_modules/undici-types/mock-pool.d.ts +4 -6
  298. package/node_modules/undici-types/package.json +1 -1
  299. package/node_modules/undici-types/patch.d.ts +4 -0
  300. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  301. package/node_modules/undici-types/pool.d.ts +14 -14
  302. package/node_modules/undici-types/proxy-agent.d.ts +6 -7
  303. package/node_modules/undici-types/readable.d.ts +16 -19
  304. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  305. package/node_modules/undici-types/retry-handler.d.ts +10 -19
  306. package/node_modules/undici-types/util.d.ts +3 -3
  307. package/node_modules/undici-types/webidl.d.ts +30 -148
  308. package/node_modules/undici-types/websocket.d.ts +10 -48
  309. package/node_modules/zod/compile.cjs +19 -0
  310. package/node_modules/zod/index.cjs +19 -0
  311. package/node_modules/zod/locales/index.cjs +19 -0
  312. package/node_modules/zod/mini/index.cjs +19 -0
  313. package/node_modules/zod/package.json +8 -7
  314. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  315. package/node_modules/zod/src/v4/classic/checks.ts +0 -1
  316. package/node_modules/zod/src/v4/classic/external.ts +2 -0
  317. package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
  318. package/node_modules/zod/src/v4/classic/schemas.ts +255 -164
  319. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +59 -9
  320. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
  321. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
  322. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +274 -0
  323. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
  324. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
  325. package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
  326. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  327. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
  328. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  329. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +18 -2
  330. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
  331. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
  332. package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
  333. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
  334. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
  335. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +225 -0
  336. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
  337. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
  338. package/node_modules/zod/src/v4/classic/tests/string.test.ts +25 -0
  339. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
  340. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +147 -3
  341. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
  342. package/node_modules/zod/src/v4/core/api.ts +30 -6
  343. package/node_modules/zod/src/v4/core/checks.ts +1 -101
  344. package/node_modules/zod/src/v4/core/compile.ts +202 -88
  345. package/node_modules/zod/src/v4/core/doc.ts +6 -2
  346. package/node_modules/zod/src/v4/core/errors.ts +3 -6
  347. package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
  348. package/node_modules/zod/src/v4/core/json-schema-processors.ts +226 -68
  349. package/node_modules/zod/src/v4/core/memoizer.ts +78 -28
  350. package/node_modules/zod/src/v4/core/parse.ts +37 -16
  351. package/node_modules/zod/src/v4/core/regexes.ts +10 -4
  352. package/node_modules/zod/src/v4/core/schemas.ts +359 -122
  353. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  354. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  355. package/node_modules/zod/src/v4/core/tests/compile.test.ts +222 -2
  356. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  357. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  358. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  359. package/node_modules/zod/src/v4/core/to-json-schema.ts +10 -8
  360. package/node_modules/zod/src/v4/core/util.ts +222 -147
  361. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  362. package/node_modules/zod/src/v4/core/visit.ts +11 -0
  363. package/node_modules/zod/src/v4/locales/ar.ts +1 -0
  364. package/node_modules/zod/src/v4/locales/az.ts +1 -0
  365. package/node_modules/zod/src/v4/locales/be.ts +1 -0
  366. package/node_modules/zod/src/v4/locales/bg.ts +1 -0
  367. package/node_modules/zod/src/v4/locales/bn.ts +1 -0
  368. package/node_modules/zod/src/v4/locales/ca.ts +1 -0
  369. package/node_modules/zod/src/v4/locales/ckb.ts +1 -0
  370. package/node_modules/zod/src/v4/locales/cs.ts +1 -0
  371. package/node_modules/zod/src/v4/locales/da.ts +1 -0
  372. package/node_modules/zod/src/v4/locales/de.ts +1 -0
  373. package/node_modules/zod/src/v4/locales/el.ts +1 -0
  374. package/node_modules/zod/src/v4/locales/en.ts +1 -0
  375. package/node_modules/zod/src/v4/locales/eo.ts +1 -0
  376. package/node_modules/zod/src/v4/locales/es.ts +1 -0
  377. package/node_modules/zod/src/v4/locales/fa.ts +1 -0
  378. package/node_modules/zod/src/v4/locales/fi.ts +1 -0
  379. package/node_modules/zod/src/v4/locales/fr-CA.ts +1 -0
  380. package/node_modules/zod/src/v4/locales/fr.ts +1 -0
  381. package/node_modules/zod/src/v4/locales/gu.ts +1 -0
  382. package/node_modules/zod/src/v4/locales/he.ts +1 -0
  383. package/node_modules/zod/src/v4/locales/hi.ts +1 -0
  384. package/node_modules/zod/src/v4/locales/hr.ts +1 -0
  385. package/node_modules/zod/src/v4/locales/hu.ts +1 -0
  386. package/node_modules/zod/src/v4/locales/hy.ts +1 -0
  387. package/node_modules/zod/src/v4/locales/id.ts +1 -0
  388. package/node_modules/zod/src/v4/locales/index.ts +1 -0
  389. package/node_modules/zod/src/v4/locales/is.ts +1 -0
  390. package/node_modules/zod/src/v4/locales/it.ts +1 -0
  391. package/node_modules/zod/src/v4/locales/ja.ts +1 -0
  392. package/node_modules/zod/src/v4/locales/ka.ts +1 -0
  393. package/node_modules/zod/src/v4/locales/km.ts +1 -0
  394. package/node_modules/zod/src/v4/locales/kn.ts +1 -0
  395. package/node_modules/zod/src/v4/locales/ko.ts +1 -0
  396. package/node_modules/zod/src/v4/locales/lt.ts +1 -0
  397. package/node_modules/zod/src/v4/locales/mk.ts +1 -0
  398. package/node_modules/zod/src/v4/locales/ms.ts +1 -0
  399. package/node_modules/zod/src/v4/locales/ne.ts +1 -0
  400. package/node_modules/zod/src/v4/locales/nl.ts +1 -0
  401. package/node_modules/zod/src/v4/locales/nn.ts +1 -0
  402. package/node_modules/zod/src/v4/locales/no.ts +1 -0
  403. package/node_modules/zod/src/v4/locales/ota.ts +1 -0
  404. package/node_modules/zod/src/v4/locales/pl.ts +1 -0
  405. package/node_modules/zod/src/v4/locales/ps.ts +1 -0
  406. package/node_modules/zod/src/v4/locales/pt-BR.ts +1 -0
  407. package/node_modules/zod/src/v4/locales/pt.ts +1 -0
  408. package/node_modules/zod/src/v4/locales/ro.ts +1 -0
  409. package/node_modules/zod/src/v4/locales/ru.ts +1 -0
  410. package/node_modules/zod/src/v4/locales/sk.ts +1 -0
  411. package/node_modules/zod/src/v4/locales/sl.ts +1 -0
  412. package/node_modules/zod/src/v4/locales/sv.ts +1 -0
  413. package/node_modules/zod/src/v4/locales/ta.ts +1 -0
  414. package/node_modules/zod/src/v4/locales/tg.ts +134 -0
  415. package/node_modules/zod/src/v4/locales/th.ts +1 -0
  416. package/node_modules/zod/src/v4/locales/tk.ts +1 -0
  417. package/node_modules/zod/src/v4/locales/tr.ts +1 -0
  418. package/node_modules/zod/src/v4/locales/uk.ts +1 -0
  419. package/node_modules/zod/src/v4/locales/ur.ts +1 -0
  420. package/node_modules/zod/src/v4/locales/uz.ts +1 -0
  421. package/node_modules/zod/src/v4/locales/vi.ts +1 -0
  422. package/node_modules/zod/src/v4/locales/yo.ts +1 -0
  423. package/node_modules/zod/src/v4/locales/zh-CN.ts +1 -0
  424. package/node_modules/zod/src/v4/locales/zh-TW.ts +1 -0
  425. package/node_modules/zod/src/v4/mini/checks.ts +0 -1
  426. package/node_modules/zod/src/v4/mini/external.ts +2 -0
  427. package/node_modules/zod/src/v4/mini/schemas.ts +39 -3
  428. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
  429. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
  430. package/node_modules/zod/src/v4/mini/tests/index.test.ts +30 -0
  431. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
  432. package/node_modules/zod/src/v4/mini/tests/string.test.ts +16 -0
  433. package/node_modules/zod/v3/ZodError.cjs +19 -0
  434. package/node_modules/zod/v3/errors.cjs +19 -0
  435. package/node_modules/zod/v3/external.cjs +19 -0
  436. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  437. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  438. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  439. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  440. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  441. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  442. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  443. package/node_modules/zod/v3/index.cjs +19 -0
  444. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  445. package/node_modules/zod/v3/types.cjs +19 -0
  446. package/node_modules/zod/v4/classic/checks.cjs +20 -2
  447. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  448. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  449. package/node_modules/zod/v4/classic/checks.js +1 -1
  450. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  451. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  452. package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
  453. package/node_modules/zod/v4/classic/errors.cjs +19 -0
  454. package/node_modules/zod/v4/classic/external.cjs +22 -1
  455. package/node_modules/zod/v4/classic/external.d.cts +1 -1
  456. package/node_modules/zod/v4/classic/external.d.ts +1 -1
  457. package/node_modules/zod/v4/classic/external.js +1 -1
  458. package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
  459. package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
  460. package/node_modules/zod/v4/classic/in-out.cjs +19 -0
  461. package/node_modules/zod/v4/classic/index.cjs +19 -0
  462. package/node_modules/zod/v4/classic/iso.cjs +19 -0
  463. package/node_modules/zod/v4/classic/parse.cjs +19 -0
  464. package/node_modules/zod/v4/classic/schemas.cjs +100 -31
  465. package/node_modules/zod/v4/classic/schemas.d.cts +17 -1
  466. package/node_modules/zod/v4/classic/schemas.d.ts +17 -1
  467. package/node_modules/zod/v4/classic/schemas.js +77 -29
  468. package/node_modules/zod/v4/core/api.cjs +37 -2
  469. package/node_modules/zod/v4/core/api.d.cts +6 -4
  470. package/node_modules/zod/v4/core/api.d.ts +6 -4
  471. package/node_modules/zod/v4/core/api.js +17 -2
  472. package/node_modules/zod/v4/core/checks.cjs +19 -96
  473. package/node_modules/zod/v4/core/checks.d.cts +1 -1
  474. package/node_modules/zod/v4/core/checks.d.ts +1 -1
  475. package/node_modules/zod/v4/core/checks.js +0 -96
  476. package/node_modules/zod/v4/core/compile.cjs +172 -72
  477. package/node_modules/zod/v4/core/compile.d.cts +18 -4
  478. package/node_modules/zod/v4/core/compile.d.ts +18 -4
  479. package/node_modules/zod/v4/core/compile.js +153 -73
  480. package/node_modules/zod/v4/core/core.cjs +19 -0
  481. package/node_modules/zod/v4/core/doc.cjs +26 -2
  482. package/node_modules/zod/v4/core/doc.js +7 -2
  483. package/node_modules/zod/v4/core/errors.cjs +21 -5
  484. package/node_modules/zod/v4/core/errors.js +2 -5
  485. package/node_modules/zod/v4/core/index.cjs +19 -0
  486. package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
  487. package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
  488. package/node_modules/zod/v4/core/json-schema-processors.cjs +215 -63
  489. package/node_modules/zod/v4/core/json-schema-processors.d.cts +17 -0
  490. package/node_modules/zod/v4/core/json-schema-processors.d.ts +17 -0
  491. package/node_modules/zod/v4/core/json-schema-processors.js +195 -64
  492. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  493. package/node_modules/zod/v4/core/memoizer.cjs +114 -23
  494. package/node_modules/zod/v4/core/memoizer.js +72 -23
  495. package/node_modules/zod/v4/core/parse.cjs +56 -16
  496. package/node_modules/zod/v4/core/parse.js +37 -16
  497. package/node_modules/zod/v4/core/regexes.cjs +29 -6
  498. package/node_modules/zod/v4/core/regexes.d.cts +2 -0
  499. package/node_modules/zod/v4/core/regexes.d.ts +2 -0
  500. package/node_modules/zod/v4/core/regexes.js +8 -4
  501. package/node_modules/zod/v4/core/registries.cjs +19 -0
  502. package/node_modules/zod/v4/core/schemas.cjs +331 -103
  503. package/node_modules/zod/v4/core/schemas.d.cts +43 -8
  504. package/node_modules/zod/v4/core/schemas.d.ts +43 -8
  505. package/node_modules/zod/v4/core/schemas.js +310 -102
  506. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  507. package/node_modules/zod/v4/core/to-json-schema.cjs +29 -7
  508. package/node_modules/zod/v4/core/to-json-schema.d.cts +7 -3
  509. package/node_modules/zod/v4/core/to-json-schema.d.ts +7 -3
  510. package/node_modules/zod/v4/core/to-json-schema.js +8 -7
  511. package/node_modules/zod/v4/core/util.cjs +181 -143
  512. package/node_modules/zod/v4/core/util.d.cts +25 -4
  513. package/node_modules/zod/v4/core/util.d.ts +25 -4
  514. package/node_modules/zod/v4/core/util.js +160 -143
  515. package/node_modules/zod/v4/core/versions.cjs +21 -2
  516. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  517. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  518. package/node_modules/zod/v4/core/versions.js +2 -2
  519. package/node_modules/zod/v4/core/visit.cjs +31 -0
  520. package/node_modules/zod/v4/core/visit.js +12 -0
  521. package/node_modules/zod/v4/index.cjs +19 -0
  522. package/node_modules/zod/v4/locales/ar.cjs +1 -0
  523. package/node_modules/zod/v4/locales/ar.js +1 -0
  524. package/node_modules/zod/v4/locales/az.cjs +1 -0
  525. package/node_modules/zod/v4/locales/az.js +1 -0
  526. package/node_modules/zod/v4/locales/be.cjs +1 -0
  527. package/node_modules/zod/v4/locales/be.js +1 -0
  528. package/node_modules/zod/v4/locales/bg.cjs +1 -0
  529. package/node_modules/zod/v4/locales/bg.js +1 -0
  530. package/node_modules/zod/v4/locales/bn.cjs +1 -0
  531. package/node_modules/zod/v4/locales/bn.js +1 -0
  532. package/node_modules/zod/v4/locales/ca.cjs +1 -0
  533. package/node_modules/zod/v4/locales/ca.js +1 -0
  534. package/node_modules/zod/v4/locales/ckb.cjs +1 -0
  535. package/node_modules/zod/v4/locales/ckb.js +1 -0
  536. package/node_modules/zod/v4/locales/cs.cjs +1 -0
  537. package/node_modules/zod/v4/locales/cs.js +1 -0
  538. package/node_modules/zod/v4/locales/da.cjs +1 -0
  539. package/node_modules/zod/v4/locales/da.js +1 -0
  540. package/node_modules/zod/v4/locales/de.cjs +1 -0
  541. package/node_modules/zod/v4/locales/de.js +1 -0
  542. package/node_modules/zod/v4/locales/el.cjs +1 -0
  543. package/node_modules/zod/v4/locales/el.js +1 -0
  544. package/node_modules/zod/v4/locales/en.cjs +1 -0
  545. package/node_modules/zod/v4/locales/en.js +1 -0
  546. package/node_modules/zod/v4/locales/eo.cjs +1 -0
  547. package/node_modules/zod/v4/locales/eo.js +1 -0
  548. package/node_modules/zod/v4/locales/es.cjs +1 -0
  549. package/node_modules/zod/v4/locales/es.js +1 -0
  550. package/node_modules/zod/v4/locales/fa.cjs +1 -0
  551. package/node_modules/zod/v4/locales/fa.js +1 -0
  552. package/node_modules/zod/v4/locales/fi.cjs +1 -0
  553. package/node_modules/zod/v4/locales/fi.js +1 -0
  554. package/node_modules/zod/v4/locales/fr-CA.cjs +1 -0
  555. package/node_modules/zod/v4/locales/fr-CA.js +1 -0
  556. package/node_modules/zod/v4/locales/fr.cjs +1 -0
  557. package/node_modules/zod/v4/locales/fr.js +1 -0
  558. package/node_modules/zod/v4/locales/gu.cjs +1 -0
  559. package/node_modules/zod/v4/locales/gu.js +1 -0
  560. package/node_modules/zod/v4/locales/he.cjs +1 -0
  561. package/node_modules/zod/v4/locales/he.js +1 -0
  562. package/node_modules/zod/v4/locales/hi.cjs +1 -0
  563. package/node_modules/zod/v4/locales/hi.js +1 -0
  564. package/node_modules/zod/v4/locales/hr.cjs +1 -0
  565. package/node_modules/zod/v4/locales/hr.js +1 -0
  566. package/node_modules/zod/v4/locales/hu.cjs +1 -0
  567. package/node_modules/zod/v4/locales/hu.js +1 -0
  568. package/node_modules/zod/v4/locales/hy.cjs +1 -0
  569. package/node_modules/zod/v4/locales/hy.js +1 -0
  570. package/node_modules/zod/v4/locales/id.cjs +1 -0
  571. package/node_modules/zod/v4/locales/id.js +1 -0
  572. package/node_modules/zod/v4/locales/index.cjs +22 -1
  573. package/node_modules/zod/v4/locales/index.d.cts +1 -0
  574. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  575. package/node_modules/zod/v4/locales/index.js +1 -0
  576. package/node_modules/zod/v4/locales/is.cjs +1 -0
  577. package/node_modules/zod/v4/locales/is.js +1 -0
  578. package/node_modules/zod/v4/locales/it.cjs +1 -0
  579. package/node_modules/zod/v4/locales/it.js +1 -0
  580. package/node_modules/zod/v4/locales/ja.cjs +1 -0
  581. package/node_modules/zod/v4/locales/ja.js +1 -0
  582. package/node_modules/zod/v4/locales/ka.cjs +1 -0
  583. package/node_modules/zod/v4/locales/ka.js +1 -0
  584. package/node_modules/zod/v4/locales/km.cjs +1 -0
  585. package/node_modules/zod/v4/locales/km.js +1 -0
  586. package/node_modules/zod/v4/locales/kn.cjs +1 -0
  587. package/node_modules/zod/v4/locales/kn.js +1 -0
  588. package/node_modules/zod/v4/locales/ko.cjs +1 -0
  589. package/node_modules/zod/v4/locales/ko.js +1 -0
  590. package/node_modules/zod/v4/locales/lt.cjs +1 -0
  591. package/node_modules/zod/v4/locales/lt.js +1 -0
  592. package/node_modules/zod/v4/locales/mk.cjs +1 -0
  593. package/node_modules/zod/v4/locales/mk.js +1 -0
  594. package/node_modules/zod/v4/locales/ms.cjs +1 -0
  595. package/node_modules/zod/v4/locales/ms.js +1 -0
  596. package/node_modules/zod/v4/locales/ne.cjs +1 -0
  597. package/node_modules/zod/v4/locales/ne.js +1 -0
  598. package/node_modules/zod/v4/locales/nl.cjs +1 -0
  599. package/node_modules/zod/v4/locales/nl.js +1 -0
  600. package/node_modules/zod/v4/locales/nn.cjs +1 -0
  601. package/node_modules/zod/v4/locales/nn.js +1 -0
  602. package/node_modules/zod/v4/locales/no.cjs +1 -0
  603. package/node_modules/zod/v4/locales/no.js +1 -0
  604. package/node_modules/zod/v4/locales/ota.cjs +1 -0
  605. package/node_modules/zod/v4/locales/ota.js +1 -0
  606. package/node_modules/zod/v4/locales/pl.cjs +1 -0
  607. package/node_modules/zod/v4/locales/pl.js +1 -0
  608. package/node_modules/zod/v4/locales/ps.cjs +1 -0
  609. package/node_modules/zod/v4/locales/ps.js +1 -0
  610. package/node_modules/zod/v4/locales/pt-BR.cjs +1 -0
  611. package/node_modules/zod/v4/locales/pt-BR.js +1 -0
  612. package/node_modules/zod/v4/locales/pt.cjs +1 -0
  613. package/node_modules/zod/v4/locales/pt.js +1 -0
  614. package/node_modules/zod/v4/locales/ro.cjs +1 -0
  615. package/node_modules/zod/v4/locales/ro.js +1 -0
  616. package/node_modules/zod/v4/locales/ru.cjs +1 -0
  617. package/node_modules/zod/v4/locales/ru.js +1 -0
  618. package/node_modules/zod/v4/locales/sk.cjs +1 -0
  619. package/node_modules/zod/v4/locales/sk.js +1 -0
  620. package/node_modules/zod/v4/locales/sl.cjs +1 -0
  621. package/node_modules/zod/v4/locales/sl.js +1 -0
  622. package/node_modules/zod/v4/locales/sv.cjs +1 -0
  623. package/node_modules/zod/v4/locales/sv.js +1 -0
  624. package/node_modules/zod/v4/locales/ta.cjs +1 -0
  625. package/node_modules/zod/v4/locales/ta.js +1 -0
  626. package/node_modules/zod/v4/locales/tg.cjs +143 -0
  627. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  628. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  629. package/node_modules/zod/v4/locales/tg.js +116 -0
  630. package/node_modules/zod/v4/locales/th.cjs +1 -0
  631. package/node_modules/zod/v4/locales/th.js +1 -0
  632. package/node_modules/zod/v4/locales/tk.cjs +1 -0
  633. package/node_modules/zod/v4/locales/tk.js +1 -0
  634. package/node_modules/zod/v4/locales/tr.cjs +1 -0
  635. package/node_modules/zod/v4/locales/tr.js +1 -0
  636. package/node_modules/zod/v4/locales/uk.cjs +1 -0
  637. package/node_modules/zod/v4/locales/uk.js +1 -0
  638. package/node_modules/zod/v4/locales/ur.cjs +1 -0
  639. package/node_modules/zod/v4/locales/ur.js +1 -0
  640. package/node_modules/zod/v4/locales/uz.cjs +1 -0
  641. package/node_modules/zod/v4/locales/uz.js +1 -0
  642. package/node_modules/zod/v4/locales/vi.cjs +1 -0
  643. package/node_modules/zod/v4/locales/vi.js +1 -0
  644. package/node_modules/zod/v4/locales/yo.cjs +1 -0
  645. package/node_modules/zod/v4/locales/yo.js +1 -0
  646. package/node_modules/zod/v4/locales/zh-CN.cjs +1 -0
  647. package/node_modules/zod/v4/locales/zh-CN.js +1 -0
  648. package/node_modules/zod/v4/locales/zh-TW.cjs +1 -0
  649. package/node_modules/zod/v4/locales/zh-TW.js +1 -0
  650. package/node_modules/zod/v4/mini/checks.cjs +20 -2
  651. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  652. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  653. package/node_modules/zod/v4/mini/checks.js +1 -1
  654. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  655. package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
  656. package/node_modules/zod/v4/mini/external.cjs +22 -1
  657. package/node_modules/zod/v4/mini/external.d.cts +1 -1
  658. package/node_modules/zod/v4/mini/external.d.ts +1 -1
  659. package/node_modules/zod/v4/mini/external.js +1 -1
  660. package/node_modules/zod/v4/mini/in-out.cjs +19 -0
  661. package/node_modules/zod/v4/mini/index.cjs +19 -0
  662. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  663. package/node_modules/zod/v4/mini/parse.cjs +19 -0
  664. package/node_modules/zod/v4/mini/schemas.cjs +42 -4
  665. package/node_modules/zod/v4/mini/schemas.d.cts +9 -1
  666. package/node_modules/zod/v4/mini/schemas.d.ts +9 -1
  667. package/node_modules/zod/v4/mini/schemas.js +19 -2
  668. package/node_modules/zod/v4-mini/index.cjs +19 -0
  669. package/package.json +2 -2
  670. package/slingshot/index.js +151 -149
  671. package/node_modules/@types/node/ffi.d.ts +0 -486
  672. package/node_modules/@types/node/inspector/promises.d.ts +0 -35
  673. package/node_modules/@types/node/path/posix.d.ts +0 -8
  674. package/node_modules/@types/node/path/win32.d.ts +0 -8
  675. package/node_modules/@types/node/quic.d.ts +0 -2151
  676. package/node_modules/@types/node/stream/iter.d.ts +0 -452
  677. package/node_modules/@types/node/test/reporters.d.ts +0 -59
  678. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  679. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  680. package/node_modules/@types/node/ts5.7/index.d.ts +0 -118
  681. package/node_modules/@types/node/util/types.d.ts +0 -558
  682. package/node_modules/@types/node/vfs.d.ts +0 -210
  683. package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  684. package/node_modules/@types/node/web-globals/console.d.ts +0 -9
  685. package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  686. package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  687. package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  688. package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  689. package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  690. package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  691. package/node_modules/@types/node/web-globals/url.d.ts +0 -24
  692. package/node_modules/@types/node/zlib/iter.d.ts +0 -131
  693. package/node_modules/jose/dist/webapi/lib/base64.js +0 -20
  694. package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
  695. package/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
  696. package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
  697. package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
  698. package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
  699. package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
  700. package/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
  701. package/node_modules/jose/dist/webapi/lib/signing.js +0 -22
  702. package/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
  703. package/node_modules/undici-types/cache-interceptor.d.ts +0 -179
  704. package/node_modules/undici-types/client-stats.d.ts +0 -15
  705. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
  706. package/node_modules/undici-types/h2c-client.d.ts +0 -73
  707. package/node_modules/undici-types/mock-call-history.d.ts +0 -111
  708. package/node_modules/undici-types/round-robin-pool.d.ts +0 -39
  709. package/node_modules/undici-types/snapshot-agent.d.ts +0 -113
  710. package/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
  711. package/node_modules/undici-types/utility.d.ts +0 -7
@@ -1,55 +1,15 @@
1
- declare module "node:util" {
2
- export * as types from "node:util/types";
3
- export type InspectStyle =
4
- | "special"
5
- | "number"
6
- | "bigint"
7
- | "boolean"
8
- | "undefined"
9
- | "null"
10
- | "string"
11
- | "symbol"
12
- | "date"
13
- | "name"
14
- | "regexp"
15
- | "module";
16
- export interface InspectStyles extends Record<InspectStyle, InspectColor | ((value: string) => string)> {
17
- regexp: {
18
- (value: string): string;
19
- colors: InspectColor[];
20
- };
21
- }
22
- export type InspectColorModifier =
23
- | "reset"
24
- | "bold"
25
- | "dim"
26
- | "italic"
27
- | "underline"
28
- | "blink"
29
- | "inverse"
30
- | "hidden"
31
- | "strikethrough"
32
- | "doubleunderline";
33
- export type InspectColorForeground =
34
- | "black"
35
- | "red"
36
- | "green"
37
- | "yellow"
38
- | "blue"
39
- | "magenta"
40
- | "cyan"
41
- | "white"
42
- | "gray"
43
- | "redBright"
44
- | "greenBright"
45
- | "yellowBright"
46
- | "blueBright"
47
- | "magentaBright"
48
- | "cyanBright"
49
- | "whiteBright";
50
- export type InspectColorBackground = `bg${Capitalize<InspectColorForeground>}`;
51
- export type InspectColor = InspectColorModifier | InspectColorForeground | InspectColorBackground;
52
- export interface InspectColors extends Record<InspectColor, [number, number]> {}
1
+ /**
2
+ * The `node:util` module supports the needs of Node.js internal APIs. Many of the
3
+ * utilities are useful for application and module developers as well. To access
4
+ * it:
5
+ *
6
+ * ```js
7
+ * import util from 'node:util';
8
+ * ```
9
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/util.js)
10
+ */
11
+ declare module "util" {
12
+ import * as types from "node:util/types";
53
13
  export interface InspectOptions {
54
14
  /**
55
15
  * If `true`, object's non-enumerable symbols and properties are included in the formatted result.
@@ -132,12 +92,21 @@ declare module "node:util" {
132
92
  */
133
93
  numericSeparator?: boolean | undefined;
134
94
  }
135
- export interface InspectContext extends Required<InspectOptions> {
136
- stylize(text: string, styleType: InspectStyle): string;
137
- }
138
- import _inspect = inspect;
139
- export interface Inspectable {
140
- [inspect.custom](depth: number, options: InspectContext, inspect: typeof _inspect): any;
95
+ export type Style =
96
+ | "special"
97
+ | "number"
98
+ | "bigint"
99
+ | "boolean"
100
+ | "undefined"
101
+ | "null"
102
+ | "string"
103
+ | "symbol"
104
+ | "date"
105
+ | "regexp"
106
+ | "module";
107
+ export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect
108
+ export interface InspectOptionsStylized extends InspectOptions {
109
+ stylize(text: string, styleType: Style): string;
141
110
  }
142
111
  export interface CallSiteObject {
143
112
  /**
@@ -274,7 +243,7 @@ declare module "node:util" {
274
243
  * @since v10.0.0
275
244
  */
276
245
  export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
277
- export interface GetCallSitesOptions {
246
+ interface GetCallSitesOptions {
278
247
  /**
279
248
  * Reconstruct the original location in the stacktrace from the source-map.
280
249
  * Enabled by default with the flag `--enable-source-maps`.
@@ -285,9 +254,6 @@ declare module "node:util" {
285
254
  * Returns an array of call site objects containing the stack of
286
255
  * the caller function.
287
256
  *
288
- * Unlike accessing an `error.stack`, the result returned from this API is not
289
- * interfered with `Error.prepareStackTrace`.
290
- *
291
257
  * ```js
292
258
  * import { getCallSites } from 'node:util';
293
259
  *
@@ -300,7 +266,7 @@ declare module "node:util" {
300
266
  * console.log(`Function Name: ${callSite.functionName}`);
301
267
  * console.log(`Script Name: ${callSite.scriptName}`);
302
268
  * console.log(`Line Number: ${callSite.lineNumber}`);
303
- * console.log(`Column Number: ${callSite.columnNumber}`);
269
+ * console.log(`Column Number: ${callSite.column}`);
304
270
  * });
305
271
  * // CallSite 1:
306
272
  * // Function Name: exampleFunction
@@ -327,7 +293,8 @@ declare module "node:util" {
327
293
  *
328
294
  * It is possible to reconstruct the original locations by setting the option `sourceMap` to `true`.
329
295
  * If the source map is not available, the original location will be the same as the current location.
330
- * When the `--enable-source-maps` flag is enabled, `sourceMap` will be true by default.
296
+ * When the `--enable-source-maps` flag is enabled, for example when using `--experimental-transform-types`,
297
+ * `sourceMap` will be true by default.
331
298
  *
332
299
  * ```ts
333
300
  * import { getCallSites } from 'node:util';
@@ -373,7 +340,7 @@ declare module "node:util" {
373
340
  export function getSystemErrorName(err: number): string;
374
341
  /**
375
342
  * Enable or disable printing a stack trace on `SIGINT`. The API is only available on the main thread.
376
- * @since 24.6.0
343
+ * @since 22.19.0
377
344
  */
378
345
  export function setTraceSigInt(enable: boolean): void;
379
346
  /**
@@ -405,6 +372,19 @@ declare module "node:util" {
405
372
  * @since v22.12.0
406
373
  */
407
374
  export function getSystemErrorMessage(err: number): string;
375
+ /**
376
+ * The `util.log()` method prints the given `string` to `stdout` with an included
377
+ * timestamp.
378
+ *
379
+ * ```js
380
+ * import util from 'node:util';
381
+ *
382
+ * util.log('Timestamped message.');
383
+ * ```
384
+ * @since v0.3.0
385
+ * @deprecated Since v6.0.0 - Use a third party module instead.
386
+ */
387
+ export function log(string: string): void;
408
388
  /**
409
389
  * Returns the `string` after replacing any surrogate code points
410
390
  * (or equivalently, any unpaired surrogate code units) with the
@@ -642,11 +622,19 @@ declare module "node:util" {
642
622
  export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
643
623
  export function inspect(object: any, options?: InspectOptions): string;
644
624
  export namespace inspect {
645
- const custom: unique symbol;
646
- let colors: InspectColors;
647
- let styles: InspectStyles;
625
+ let colors: NodeJS.Dict<[number, number]>;
626
+ let styles: {
627
+ [K in Style]: string;
628
+ };
648
629
  let defaultOptions: InspectOptions;
630
+ /**
631
+ * Allows changing inspect settings from the repl.
632
+ */
649
633
  let replDefaults: InspectOptions;
634
+ /**
635
+ * That can be used to declare custom inspect functions.
636
+ */
637
+ const custom: unique symbol;
650
638
  }
651
639
  /**
652
640
  * Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray).
@@ -667,6 +655,71 @@ declare module "node:util" {
667
655
  * @deprecated Since v4.0.0 - Use `isArray` instead.
668
656
  */
669
657
  export function isArray(object: unknown): object is unknown[];
658
+ /**
659
+ * Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`.
660
+ *
661
+ * ```js
662
+ * import util from 'node:util';
663
+ *
664
+ * util.isRegExp(/some regexp/);
665
+ * // Returns: true
666
+ * util.isRegExp(new RegExp('another regexp'));
667
+ * // Returns: true
668
+ * util.isRegExp({});
669
+ * // Returns: false
670
+ * ```
671
+ * @since v0.6.0
672
+ * @deprecated Since v4.0.0 - Deprecated
673
+ */
674
+ export function isRegExp(object: unknown): object is RegExp;
675
+ /**
676
+ * Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`.
677
+ *
678
+ * ```js
679
+ * import util from 'node:util';
680
+ *
681
+ * util.isDate(new Date());
682
+ * // Returns: true
683
+ * util.isDate(Date());
684
+ * // false (without 'new' returns a String)
685
+ * util.isDate({});
686
+ * // Returns: false
687
+ * ```
688
+ * @since v0.6.0
689
+ * @deprecated Since v4.0.0 - Use {@link types.isDate} instead.
690
+ */
691
+ export function isDate(object: unknown): object is Date;
692
+ /**
693
+ * Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`.
694
+ *
695
+ * ```js
696
+ * import util from 'node:util';
697
+ *
698
+ * util.isError(new Error());
699
+ * // Returns: true
700
+ * util.isError(new TypeError());
701
+ * // Returns: true
702
+ * util.isError({ name: 'Error', message: 'an error occurred' });
703
+ * // Returns: false
704
+ * ```
705
+ *
706
+ * This method relies on `Object.prototype.toString()` behavior. It is
707
+ * possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`.
708
+ *
709
+ * ```js
710
+ * import util from 'node:util';
711
+ * const obj = { name: 'Error', message: 'an error occurred' };
712
+ *
713
+ * util.isError(obj);
714
+ * // Returns: false
715
+ * obj[Symbol.toStringTag] = 'Error';
716
+ * util.isError(obj);
717
+ * // Returns: true
718
+ * ```
719
+ * @since v0.6.0
720
+ * @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead.
721
+ */
722
+ export function isError(object: unknown): object is Error;
670
723
  /**
671
724
  * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and
672
725
  * `extends` keywords to get language level inheritance support. Also note
@@ -729,28 +782,6 @@ declare module "node:util" {
729
782
  * @legacy Use ES2015 class syntax and `extends` keyword instead.
730
783
  */
731
784
  export function inherits(constructor: unknown, superConstructor: unknown): void;
732
- /**
733
- * The `util.convertProcessSignalToExitCode()` method converts a signal name to its
734
- * corresponding POSIX exit code. Following the POSIX standard, the exit code
735
- * for a process terminated by a signal is calculated as `128 + signal number`.
736
- *
737
- * If `signal` is not a valid signal name, then an error will be thrown. See
738
- * [`signal(7)`](https://man7.org/linux/man-pages/man7/signal.7.html) for a list of valid signals.
739
- *
740
- * ```js
741
- * import { convertProcessSignalToExitCode } from 'node:util';
742
- *
743
- * console.log(convertProcessSignalToExitCode('SIGTERM')); // 143 (128 + 15)
744
- * console.log(convertProcessSignalToExitCode('SIGKILL')); // 137 (128 + 9)
745
- * ```
746
- *
747
- * This is particularly useful when working with processes to determine
748
- * the exit code based on the signal that terminated the process.
749
- * @since v25.4.0
750
- * @param signal A signal name (e.g. `'SIGTERM'`)
751
- * @returns The exit code corresponding to `signal`
752
- */
753
- export function convertProcessSignalToExitCode(signal: NodeJS.Signals): number;
754
785
  export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
755
786
  export interface DebugLogger extends DebugLoggerFunction {
756
787
  /**
@@ -805,7 +836,7 @@ declare module "node:util" {
805
836
  *
806
837
  * ```js
807
838
  * import { debuglog } from 'node:util';
808
- * const log = debuglog('foo-bar');
839
+ * const log = debuglog('foo');
809
840
  *
810
841
  * log('hi there, it\'s foo-bar [%d]', 2333);
811
842
  * ```
@@ -839,15 +870,217 @@ declare module "node:util" {
839
870
  */
840
871
  export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
841
872
  export { debuglog as debug };
842
- export interface DeprecateOptions {
843
- /**
844
- * When false do not change the prototype of object
845
- * while emitting the deprecation warning.
846
- * @since v25.2.0
847
- * @default true
848
- */
849
- modifyPrototype?: boolean | undefined;
850
- }
873
+ /**
874
+ * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`.
875
+ *
876
+ * ```js
877
+ * import util from 'node:util';
878
+ *
879
+ * util.isBoolean(1);
880
+ * // Returns: false
881
+ * util.isBoolean(0);
882
+ * // Returns: false
883
+ * util.isBoolean(false);
884
+ * // Returns: true
885
+ * ```
886
+ * @since v0.11.5
887
+ * @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead.
888
+ */
889
+ export function isBoolean(object: unknown): object is boolean;
890
+ /**
891
+ * Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`.
892
+ *
893
+ * ```js
894
+ * import util from 'node:util';
895
+ *
896
+ * util.isBuffer({ length: 0 });
897
+ * // Returns: false
898
+ * util.isBuffer([]);
899
+ * // Returns: false
900
+ * util.isBuffer(Buffer.from('hello world'));
901
+ * // Returns: true
902
+ * ```
903
+ * @since v0.11.5
904
+ * @deprecated Since v4.0.0 - Use `isBuffer` instead.
905
+ */
906
+ export function isBuffer(object: unknown): object is Buffer;
907
+ /**
908
+ * Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`.
909
+ *
910
+ * ```js
911
+ * import util from 'node:util';
912
+ *
913
+ * function Foo() {}
914
+ * const Bar = () => {};
915
+ *
916
+ * util.isFunction({});
917
+ * // Returns: false
918
+ * util.isFunction(Foo);
919
+ * // Returns: true
920
+ * util.isFunction(Bar);
921
+ * // Returns: true
922
+ * ```
923
+ * @since v0.11.5
924
+ * @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead.
925
+ */
926
+ export function isFunction(object: unknown): boolean;
927
+ /**
928
+ * Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`.
929
+ *
930
+ * ```js
931
+ * import util from 'node:util';
932
+ *
933
+ * util.isNull(0);
934
+ * // Returns: false
935
+ * util.isNull(undefined);
936
+ * // Returns: false
937
+ * util.isNull(null);
938
+ * // Returns: true
939
+ * ```
940
+ * @since v0.11.5
941
+ * @deprecated Since v4.0.0 - Use `value === null` instead.
942
+ */
943
+ export function isNull(object: unknown): object is null;
944
+ /**
945
+ * Returns `true` if the given `object` is `null` or `undefined`. Otherwise,
946
+ * returns `false`.
947
+ *
948
+ * ```js
949
+ * import util from 'node:util';
950
+ *
951
+ * util.isNullOrUndefined(0);
952
+ * // Returns: false
953
+ * util.isNullOrUndefined(undefined);
954
+ * // Returns: true
955
+ * util.isNullOrUndefined(null);
956
+ * // Returns: true
957
+ * ```
958
+ * @since v0.11.5
959
+ * @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead.
960
+ */
961
+ export function isNullOrUndefined(object: unknown): object is null | undefined;
962
+ /**
963
+ * Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`.
964
+ *
965
+ * ```js
966
+ * import util from 'node:util';
967
+ *
968
+ * util.isNumber(false);
969
+ * // Returns: false
970
+ * util.isNumber(Infinity);
971
+ * // Returns: true
972
+ * util.isNumber(0);
973
+ * // Returns: true
974
+ * util.isNumber(NaN);
975
+ * // Returns: true
976
+ * ```
977
+ * @since v0.11.5
978
+ * @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead.
979
+ */
980
+ export function isNumber(object: unknown): object is number;
981
+ /**
982
+ * Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript).
983
+ * Otherwise, returns `false`.
984
+ *
985
+ * ```js
986
+ * import util from 'node:util';
987
+ *
988
+ * util.isObject(5);
989
+ * // Returns: false
990
+ * util.isObject(null);
991
+ * // Returns: false
992
+ * util.isObject({});
993
+ * // Returns: true
994
+ * util.isObject(() => {});
995
+ * // Returns: false
996
+ * ```
997
+ * @since v0.11.5
998
+ * @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead.
999
+ */
1000
+ export function isObject(object: unknown): boolean;
1001
+ /**
1002
+ * Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`.
1003
+ *
1004
+ * ```js
1005
+ * import util from 'node:util';
1006
+ *
1007
+ * util.isPrimitive(5);
1008
+ * // Returns: true
1009
+ * util.isPrimitive('foo');
1010
+ * // Returns: true
1011
+ * util.isPrimitive(false);
1012
+ * // Returns: true
1013
+ * util.isPrimitive(null);
1014
+ * // Returns: true
1015
+ * util.isPrimitive(undefined);
1016
+ * // Returns: true
1017
+ * util.isPrimitive({});
1018
+ * // Returns: false
1019
+ * util.isPrimitive(() => {});
1020
+ * // Returns: false
1021
+ * util.isPrimitive(/^$/);
1022
+ * // Returns: false
1023
+ * util.isPrimitive(new Date());
1024
+ * // Returns: false
1025
+ * ```
1026
+ * @since v0.11.5
1027
+ * @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead.
1028
+ */
1029
+ export function isPrimitive(object: unknown): boolean;
1030
+ /**
1031
+ * Returns `true` if the given `object` is a `string`. Otherwise, returns `false`.
1032
+ *
1033
+ * ```js
1034
+ * import util from 'node:util';
1035
+ *
1036
+ * util.isString('');
1037
+ * // Returns: true
1038
+ * util.isString('foo');
1039
+ * // Returns: true
1040
+ * util.isString(String('foo'));
1041
+ * // Returns: true
1042
+ * util.isString(5);
1043
+ * // Returns: false
1044
+ * ```
1045
+ * @since v0.11.5
1046
+ * @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead.
1047
+ */
1048
+ export function isString(object: unknown): object is string;
1049
+ /**
1050
+ * Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`.
1051
+ *
1052
+ * ```js
1053
+ * import util from 'node:util';
1054
+ *
1055
+ * util.isSymbol(5);
1056
+ * // Returns: false
1057
+ * util.isSymbol('foo');
1058
+ * // Returns: false
1059
+ * util.isSymbol(Symbol('foo'));
1060
+ * // Returns: true
1061
+ * ```
1062
+ * @since v0.11.5
1063
+ * @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead.
1064
+ */
1065
+ export function isSymbol(object: unknown): object is symbol;
1066
+ /**
1067
+ * Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`.
1068
+ *
1069
+ * ```js
1070
+ * import util from 'node:util';
1071
+ *
1072
+ * const foo = undefined;
1073
+ * util.isUndefined(5);
1074
+ * // Returns: false
1075
+ * util.isUndefined(foo);
1076
+ * // Returns: true
1077
+ * util.isUndefined(null);
1078
+ * // Returns: false
1079
+ * ```
1080
+ * @since v0.11.5
1081
+ * @deprecated Since v4.0.0 - Use `value === undefined` instead.
1082
+ */
1083
+ export function isUndefined(object: unknown): object is undefined;
851
1084
  /**
852
1085
  * The `util.deprecate()` method wraps `fn` (which may be a function or class) in
853
1086
  * such a way that it is marked as deprecated.
@@ -908,16 +1141,7 @@ declare module "node:util" {
908
1141
  * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes.
909
1142
  * @return The deprecated function wrapped to emit a warning.
910
1143
  */
911
- export function deprecate<T extends Function>(fn: T, msg: string, code?: string, options?: DeprecateOptions): T;
912
- export interface IsDeepStrictEqualOptions {
913
- /**
914
- * If `true`, prototype and constructor
915
- * comparison is skipped during deep strict equality check.
916
- * @since v24.9.0
917
- * @default false
918
- */
919
- skipPrototype?: boolean | undefined;
920
- }
1144
+ export function deprecate<T extends Function>(fn: T, msg: string, code?: string): T;
921
1145
  /**
922
1146
  * Returns `true` if there is deep strict equality between `val1` and `val2`.
923
1147
  * Otherwise, returns `false`.
@@ -926,7 +1150,7 @@ declare module "node:util" {
926
1150
  * equality.
927
1151
  * @since v9.0.0
928
1152
  */
929
- export function isDeepStrictEqual(val1: unknown, val2: unknown, options?: IsDeepStrictEqualOptions): boolean;
1153
+ export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
930
1154
  /**
931
1155
  * Returns `str` with any ANSI escape codes removed.
932
1156
  *
@@ -974,8 +1198,6 @@ declare module "node:util" {
974
1198
  * `reason`.
975
1199
  *
976
1200
  * ```js
977
- * import util from 'node:util';
978
- *
979
1201
  * function fn() {
980
1202
  * return Promise.reject(null);
981
1203
  * }
@@ -1103,7 +1325,7 @@ declare module "node:util" {
1103
1325
  * ```
1104
1326
  *
1105
1327
  * If there is an `original[util.promisify.custom]` property present, `promisify`
1106
- * will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-v26.x/api/util.html#custom-promisified-functions).
1328
+ * will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-v22.x/api/util.html#custom-promisified-functions).
1107
1329
  *
1108
1330
  * `promisify()` assumes that `original` is a function taking a callback as its
1109
1331
  * final argument in all cases. If `original` is not a function, `promisify()`
@@ -1194,17 +1416,72 @@ declare module "node:util" {
1194
1416
  * @since v20.12.0
1195
1417
  */
1196
1418
  export function parseEnv(content: string): NodeJS.Dict<string>;
1197
- export interface StyleTextOptions {
1198
- /**
1199
- * When true, `stream` is checked to see if it can handle colors.
1200
- * @default true
1201
- */
1202
- validateStream?: boolean | undefined;
1203
- /**
1204
- * A stream that will be validated if it can be colored.
1205
- * @default process.stdout
1206
- */
1207
- stream?: NodeJS.WritableStream | undefined;
1419
+ // https://nodejs.org/docs/latest/api/util.html#foreground-colors
1420
+ type ForegroundColors =
1421
+ | "black"
1422
+ | "blackBright"
1423
+ | "blue"
1424
+ | "blueBright"
1425
+ | "cyan"
1426
+ | "cyanBright"
1427
+ | "gray"
1428
+ | "green"
1429
+ | "greenBright"
1430
+ | "grey"
1431
+ | "magenta"
1432
+ | "magentaBright"
1433
+ | "red"
1434
+ | "redBright"
1435
+ | "white"
1436
+ | "whiteBright"
1437
+ | "yellow"
1438
+ | "yellowBright";
1439
+ // https://nodejs.org/docs/latest/api/util.html#background-colors
1440
+ type BackgroundColors =
1441
+ | "bgBlack"
1442
+ | "bgBlackBright"
1443
+ | "bgBlue"
1444
+ | "bgBlueBright"
1445
+ | "bgCyan"
1446
+ | "bgCyanBright"
1447
+ | "bgGray"
1448
+ | "bgGreen"
1449
+ | "bgGreenBright"
1450
+ | "bgGrey"
1451
+ | "bgMagenta"
1452
+ | "bgMagentaBright"
1453
+ | "bgRed"
1454
+ | "bgRedBright"
1455
+ | "bgWhite"
1456
+ | "bgWhiteBright"
1457
+ | "bgYellow"
1458
+ | "bgYellowBright";
1459
+ // https://nodejs.org/docs/latest/api/util.html#modifiers
1460
+ type Modifiers =
1461
+ | "blink"
1462
+ | "bold"
1463
+ | "dim"
1464
+ | "doubleunderline"
1465
+ | "framed"
1466
+ | "hidden"
1467
+ | "inverse"
1468
+ | "italic"
1469
+ | "none"
1470
+ | "overlined"
1471
+ | "reset"
1472
+ | "strikethrough"
1473
+ | "underline";
1474
+ export interface StyleTextOptions {
1475
+ /**
1476
+ * When true, `stream` is checked to see if it can handle colors.
1477
+ * @default true
1478
+ */
1479
+ validateStream?: boolean | undefined;
1480
+ /**
1481
+ * A stream that will be validated if it can be colored.
1482
+ * @default process.stdout
1483
+ */
1484
+ stream?: NodeJS.WritableStream | undefined;
1208
1485
  }
1209
1486
  /**
1210
1487
  * This function returns a formatted text considering the `format` passed
@@ -1248,31 +1525,142 @@ declare module "node:util" {
1248
1525
  *
1249
1526
  * The special format value `none` applies no additional styling to the text.
1250
1527
  *
1251
- * In addition to predefined color names, `util.styleText()` supports hex color
1252
- * strings using ANSI TrueColor (24-bit) escape sequences. Hex colors can be
1253
- * specified in either 3-digit (`#RGB`) or 6-digit (`#RRGGBB`) format:
1254
- *
1255
- * ```js
1256
- * import { styleText } from 'node:util';
1257
- *
1258
- * // 6-digit hex color
1259
- * console.log(styleText('#ff5733', 'Orange text'));
1260
- *
1261
- * // 3-digit hex color (shorthand)
1262
- * console.log(styleText('#f00', 'Red text'));
1263
- * ```
1264
- *
1265
- * The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v26.x/api/util.html#modifiers).
1266
- * @param format A text format or an Array of text formats defined in `util.inspect.colors`, or a hex color in `#RGB`
1267
- * or `#RRGGBB` form.
1528
+ * The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v22.x/api/util.html#modifiers).
1529
+ * @param format A text format or an Array of text formats defined in `util.inspect.colors`.
1268
1530
  * @param text The text to to be formatted.
1269
1531
  * @since v20.12.0
1270
1532
  */
1271
1533
  export function styleText(
1272
- format: InspectColor | readonly InspectColor[] | `#${string}`,
1534
+ format:
1535
+ | ForegroundColors
1536
+ | BackgroundColors
1537
+ | Modifiers
1538
+ | Array<ForegroundColors | BackgroundColors | Modifiers>,
1273
1539
  text: string,
1274
1540
  options?: StyleTextOptions,
1275
1541
  ): string;
1542
+ /**
1543
+ * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API.
1544
+ *
1545
+ * ```js
1546
+ * const decoder = new TextDecoder();
1547
+ * const u8arr = new Uint8Array([72, 101, 108, 108, 111]);
1548
+ * console.log(decoder.decode(u8arr)); // Hello
1549
+ * ```
1550
+ * @since v8.3.0
1551
+ */
1552
+ export class TextDecoder {
1553
+ /**
1554
+ * The encoding supported by the `TextDecoder` instance.
1555
+ */
1556
+ readonly encoding: string;
1557
+ /**
1558
+ * The value will be `true` if decoding errors result in a `TypeError` being
1559
+ * thrown.
1560
+ */
1561
+ readonly fatal: boolean;
1562
+ /**
1563
+ * The value will be `true` if the decoding result will include the byte order
1564
+ * mark.
1565
+ */
1566
+ readonly ignoreBOM: boolean;
1567
+ constructor(
1568
+ encoding?: string,
1569
+ options?: {
1570
+ fatal?: boolean | undefined;
1571
+ ignoreBOM?: boolean | undefined;
1572
+ },
1573
+ );
1574
+ /**
1575
+ * Decodes the `input` and returns a string. If `options.stream` is `true`, any
1576
+ * incomplete byte sequences occurring at the end of the `input` are buffered
1577
+ * internally and emitted after the next call to `textDecoder.decode()`.
1578
+ *
1579
+ * If `textDecoder.fatal` is `true`, decoding errors that occur will result in a `TypeError` being thrown.
1580
+ * @param input An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data.
1581
+ */
1582
+ decode(
1583
+ input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
1584
+ options?: {
1585
+ stream?: boolean | undefined;
1586
+ },
1587
+ ): string;
1588
+ }
1589
+ export interface EncodeIntoResult {
1590
+ /**
1591
+ * The read Unicode code units of input.
1592
+ */
1593
+ read: number;
1594
+ /**
1595
+ * The written UTF-8 bytes of output.
1596
+ */
1597
+ written: number;
1598
+ }
1599
+ export { types };
1600
+
1601
+ //// TextEncoder/Decoder
1602
+ /**
1603
+ * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All
1604
+ * instances of `TextEncoder` only support UTF-8 encoding.
1605
+ *
1606
+ * ```js
1607
+ * const encoder = new TextEncoder();
1608
+ * const uint8array = encoder.encode('this is some data');
1609
+ * ```
1610
+ *
1611
+ * The `TextEncoder` class is also available on the global object.
1612
+ * @since v8.3.0
1613
+ */
1614
+ export class TextEncoder {
1615
+ /**
1616
+ * The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`.
1617
+ */
1618
+ readonly encoding: string;
1619
+ /**
1620
+ * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the
1621
+ * encoded bytes.
1622
+ * @param [input='an empty string'] The text to encode.
1623
+ */
1624
+ encode(input?: string): NodeJS.NonSharedUint8Array;
1625
+ /**
1626
+ * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object
1627
+ * containing the read Unicode code units and written UTF-8 bytes.
1628
+ *
1629
+ * ```js
1630
+ * const encoder = new TextEncoder();
1631
+ * const src = 'this is some data';
1632
+ * const dest = new Uint8Array(10);
1633
+ * const { read, written } = encoder.encodeInto(src, dest);
1634
+ * ```
1635
+ * @param src The text to encode.
1636
+ * @param dest The array to hold the encode result.
1637
+ */
1638
+ encodeInto(src: string, dest: Uint8Array): EncodeIntoResult;
1639
+ }
1640
+ import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util";
1641
+ global {
1642
+ /**
1643
+ * `TextDecoder` class is a global reference for `import { TextDecoder } from 'node:util'`
1644
+ * https://nodejs.org/api/globals.html#textdecoder
1645
+ * @since v11.0.0
1646
+ */
1647
+ var TextDecoder: typeof globalThis extends {
1648
+ onmessage: any;
1649
+ TextDecoder: infer TextDecoder;
1650
+ } ? TextDecoder
1651
+ : typeof _TextDecoder;
1652
+ /**
1653
+ * `TextEncoder` class is a global reference for `import { TextEncoder } from 'node:util'`
1654
+ * https://nodejs.org/api/globals.html#textencoder
1655
+ * @since v11.0.0
1656
+ */
1657
+ var TextEncoder: typeof globalThis extends {
1658
+ onmessage: any;
1659
+ TextEncoder: infer TextEncoder;
1660
+ } ? TextEncoder
1661
+ : typeof _TextEncoder;
1662
+ }
1663
+
1276
1664
  //// parseArgs
1277
1665
  /**
1278
1666
  * Provides a higher level API for command-line argument parsing than interacting
@@ -1303,10 +1691,12 @@ declare module "node:util" {
1303
1691
  * @return The parsed command line arguments:
1304
1692
  */
1305
1693
  export function parseArgs<T extends ParseArgsConfig>(config?: T): ParsedResults<T>;
1694
+
1306
1695
  /**
1307
1696
  * Type of argument used in {@link parseArgs}.
1308
1697
  */
1309
1698
  export type ParseArgsOptionsType = "boolean" | "string";
1699
+
1310
1700
  export interface ParseArgsOptionDescriptor {
1311
1701
  /**
1312
1702
  * Type of argument.
@@ -1381,19 +1771,23 @@ declare module "node:util" {
1381
1771
  type IfDefaultsTrue<T, IfTrue, IfFalse> = T extends true ? IfTrue
1382
1772
  : T extends false ? IfFalse
1383
1773
  : IfTrue;
1774
+
1384
1775
  // we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false`
1385
1776
  type IfDefaultsFalse<T, IfTrue, IfFalse> = T extends false ? IfFalse
1386
1777
  : T extends true ? IfTrue
1387
1778
  : IfFalse;
1779
+
1388
1780
  type ExtractOptionValue<T extends ParseArgsConfig, O extends ParseArgsOptionDescriptor> = IfDefaultsTrue<
1389
1781
  T["strict"],
1390
1782
  O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean,
1391
1783
  string | boolean
1392
1784
  >;
1785
+
1393
1786
  type ApplyOptionalModifiers<O extends ParseArgsOptionsConfig, V extends Record<keyof O, unknown>> = (
1394
1787
  & { -readonly [LongOption in keyof O]?: V[LongOption] }
1395
1788
  & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] }
1396
1789
  ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object
1790
+
1397
1791
  type ParsedValues<T extends ParseArgsConfig> =
1398
1792
  & IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
1399
1793
  & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers<
@@ -1407,11 +1801,13 @@ declare module "node:util" {
1407
1801
  }
1408
1802
  >
1409
1803
  : {});
1804
+
1410
1805
  type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<
1411
1806
  T["strict"],
1412
1807
  IfDefaultsFalse<T["allowPositionals"], string[], []>,
1413
1808
  IfDefaultsTrue<T["allowPositionals"], string[], []>
1414
1809
  >;
1810
+
1415
1811
  type PreciseTokenForOptions<
1416
1812
  K extends string,
1417
1813
  O extends ParseArgsOptionDescriptor,
@@ -1432,6 +1828,7 @@ declare module "node:util" {
1432
1828
  inlineValue: undefined;
1433
1829
  }
1434
1830
  : OptionToken & { name: K };
1831
+
1435
1832
  type TokenForOptions<
1436
1833
  T extends ParseArgsConfig,
1437
1834
  K extends keyof T["options"] = keyof T["options"],
@@ -1439,15 +1836,19 @@ declare module "node:util" {
1439
1836
  ? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions<K & string, T["options"][K]>
1440
1837
  : OptionToken
1441
1838
  : never;
1839
+
1442
1840
  type ParsedOptionToken<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], TokenForOptions<T>, OptionToken>;
1841
+
1443
1842
  type ParsedPositionalToken<T extends ParseArgsConfig> = IfDefaultsTrue<
1444
1843
  T["strict"],
1445
1844
  IfDefaultsFalse<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>,
1446
1845
  IfDefaultsTrue<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>
1447
1846
  >;
1847
+
1448
1848
  type ParsedTokens<T extends ParseArgsConfig> = Array<
1449
1849
  ParsedOptionToken<T> | ParsedPositionalToken<T> | { kind: "option-terminator"; index: number }
1450
1850
  >;
1851
+
1451
1852
  type PreciseParsedResults<T extends ParseArgsConfig> = IfDefaultsFalse<
1452
1853
  T["tokens"],
1453
1854
  {
@@ -1460,6 +1861,7 @@ declare module "node:util" {
1460
1861
  positionals: ParsedPositionals<T>;
1461
1862
  }
1462
1863
  >;
1864
+
1463
1865
  type OptionToken =
1464
1866
  | { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean }
1465
1867
  | {
@@ -1470,10 +1872,12 @@ declare module "node:util" {
1470
1872
  value: undefined;
1471
1873
  inlineValue: undefined;
1472
1874
  };
1875
+
1473
1876
  type Token =
1474
1877
  | OptionToken
1475
1878
  | { kind: "positional"; index: number; value: string }
1476
1879
  | { kind: "option-terminator"; index: number };
1880
+
1477
1881
  // If ParseArgsConfig extends T, then the user passed config constructed elsewhere.
1478
1882
  // So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above.
1479
1883
  type ParsedResults<T extends ParseArgsConfig> = ParseArgsConfig extends T ? {
@@ -1484,6 +1888,7 @@ declare module "node:util" {
1484
1888
  tokens?: Token[];
1485
1889
  }
1486
1890
  : PreciseParsedResults<T>;
1891
+
1487
1892
  /**
1488
1893
  * An implementation of [the MIMEType class](https://bmeck.github.io/node-proposal-mime-api/).
1489
1894
  *
@@ -1505,6 +1910,7 @@ declare module "node:util" {
1505
1910
  * @param input The input MIME to parse.
1506
1911
  */
1507
1912
  constructor(input: string | { toString: () => string });
1913
+
1508
1914
  /**
1509
1915
  * Gets and sets the type portion of the MIME.
1510
1916
  *
@@ -1635,43 +2041,566 @@ declare module "node:util" {
1635
2041
  */
1636
2042
  [Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>;
1637
2043
  }
1638
- // #region web types
1639
- export interface TextDecodeOptions {
1640
- stream?: boolean;
1641
- }
1642
- export interface TextDecoderCommon {
1643
- readonly encoding: string;
1644
- readonly fatal: boolean;
1645
- readonly ignoreBOM: boolean;
1646
- }
1647
- export interface TextDecoderOptions {
1648
- fatal?: boolean;
1649
- ignoreBOM?: boolean;
1650
- }
1651
- export interface TextEncoderCommon {
1652
- readonly encoding: string;
1653
- }
1654
- export interface TextEncoderEncodeIntoResult {
1655
- read: number;
1656
- written: number;
1657
- }
1658
- export interface TextDecoder extends TextDecoderCommon {
1659
- decode(input?: NodeJS.AllowSharedBufferSource, options?: TextDecodeOptions): string;
1660
- }
1661
- export var TextDecoder: {
1662
- prototype: TextDecoder;
1663
- new(label?: string, options?: TextDecoderOptions): TextDecoder;
1664
- };
1665
- export interface TextEncoder extends TextEncoderCommon {
1666
- encode(input?: string): NodeJS.NonSharedUint8Array;
1667
- encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
1668
- }
1669
- export var TextEncoder: {
1670
- prototype: TextEncoder;
1671
- new(): TextEncoder;
1672
- };
1673
- // #endregion
1674
2044
  }
1675
- declare module "util" {
1676
- export * from "node:util";
2045
+ declare module "util/types" {
2046
+ import { KeyObject, webcrypto } from "node:crypto";
2047
+ /**
2048
+ * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or
2049
+ * [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
2050
+ *
2051
+ * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`.
2052
+ *
2053
+ * ```js
2054
+ * util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true
2055
+ * util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true
2056
+ * ```
2057
+ * @since v10.0.0
2058
+ */
2059
+ function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike;
2060
+ /**
2061
+ * Returns `true` if the value is an `arguments` object.
2062
+ *
2063
+ * ```js
2064
+ * function foo() {
2065
+ * util.types.isArgumentsObject(arguments); // Returns true
2066
+ * }
2067
+ * ```
2068
+ * @since v10.0.0
2069
+ */
2070
+ function isArgumentsObject(object: unknown): object is IArguments;
2071
+ /**
2072
+ * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance.
2073
+ * This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is
2074
+ * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that.
2075
+ *
2076
+ * ```js
2077
+ * util.types.isArrayBuffer(new ArrayBuffer()); // Returns true
2078
+ * util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false
2079
+ * ```
2080
+ * @since v10.0.0
2081
+ */
2082
+ function isArrayBuffer(object: unknown): object is ArrayBuffer;
2083
+ /**
2084
+ * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed
2085
+ * array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to
2086
+ * [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
2087
+ *
2088
+ * ```js
2089
+ * util.types.isArrayBufferView(new Int8Array()); // true
2090
+ * util.types.isArrayBufferView(Buffer.from('hello world')); // true
2091
+ * util.types.isArrayBufferView(new DataView(new ArrayBuffer(16))); // true
2092
+ * util.types.isArrayBufferView(new ArrayBuffer()); // false
2093
+ * ```
2094
+ * @since v10.0.0
2095
+ */
2096
+ function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView;
2097
+ /**
2098
+ * Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function).
2099
+ * This only reports back what the JavaScript engine is seeing;
2100
+ * in particular, the return value may not match the original source code if
2101
+ * a transpilation tool was used.
2102
+ *
2103
+ * ```js
2104
+ * util.types.isAsyncFunction(function foo() {}); // Returns false
2105
+ * util.types.isAsyncFunction(async function foo() {}); // Returns true
2106
+ * ```
2107
+ * @since v10.0.0
2108
+ */
2109
+ function isAsyncFunction(object: unknown): boolean;
2110
+ /**
2111
+ * Returns `true` if the value is a `BigInt64Array` instance.
2112
+ *
2113
+ * ```js
2114
+ * util.types.isBigInt64Array(new BigInt64Array()); // Returns true
2115
+ * util.types.isBigInt64Array(new BigUint64Array()); // Returns false
2116
+ * ```
2117
+ * @since v10.0.0
2118
+ */
2119
+ function isBigInt64Array(value: unknown): value is BigInt64Array;
2120
+ /**
2121
+ * Returns `true` if the value is a BigInt object, e.g. created
2122
+ * by `Object(BigInt(123))`.
2123
+ *
2124
+ * ```js
2125
+ * util.types.isBigIntObject(Object(BigInt(123))); // Returns true
2126
+ * util.types.isBigIntObject(BigInt(123)); // Returns false
2127
+ * util.types.isBigIntObject(123); // Returns false
2128
+ * ```
2129
+ * @since v10.4.0
2130
+ */
2131
+ function isBigIntObject(object: unknown): object is BigInt;
2132
+ /**
2133
+ * Returns `true` if the value is a `BigUint64Array` instance.
2134
+ *
2135
+ * ```js
2136
+ * util.types.isBigUint64Array(new BigInt64Array()); // Returns false
2137
+ * util.types.isBigUint64Array(new BigUint64Array()); // Returns true
2138
+ * ```
2139
+ * @since v10.0.0
2140
+ */
2141
+ function isBigUint64Array(value: unknown): value is BigUint64Array;
2142
+ /**
2143
+ * Returns `true` if the value is a boolean object, e.g. created
2144
+ * by `new Boolean()`.
2145
+ *
2146
+ * ```js
2147
+ * util.types.isBooleanObject(false); // Returns false
2148
+ * util.types.isBooleanObject(true); // Returns false
2149
+ * util.types.isBooleanObject(new Boolean(false)); // Returns true
2150
+ * util.types.isBooleanObject(new Boolean(true)); // Returns true
2151
+ * util.types.isBooleanObject(Boolean(false)); // Returns false
2152
+ * util.types.isBooleanObject(Boolean(true)); // Returns false
2153
+ * ```
2154
+ * @since v10.0.0
2155
+ */
2156
+ function isBooleanObject(object: unknown): object is Boolean;
2157
+ /**
2158
+ * Returns `true` if the value is any boxed primitive object, e.g. created
2159
+ * by `new Boolean()`, `new String()` or `Object(Symbol())`.
2160
+ *
2161
+ * For example:
2162
+ *
2163
+ * ```js
2164
+ * util.types.isBoxedPrimitive(false); // Returns false
2165
+ * util.types.isBoxedPrimitive(new Boolean(false)); // Returns true
2166
+ * util.types.isBoxedPrimitive(Symbol('foo')); // Returns false
2167
+ * util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true
2168
+ * util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true
2169
+ * ```
2170
+ * @since v10.11.0
2171
+ */
2172
+ function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol;
2173
+ /**
2174
+ * Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance.
2175
+ *
2176
+ * ```js
2177
+ * const ab = new ArrayBuffer(20);
2178
+ * util.types.isDataView(new DataView(ab)); // Returns true
2179
+ * util.types.isDataView(new Float64Array()); // Returns false
2180
+ * ```
2181
+ *
2182
+ * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
2183
+ * @since v10.0.0
2184
+ */
2185
+ function isDataView(object: unknown): object is DataView;
2186
+ /**
2187
+ * Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
2188
+ *
2189
+ * ```js
2190
+ * util.types.isDate(new Date()); // Returns true
2191
+ * ```
2192
+ * @since v10.0.0
2193
+ */
2194
+ function isDate(object: unknown): object is Date;
2195
+ /**
2196
+ * Returns `true` if the value is a native `External` value.
2197
+ *
2198
+ * A native `External` value is a special type of object that contains a
2199
+ * raw C++ pointer (`void*`) for access from native code, and has no other
2200
+ * properties. Such objects are created either by Node.js internals or native
2201
+ * addons. In JavaScript, they are
2202
+ * [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a
2203
+ * `null` prototype.
2204
+ *
2205
+ * ```c
2206
+ * #include <js_native_api.h>
2207
+ * #include <stdlib.h>
2208
+ * napi_value result;
2209
+ * static napi_value MyNapi(napi_env env, napi_callback_info info) {
2210
+ * int* raw = (int*) malloc(1024);
2211
+ * napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result);
2212
+ * if (status != napi_ok) {
2213
+ * napi_throw_error(env, NULL, "napi_create_external failed");
2214
+ * return NULL;
2215
+ * }
2216
+ * return result;
2217
+ * }
2218
+ * ...
2219
+ * DECLARE_NAPI_PROPERTY("myNapi", MyNapi)
2220
+ * ...
2221
+ * ```
2222
+ *
2223
+ * ```js
2224
+ * import native from 'napi_addon.node';
2225
+ * import { types } from 'node:util';
2226
+ *
2227
+ * const data = native.myNapi();
2228
+ * types.isExternal(data); // returns true
2229
+ * types.isExternal(0); // returns false
2230
+ * types.isExternal(new String('foo')); // returns false
2231
+ * ```
2232
+ *
2233
+ * For further information on `napi_create_external`, refer to
2234
+ * [`napi_create_external()`](https://nodejs.org/docs/latest-v22.x/api/n-api.html#napi_create_external).
2235
+ * @since v10.0.0
2236
+ */
2237
+ function isExternal(object: unknown): boolean;
2238
+ /**
2239
+ * Returns `true` if the value is a built-in `Float16Array` instance.
2240
+ *
2241
+ * ```js
2242
+ * util.types.isFloat16Array(new ArrayBuffer()); // Returns false
2243
+ * util.types.isFloat16Array(new Float16Array()); // Returns true
2244
+ * util.types.isFloat16Array(new Float32Array()); // Returns false
2245
+ * ```
2246
+ * @since v22.16.0
2247
+ */
2248
+ // This does NOT return a type predicate in v22.x.
2249
+ // The Float16Array feature does not yet exist in this version of Node.js.
2250
+ function isFloat16Array(object: unknown): boolean;
2251
+ /**
2252
+ * Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance.
2253
+ *
2254
+ * ```js
2255
+ * util.types.isFloat32Array(new ArrayBuffer()); // Returns false
2256
+ * util.types.isFloat32Array(new Float32Array()); // Returns true
2257
+ * util.types.isFloat32Array(new Float64Array()); // Returns false
2258
+ * ```
2259
+ * @since v10.0.0
2260
+ */
2261
+ function isFloat32Array(object: unknown): object is Float32Array;
2262
+ /**
2263
+ * Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance.
2264
+ *
2265
+ * ```js
2266
+ * util.types.isFloat64Array(new ArrayBuffer()); // Returns false
2267
+ * util.types.isFloat64Array(new Uint8Array()); // Returns false
2268
+ * util.types.isFloat64Array(new Float64Array()); // Returns true
2269
+ * ```
2270
+ * @since v10.0.0
2271
+ */
2272
+ function isFloat64Array(object: unknown): object is Float64Array;
2273
+ /**
2274
+ * Returns `true` if the value is a generator function.
2275
+ * This only reports back what the JavaScript engine is seeing;
2276
+ * in particular, the return value may not match the original source code if
2277
+ * a transpilation tool was used.
2278
+ *
2279
+ * ```js
2280
+ * util.types.isGeneratorFunction(function foo() {}); // Returns false
2281
+ * util.types.isGeneratorFunction(function* foo() {}); // Returns true
2282
+ * ```
2283
+ * @since v10.0.0
2284
+ */
2285
+ function isGeneratorFunction(object: unknown): object is GeneratorFunction;
2286
+ /**
2287
+ * Returns `true` if the value is a generator object as returned from a
2288
+ * built-in generator function.
2289
+ * This only reports back what the JavaScript engine is seeing;
2290
+ * in particular, the return value may not match the original source code if
2291
+ * a transpilation tool was used.
2292
+ *
2293
+ * ```js
2294
+ * function* foo() {}
2295
+ * const generator = foo();
2296
+ * util.types.isGeneratorObject(generator); // Returns true
2297
+ * ```
2298
+ * @since v10.0.0
2299
+ */
2300
+ function isGeneratorObject(object: unknown): object is Generator;
2301
+ /**
2302
+ * Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance.
2303
+ *
2304
+ * ```js
2305
+ * util.types.isInt8Array(new ArrayBuffer()); // Returns false
2306
+ * util.types.isInt8Array(new Int8Array()); // Returns true
2307
+ * util.types.isInt8Array(new Float64Array()); // Returns false
2308
+ * ```
2309
+ * @since v10.0.0
2310
+ */
2311
+ function isInt8Array(object: unknown): object is Int8Array;
2312
+ /**
2313
+ * Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance.
2314
+ *
2315
+ * ```js
2316
+ * util.types.isInt16Array(new ArrayBuffer()); // Returns false
2317
+ * util.types.isInt16Array(new Int16Array()); // Returns true
2318
+ * util.types.isInt16Array(new Float64Array()); // Returns false
2319
+ * ```
2320
+ * @since v10.0.0
2321
+ */
2322
+ function isInt16Array(object: unknown): object is Int16Array;
2323
+ /**
2324
+ * Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance.
2325
+ *
2326
+ * ```js
2327
+ * util.types.isInt32Array(new ArrayBuffer()); // Returns false
2328
+ * util.types.isInt32Array(new Int32Array()); // Returns true
2329
+ * util.types.isInt32Array(new Float64Array()); // Returns false
2330
+ * ```
2331
+ * @since v10.0.0
2332
+ */
2333
+ function isInt32Array(object: unknown): object is Int32Array;
2334
+ /**
2335
+ * Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
2336
+ *
2337
+ * ```js
2338
+ * util.types.isMap(new Map()); // Returns true
2339
+ * ```
2340
+ * @since v10.0.0
2341
+ */
2342
+ function isMap<T>(
2343
+ object: T | {},
2344
+ ): object is T extends ReadonlyMap<any, any> ? (unknown extends T ? never : ReadonlyMap<any, any>)
2345
+ : Map<unknown, unknown>;
2346
+ /**
2347
+ * Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
2348
+ *
2349
+ * ```js
2350
+ * const map = new Map();
2351
+ * util.types.isMapIterator(map.keys()); // Returns true
2352
+ * util.types.isMapIterator(map.values()); // Returns true
2353
+ * util.types.isMapIterator(map.entries()); // Returns true
2354
+ * util.types.isMapIterator(map[Symbol.iterator]()); // Returns true
2355
+ * ```
2356
+ * @since v10.0.0
2357
+ */
2358
+ function isMapIterator(object: unknown): boolean;
2359
+ /**
2360
+ * Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects).
2361
+ *
2362
+ * ```js
2363
+ * import * as ns from './a.js';
2364
+ *
2365
+ * util.types.isModuleNamespaceObject(ns); // Returns true
2366
+ * ```
2367
+ * @since v10.0.0
2368
+ */
2369
+ function isModuleNamespaceObject(value: unknown): boolean;
2370
+ /**
2371
+ * Returns `true` if the value was returned by the constructor of a
2372
+ * [built-in `Error` type](https://tc39.es/ecma262/#sec-error-objects).
2373
+ *
2374
+ * ```js
2375
+ * console.log(util.types.isNativeError(new Error())); // true
2376
+ * console.log(util.types.isNativeError(new TypeError())); // true
2377
+ * console.log(util.types.isNativeError(new RangeError())); // true
2378
+ * ```
2379
+ *
2380
+ * Subclasses of the native error types are also native errors:
2381
+ *
2382
+ * ```js
2383
+ * class MyError extends Error {}
2384
+ * console.log(util.types.isNativeError(new MyError())); // true
2385
+ * ```
2386
+ *
2387
+ * A value being `instanceof` a native error class is not equivalent to `isNativeError()`
2388
+ * returning `true` for that value. `isNativeError()` returns `true` for errors
2389
+ * which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false`
2390
+ * for these errors:
2391
+ *
2392
+ * ```js
2393
+ * import { createContext, runInContext } from 'node:vm';
2394
+ * import { types } from 'node:util';
2395
+ *
2396
+ * const context = createContext({});
2397
+ * const myError = runInContext('new Error()', context);
2398
+ * console.log(types.isNativeError(myError)); // true
2399
+ * console.log(myError instanceof Error); // false
2400
+ * ```
2401
+ *
2402
+ * Conversely, `isNativeError()` returns `false` for all objects which were not
2403
+ * returned by the constructor of a native error. That includes values
2404
+ * which are `instanceof` native errors:
2405
+ *
2406
+ * ```js
2407
+ * const myError = { __proto__: Error.prototype };
2408
+ * console.log(util.types.isNativeError(myError)); // false
2409
+ * console.log(myError instanceof Error); // true
2410
+ * ```
2411
+ * @since v10.0.0
2412
+ */
2413
+ function isNativeError(object: unknown): object is Error;
2414
+ /**
2415
+ * Returns `true` if the value is a number object, e.g. created
2416
+ * by `new Number()`.
2417
+ *
2418
+ * ```js
2419
+ * util.types.isNumberObject(0); // Returns false
2420
+ * util.types.isNumberObject(new Number(0)); // Returns true
2421
+ * ```
2422
+ * @since v10.0.0
2423
+ */
2424
+ function isNumberObject(object: unknown): object is Number;
2425
+ /**
2426
+ * Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
2427
+ *
2428
+ * ```js
2429
+ * util.types.isPromise(Promise.resolve(42)); // Returns true
2430
+ * ```
2431
+ * @since v10.0.0
2432
+ */
2433
+ function isPromise(object: unknown): object is Promise<unknown>;
2434
+ /**
2435
+ * Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance.
2436
+ *
2437
+ * ```js
2438
+ * const target = {};
2439
+ * const proxy = new Proxy(target, {});
2440
+ * util.types.isProxy(target); // Returns false
2441
+ * util.types.isProxy(proxy); // Returns true
2442
+ * ```
2443
+ * @since v10.0.0
2444
+ */
2445
+ function isProxy(object: unknown): boolean;
2446
+ /**
2447
+ * Returns `true` if the value is a regular expression object.
2448
+ *
2449
+ * ```js
2450
+ * util.types.isRegExp(/abc/); // Returns true
2451
+ * util.types.isRegExp(new RegExp('abc')); // Returns true
2452
+ * ```
2453
+ * @since v10.0.0
2454
+ */
2455
+ function isRegExp(object: unknown): object is RegExp;
2456
+ /**
2457
+ * Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
2458
+ *
2459
+ * ```js
2460
+ * util.types.isSet(new Set()); // Returns true
2461
+ * ```
2462
+ * @since v10.0.0
2463
+ */
2464
+ function isSet<T>(
2465
+ object: T | {},
2466
+ ): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>;
2467
+ /**
2468
+ * Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
2469
+ *
2470
+ * ```js
2471
+ * const set = new Set();
2472
+ * util.types.isSetIterator(set.keys()); // Returns true
2473
+ * util.types.isSetIterator(set.values()); // Returns true
2474
+ * util.types.isSetIterator(set.entries()); // Returns true
2475
+ * util.types.isSetIterator(set[Symbol.iterator]()); // Returns true
2476
+ * ```
2477
+ * @since v10.0.0
2478
+ */
2479
+ function isSetIterator(object: unknown): boolean;
2480
+ /**
2481
+ * Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
2482
+ * This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is
2483
+ * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that.
2484
+ *
2485
+ * ```js
2486
+ * util.types.isSharedArrayBuffer(new ArrayBuffer()); // Returns false
2487
+ * util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true
2488
+ * ```
2489
+ * @since v10.0.0
2490
+ */
2491
+ function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer;
2492
+ /**
2493
+ * Returns `true` if the value is a string object, e.g. created
2494
+ * by `new String()`.
2495
+ *
2496
+ * ```js
2497
+ * util.types.isStringObject('foo'); // Returns false
2498
+ * util.types.isStringObject(new String('foo')); // Returns true
2499
+ * ```
2500
+ * @since v10.0.0
2501
+ */
2502
+ function isStringObject(object: unknown): object is String;
2503
+ /**
2504
+ * Returns `true` if the value is a symbol object, created
2505
+ * by calling `Object()` on a `Symbol` primitive.
2506
+ *
2507
+ * ```js
2508
+ * const symbol = Symbol('foo');
2509
+ * util.types.isSymbolObject(symbol); // Returns false
2510
+ * util.types.isSymbolObject(Object(symbol)); // Returns true
2511
+ * ```
2512
+ * @since v10.0.0
2513
+ */
2514
+ function isSymbolObject(object: unknown): object is Symbol;
2515
+ /**
2516
+ * Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance.
2517
+ *
2518
+ * ```js
2519
+ * util.types.isTypedArray(new ArrayBuffer()); // Returns false
2520
+ * util.types.isTypedArray(new Uint8Array()); // Returns true
2521
+ * util.types.isTypedArray(new Float64Array()); // Returns true
2522
+ * ```
2523
+ *
2524
+ * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
2525
+ * @since v10.0.0
2526
+ */
2527
+ function isTypedArray(object: unknown): object is NodeJS.TypedArray;
2528
+ /**
2529
+ * Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance.
2530
+ *
2531
+ * ```js
2532
+ * util.types.isUint8Array(new ArrayBuffer()); // Returns false
2533
+ * util.types.isUint8Array(new Uint8Array()); // Returns true
2534
+ * util.types.isUint8Array(new Float64Array()); // Returns false
2535
+ * ```
2536
+ * @since v10.0.0
2537
+ */
2538
+ function isUint8Array(object: unknown): object is Uint8Array;
2539
+ /**
2540
+ * Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance.
2541
+ *
2542
+ * ```js
2543
+ * util.types.isUint8ClampedArray(new ArrayBuffer()); // Returns false
2544
+ * util.types.isUint8ClampedArray(new Uint8ClampedArray()); // Returns true
2545
+ * util.types.isUint8ClampedArray(new Float64Array()); // Returns false
2546
+ * ```
2547
+ * @since v10.0.0
2548
+ */
2549
+ function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray;
2550
+ /**
2551
+ * Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance.
2552
+ *
2553
+ * ```js
2554
+ * util.types.isUint16Array(new ArrayBuffer()); // Returns false
2555
+ * util.types.isUint16Array(new Uint16Array()); // Returns true
2556
+ * util.types.isUint16Array(new Float64Array()); // Returns false
2557
+ * ```
2558
+ * @since v10.0.0
2559
+ */
2560
+ function isUint16Array(object: unknown): object is Uint16Array;
2561
+ /**
2562
+ * Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance.
2563
+ *
2564
+ * ```js
2565
+ * util.types.isUint32Array(new ArrayBuffer()); // Returns false
2566
+ * util.types.isUint32Array(new Uint32Array()); // Returns true
2567
+ * util.types.isUint32Array(new Float64Array()); // Returns false
2568
+ * ```
2569
+ * @since v10.0.0
2570
+ */
2571
+ function isUint32Array(object: unknown): object is Uint32Array;
2572
+ /**
2573
+ * Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance.
2574
+ *
2575
+ * ```js
2576
+ * util.types.isWeakMap(new WeakMap()); // Returns true
2577
+ * ```
2578
+ * @since v10.0.0
2579
+ */
2580
+ function isWeakMap(object: unknown): object is WeakMap<object, unknown>;
2581
+ /**
2582
+ * Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance.
2583
+ *
2584
+ * ```js
2585
+ * util.types.isWeakSet(new WeakSet()); // Returns true
2586
+ * ```
2587
+ * @since v10.0.0
2588
+ */
2589
+ function isWeakSet(object: unknown): object is WeakSet<object>;
2590
+ /**
2591
+ * Returns `true` if `value` is a `KeyObject`, `false` otherwise.
2592
+ * @since v16.2.0
2593
+ */
2594
+ function isKeyObject(object: unknown): object is KeyObject;
2595
+ /**
2596
+ * Returns `true` if `value` is a `CryptoKey`, `false` otherwise.
2597
+ * @since v16.2.0
2598
+ */
2599
+ function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
2600
+ }
2601
+ declare module "node:util" {
2602
+ export * from "util";
2603
+ }
2604
+ declare module "node:util/types" {
2605
+ export * from "util/types";
1677
2606
  }