@scriptc/cli-darwin-x64 0.2.4 → 0.2.6

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 (434) hide show
  1. package/dist/THIRD_PARTY_NOTICES +1 -1
  2. package/dist/bin/scriptc +0 -0
  3. package/dist/bin/scriptc.json +1 -1
  4. package/dist/lib/declarations/scriptc-node-fallback.d.ts +972 -245
  5. package/dist/lib/declarations/scriptc-overrides.d.ts +5 -1
  6. package/dist/lib/declarations/scriptc.d.ts +22 -2
  7. package/dist/lib/llvm/bin/scriptc-llvm-codegen +0 -0
  8. package/dist/lib/llvm/package.json +1 -1
  9. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_array.o +0 -0
  10. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_assert.o +0 -0
  11. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_async.o +0 -0
  12. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bytes.o +0 -0
  13. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bytes_io.o +0 -0
  14. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_child.o +0 -0
  15. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_closure.o +0 -0
  16. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_console.o +0 -0
  17. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_context.o +0 -0
  18. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_copying.o +0 -0
  19. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_cycle.o +0 -0
  20. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dgram.o +0 -0
  21. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_error.o +0 -0
  22. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_events.o +0 -0
  23. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_events_emitter.o +0 -0
  24. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_exception.o +0 -0
  25. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_fetch.o +0 -0
  26. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_file_handle.o +0 -0
  27. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_json.o +0 -0
  28. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_lib.o +0 -0
  29. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_map.o +0 -0
  30. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_number.o +0 -0
  31. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_object.o +0 -0
  32. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_readline.o +0 -0
  33. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_regex.o +0 -0
  34. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_shared.o +0 -0
  35. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_stream.o +0 -0
  36. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_string.o +0 -0
  37. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_tls.o +0 -0
  38. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_union.o +0 -0
  39. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_util_compare.o +0 -0
  40. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_array.o +0 -0
  41. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_assert.o +0 -0
  42. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_async.o +0 -0
  43. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_async_dyn.o +0 -0
  44. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_bigint.o +0 -0
  45. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_bigint_assert.o +0 -0
  46. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_bytes.o +0 -0
  47. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_bytes_io.o +0 -0
  48. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_child.o +0 -0
  49. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_closure.o +0 -0
  50. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_console.o +0 -0
  51. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_console_native.o +0 -0
  52. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_context.o +0 -0
  53. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_copying.o +0 -0
  54. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_crypto_async.o +0 -0
  55. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_cycle.o +0 -0
  56. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_dc.o +0 -0
  57. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_dgram.o +0 -0
  58. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_dyn_handle.o +0 -0
  59. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_dyn_invoke.o +0 -0
  60. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_error.o +0 -0
  61. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_events.o +0 -0
  62. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_events_emitter.o +0 -0
  63. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_exception.o +0 -0
  64. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_fetch.o +0 -0
  65. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_ffi.o +0 -0
  66. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_ffi_queue.o +0 -0
  67. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_file_handle.o +0 -0
  68. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_grapheme.o +0 -0
  69. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_http.o +0 -0
  70. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_http2.o +0 -0
  71. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_inspect.o +0 -0
  72. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_json.o +0 -0
  73. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_lib.o +0 -0
  74. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_loop_epoll.o +0 -0
  75. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_loop_kqueue.o +0 -0
  76. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_loop_wsapoll.o +0 -0
  77. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_map.o +0 -0
  78. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_net.o +0 -0
  79. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_node_builtin.o +0 -0
  80. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_number.o +0 -0
  81. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_object.o +0 -0
  82. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_path.o +0 -0
  83. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_qs.o +0 -0
  84. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_readline.o +0 -0
  85. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_regex.o +0 -0
  86. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_shared.o +0 -0
  87. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_stream.o +0 -0
  88. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_string.o +0 -0
  89. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_symbol.o +0 -0
  90. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_test.o +0 -0
  91. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_tls.o +0 -0
  92. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_tls_ca.o +0 -0
  93. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_union.o +0 -0
  94. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_url.o +0 -0
  95. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_url_params.o +0 -0
  96. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_util.o +0 -0
  97. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_util_compare.o +0 -0
  98. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_util_style.o +0 -0
  99. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_watch.o +0 -0
  100. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default-workers/scr_zlib.o +0 -0
  101. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_array.o +0 -0
  102. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_assert.o +0 -0
  103. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_async.o +0 -0
  104. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bytes.o +0 -0
  105. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bytes_io.o +0 -0
  106. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_child.o +0 -0
  107. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_closure.o +0 -0
  108. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_console.o +0 -0
  109. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_context.o +0 -0
  110. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_copying.o +0 -0
  111. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_cycle.o +0 -0
  112. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dgram.o +0 -0
  113. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_error.o +0 -0
  114. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_events.o +0 -0
  115. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_events_emitter.o +0 -0
  116. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_exception.o +0 -0
  117. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_file_handle.o +0 -0
  118. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_island.o +0 -0
  119. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_json.o +0 -0
  120. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_lib.o +0 -0
  121. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_map.o +0 -0
  122. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_number.o +0 -0
  123. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_object.o +0 -0
  124. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_readline.o +0 -0
  125. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_regex.o +0 -0
  126. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_shared.o +0 -0
  127. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_stream.o +0 -0
  128. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_string.o +0 -0
  129. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_tls.o +0 -0
  130. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_union.o +0 -0
  131. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_util_compare.o +0 -0
  132. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic-text-decoder-legacy/scr_bytes.o +0 -0
  133. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  134. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/text-decoder-legacy-workers/scr_bytes.o +0 -0
  135. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/workers/scr_mailbox.o +0 -0
  136. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/workers/scr_message.o +0 -0
  137. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/workers/scr_worker.o +0 -0
  138. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/workers/scr_worker_events.o +0 -0
  139. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_array.o +0 -0
  140. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_assert.o +0 -0
  141. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bytes.o +0 -0
  142. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bytes_io.o +0 -0
  143. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_closure.o +0 -0
  144. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_context.o +0 -0
  145. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_copying.o +0 -0
  146. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_cycle.o +0 -0
  147. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_error.o +0 -0
  148. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_events_emitter.o +0 -0
  149. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_exception.o +0 -0
  150. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_json.o +0 -0
  151. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_lib.o +0 -0
  152. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_map.o +0 -0
  153. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_number.o +0 -0
  154. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_object.o +0 -0
  155. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_regex.o +0 -0
  156. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_shared.o +0 -0
  157. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_string.o +0 -0
  158. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_union.o +0 -0
  159. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  160. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_array.o +0 -0
  161. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_assert.o +0 -0
  162. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bytes.o +0 -0
  163. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bytes_io.o +0 -0
  164. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_closure.o +0 -0
  165. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_context.o +0 -0
  166. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_copying.o +0 -0
  167. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_cycle.o +0 -0
  168. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_error.o +0 -0
  169. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_events_emitter.o +0 -0
  170. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_exception.o +0 -0
  171. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_json.o +0 -0
  172. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_lib.o +0 -0
  173. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_map.o +0 -0
  174. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_number.o +0 -0
  175. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_object.o +0 -0
  176. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_regex.o +0 -0
  177. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_shared.o +0 -0
  178. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_string.o +0 -0
  179. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_union.o +0 -0
  180. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  181. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_array.o +0 -0
  182. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_assert.o +0 -0
  183. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bytes.o +0 -0
  184. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bytes_io.o +0 -0
  185. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_closure.o +0 -0
  186. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_console.o +0 -0
  187. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_context.o +0 -0
  188. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_copying.o +0 -0
  189. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_cycle.o +0 -0
  190. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_error.o +0 -0
  191. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_events_emitter.o +0 -0
  192. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_exception.o +0 -0
  193. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_inspect.o +0 -0
  194. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_json.o +0 -0
  195. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_lib.o +0 -0
  196. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_map.o +0 -0
  197. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_number.o +0 -0
  198. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_object.o +0 -0
  199. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_regex.o +0 -0
  200. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_shared.o +0 -0
  201. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_string.o +0 -0
  202. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_union.o +0 -0
  203. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_zlib.o +0 -0
  204. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  205. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_array.o +0 -0
  206. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_assert.o +0 -0
  207. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bytes.o +0 -0
  208. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bytes_io.o +0 -0
  209. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_closure.o +0 -0
  210. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_console.o +0 -0
  211. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_context.o +0 -0
  212. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_copying.o +0 -0
  213. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_cycle.o +0 -0
  214. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_error.o +0 -0
  215. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_events_emitter.o +0 -0
  216. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_exception.o +0 -0
  217. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_inspect.o +0 -0
  218. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_json.o +0 -0
  219. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_lib.o +0 -0
  220. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_map.o +0 -0
  221. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_number.o +0 -0
  222. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_object.o +0 -0
  223. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_regex.o +0 -0
  224. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_shared.o +0 -0
  225. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_string.o +0 -0
  226. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_union.o +0 -0
  227. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_zlib.o +0 -0
  228. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  229. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_array.o +0 -0
  230. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_assert.o +0 -0
  231. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_async.o +0 -0
  232. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bytes.o +0 -0
  233. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bytes_io.o +0 -0
  234. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_child.o +0 -0
  235. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_closure.o +0 -0
  236. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_console.o +0 -0
  237. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_context.o +0 -0
  238. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_copying.o +0 -0
  239. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_cycle.o +0 -0
  240. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dgram.o +0 -0
  241. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_error.o +0 -0
  242. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_events.o +0 -0
  243. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_events_emitter.o +0 -0
  244. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_exception.o +0 -0
  245. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_fetch.o +0 -0
  246. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_file_handle.o +0 -0
  247. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_json.o +0 -0
  248. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_lib.o +0 -0
  249. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_map.o +0 -0
  250. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_number.o +0 -0
  251. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_object.o +0 -0
  252. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_readline.o +0 -0
  253. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_regex.o +0 -0
  254. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_shared.o +0 -0
  255. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_stream.o +0 -0
  256. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_string.o +0 -0
  257. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_tls.o +0 -0
  258. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_union.o +0 -0
  259. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_util_compare.o +0 -0
  260. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_array.o +0 -0
  261. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_assert.o +0 -0
  262. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_async.o +0 -0
  263. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_async_dyn.o +0 -0
  264. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_bigint.o +0 -0
  265. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_bigint_assert.o +0 -0
  266. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_bytes.o +0 -0
  267. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_bytes_io.o +0 -0
  268. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_child.o +0 -0
  269. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_closure.o +0 -0
  270. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_console.o +0 -0
  271. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_console_native.o +0 -0
  272. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_context.o +0 -0
  273. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_copying.o +0 -0
  274. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_crypto_async.o +0 -0
  275. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_cycle.o +0 -0
  276. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_dc.o +0 -0
  277. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_dgram.o +0 -0
  278. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_dyn_handle.o +0 -0
  279. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_dyn_invoke.o +0 -0
  280. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_error.o +0 -0
  281. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_events.o +0 -0
  282. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_events_emitter.o +0 -0
  283. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_exception.o +0 -0
  284. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_fetch.o +0 -0
  285. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_ffi.o +0 -0
  286. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_ffi_queue.o +0 -0
  287. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_file_handle.o +0 -0
  288. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_grapheme.o +0 -0
  289. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_http.o +0 -0
  290. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_http2.o +0 -0
  291. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_inspect.o +0 -0
  292. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_json.o +0 -0
  293. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_lib.o +0 -0
  294. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_loop_epoll.o +0 -0
  295. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_loop_kqueue.o +0 -0
  296. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_loop_wsapoll.o +0 -0
  297. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_map.o +0 -0
  298. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_net.o +0 -0
  299. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_node_builtin.o +0 -0
  300. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_number.o +0 -0
  301. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_object.o +0 -0
  302. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_path.o +0 -0
  303. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_qs.o +0 -0
  304. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_readline.o +0 -0
  305. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_regex.o +0 -0
  306. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_shared.o +0 -0
  307. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_stream.o +0 -0
  308. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_string.o +0 -0
  309. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_symbol.o +0 -0
  310. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_test.o +0 -0
  311. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_tls.o +0 -0
  312. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_tls_ca.o +0 -0
  313. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_union.o +0 -0
  314. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_url.o +0 -0
  315. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_url_params.o +0 -0
  316. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_util.o +0 -0
  317. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_util_compare.o +0 -0
  318. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_util_style.o +0 -0
  319. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_watch.o +0 -0
  320. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default-workers/scr_zlib.o +0 -0
  321. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_array.o +0 -0
  322. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_assert.o +0 -0
  323. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_async.o +0 -0
  324. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bytes.o +0 -0
  325. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bytes_io.o +0 -0
  326. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_child.o +0 -0
  327. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_closure.o +0 -0
  328. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_console.o +0 -0
  329. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_context.o +0 -0
  330. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_copying.o +0 -0
  331. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_cycle.o +0 -0
  332. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dgram.o +0 -0
  333. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_error.o +0 -0
  334. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_events.o +0 -0
  335. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_events_emitter.o +0 -0
  336. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_exception.o +0 -0
  337. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_file_handle.o +0 -0
  338. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_island.o +0 -0
  339. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_json.o +0 -0
  340. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_lib.o +0 -0
  341. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_map.o +0 -0
  342. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_number.o +0 -0
  343. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_object.o +0 -0
  344. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_readline.o +0 -0
  345. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_regex.o +0 -0
  346. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_shared.o +0 -0
  347. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_stream.o +0 -0
  348. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_string.o +0 -0
  349. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_tls.o +0 -0
  350. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_union.o +0 -0
  351. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_util_compare.o +0 -0
  352. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic-text-decoder-legacy/scr_bytes.o +0 -0
  353. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  354. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/text-decoder-legacy-workers/scr_bytes.o +0 -0
  355. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/workers/scr_mailbox.o +0 -0
  356. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/workers/scr_message.o +0 -0
  357. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/workers/scr_worker.o +0 -0
  358. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/workers/scr_worker_events.o +0 -0
  359. package/dist/lib/runtime-darwin-x64/package.json +1 -1
  360. package/dist/lib/runtime-darwin-x64/runtime-pack.json +3318 -790
  361. package/dist/lib/runtime-sources/package.json +1 -1
  362. package/dist/lib/runtime-sources/src/scr_array.c +479 -46
  363. package/dist/lib/runtime-sources/src/scr_assert.c +3 -3
  364. package/dist/lib/runtime-sources/src/scr_async.c +401 -71
  365. package/dist/lib/runtime-sources/src/scr_async.test.ts +16 -6
  366. package/dist/lib/runtime-sources/src/scr_async_dyn.c +30 -30
  367. package/dist/lib/runtime-sources/src/scr_bytes.c +487 -221
  368. package/dist/lib/runtime-sources/src/scr_bytes.test.c +85 -0
  369. package/dist/lib/runtime-sources/src/scr_bytes_io.c +45 -64
  370. package/dist/lib/runtime-sources/src/scr_child.c +48 -30
  371. package/dist/lib/runtime-sources/src/scr_closure.c +21 -11
  372. package/dist/lib/runtime-sources/src/scr_console.c +27 -5
  373. package/dist/lib/runtime-sources/src/scr_context.c +167 -0
  374. package/dist/lib/runtime-sources/src/scr_context.test.c +118 -0
  375. package/dist/lib/runtime-sources/src/scr_context.test.ts +47 -0
  376. package/dist/lib/runtime-sources/src/scr_copying.c +13 -2
  377. package/dist/lib/runtime-sources/src/scr_cycle.c +112 -12
  378. package/dist/lib/runtime-sources/src/scr_dc.c +8 -8
  379. package/dist/lib/runtime-sources/src/scr_dgram.c +10 -7
  380. package/dist/lib/runtime-sources/src/scr_error.c +26 -14
  381. package/dist/lib/runtime-sources/src/scr_events.c +45 -31
  382. package/dist/lib/runtime-sources/src/scr_events_emitter.c +34 -1
  383. package/dist/lib/runtime-sources/src/scr_exception.c +26 -7
  384. package/dist/lib/runtime-sources/src/scr_fetch.c +23 -20
  385. package/dist/lib/runtime-sources/src/scr_fetch_curl.c +1 -1
  386. package/dist/lib/runtime-sources/src/scr_ffi.c +3 -3
  387. package/dist/lib/runtime-sources/src/scr_file_handle.c +1 -0
  388. package/dist/lib/runtime-sources/src/scr_http.c +20 -16
  389. package/dist/lib/runtime-sources/src/scr_http2.c +10 -8
  390. package/dist/lib/runtime-sources/src/scr_inspect.c +1 -0
  391. package/dist/lib/runtime-sources/src/scr_island.c +1 -1
  392. package/dist/lib/runtime-sources/src/scr_json.c +652 -189
  393. package/dist/lib/runtime-sources/src/scr_json.test.c +339 -1
  394. package/dist/lib/runtime-sources/src/scr_json.test.ts +59 -25
  395. package/dist/lib/runtime-sources/src/scr_key.h +92 -0
  396. package/dist/lib/runtime-sources/src/scr_lib.c +256 -136
  397. package/dist/lib/runtime-sources/src/scr_mailbox.c +233 -0
  398. package/dist/lib/runtime-sources/src/scr_mailbox.h +28 -0
  399. package/dist/lib/runtime-sources/src/scr_mailbox.test.c +86 -0
  400. package/dist/lib/runtime-sources/src/scr_mailbox.test.ts +46 -0
  401. package/dist/lib/runtime-sources/src/scr_map.c +240 -107
  402. package/dist/lib/runtime-sources/src/scr_message.c +443 -0
  403. package/dist/lib/runtime-sources/src/scr_message.h +14 -0
  404. package/dist/lib/runtime-sources/src/scr_message.test.c +152 -0
  405. package/dist/lib/runtime-sources/src/scr_message.test.ts +44 -0
  406. package/dist/lib/runtime-sources/src/scr_net.c +14 -12
  407. package/dist/lib/runtime-sources/src/scr_number.c +36 -4
  408. package/dist/lib/runtime-sources/src/scr_numeric.h +25 -0
  409. package/dist/lib/runtime-sources/src/scr_numeric.test.c +37 -0
  410. package/dist/lib/runtime-sources/src/scr_numeric.test.ts +33 -0
  411. package/dist/lib/runtime-sources/src/scr_object.c +9 -4
  412. package/dist/lib/runtime-sources/src/scr_path.c +1 -1
  413. package/dist/lib/runtime-sources/src/scr_readline.c +8 -8
  414. package/dist/lib/runtime-sources/src/scr_regex.c +351 -167
  415. package/dist/lib/runtime-sources/src/scr_runtime.h +207 -34
  416. package/dist/lib/runtime-sources/src/scr_shared.c +280 -0
  417. package/dist/lib/runtime-sources/src/scr_shared.test.c +113 -0
  418. package/dist/lib/runtime-sources/src/scr_shared.test.ts +45 -0
  419. package/dist/lib/runtime-sources/src/scr_stream.c +9 -9
  420. package/dist/lib/runtime-sources/src/scr_string.c +365 -141
  421. package/dist/lib/runtime-sources/src/scr_test.c +8 -8
  422. package/dist/lib/runtime-sources/src/scr_tls.c +12 -12
  423. package/dist/lib/runtime-sources/src/scr_tls_ca.c +34 -12
  424. package/dist/lib/runtime-sources/src/scr_union.c +10 -5
  425. package/dist/lib/runtime-sources/src/scr_util_compare.c +1 -0
  426. package/dist/lib/runtime-sources/src/scr_util_style.c +11 -11
  427. package/dist/lib/runtime-sources/src/scr_watch.c +16 -6
  428. package/dist/lib/runtime-sources/src/scr_worker.c +232 -0
  429. package/dist/lib/runtime-sources/src/scr_worker.h +42 -0
  430. package/dist/lib/runtime-sources/src/scr_worker.test.c +115 -0
  431. package/dist/lib/runtime-sources/src/scr_worker.test.ts +49 -0
  432. package/dist/lib/runtime-sources/src/scr_worker_events.c +443 -0
  433. package/dist/lib/runtime-sources/src/scr_zlib.c +6 -0
  434. package/package.json +1 -1
@@ -252,12 +252,20 @@ declare var process: {
252
252
  * completion callback overloads match Node's WritableStream surface. */
253
253
  stdout: {
254
254
  write(data: string | Uint8Array, callback?: (error?: Error | null) => void): boolean;
255
- write(data: string | Uint8Array, encoding: BufferEncoding, callback?: (error?: Error | null) => void): boolean;
255
+ write(
256
+ data: string | Uint8Array,
257
+ encoding: BufferEncoding,
258
+ callback?: (error?: Error | null) => void,
259
+ ): boolean;
256
260
  readonly isTTY: boolean;
257
261
  };
258
262
  stderr: {
259
263
  write(data: string | Uint8Array, callback?: (error?: Error | null) => void): boolean;
260
- write(data: string | Uint8Array, encoding: BufferEncoding, callback?: (error?: Error | null) => void): boolean;
264
+ write(
265
+ data: string | Uint8Array,
266
+ encoding: BufferEncoding,
267
+ callback?: (error?: Error | null) => void,
268
+ ): boolean;
261
269
  readonly isTTY: boolean;
262
270
  };
263
271
  /* The stdin stream, the piped-input slice: the TTY probe, the
@@ -318,7 +326,10 @@ declare var process: {
318
326
  removeListener(event: "SIGINT" | "SIGTERM", listener: () => void): void;
319
327
  removeListener(event: "exit", listener: (code: number) => void): void;
320
328
  removeListener(event: "warning", listener: (warning: Error & { code?: string }) => void): void;
321
- removeListener(event: "unhandledRejection", listener: (reason: unknown, promise: unknown) => void): void;
329
+ removeListener(
330
+ event: "unhandledRejection",
331
+ listener: (reason: unknown, promise: unknown) => void,
332
+ ): void;
322
333
  removeListener(event: "rejectionHandled", listener: (promise: unknown) => void): void;
323
334
  /* emitWarning — Node's full grammar (string or Error warning; type/
324
335
  * ctor/options second; code/ctor third). */
@@ -490,19 +501,49 @@ type BufferEncoding =
490
501
  | "utf-16le"
491
502
  | "ucs2"
492
503
  | "ucs-2";
493
- interface Buffer<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> extends Uint8Array<TArrayBuffer> {
504
+ interface Buffer<
505
+ TArrayBuffer extends ArrayBufferLike = ArrayBufferLike,
506
+ > extends Uint8Array<TArrayBuffer> {
494
507
  toString(encoding?: BufferEncoding, start?: number, end?: number): string;
495
508
  equals(otherBuffer: Uint8Array): boolean;
496
- compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
497
- indexOf(value: string | number | Uint8Array, byteOffset?: number | BufferEncoding, encoding?: BufferEncoding): number;
498
- lastIndexOf(value: string | number | Uint8Array, byteOffset?: number | BufferEncoding, encoding?: BufferEncoding): number;
499
- includes(value: string | number | Buffer, byteOffset?: number | BufferEncoding, encoding?: BufferEncoding): boolean;
500
- fill(value: string | number | Uint8Array, offset?: number | BufferEncoding, end?: number | BufferEncoding, encoding?: BufferEncoding): this;
509
+ compare(
510
+ target: Uint8Array,
511
+ targetStart?: number,
512
+ targetEnd?: number,
513
+ sourceStart?: number,
514
+ sourceEnd?: number,
515
+ ): number;
516
+ indexOf(
517
+ value: string | number | Uint8Array,
518
+ byteOffset?: number | BufferEncoding,
519
+ encoding?: BufferEncoding,
520
+ ): number;
521
+ lastIndexOf(
522
+ value: string | number | Uint8Array,
523
+ byteOffset?: number | BufferEncoding,
524
+ encoding?: BufferEncoding,
525
+ ): number;
526
+ includes(
527
+ value: string | number | Buffer,
528
+ byteOffset?: number | BufferEncoding,
529
+ encoding?: BufferEncoding,
530
+ ): boolean;
531
+ fill(
532
+ value: string | number | Uint8Array,
533
+ offset?: number | BufferEncoding,
534
+ end?: number | BufferEncoding,
535
+ encoding?: BufferEncoding,
536
+ ): this;
501
537
  copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
502
538
  swap16(): Buffer;
503
539
  swap32(): Buffer;
504
540
  swap64(): Buffer;
505
- write(string: string, offset?: number | BufferEncoding, length?: number | BufferEncoding, encoding?: BufferEncoding): number;
541
+ write(
542
+ string: string,
543
+ offset?: number | BufferEncoding,
544
+ length?: number | BufferEncoding,
545
+ encoding?: BufferEncoding,
546
+ ): number;
506
547
  subarray(start?: number, end?: number): Buffer<TArrayBuffer>;
507
548
  /* @types/node's spelling — the ArrayBuffer instantiation keeps the
508
549
  * override compatible with the lib's Uint8Array.slice. */
@@ -560,7 +601,7 @@ interface BufferConstructor {
560
601
  from(data: string, encoding?: BufferEncoding): Buffer;
561
602
  /* The ArrayBuffer form is the VIEW construction: x.buffer with an
562
603
  * optional byte offset/length shares x's storage (the subarray rule). */
563
- from(data: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
604
+ from(data: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): Buffer;
564
605
  from(data: Uint8Array | readonly number[]): Buffer;
565
606
  alloc(size: number, fill?: string | number | Uint8Array, encoding?: BufferEncoding): Buffer;
566
607
  compare(buf1: Uint8Array, buf2: Uint8Array): number;
@@ -577,7 +618,9 @@ declare var Buffer: BufferConstructor;
577
618
  /* The WHATWG codec constructors. Instance types live in scriptc.d.ts so
578
619
  * programs with @types/node have the same global type names. */
579
620
  declare var TextEncoder: { new (): TextEncoder };
580
- declare var TextDecoder: { new (label?: string, options?: { fatal?: boolean; ignoreBOM?: boolean }): TextDecoder };
621
+ declare var TextDecoder: {
622
+ new (label?: string, options?: { fatal?: boolean; ignoreBOM?: boolean }): TextDecoder;
623
+ };
581
624
 
582
625
  /* The WHATWG event surface (Node globals since v15): declared so the
583
626
  * suite's event-plumbing tests typecheck and fence per SITE with the
@@ -605,7 +648,10 @@ interface Event {
605
648
  composedPath(): unknown[];
606
649
  }
607
650
  declare var Event: {
608
- new (type: string, eventInitDict?: { bubbles?: boolean; cancelable?: boolean; composed?: boolean }): Event;
651
+ new (
652
+ type: string,
653
+ eventInitDict?: { bubbles?: boolean; cancelable?: boolean; composed?: boolean },
654
+ ): Event;
609
655
  readonly prototype: Event;
610
656
  readonly NONE: 0;
611
657
  readonly CAPTURING_PHASE: 1;
@@ -616,7 +662,10 @@ interface CustomEvent<T = unknown> extends Event {
616
662
  readonly detail: T;
617
663
  }
618
664
  declare var CustomEvent: {
619
- new <T = unknown>(type: string, eventInitDict?: { detail?: T; bubbles?: boolean; cancelable?: boolean; composed?: boolean }): CustomEvent<T>;
665
+ new <T = unknown>(
666
+ type: string,
667
+ eventInitDict?: { detail?: T; bubbles?: boolean; cancelable?: boolean; composed?: boolean },
668
+ ): CustomEvent<T>;
620
669
  readonly prototype: CustomEvent;
621
670
  };
622
671
  interface MessageEvent<T = unknown> extends Event {
@@ -626,7 +675,10 @@ interface MessageEvent<T = unknown> extends Event {
626
675
  readonly ports: readonly MessagePort[];
627
676
  }
628
677
  declare var MessageEvent: {
629
- new <T = unknown>(type: string, eventInitDict?: { data?: T; origin?: string; lastEventId?: string }): MessageEvent<T>;
678
+ new <T = unknown>(
679
+ type: string,
680
+ eventInitDict?: { data?: T; origin?: string; lastEventId?: string },
681
+ ): MessageEvent<T>;
630
682
  readonly prototype: MessageEvent;
631
683
  };
632
684
  interface AddEventListenerOptions {
@@ -789,10 +841,7 @@ interface Response {
789
841
  bytes(): Promise<Uint8Array>;
790
842
  }
791
843
  interface ResponseInit {
792
- headers?:
793
- | Headers
794
- | Record<string, string>
795
- | readonly (readonly [string, string])[];
844
+ headers?: Headers | Record<string, string> | readonly (readonly [string, string])[];
796
845
  status?: number;
797
846
  statusText?: string;
798
847
  }
@@ -832,10 +881,7 @@ interface Request {
832
881
  }
833
882
  interface RequestInit {
834
883
  method?: string;
835
- headers?:
836
- | Headers
837
- | Record<string, string>
838
- | readonly (readonly [string, string])[];
884
+ headers?: Headers | Record<string, string> | readonly (readonly [string, string])[];
839
885
  body?: string | Uint8Array | ReadableStream<Uint8Array> | null;
840
886
  duplex?: "half";
841
887
  redirect?: "follow" | "error" | "manual";
@@ -856,7 +902,11 @@ declare function fetch(input: string | URL, init?: RequestInit): Promise<Respons
856
902
  * tolerance. */
857
903
  declare function setInterval(callback: () => void, ms?: number): Timeout;
858
904
  /* The trailing-argument form — setTimeout's exact story, every tick. */
859
- declare function setInterval(callback: (...args: never[]) => void, ms?: number, ...args: unknown[]): Timeout;
905
+ declare function setInterval(
906
+ callback: (...args: never[]) => void,
907
+ ms?: number,
908
+ ...args: unknown[]
909
+ ): Timeout;
860
910
  declare function clearInterval(handle?: Timeout | number | null | undefined): void;
861
911
 
862
912
  /* node:timers — the module twins of the timer globals (Node's timers
@@ -866,10 +916,18 @@ declare function clearInterval(handle?: Timeout | number | null | undefined): vo
866
916
  * (enroll/unenroll, promises) fences per member. */
867
917
  declare module "node:timers" {
868
918
  export function setTimeout(callback: () => void, ms?: number): Timeout;
869
- export function setTimeout(callback: (...args: never[]) => void, ms?: number, ...args: unknown[]): Timeout;
919
+ export function setTimeout(
920
+ callback: (...args: never[]) => void,
921
+ ms?: number,
922
+ ...args: unknown[]
923
+ ): Timeout;
870
924
  export function clearTimeout(handle?: Timeout | number | null | undefined): void;
871
925
  export function setInterval(callback: () => void, ms?: number): Timeout;
872
- export function setInterval(callback: (...args: never[]) => void, ms?: number, ...args: unknown[]): Timeout;
926
+ export function setInterval(
927
+ callback: (...args: never[]) => void,
928
+ ms?: number,
929
+ ...args: unknown[]
930
+ ): Timeout;
873
931
  export function clearInterval(handle?: Timeout | number | null | undefined): void;
874
932
  export function setImmediate(callback: () => void): Immediate;
875
933
  export function setImmediate(callback: (...args: never[]) => void, ...args: unknown[]): Immediate;
@@ -888,7 +946,11 @@ declare module "timers" {
888
946
  declare module "node:timers/promises" {
889
947
  export function setTimeout(delay?: number): Promise<void>;
890
948
  export function setImmediate(): Promise<void>;
891
- export function setInterval<T = unknown>(delay?: number, value?: T, options?: unknown): AsyncGenerator<T, void, undefined>;
949
+ export function setInterval<T = unknown>(
950
+ delay?: number,
951
+ value?: T,
952
+ options?: unknown,
953
+ ): AsyncGenerator<T, void, undefined>;
892
954
  export const scheduler: {
893
955
  wait(delay?: number): Promise<void>;
894
956
  yield(): Promise<void>;
@@ -921,7 +983,10 @@ declare module "node:diagnostics_channel" {
921
983
  publish(message: unknown): void;
922
984
  subscribe(onMessage: ChannelListener): void;
923
985
  unsubscribe(onMessage: ChannelListener): boolean;
924
- bindStore(store: import("async_hooks").AsyncLocalStorage<any>, transform?: (context: any) => any): void;
986
+ bindStore(
987
+ store: import("async_hooks").AsyncLocalStorage<any>,
988
+ transform?: (context: any) => any,
989
+ ): void;
925
990
  unbindStore(store: import("async_hooks").AsyncLocalStorage<any>): boolean;
926
991
  runStores(context: unknown, fn: (...args: any[]) => any, thisArg?: any, ...args: any[]): any;
927
992
  }
@@ -1053,24 +1118,13 @@ interface ImportMeta {
1053
1118
  * directory, open 'x'"). `rmSync` removes FILES only (like Node without
1054
1119
  * `recursive`); empty directories go through `rmdirSync`. */
1055
1120
  declare module "node:fs" {
1056
- /* The lowered forms first. The string-encoding overload's result is
1057
- * CONDITIONAL so a runtime encoding value (an untyped JS parameter —
1058
- * test/common fixtures.js's readFixtureKey(name, enc)) infers `any`
1059
- * (the lowering dispatches at runtime: undefined/null read Buffers,
1060
- * utf8 a string, anything else throws) while a literal utf8 keeps the
1061
- * string result TypeScript callers chain on. The encoding-less
1062
- * overload is the Buffer read. */
1063
- export function readFileSync<T extends string>(
1064
- path: string,
1065
- encoding: T,
1066
- ): T extends "utf8" ? string : T extends "utf-8" ? string : any;
1067
- export function readFileSync(path: string): Buffer;
1068
- /* The file-descriptor forms — a read(2) loop to EOF from the current
1069
- * position; the stdin pattern is readFileSync(0, "utf8"). */
1070
- export function readFileSync(fd: number, encoding: "utf8" | "utf-8"): string;
1071
- export function readFileSync(fd: number): Buffer;
1072
- /* The options-object spelling of the utf8 form. */
1073
- export function readFileSync(path: string, options: { encoding: "utf8" | "utf-8" }): string;
1121
+ export function readFileSync(path: string | number, encoding: BufferEncoding): string;
1122
+ export function readFileSync(
1123
+ path: string | number,
1124
+ options: { encoding: BufferEncoding },
1125
+ ): string;
1126
+ export function readFileSync(path: string | number): Buffer;
1127
+ export function readFileSync(path: string, options: unknown): string | Buffer;
1074
1128
  /* Error-first callbacks select string or Buffer data from their encoding.
1075
1129
  * Unknown options retain that union until the caller validates the value. */
1076
1130
  export function readFile(
@@ -1086,7 +1140,12 @@ declare module "node:fs" {
1086
1140
  data: string,
1087
1141
  /* The options-record stance (see http.RequestOptions): flag fences
1088
1142
  * by name at the call site; undocumented keys drop like Node. */
1089
- options?: { mode?: number; encoding?: "utf8" | "utf-8"; flag?: string; [option: string]: unknown },
1143
+ options?: {
1144
+ mode?: number;
1145
+ encoding?: "utf8" | "utf-8";
1146
+ flag?: string;
1147
+ [option: string]: unknown;
1148
+ },
1090
1149
  ): void;
1091
1150
  /* The bare-encoding spelling — the options record's encoding key alone. */
1092
1151
  export function writeFileSync(path: string, data: string, encoding: "utf8" | "utf-8"): void;
@@ -1099,36 +1158,87 @@ declare module "node:fs" {
1099
1158
  export function chmodSync(path: string, mode: number): void;
1100
1159
  export function fchmodSync(fd: number, mode: number): void;
1101
1160
  export function fsyncSync(fd: number): void;
1102
- export function linkSync(existingPath: string | Uint8Array | URL, newPath: string | Uint8Array | URL): void;
1103
- export function symlinkSync(target: string | Uint8Array | URL, path: string | Uint8Array | URL, type?: string | null): void;
1104
- export function symlink(target: string | Uint8Array | URL, path: string | Uint8Array | URL, callback: (err: NodeJS.ErrnoException | null) => void): void;
1105
- export function symlink(target: string | Uint8Array | URL, path: string | Uint8Array | URL, type: string | null | undefined, callback: (err: NodeJS.ErrnoException | null) => void): void;
1106
- export function link(existingPath: string | Uint8Array | URL, newPath: string | Uint8Array | URL, callback: (err: NodeJS.ErrnoException | null) => void): void;
1107
- export function readlink(path: string | Uint8Array | URL, callback: (err: NodeJS.ErrnoException | null, target: string) => void): void;
1108
- export function readlink(path: string | Uint8Array | URL, options: "buffer" | { encoding: "buffer" }, callback: (err: NodeJS.ErrnoException | null, target: Buffer) => void): void;
1109
- export function readlink(path: string | Uint8Array | URL, options: BufferEncoding | { encoding?: BufferEncoding | null } | null, callback: (err: NodeJS.ErrnoException | null, target: string) => void): void;
1110
- export function readlink(path: string | Uint8Array | URL, options: string | { encoding?: string | null } | null, callback: (err: NodeJS.ErrnoException | null, target: string | Buffer) => void): void;
1111
- export function readlinkSync(path: string | Uint8Array | URL, options: "buffer" | { encoding: "buffer" }): Buffer;
1112
- export function readlinkSync(path: string | Uint8Array | URL, options?: BufferEncoding | { encoding?: BufferEncoding | null } | null): string;
1113
- export function readlinkSync(path: string | Uint8Array | URL, options: string | { encoding?: string | null } | null): string | Buffer;
1161
+ export function linkSync(
1162
+ existingPath: string | Uint8Array | URL,
1163
+ newPath: string | Uint8Array | URL,
1164
+ ): void;
1165
+ export function symlinkSync(
1166
+ target: string | Uint8Array | URL,
1167
+ path: string | Uint8Array | URL,
1168
+ type?: string | null,
1169
+ ): void;
1170
+ export function symlink(
1171
+ target: string | Uint8Array | URL,
1172
+ path: string | Uint8Array | URL,
1173
+ callback: (err: NodeJS.ErrnoException | null) => void,
1174
+ ): void;
1175
+ export function symlink(
1176
+ target: string | Uint8Array | URL,
1177
+ path: string | Uint8Array | URL,
1178
+ type: string | null | undefined,
1179
+ callback: (err: NodeJS.ErrnoException | null) => void,
1180
+ ): void;
1181
+ export function link(
1182
+ existingPath: string | Uint8Array | URL,
1183
+ newPath: string | Uint8Array | URL,
1184
+ callback: (err: NodeJS.ErrnoException | null) => void,
1185
+ ): void;
1186
+ export function readlink(
1187
+ path: string | Uint8Array | URL,
1188
+ callback: (err: NodeJS.ErrnoException | null, target: string) => void,
1189
+ ): void;
1190
+ export function readlink(
1191
+ path: string | Uint8Array | URL,
1192
+ options: "buffer" | { encoding: "buffer" },
1193
+ callback: (err: NodeJS.ErrnoException | null, target: Buffer) => void,
1194
+ ): void;
1195
+ export function readlink(
1196
+ path: string | Uint8Array | URL,
1197
+ options: BufferEncoding | { encoding?: BufferEncoding | null } | null,
1198
+ callback: (err: NodeJS.ErrnoException | null, target: string) => void,
1199
+ ): void;
1200
+ export function readlink(
1201
+ path: string | Uint8Array | URL,
1202
+ options: string | { encoding?: string | null } | null,
1203
+ callback: (err: NodeJS.ErrnoException | null, target: string | Buffer) => void,
1204
+ ): void;
1205
+ export function readlinkSync(
1206
+ path: string | Uint8Array | URL,
1207
+ options: "buffer" | { encoding: "buffer" },
1208
+ ): Buffer;
1209
+ export function readlinkSync(
1210
+ path: string | Uint8Array | URL,
1211
+ options?: BufferEncoding | { encoding?: BufferEncoding | null } | null,
1212
+ ): string;
1213
+ export function readlinkSync(
1214
+ path: string | Uint8Array | URL,
1215
+ options: string | { encoding?: string | null } | null,
1216
+ ): string | Buffer;
1114
1217
  export function chownSync(path: string, uid: number, gid: number): void;
1115
1218
  /* The 2-argument form only (Node's mode flags have no lowering). The
1116
1219
  * destination is created or truncated carrying the SOURCE's mode. */
1117
1220
  export function copyFileSync(src: string, dest: string): void;
1118
- export function rename(oldPath: string, newPath: string, callback: (err: NodeJS.ErrnoException | null) => void): void;
1221
+ export function rename(
1222
+ oldPath: string,
1223
+ newPath: string,
1224
+ callback: (err: NodeJS.ErrnoException | null) => void,
1225
+ ): void;
1119
1226
  export function renameSync(oldPath: string, newPath: string): void;
1120
1227
  export function rmSync(path: string): void;
1121
1228
  /* maxRetries/retryDelay are accepted no-ops (Node retries around
1122
1229
  * EBUSY-class races; the synchronous lowering has no re-entrancy that
1123
1230
  * needs them). */
1124
- export function rmSync(path: string, options: { recursive?: boolean; force?: boolean; maxRetries?: number; retryDelay?: number }): void;
1231
+ export function rmSync(
1232
+ path: string,
1233
+ options: { recursive?: boolean; force?: boolean; maxRetries?: number; retryDelay?: number },
1234
+ ): void;
1125
1235
  export function rmdirSync(path: string): void;
1126
1236
  export function readdirSync(path: string): string[];
1127
1237
  /* The withFileTypes form: Dirent rows (name + parentPath + the type
1128
1238
  * probes — the honest subset of Node's Dirent surface). The type is
1129
1239
  * interned explicitly in type-mapper.ts (the record's hidden %dtype field
1130
1240
  * carries the entry kind; isFile/isDirectory/isSymbolicLink lower as
1131
- * reads of it in lower-builtins.ts). */
1241
+ * reads of it in builtins/process.ts). */
1132
1242
  export interface Dirent {
1133
1243
  name: string;
1134
1244
  parentPath: string;
@@ -1186,12 +1296,39 @@ declare module "node:fs" {
1186
1296
  export function closeSync(fd: number): void;
1187
1297
  export function fdatasyncSync(fd: number): void;
1188
1298
  export function ftruncateSync(fd: number, len?: number): void;
1189
- export function utimesSync(path: string | Uint8Array | URL, atime: number | string | Date, mtime: number | string | Date): void;
1190
- export function futimesSync(fd: number, atime: number | string | Date, mtime: number | string | Date): void;
1191
- export function lutimesSync(path: string | Uint8Array | URL, atime: number | string | Date, mtime: number | string | Date): void;
1192
- export function utimes(path: string | Uint8Array | URL, atime: number | string | Date, mtime: number | string | Date, callback: (err: NodeJS.ErrnoException | null) => void): void;
1193
- export function futimes(fd: number, atime: number | string | Date, mtime: number | string | Date, callback: (err: NodeJS.ErrnoException | null) => void): void;
1194
- export function lutimes(path: string | Uint8Array | URL, atime: number | string | Date, mtime: number | string | Date, callback: (err: NodeJS.ErrnoException | null) => void): void;
1299
+ export function utimesSync(
1300
+ path: string | Uint8Array | URL,
1301
+ atime: number | string | Date,
1302
+ mtime: number | string | Date,
1303
+ ): void;
1304
+ export function futimesSync(
1305
+ fd: number,
1306
+ atime: number | string | Date,
1307
+ mtime: number | string | Date,
1308
+ ): void;
1309
+ export function lutimesSync(
1310
+ path: string | Uint8Array | URL,
1311
+ atime: number | string | Date,
1312
+ mtime: number | string | Date,
1313
+ ): void;
1314
+ export function utimes(
1315
+ path: string | Uint8Array | URL,
1316
+ atime: number | string | Date,
1317
+ mtime: number | string | Date,
1318
+ callback: (err: NodeJS.ErrnoException | null) => void,
1319
+ ): void;
1320
+ export function futimes(
1321
+ fd: number,
1322
+ atime: number | string | Date,
1323
+ mtime: number | string | Date,
1324
+ callback: (err: NodeJS.ErrnoException | null) => void,
1325
+ ): void;
1326
+ export function lutimes(
1327
+ path: string | Uint8Array | URL,
1328
+ atime: number | string | Date,
1329
+ mtime: number | string | Date,
1330
+ callback: (err: NodeJS.ErrnoException | null) => void,
1331
+ ): void;
1195
1332
  export function readvSync(fd: number, buffers: Uint8Array[], position?: number | null): number;
1196
1333
  export function writevSync(fd: number, buffers: Uint8Array[], position?: number | null): number;
1197
1334
  /* Read into a caller buffer from the fd's current position when position
@@ -1203,7 +1340,13 @@ declare module "node:fs" {
1203
1340
  position?: number | null;
1204
1341
  }
1205
1342
  export function readSync(fd: number, buffer: Uint8Array, options?: ReadSyncOptions): number;
1206
- export function readSync(fd: number, buffer: Uint8Array, offset: number, length: number, position?: number | null): number;
1343
+ export function readSync(
1344
+ fd: number,
1345
+ buffer: Uint8Array,
1346
+ offset: number,
1347
+ length: number,
1348
+ position?: number | null,
1349
+ ): number;
1207
1350
  /* Write a caller-buffer window, or a utf8 string, at the fd's current
1208
1351
  * position when position is omitted/null (advancing it), or at a numeric
1209
1352
  * byte position without advancing it. Answers the byte count. */
@@ -1213,8 +1356,19 @@ declare module "node:fs" {
1213
1356
  position?: number | null;
1214
1357
  }
1215
1358
  export function writeSync(fd: number, buffer: Uint8Array, options: WriteSyncOptions): number;
1216
- export function writeSync(fd: number, buffer: Uint8Array, offset?: number, length?: number, position?: number | null): number;
1217
- export function writeSync(fd: number, string: string, position?: number | null, encoding?: "utf8" | "utf-8"): number;
1359
+ export function writeSync(
1360
+ fd: number,
1361
+ buffer: Uint8Array,
1362
+ offset?: number,
1363
+ length?: number,
1364
+ position?: number | null,
1365
+ ): number;
1366
+ export function writeSync(
1367
+ fd: number,
1368
+ string: string,
1369
+ position?: number | null,
1370
+ encoding?: "utf8" | "utf-8",
1371
+ ): number;
1218
1372
  /* statSync over an open fd — the same Stats snapshot. */
1219
1373
  export function fstatSync(fd: number): Stats;
1220
1374
  /* realpath(3) — resolves symlinks, `.`/`..`, throwing Node's fs error
@@ -1236,14 +1390,40 @@ declare module "node:fs" {
1236
1390
  }
1237
1391
  export interface StatsFs extends StatsFsBase<number> {}
1238
1392
  export interface BigIntStatsFs extends StatsFsBase<bigint> {}
1239
- export interface StatFsOptions { bigint?: boolean; }
1240
- export function statfsSync(path: string | Uint8Array | URL, options?: StatFsOptions & { bigint?: false }): StatsFs;
1241
- export function statfsSync(path: string | Uint8Array | URL, options: StatFsOptions & { bigint: true }): BigIntStatsFs;
1242
- export function statfsSync(path: string | Uint8Array | URL, options?: StatFsOptions): StatsFs | BigIntStatsFs;
1243
- export function statfs(path: string | Uint8Array | URL, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void;
1244
- export function statfs(path: string | Uint8Array | URL, options: (StatFsOptions & { bigint?: false }) | undefined, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void;
1245
- export function statfs(path: string | Uint8Array | URL, options: StatFsOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void): void;
1246
- export function statfs(path: string | Uint8Array | URL, options: StatFsOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void): void;
1393
+ export interface StatFsOptions {
1394
+ bigint?: boolean;
1395
+ }
1396
+ export function statfsSync(
1397
+ path: string | Uint8Array | URL,
1398
+ options?: StatFsOptions & { bigint?: false },
1399
+ ): StatsFs;
1400
+ export function statfsSync(
1401
+ path: string | Uint8Array | URL,
1402
+ options: StatFsOptions & { bigint: true },
1403
+ ): BigIntStatsFs;
1404
+ export function statfsSync(
1405
+ path: string | Uint8Array | URL,
1406
+ options?: StatFsOptions,
1407
+ ): StatsFs | BigIntStatsFs;
1408
+ export function statfs(
1409
+ path: string | Uint8Array | URL,
1410
+ callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void,
1411
+ ): void;
1412
+ export function statfs(
1413
+ path: string | Uint8Array | URL,
1414
+ options: (StatFsOptions & { bigint?: false }) | undefined,
1415
+ callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void,
1416
+ ): void;
1417
+ export function statfs(
1418
+ path: string | Uint8Array | URL,
1419
+ options: StatFsOptions & { bigint: true },
1420
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void,
1421
+ ): void;
1422
+ export function statfs(
1423
+ path: string | Uint8Array | URL,
1424
+ options: StatFsOptions | undefined,
1425
+ callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void,
1426
+ ): void;
1247
1427
  /* fs.watch — the file-watching slice (scr_watch.c, kqueue EVFILT_VNODE):
1248
1428
  * "rename"/"change" events on ONE path, watcher.close() to stop. The
1249
1429
  * listener takes zero parameters or the eventType string (the filename
@@ -1318,10 +1498,21 @@ declare module "fs/promises" {
1318
1498
  truncate(len?: number): Promise<void>;
1319
1499
  chmod(mode: number): Promise<void>;
1320
1500
  utimes(atime: number | string | Date, mtime: number | string | Date): Promise<void>;
1321
- readv<T extends Uint8Array[]>(buffers: T, position?: number | null): Promise<FileReadvResult<T>>;
1322
- writev<T extends Uint8Array[]>(buffers: T, position?: number | null): Promise<FileWritevResult<T>>;
1323
- read<T extends Uint8Array = Buffer>(options?: FileReadOptions<T> | null): Promise<FileReadResult<T>>;
1324
- read<T extends Uint8Array>(buffer: T, options: Omit<FileReadOptions<T>, "buffer">): Promise<FileReadResult<T>>;
1501
+ readv<T extends Uint8Array[]>(
1502
+ buffers: T,
1503
+ position?: number | null,
1504
+ ): Promise<FileReadvResult<T>>;
1505
+ writev<T extends Uint8Array[]>(
1506
+ buffers: T,
1507
+ position?: number | null,
1508
+ ): Promise<FileWritevResult<T>>;
1509
+ read<T extends Uint8Array = Buffer>(
1510
+ options?: FileReadOptions<T> | null,
1511
+ ): Promise<FileReadResult<T>>;
1512
+ read<T extends Uint8Array>(
1513
+ buffer: T,
1514
+ options: Omit<FileReadOptions<T>, "buffer">,
1515
+ ): Promise<FileReadResult<T>>;
1325
1516
  read<T extends Uint8Array>(
1326
1517
  buffer: T,
1327
1518
  offset?: number | null,
@@ -1334,8 +1525,15 @@ declare module "fs/promises" {
1334
1525
  length?: number | null,
1335
1526
  position?: number | null,
1336
1527
  ): Promise<FileWriteResult<T>>;
1337
- write<T extends Uint8Array>(buffer: T, options: Omit<FileReadOptions<T>, "buffer">): Promise<FileWriteResult<T>>;
1338
- write(data: string, position?: number | null, encoding?: "utf8" | "utf-8" | null): Promise<FileWriteResult<string>>;
1528
+ write<T extends Uint8Array>(
1529
+ buffer: T,
1530
+ options: Omit<FileReadOptions<T>, "buffer">,
1531
+ ): Promise<FileWriteResult<T>>;
1532
+ write(
1533
+ data: string,
1534
+ position?: number | null,
1535
+ encoding?: "utf8" | "utf-8" | null,
1536
+ ): Promise<FileWriteResult<string>>;
1339
1537
  readFile(options?: null): Promise<Buffer>;
1340
1538
  readFile(encoding: "utf8" | "utf-8"): Promise<string>;
1341
1539
  writeFile(data: string | Uint8Array, encoding?: "utf8" | "utf-8" | null): Promise<void>;
@@ -1344,22 +1542,54 @@ declare module "fs/promises" {
1344
1542
  [Symbol.asyncDispose](): Promise<void>;
1345
1543
  }
1346
1544
  export function open(path: string, flags?: string, mode?: number): Promise<FileHandle>;
1347
- export function link(existingPath: string | Uint8Array | URL, newPath: string | Uint8Array | URL): Promise<void>;
1348
- export function symlink(target: string | Uint8Array | URL, path: string | Uint8Array | URL, type?: string | null): Promise<void>;
1349
- export function readlink(path: string | Uint8Array | URL, options: "buffer" | { encoding: "buffer" }): Promise<Buffer>;
1350
- export function readlink(path: string | Uint8Array | URL, options?: BufferEncoding | { encoding?: BufferEncoding | null } | null): Promise<string>;
1351
- export function readlink(path: string | Uint8Array | URL, options: string | { encoding?: string | null } | null): Promise<string | Buffer>;
1352
- export function utimes(path: string | Uint8Array | URL, atime: number | string | Date, mtime: number | string | Date): Promise<void>;
1353
- export function lutimes(path: string | Uint8Array | URL, atime: number | string | Date, mtime: number | string | Date): Promise<void>;
1545
+ export function link(
1546
+ existingPath: string | Uint8Array | URL,
1547
+ newPath: string | Uint8Array | URL,
1548
+ ): Promise<void>;
1549
+ export function symlink(
1550
+ target: string | Uint8Array | URL,
1551
+ path: string | Uint8Array | URL,
1552
+ type?: string | null,
1553
+ ): Promise<void>;
1554
+ export function readlink(
1555
+ path: string | Uint8Array | URL,
1556
+ options: "buffer" | { encoding: "buffer" },
1557
+ ): Promise<Buffer>;
1558
+ export function readlink(
1559
+ path: string | Uint8Array | URL,
1560
+ options?: BufferEncoding | { encoding?: BufferEncoding | null } | null,
1561
+ ): Promise<string>;
1562
+ export function readlink(
1563
+ path: string | Uint8Array | URL,
1564
+ options: string | { encoding?: string | null } | null,
1565
+ ): Promise<string | Buffer>;
1566
+ export function utimes(
1567
+ path: string | Uint8Array | URL,
1568
+ atime: number | string | Date,
1569
+ mtime: number | string | Date,
1570
+ ): Promise<void>;
1571
+ export function lutimes(
1572
+ path: string | Uint8Array | URL,
1573
+ atime: number | string | Date,
1574
+ mtime: number | string | Date,
1575
+ ): Promise<void>;
1354
1576
  export function readFile(path: string, encoding: "utf8" | "utf-8"): Promise<string>;
1355
1577
  export function readFile(path: string): Promise<Buffer>;
1356
1578
  export function writeFile(
1357
1579
  path: string,
1358
1580
  data: string,
1359
- options?: { mode?: number; encoding?: "utf8" | "utf-8"; flag?: string; [option: string]: unknown },
1581
+ options?: {
1582
+ mode?: number;
1583
+ encoding?: "utf8" | "utf-8";
1584
+ flag?: string;
1585
+ [option: string]: unknown;
1586
+ },
1360
1587
  ): Promise<void>;
1361
1588
  export function writeFile(path: string, data: string, encoding: "utf8" | "utf-8"): Promise<void>;
1362
- export function mkdir(path: string, options?: { recursive?: boolean; mode?: number }): Promise<void>;
1589
+ export function mkdir(
1590
+ path: string,
1591
+ options?: { recursive?: boolean; mode?: number },
1592
+ ): Promise<void>;
1363
1593
  export function readdir(path: string): Promise<string[]>;
1364
1594
  export function readdir(
1365
1595
  path: string,
@@ -1372,9 +1602,18 @@ declare module "fs/promises" {
1372
1602
  ): Promise<import("node:fs").Dirent[]>;
1373
1603
  export function rm(path: string): Promise<void>;
1374
1604
  export function stat(path: string): Promise<import("node:fs").Stats>;
1375
- export function statfs(path: string | Uint8Array | URL, options?: import("node:fs").StatFsOptions & { bigint?: false }): Promise<import("node:fs").StatsFs>;
1376
- export function statfs(path: string | Uint8Array | URL, options: import("node:fs").StatFsOptions & { bigint: true }): Promise<import("node:fs").BigIntStatsFs>;
1377
- export function statfs(path: string | Uint8Array | URL, options?: import("node:fs").StatFsOptions): Promise<import("node:fs").StatsFs | import("node:fs").BigIntStatsFs>;
1605
+ export function statfs(
1606
+ path: string | Uint8Array | URL,
1607
+ options?: import("node:fs").StatFsOptions & { bigint?: false },
1608
+ ): Promise<import("node:fs").StatsFs>;
1609
+ export function statfs(
1610
+ path: string | Uint8Array | URL,
1611
+ options: import("node:fs").StatFsOptions & { bigint: true },
1612
+ ): Promise<import("node:fs").BigIntStatsFs>;
1613
+ export function statfs(
1614
+ path: string | Uint8Array | URL,
1615
+ options?: import("node:fs").StatFsOptions,
1616
+ ): Promise<import("node:fs").StatsFs | import("node:fs").BigIntStatsFs>;
1378
1617
  export function realpath(path: string): Promise<string>;
1379
1618
  export function lstat(path: string): Promise<import("node:fs").Stats>;
1380
1619
  export function unlink(path: string): Promise<void>;
@@ -1597,14 +1836,38 @@ declare module "crypto" {
1597
1836
  }
1598
1837
  export function createHash(algorithm: string): Hash;
1599
1838
  export function createHmac(algorithm: string, key: string | Uint8Array): Hmac;
1600
- export function hash(algorithm: string, data: string | Uint8Array, outputEncoding?: "hex" | "base64"): string;
1839
+ export function hash(
1840
+ algorithm: string,
1841
+ data: string | Uint8Array,
1842
+ outputEncoding?: "hex" | "base64",
1843
+ ): string;
1601
1844
  export function timingSafeEqual(a: Uint8Array, b: Uint8Array): boolean;
1602
- export function randomFillSync<T extends Uint8Array>(buffer: T, offset?: number, size?: number): T;
1845
+ export function randomFillSync<T extends Uint8Array>(
1846
+ buffer: T,
1847
+ offset?: number,
1848
+ size?: number,
1849
+ ): T;
1603
1850
  export function randomInt(max: number): number;
1604
1851
  export function randomInt(min: number, max: number): number;
1605
- export function pbkdf2Sync(password: string | Uint8Array, salt: string | Uint8Array, iterations: number, keylen: number, digest: string): Buffer;
1606
- export function pbkdf2(password: string | Uint8Array, salt: string | Uint8Array, iterations: number, keylen: number, digest: string, callback: (error: Error | null, derivedKey: Buffer) => void): void;
1607
- export function randomBytes(size: number, callback: (error: Error | null, buffer: Buffer) => void): void;
1852
+ export function pbkdf2Sync(
1853
+ password: string | Uint8Array,
1854
+ salt: string | Uint8Array,
1855
+ iterations: number,
1856
+ keylen: number,
1857
+ digest: string,
1858
+ ): Buffer;
1859
+ export function pbkdf2(
1860
+ password: string | Uint8Array,
1861
+ salt: string | Uint8Array,
1862
+ iterations: number,
1863
+ keylen: number,
1864
+ digest: string,
1865
+ callback: (error: Error | null, derivedKey: Buffer) => void,
1866
+ ): void;
1867
+ export function randomBytes(
1868
+ size: number,
1869
+ callback: (error: Error | null, buffer: Buffer) => void,
1870
+ ): void;
1608
1871
  export type BinaryLike = string | ArrayBuffer | ArrayBufferView;
1609
1872
  export interface ScryptOptions {
1610
1873
  N?: number;
@@ -1615,11 +1878,40 @@ declare module "crypto" {
1615
1878
  parallelization?: number;
1616
1879
  maxmem?: number;
1617
1880
  }
1618
- export function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer;
1619
- export function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, callback: (error: Error | null, derivedKey: Buffer) => void): void;
1620
- export function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, options: ScryptOptions, callback: (error: Error | null, derivedKey: Buffer) => void): void;
1621
- export function hkdfSync(digest: string, ikm: BinaryLike, salt: BinaryLike, info: BinaryLike, keylen: number): ArrayBuffer;
1622
- export function hkdf(digest: string, ikm: BinaryLike, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (error: Error | null, derivedKey: ArrayBuffer) => void): void;
1881
+ export function scryptSync(
1882
+ password: BinaryLike,
1883
+ salt: BinaryLike,
1884
+ keylen: number,
1885
+ options?: ScryptOptions,
1886
+ ): Buffer;
1887
+ export function scrypt(
1888
+ password: BinaryLike,
1889
+ salt: BinaryLike,
1890
+ keylen: number,
1891
+ callback: (error: Error | null, derivedKey: Buffer) => void,
1892
+ ): void;
1893
+ export function scrypt(
1894
+ password: BinaryLike,
1895
+ salt: BinaryLike,
1896
+ keylen: number,
1897
+ options: ScryptOptions,
1898
+ callback: (error: Error | null, derivedKey: Buffer) => void,
1899
+ ): void;
1900
+ export function hkdfSync(
1901
+ digest: string,
1902
+ ikm: BinaryLike,
1903
+ salt: BinaryLike,
1904
+ info: BinaryLike,
1905
+ keylen: number,
1906
+ ): ArrayBuffer;
1907
+ export function hkdf(
1908
+ digest: string,
1909
+ ikm: BinaryLike,
1910
+ salt: BinaryLike,
1911
+ info: BinaryLike,
1912
+ keylen: number,
1913
+ callback: (error: Error | null, derivedKey: ArrayBuffer) => void,
1914
+ ): void;
1623
1915
  /* The lowered X509Certificate surface is the data-record slice:
1624
1916
  * fingerprint (the SHA-1 of the DER, uppercase colon-separated) and
1625
1917
  * the validFrom/validTo validity window (Node's ASN1_TIME_print
@@ -1817,21 +2109,21 @@ declare module "child_process" {
1817
2109
  readonly stderr: NodeJS.ReadableStream | null;
1818
2110
  }
1819
2111
  export interface SpawnOptions {
1820
- /* The 3-tuple form admits number fds in the stdout/stderr slots —
1821
- * openSync results dup2'd into the child (the daemon-log idiom
1822
- * ["ignore", logFd, logFd]) — and "pipe" there too (child.stdout/
1823
- * child.stderr streams); "pipe" in the stdin slot exposes
1824
- * child.stdin. */
1825
- stdio?: "ignore" | "inherit" | "pipe" | ("ignore" | "inherit" | "pipe" | number)[];
1826
- /* detached gives the child its own session and process group
1827
- * (POSIX_SPAWN_SETSID); env REPLACES the child environment; cwd
1828
- * sets its working directory; windowsHide is a POSIX no-op; shell
1829
- * runs the complete command string through /bin/sh or cmd.exe. */
1830
- detached?: boolean;
1831
- env?: { [k: string]: string | undefined };
1832
- cwd?: string;
1833
- windowsHide?: boolean;
1834
- shell?: boolean;
2112
+ /* The 3-tuple form admits number fds in the stdout/stderr slots —
2113
+ * openSync results dup2'd into the child (the daemon-log idiom
2114
+ * ["ignore", logFd, logFd]) — and "pipe" there too (child.stdout/
2115
+ * child.stderr streams); "pipe" in the stdin slot exposes
2116
+ * child.stdin. */
2117
+ stdio?: "ignore" | "inherit" | "pipe" | ("ignore" | "inherit" | "pipe" | number)[];
2118
+ /* detached gives the child its own session and process group
2119
+ * (POSIX_SPAWN_SETSID); env REPLACES the child environment; cwd
2120
+ * sets its working directory; windowsHide is a POSIX no-op; shell
2121
+ * runs the complete command string through /bin/sh or cmd.exe. */
2122
+ detached?: boolean;
2123
+ env?: { [k: string]: string | undefined };
2124
+ cwd?: string;
2125
+ windowsHide?: boolean;
2126
+ shell?: boolean;
1835
2127
  }
1836
2128
  export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess;
1837
2129
  export function spawn(command: string, options?: SpawnOptions): ChildProcess;
@@ -1896,8 +2188,17 @@ declare module "child_process" {
1896
2188
  * stdout/stderr. The no-callback overload remains for util.promisify's
1897
2189
  * static target recognition; reached no-callback calls still fence. */
1898
2190
  export function execFile(file: string, callback: ExecFileCallback): ChildProcess;
1899
- export function execFile(file: string, args: string[] | null, callback: ExecFileCallback): ChildProcess;
1900
- export function execFile(file: string, args: string[] | null, options: ExecSyncOptions, callback: ExecFileCallback): ChildProcess;
2191
+ export function execFile(
2192
+ file: string,
2193
+ args: string[] | null,
2194
+ callback: ExecFileCallback,
2195
+ ): ChildProcess;
2196
+ export function execFile(
2197
+ file: string,
2198
+ args: string[] | null,
2199
+ options: ExecSyncOptions,
2200
+ callback: ExecFileCallback,
2201
+ ): ChildProcess;
1901
2202
  export function execFile(
1902
2203
  file: string,
1903
2204
  args?: string[] | null,
@@ -1928,7 +2229,11 @@ declare module "util" {
1928
2229
  export function stripVTControlCharacters(str: string): string;
1929
2230
  export function toUSVString(string: string): string;
1930
2231
  export function isDeepStrictEqual(val1: unknown, val2: unknown, skipPrototype?: boolean): boolean;
1931
- export function styleText(format: string | readonly string[], text: string, options?: { validateStream?: boolean; stream?: unknown }): string;
2232
+ export function styleText(
2233
+ format: string | readonly string[],
2234
+ text: string,
2235
+ options?: { validateStream?: boolean; stream?: unknown },
2236
+ ): string;
1932
2237
  export function parseEnv(content: string): { [key: string]: string | undefined };
1933
2238
  export type TextEncoder = globalThis.TextEncoder;
1934
2239
  export type TextDecoder = globalThis.TextDecoder;
@@ -1956,7 +2261,10 @@ declare module "util" {
1956
2261
  * story: guarded/diagnostic-path code must TYPECHECK; a reached use
1957
2262
  * without a lowering fences at its site). inspect's options carry the
1958
2263
  * documented knobs through an index signature. */
1959
- export function inspect(object: unknown, options?: { depth?: number | null; colors?: boolean; [k: string]: unknown }): string;
2264
+ export function inspect(
2265
+ object: unknown,
2266
+ options?: { depth?: number | null; colors?: boolean; [k: string]: unknown },
2267
+ ): string;
1960
2268
  export function format(format?: unknown, ...args: unknown[]): string;
1961
2269
  export function formatWithOptions(
1962
2270
  inspectOptions: { depth?: number | null; colors?: boolean; [k: string]: unknown },
@@ -2141,8 +2449,20 @@ declare module "node:test" {
2141
2449
  function run(options?: unknown): unknown;
2142
2450
  function snapshot(...args: unknown[]): unknown;
2143
2451
  export {
2144
- test, it, describe, suite, before, after, beforeEach, afterEach,
2145
- mock, assert, run, snapshot, TestContext, TestOptions,
2452
+ test,
2453
+ it,
2454
+ describe,
2455
+ suite,
2456
+ before,
2457
+ after,
2458
+ beforeEach,
2459
+ afterEach,
2460
+ mock,
2461
+ assert,
2462
+ run,
2463
+ snapshot,
2464
+ TestContext,
2465
+ TestOptions,
2146
2466
  };
2147
2467
  export default test;
2148
2468
  }
@@ -2162,8 +2482,16 @@ declare module "assert" {
2162
2482
  function fail(message?: string): never;
2163
2483
  function throws(fn: () => unknown, expected?: unknown, message?: string): void;
2164
2484
  function doesNotThrow(fn: () => unknown, expected?: unknown, message?: string): void;
2165
- function rejects(fn: (() => Promise<unknown>) | Promise<unknown>, expected?: unknown, message?: string): Promise<void>;
2166
- function doesNotReject(fn: (() => Promise<unknown>) | Promise<unknown>, expected?: unknown, message?: string): Promise<void>;
2485
+ function rejects(
2486
+ fn: (() => Promise<unknown>) | Promise<unknown>,
2487
+ expected?: unknown,
2488
+ message?: string,
2489
+ ): Promise<void>;
2490
+ function doesNotReject(
2491
+ fn: (() => Promise<unknown>) | Promise<unknown>,
2492
+ expected?: unknown,
2493
+ message?: string,
2494
+ ): Promise<void>;
2167
2495
  function match(value: string, regExp: RegExp, message?: string): void;
2168
2496
  function doesNotMatch(value: string, regExp: RegExp, message?: string): void;
2169
2497
  function ifError(value: unknown): void;
@@ -2193,8 +2521,16 @@ declare module "assert/strict" {
2193
2521
  function fail(message?: string): never;
2194
2522
  function throws(fn: () => unknown, expected?: unknown, message?: string): void;
2195
2523
  function doesNotThrow(fn: () => unknown, expected?: unknown, message?: string): void;
2196
- function rejects(fn: (() => Promise<unknown>) | Promise<unknown>, expected?: unknown, message?: string): Promise<void>;
2197
- function doesNotReject(fn: (() => Promise<unknown>) | Promise<unknown>, expected?: unknown, message?: string): Promise<void>;
2524
+ function rejects(
2525
+ fn: (() => Promise<unknown>) | Promise<unknown>,
2526
+ expected?: unknown,
2527
+ message?: string,
2528
+ ): Promise<void>;
2529
+ function doesNotReject(
2530
+ fn: (() => Promise<unknown>) | Promise<unknown>,
2531
+ expected?: unknown,
2532
+ message?: string,
2533
+ ): Promise<void>;
2198
2534
  function match(value: string, regExp: RegExp, message?: string): void;
2199
2535
  function doesNotMatch(value: string, regExp: RegExp, message?: string): void;
2200
2536
  function ifError(value: unknown): void;
@@ -2260,8 +2596,18 @@ declare module "querystring" {
2260
2596
  | null
2261
2597
  | undefined;
2262
2598
  }
2263
- export function parse(str: string, sep?: string | null, eq?: string | null, options?: ParseOptions): ParsedUrlQuery;
2264
- export function stringify(obj?: ParsedUrlQueryInput, sep?: string | null, eq?: string | null, options?: StringifyOptions): string;
2599
+ export function parse(
2600
+ str: string,
2601
+ sep?: string | null,
2602
+ eq?: string | null,
2603
+ options?: ParseOptions,
2604
+ ): ParsedUrlQuery;
2605
+ export function stringify(
2606
+ obj?: ParsedUrlQueryInput,
2607
+ sep?: string | null,
2608
+ eq?: string | null,
2609
+ options?: StringifyOptions,
2610
+ ): string;
2265
2611
  export const decode: typeof parse;
2266
2612
  export const encode: typeof stringify;
2267
2613
  export function escape(str: string): string;
@@ -2308,28 +2654,58 @@ declare module "node:readline" {
2308
2654
  * declared so reached uses receive a named SC2020 refusal; Brotli,
2309
2655
  * streaming, and Zstd remain outside the lowered surface. */
2310
2656
  declare module "zlib" {
2311
- export interface ZlibOptions { [option: string]: unknown }
2657
+ export interface ZlibOptions {
2658
+ [option: string]: unknown;
2659
+ }
2312
2660
  export type ZlibCallback = (error: NodeJS.ErrnoException | null, result: Buffer) => void;
2313
2661
  export function deflate(data: string | Uint8Array, callback: ZlibCallback): void;
2314
- export function deflate(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2662
+ export function deflate(
2663
+ data: string | Uint8Array,
2664
+ options: ZlibOptions,
2665
+ callback: ZlibCallback,
2666
+ ): void;
2315
2667
  export function deflateSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2316
2668
  export function inflate(data: string | Uint8Array, callback: ZlibCallback): void;
2317
- export function inflate(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2669
+ export function inflate(
2670
+ data: string | Uint8Array,
2671
+ options: ZlibOptions,
2672
+ callback: ZlibCallback,
2673
+ ): void;
2318
2674
  export function inflateSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2319
2675
  export function deflateRaw(data: string | Uint8Array, callback: ZlibCallback): void;
2320
- export function deflateRaw(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2676
+ export function deflateRaw(
2677
+ data: string | Uint8Array,
2678
+ options: ZlibOptions,
2679
+ callback: ZlibCallback,
2680
+ ): void;
2321
2681
  export function deflateRawSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2322
2682
  export function inflateRaw(data: string | Uint8Array, callback: ZlibCallback): void;
2323
- export function inflateRaw(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2683
+ export function inflateRaw(
2684
+ data: string | Uint8Array,
2685
+ options: ZlibOptions,
2686
+ callback: ZlibCallback,
2687
+ ): void;
2324
2688
  export function inflateRawSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2325
2689
  export function gzip(data: string | Uint8Array, callback: ZlibCallback): void;
2326
- export function gzip(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2690
+ export function gzip(
2691
+ data: string | Uint8Array,
2692
+ options: ZlibOptions,
2693
+ callback: ZlibCallback,
2694
+ ): void;
2327
2695
  export function gzipSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2328
2696
  export function gunzip(data: string | Uint8Array, callback: ZlibCallback): void;
2329
- export function gunzip(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2697
+ export function gunzip(
2698
+ data: string | Uint8Array,
2699
+ options: ZlibOptions,
2700
+ callback: ZlibCallback,
2701
+ ): void;
2330
2702
  export function gunzipSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2331
2703
  export function unzip(data: string | Uint8Array, callback: ZlibCallback): void;
2332
- export function unzip(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2704
+ export function unzip(
2705
+ data: string | Uint8Array,
2706
+ options: ZlibOptions,
2707
+ callback: ZlibCallback,
2708
+ ): void;
2333
2709
  export function unzipSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2334
2710
  export function crc32(data: string | Uint8Array, value?: number): number;
2335
2711
  export function brotliCompressSync(data: string | Uint8Array): Buffer;
@@ -2381,7 +2757,9 @@ declare module "net" {
2381
2757
  setEncoding(encoding: string): void;
2382
2758
  /* socket→socket, and socket→response (the extended-CONNECT bridge
2383
2759
  * leg: raw chunks become response body writes; EOF ends it). */
2384
- pipe(destination: Socket | import("http").ServerResponse | import("http2").Http2ServerResponse): void;
2760
+ pipe(
2761
+ destination: Socket | import("http").ServerResponse | import("http2").Http2ServerResponse,
2762
+ ): void;
2385
2763
  setTimeout(ms: number): void;
2386
2764
  /* The paused-mode demux surface: once('readable') + read(1) +
2387
2765
  * unshift — read answers exactly n buffered bytes or null. */
@@ -2393,16 +2771,25 @@ declare module "net" {
2393
2771
  * registration never fires — Node's exact split. 'session' fires
2394
2772
  * once with the serialized session (the received-ticket event). */
2395
2773
  on(event: "data", listener: (chunk: Buffer) => void): void;
2396
- on(event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect", listener: () => void): void;
2774
+ on(
2775
+ event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect",
2776
+ listener: () => void,
2777
+ ): void;
2397
2778
  on(event: "error", listener: (err: Error) => void): void;
2398
2779
  on(event: "session", listener: (session: Buffer) => void): void;
2399
2780
  /* addListener IS on (Node aliases them) — the suite spells both. */
2400
2781
  addListener(event: "data", listener: (chunk: Buffer) => void): void;
2401
- addListener(event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect", listener: () => void): void;
2782
+ addListener(
2783
+ event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect",
2784
+ listener: () => void,
2785
+ ): void;
2402
2786
  addListener(event: "error", listener: (err: Error) => void): void;
2403
2787
  addListener(event: "session", listener: (session: Buffer) => void): void;
2404
2788
  once(event: "data", listener: (chunk: Buffer) => void): void;
2405
- once(event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect", listener: () => void): void;
2789
+ once(
2790
+ event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect",
2791
+ listener: () => void,
2792
+ ): void;
2406
2793
  once(event: "error", listener: (err: Error) => void): void;
2407
2794
  once(event: "session", listener: (session: Buffer) => void): void;
2408
2795
  }
@@ -2416,7 +2803,10 @@ declare module "net" {
2416
2803
  /* The explicit-interface bind: host is an IP literal (absent = the
2417
2804
  * host-less dual-stack any); ipv6Only sets IPV6_V6ONLY and reusePort
2418
2805
  * requests kernel connection distribution where Node supports it. */
2419
- listen(options: { port: number; host?: string; ipv6Only?: boolean; reusePort?: boolean }, callback?: () => void): Server;
2806
+ listen(
2807
+ options: { port: number; host?: string; ipv6Only?: boolean; reusePort?: boolean },
2808
+ callback?: () => void,
2809
+ ): Server;
2420
2810
  close(callback?: () => void): void;
2421
2811
  /* The bound AddressInfo (Node answers null before listen — this
2422
2812
  * surface answers the record with port 0 there, the serverPort
@@ -2430,23 +2820,41 @@ declare module "net" {
2430
2820
  on(event: "error", listener: (err: Error) => void): void;
2431
2821
  /* The WebSocket handover: fires INSTEAD of 'request' for
2432
2822
  * Connection: upgrade requests, with the raw socket + head bytes. */
2433
- on(event: "upgrade", listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void): void;
2823
+ on(
2824
+ event: "upgrade",
2825
+ listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void,
2826
+ ): void;
2434
2827
  /* http.createServer(handler)'s event twin (a no-parser net server
2435
2828
  * never fires it, like Node). */
2436
- on(event: "request", listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void): void;
2829
+ on(
2830
+ event: "request",
2831
+ listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void,
2832
+ ): void;
2437
2833
  /* addListener IS on (Node aliases them) — the suite spells both. */
2438
2834
  addListener(event: "connection" | "secureConnection", listener: (socket: Socket) => void): void;
2439
2835
  addListener(event: "close" | "listening", listener: () => void): void;
2440
2836
  addListener(event: "timeout", listener: (socket: Socket) => void): void;
2441
2837
  addListener(event: "error", listener: (err: Error) => void): void;
2442
- addListener(event: "upgrade", listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void): void;
2443
- addListener(event: "request", listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void): void;
2838
+ addListener(
2839
+ event: "upgrade",
2840
+ listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void,
2841
+ ): void;
2842
+ addListener(
2843
+ event: "request",
2844
+ listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void,
2845
+ ): void;
2444
2846
  once(event: "connection" | "secureConnection", listener: (socket: Socket) => void): void;
2445
2847
  once(event: "close" | "listening", listener: () => void): void;
2446
2848
  once(event: "timeout", listener: (socket: Socket) => void): void;
2447
2849
  once(event: "error", listener: (err: Error) => void): void;
2448
- once(event: "upgrade", listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void): void;
2449
- once(event: "request", listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void): void;
2850
+ once(
2851
+ event: "upgrade",
2852
+ listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void,
2853
+ ): void;
2854
+ once(
2855
+ event: "request",
2856
+ listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void,
2857
+ ): void;
2450
2858
  }
2451
2859
  /* The Socket VALUE — the `x instanceof net.Socket` narrowing target
2452
2860
  * (the h2 compat 'connect' listener's test). Constructing bare sockets
@@ -2454,27 +2862,40 @@ declare module "net" {
2454
2862
  export const Socket: abstract new () => Socket;
2455
2863
  export function createServer(connectionListener?: (socket: Socket) => void): Server;
2456
2864
  export function connect(port: number, host?: string, connectListener?: () => void): Socket;
2457
- export function createConnection(port: number, host?: string, connectListener?: () => void): Socket;
2865
+ export function createConnection(
2866
+ port: number,
2867
+ host?: string,
2868
+ connectListener?: () => void,
2869
+ ): Socket;
2458
2870
  /* The caller-resolver dial (@types/node's net.LookupFunction, narrowed
2459
2871
  * to the lowered shape): the runtime invokes it as Node does and dials
2460
2872
  * the answered addresses in order under autoSelectFamily: true. */
2461
2873
  export type LookupFunction = (
2462
2874
  hostname: string,
2463
2875
  options: unknown,
2464
- callback: (err: NodeJS.ErrnoException | null, addresses: { address: string; family: number }[]) => void,
2876
+ callback: (
2877
+ err: NodeJS.ErrnoException | null,
2878
+ addresses: { address: string; family: number }[],
2879
+ ) => void,
2465
2880
  ) => void;
2466
- export function connect(options: {
2467
- port: number;
2468
- host?: string;
2469
- autoSelectFamily?: boolean;
2470
- lookup?: LookupFunction;
2471
- }, connectListener?: () => void): Socket;
2472
- export function createConnection(options: {
2473
- port: number;
2474
- host?: string;
2475
- autoSelectFamily?: boolean;
2476
- lookup?: LookupFunction;
2477
- }, connectListener?: () => void): Socket;
2881
+ export function connect(
2882
+ options: {
2883
+ port: number;
2884
+ host?: string;
2885
+ autoSelectFamily?: boolean;
2886
+ lookup?: LookupFunction;
2887
+ },
2888
+ connectListener?: () => void,
2889
+ ): Socket;
2890
+ export function createConnection(
2891
+ options: {
2892
+ port: number;
2893
+ host?: string;
2894
+ autoSelectFamily?: boolean;
2895
+ lookup?: LookupFunction;
2896
+ },
2897
+ connectListener?: () => void,
2898
+ ): Socket;
2478
2899
  /* The happy-eyeballs attempt budget (Node's process-wide knob; the
2479
2900
  * autoSelectFamily dial consults it): one runtime int, default 250ms
2480
2901
  * like Node's. */
@@ -2513,16 +2934,21 @@ declare module "http" {
2513
2934
  headersTimeout: number;
2514
2935
  requestTimeout: number;
2515
2936
  }
2516
- export type RequestListener =
2517
- (req: IncomingMessage, res: ServerResponse) => void;
2937
+ export type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;
2518
2938
  /* The Server VALUE — Node's constructor works with and without `new`
2519
2939
  * (test/parallel's http.Server(fn) spelling); both route to the
2520
2940
  * createServer lowering. */
2521
2941
  export const Server: {
2522
2942
  new (requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
2523
- new (options: ServerOptions, requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
2943
+ new (
2944
+ options: ServerOptions,
2945
+ requestListener?: (req: IncomingMessage, res: ServerResponse) => void,
2946
+ ): Server;
2524
2947
  (requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
2525
- (options: ServerOptions, requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
2948
+ (
2949
+ options: ServerOptions,
2950
+ requestListener?: (req: IncomingMessage, res: ServerResponse) => void,
2951
+ ): Server;
2526
2952
  };
2527
2953
  /* The options-record stance (the RequestOptions precedent): every
2528
2954
  * documented key typechecks; the lowering's option walk decides per
@@ -2566,7 +2992,9 @@ declare module "http" {
2566
2992
  setEncoding(encoding: string): void;
2567
2993
  /* The proxy legs: the body streams into a ServerResponse, a
2568
2994
  * ClientRequest, or a raw Socket; natural end ends the destination. */
2569
- pipe(destination: ServerResponse | import("http2").Http2ServerResponse | ClientRequest | Socket): void;
2995
+ pipe(
2996
+ destination: ServerResponse | import("http2").Http2ServerResponse | ClientRequest | Socket,
2997
+ ): void;
2570
2998
  on(event: "data", listener: (chunk: any) => void): void;
2571
2999
  on(event: "end" | "close" | "aborted", listener: () => void): void;
2572
3000
  on(event: "error", listener: (err: Error) => void): void;
@@ -2602,7 +3030,11 @@ declare module "http" {
2602
3030
  /* Both overloads answer the response (`return this` chaining); the
2603
3031
  * headers argument also takes Node's flat [name, value, ...] array. */
2604
3032
  writeHead(statusCode: number, headers?: OutgoingHttpHeaders | string[]): ServerResponse;
2605
- writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders | string[]): ServerResponse;
3033
+ writeHead(
3034
+ statusCode: number,
3035
+ statusMessage: string,
3036
+ headers?: OutgoingHttpHeaders | string[],
3037
+ ): ServerResponse;
2606
3038
  writeContinue(callback?: () => void): void;
2607
3039
  writeProcessing(callback?: () => void): void;
2608
3040
  writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
@@ -2670,7 +3102,14 @@ declare module "http" {
2670
3102
  constructor(options?: AgentOptions);
2671
3103
  destroy(): void;
2672
3104
  /* Node's exact key shape: host:port:localAddress[:family][:socketPath]. */
2673
- getName(options?: { host?: string; port?: number; localAddress?: string; family?: number; socketPath?: string; [option: string]: unknown }): string;
3105
+ getName(options?: {
3106
+ host?: string;
3107
+ port?: number;
3108
+ localAddress?: string;
3109
+ family?: number;
3110
+ socketPath?: string;
3111
+ [option: string]: unknown;
3112
+ }): string;
2674
3113
  maxSockets: number;
2675
3114
  maxFreeSockets: number;
2676
3115
  keepAliveMsecs: number;
@@ -2720,18 +3159,27 @@ declare module "http" {
2720
3159
  abort(): void;
2721
3160
  on(event: "response", listener: (res: IncomingMessage) => void): void;
2722
3161
  on(event: "socket", listener: (socket: Socket) => void): void;
2723
- on(event: "upgrade", listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void): void;
3162
+ on(
3163
+ event: "upgrade",
3164
+ listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void,
3165
+ ): void;
2724
3166
  on(event: "timeout" | "close" | "finish" | "abort", listener: () => void): void;
2725
3167
  on(event: "error", listener: (err: Error) => void): void;
2726
3168
  /* addListener IS on (Node aliases them) — the suite spells both. */
2727
3169
  addListener(event: "response", listener: (res: IncomingMessage) => void): void;
2728
3170
  addListener(event: "socket", listener: (socket: Socket) => void): void;
2729
- addListener(event: "upgrade", listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void): void;
3171
+ addListener(
3172
+ event: "upgrade",
3173
+ listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void,
3174
+ ): void;
2730
3175
  addListener(event: "timeout" | "close" | "finish" | "abort", listener: () => void): void;
2731
3176
  addListener(event: "error", listener: (err: Error) => void): void;
2732
3177
  once(event: "response", listener: (res: IncomingMessage) => void): void;
2733
3178
  once(event: "socket", listener: (socket: Socket) => void): void;
2734
- once(event: "upgrade", listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void): void;
3179
+ once(
3180
+ event: "upgrade",
3181
+ listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void,
3182
+ ): void;
2735
3183
  once(event: "timeout" | "close" | "finish" | "abort", listener: () => void): void;
2736
3184
  once(event: "error", listener: (err: Error) => void): void;
2737
3185
  }
@@ -2818,9 +3266,21 @@ declare module "tls" {
2818
3266
  servername?: string;
2819
3267
  [option: string]: unknown;
2820
3268
  }
2821
- export function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
2822
- export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
2823
- export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
3269
+ export function connect(
3270
+ options: ConnectionOptions,
3271
+ secureConnectListener?: () => void,
3272
+ ): TLSSocket;
3273
+ export function connect(
3274
+ port: number,
3275
+ options?: ConnectionOptions,
3276
+ secureConnectListener?: () => void,
3277
+ ): TLSSocket;
3278
+ export function connect(
3279
+ port: number,
3280
+ host?: string,
3281
+ options?: ConnectionOptions,
3282
+ secureConnectListener?: () => void,
3283
+ ): TLSSocket;
2824
3284
  /** An opaque parsed cert/key pair — what an SNI callback answers with
2825
3285
  * (the value is a runtime handle; the members are runtime-internal). */
2826
3286
  export interface SecureContext {}
@@ -2951,15 +3411,24 @@ declare module "http2" {
2951
3411
  getHeaders(): import("http").OutgoingHttpHeaders;
2952
3412
  hasHeader(name: string): boolean;
2953
3413
  removeHeader(name: string): void;
2954
- writeHead(statusCode: number, headers?: import("http").OutgoingHttpHeaders | string[]): Http2ServerResponse;
2955
- writeHead(statusCode: number, statusMessage: string, headers?: import("http").OutgoingHttpHeaders | string[]): Http2ServerResponse;
3414
+ writeHead(
3415
+ statusCode: number,
3416
+ headers?: import("http").OutgoingHttpHeaders | string[],
3417
+ ): Http2ServerResponse;
3418
+ writeHead(
3419
+ statusCode: number,
3420
+ statusMessage: string,
3421
+ headers?: import("http").OutgoingHttpHeaders | string[],
3422
+ ): Http2ServerResponse;
2956
3423
  writeContinue(): void;
2957
3424
  writeEarlyHints(hints: Record<string, string | string[]>): void;
2958
3425
  write(data: string | Uint8Array): void;
2959
3426
  flushHeaders(): void;
2960
3427
  cork(): void;
2961
3428
  uncork(): void;
2962
- addTrailers(headers: import("http").OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
3429
+ addTrailers(
3430
+ headers: import("http").OutgoingHttpHeaders | ReadonlyArray<[string, string]>,
3431
+ ): void;
2963
3432
  end(data?: string | Uint8Array, callback?: () => void): void;
2964
3433
  end(callback: () => void): void;
2965
3434
  destroy(): void;
@@ -2979,23 +3448,41 @@ declare module "http2" {
2979
3448
  address(): import("node:dgram").AddressInfo;
2980
3449
  emit(event: "connection", socket: Socket): void;
2981
3450
  on(event: "connection", listener: (socket: Socket) => void): void;
2982
- on(event: "request", listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void): void;
3451
+ on(
3452
+ event: "request",
3453
+ listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void,
3454
+ ): void;
2983
3455
  on(event: "error", listener: (err: Error) => void): void;
2984
3456
  on(event: "close", listener: () => void): void;
2985
3457
  on(event: "sessionError", listener: (err: Error, session: ServerHttp2Session) => void): void;
2986
3458
  /* The ALPN=h2 server's surface (createSecureServer WITHOUT
2987
3459
  * allowHTTP1 — the real h2-over-TLS stack): per-stream and
2988
3460
  * per-session listeners, exactly the h2c server's. */
2989
- on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3461
+ on(
3462
+ event: "stream",
3463
+ listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
3464
+ ): void;
2990
3465
  on(event: "session", listener: (session: ServerHttp2Session) => void): void;
2991
- once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3466
+ once(
3467
+ event: "stream",
3468
+ listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
3469
+ ): void;
2992
3470
  once(event: "session", listener: (session: ServerHttp2Session) => void): void;
2993
3471
  /* HTTP CONNECT (and, in Node, the h2 extended CONNECT — which the
2994
3472
  * allowHTTP1 lowering never sees): the second argument is the raw
2995
3473
  * socket on HTTP/1.1 connections; narrow with instanceof. */
2996
- on(event: "connect", listener: (req: Http2ServerRequest | import("http").IncomingMessage, resOrSocket: Http2ServerResponse | Socket) => void): void;
3474
+ on(
3475
+ event: "connect",
3476
+ listener: (
3477
+ req: Http2ServerRequest | import("http").IncomingMessage,
3478
+ resOrSocket: Http2ServerResponse | Socket,
3479
+ ) => void,
3480
+ ): void;
2997
3481
  once(event: "connection", listener: (socket: Socket) => void): void;
2998
- once(event: "request", listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void): void;
3482
+ once(
3483
+ event: "request",
3484
+ listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void,
3485
+ ): void;
2999
3486
  once(event: "error", listener: (err: Error) => void): void;
3000
3487
  once(event: "close", listener: () => void): void;
3001
3488
  }
@@ -3265,7 +3752,10 @@ declare module "http2" {
3265
3752
  * the ALPN=h2 server's compat handles over streams). */
3266
3753
  export function createSecureServer(
3267
3754
  options: SecureServerOptions,
3268
- onRequestHandler?: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void,
3755
+ onRequestHandler?: (
3756
+ req: import("http").IncomingMessage,
3757
+ res: import("http").ServerResponse,
3758
+ ) => void,
3269
3759
  ): Http2SecureServer;
3270
3760
 
3271
3761
  /* ── the REAL h2c surface (scr_http2.c: frame codec + HPACK over the
@@ -3306,22 +3796,49 @@ declare module "http2" {
3306
3796
  goaway(code?: number, lastStreamID?: number, opaqueData?: Uint8Array): void;
3307
3797
  on(event: "close" | "timeout", listener: () => void): void;
3308
3798
  on(event: "error", listener: (err: Error) => void): void;
3309
- on(event: "connect", listener: (session: Http2Session, socket: import("net").Socket) => void): void;
3310
- on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3311
- on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Uint8Array) => void): void;
3799
+ on(
3800
+ event: "connect",
3801
+ listener: (session: Http2Session, socket: import("net").Socket) => void,
3802
+ ): void;
3803
+ on(
3804
+ event: "stream",
3805
+ listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
3806
+ ): void;
3807
+ on(
3808
+ event: "goaway",
3809
+ listener: (errorCode: number, lastStreamID: number, opaqueData?: Uint8Array) => void,
3810
+ ): void;
3312
3811
  on(event: "localSettings" | "remoteSettings", listener: (settings: any) => void): void;
3313
3812
  on(event: "frameError", listener: (type: number, code: number, id: number) => void): void;
3314
3813
  on(event: "ping", listener: (payload: Uint8Array) => void): void;
3315
3814
  once(event: "close" | "timeout", listener: () => void): void;
3316
3815
  once(event: "error", listener: (err: Error) => void): void;
3317
- once(event: "connect", listener: (session: Http2Session, socket: import("net").Socket) => void): void;
3318
- once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3319
- once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Uint8Array) => void): void;
3816
+ once(
3817
+ event: "connect",
3818
+ listener: (session: Http2Session, socket: import("net").Socket) => void,
3819
+ ): void;
3820
+ once(
3821
+ event: "stream",
3822
+ listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
3823
+ ): void;
3824
+ once(
3825
+ event: "goaway",
3826
+ listener: (errorCode: number, lastStreamID: number, opaqueData?: Uint8Array) => void,
3827
+ ): void;
3320
3828
  once(event: "localSettings" | "remoteSettings", listener: (settings: any) => void): void;
3321
3829
  }
3322
3830
 
3323
3831
  export interface ClientHttp2Session extends Http2Session {
3324
- request(headers?: OutgoingHttpHeaders, options?: { endStream?: boolean; exclusive?: boolean; parent?: number; weight?: number; waitForTrailers?: boolean }): ClientHttp2Stream;
3832
+ request(
3833
+ headers?: OutgoingHttpHeaders,
3834
+ options?: {
3835
+ endStream?: boolean;
3836
+ exclusive?: boolean;
3837
+ parent?: number;
3838
+ weight?: number;
3839
+ waitForTrailers?: boolean;
3840
+ },
3841
+ ): ClientHttp2Stream;
3325
3842
  }
3326
3843
 
3327
3844
  export interface ServerHttp2Session extends Http2Session {
@@ -3357,18 +3874,58 @@ declare module "http2" {
3357
3874
 
3358
3875
  export interface ServerHttp2Stream extends Http2StreamCore {
3359
3876
  on(event: "data", listener: (chunk: any) => void): void;
3360
- on(event: "end" | "close" | "aborted" | "ready" | "timeout" | "drain" | "finish" | "wantTrailers", listener: () => void): void;
3877
+ on(
3878
+ event:
3879
+ | "end"
3880
+ | "close"
3881
+ | "aborted"
3882
+ | "ready"
3883
+ | "timeout"
3884
+ | "drain"
3885
+ | "finish"
3886
+ | "wantTrailers",
3887
+ listener: () => void,
3888
+ ): void;
3361
3889
  on(event: "error", listener: (err: Error) => void): void;
3362
3890
  on(event: "frameError", listener: (type: number, code: number, id: number) => void): void;
3363
3891
  on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): void;
3364
3892
  once(event: "data", listener: (chunk: any) => void): void;
3365
- once(event: "end" | "close" | "aborted" | "ready" | "timeout" | "drain" | "finish" | "wantTrailers", listener: () => void): void;
3893
+ once(
3894
+ event:
3895
+ | "end"
3896
+ | "close"
3897
+ | "aborted"
3898
+ | "ready"
3899
+ | "timeout"
3900
+ | "drain"
3901
+ | "finish"
3902
+ | "wantTrailers",
3903
+ listener: () => void,
3904
+ ): void;
3366
3905
  once(event: "error", listener: (err: Error) => void): void;
3367
3906
  once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): void;
3368
- respond(headers?: OutgoingHttpHeaders, options?: { endStream?: boolean; waitForTrailers?: boolean }): void;
3369
- respondWithFile(path: string, headers?: OutgoingHttpHeaders, options?: Record<string, unknown>): void;
3370
- respondWithFD(fd: number, headers?: OutgoingHttpHeaders, options?: Record<string, unknown>): void;
3371
- pushStream(headers: OutgoingHttpHeaders, callback: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void;
3907
+ respond(
3908
+ headers?: OutgoingHttpHeaders,
3909
+ options?: { endStream?: boolean; waitForTrailers?: boolean },
3910
+ ): void;
3911
+ respondWithFile(
3912
+ path: string,
3913
+ headers?: OutgoingHttpHeaders,
3914
+ options?: Record<string, unknown>,
3915
+ ): void;
3916
+ respondWithFD(
3917
+ fd: number,
3918
+ headers?: OutgoingHttpHeaders,
3919
+ options?: Record<string, unknown>,
3920
+ ): void;
3921
+ pushStream(
3922
+ headers: OutgoingHttpHeaders,
3923
+ callback: (
3924
+ err: Error | null,
3925
+ pushStream: ServerHttp2Stream,
3926
+ headers: OutgoingHttpHeaders,
3927
+ ) => void,
3928
+ ): void;
3372
3929
  readonly headersSent: boolean;
3373
3930
  readonly pushAllowed: boolean;
3374
3931
  additionalHeaders(headers: OutgoingHttpHeaders): void;
@@ -3379,14 +3936,36 @@ declare module "http2" {
3379
3936
  on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3380
3937
  on(event: "headers", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3381
3938
  on(event: "data", listener: (chunk: any) => void): void;
3382
- on(event: "end" | "close" | "aborted" | "ready" | "timeout" | "drain" | "finish" | "wantTrailers", listener: () => void): void;
3939
+ on(
3940
+ event:
3941
+ | "end"
3942
+ | "close"
3943
+ | "aborted"
3944
+ | "ready"
3945
+ | "timeout"
3946
+ | "drain"
3947
+ | "finish"
3948
+ | "wantTrailers",
3949
+ listener: () => void,
3950
+ ): void;
3383
3951
  on(event: "error", listener: (err: Error) => void): void;
3384
3952
  on(event: "frameError", listener: (type: number, code: number, id: number) => void): void;
3385
3953
  on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): void;
3386
3954
  once(event: "response", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3387
3955
  once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3388
3956
  once(event: "data", listener: (chunk: any) => void): void;
3389
- once(event: "end" | "close" | "aborted" | "ready" | "timeout" | "drain" | "finish" | "wantTrailers", listener: () => void): void;
3957
+ once(
3958
+ event:
3959
+ | "end"
3960
+ | "close"
3961
+ | "aborted"
3962
+ | "ready"
3963
+ | "timeout"
3964
+ | "drain"
3965
+ | "finish"
3966
+ | "wantTrailers",
3967
+ listener: () => void,
3968
+ ): void;
3390
3969
  once(event: "error", listener: (err: Error) => void): void;
3391
3970
  }
3392
3971
 
@@ -3398,16 +3977,28 @@ declare module "http2" {
3398
3977
  setTimeout(msecs?: number, callback?: () => void): void;
3399
3978
  ref(): void;
3400
3979
  unref(): void;
3401
- on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3980
+ on(
3981
+ event: "stream",
3982
+ listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
3983
+ ): void;
3402
3984
  on(event: "session", listener: (session: ServerHttp2Session) => void): void;
3403
- on(event: "request", listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void): void;
3985
+ on(
3986
+ event: "request",
3987
+ listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void,
3988
+ ): void;
3404
3989
  on(event: "error", listener: (err: Error) => void): void;
3405
3990
  on(event: "close" | "listening" | "timeout", listener: () => void): void;
3406
3991
  on(event: "connection", listener: (socket: import("net").Socket) => void): void;
3407
3992
  on(event: "sessionError", listener: (err: Error, session: ServerHttp2Session) => void): void;
3408
- once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3993
+ once(
3994
+ event: "stream",
3995
+ listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
3996
+ ): void;
3409
3997
  once(event: "session", listener: (session: ServerHttp2Session) => void): void;
3410
- once(event: "request", listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void): void;
3998
+ once(
3999
+ event: "request",
4000
+ listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void,
4001
+ ): void;
3411
4002
  once(event: "error", listener: (err: Error) => void): void;
3412
4003
  once(event: "close" | "listening" | "timeout", listener: () => void): void;
3413
4004
  }
@@ -3416,11 +4007,23 @@ declare module "http2" {
3416
4007
  [option: string]: unknown;
3417
4008
  }
3418
4009
 
3419
- export function createServer(onRequestHandler?: (req: Http2ServerRequest, res: Http2ServerResponse) => void): Http2Server;
3420
- export function createServer(options: ServerOptions, onRequestHandler?: (req: Http2ServerRequest, res: Http2ServerResponse) => void): Http2Server;
4010
+ export function createServer(
4011
+ onRequestHandler?: (req: Http2ServerRequest, res: Http2ServerResponse) => void,
4012
+ ): Http2Server;
4013
+ export function createServer(
4014
+ options: ServerOptions,
4015
+ onRequestHandler?: (req: Http2ServerRequest, res: Http2ServerResponse) => void,
4016
+ ): Http2Server;
3421
4017
 
3422
- export function connect(authority: string, listener?: (session: ClientHttp2Session, socket: import("net").Socket) => void): ClientHttp2Session;
3423
- export function connect(authority: string, options: Record<string, unknown>, listener?: (session: ClientHttp2Session, socket: import("net").Socket) => void): ClientHttp2Session;
4018
+ export function connect(
4019
+ authority: string,
4020
+ listener?: (session: ClientHttp2Session, socket: import("net").Socket) => void,
4021
+ ): ClientHttp2Session;
4022
+ export function connect(
4023
+ authority: string,
4024
+ options: Record<string, unknown>,
4025
+ listener?: (session: ClientHttp2Session, socket: import("net").Socket) => void,
4026
+ ): ClientHttp2Session;
3424
4027
 
3425
4028
  export function getDefaultSettings(): any;
3426
4029
  export function getPackedSettings(settings: Record<string, number | boolean>): Uint8Array;
@@ -3493,23 +4096,61 @@ declare module "node:dns" {
3493
4096
  export * from "dns";
3494
4097
  }
3495
4098
 
3496
- /* node:worker_threads — the MAIN-THREAD slice only. A compiled binary is
3497
- * always the main thread (no JS-engine thread machinery exists), so
3498
- * isMainThread lowers to `true` and threadId to 0 — Node's main-thread
3499
- * answers exactly. Worker itself is declared surface without a lowering:
3500
- * constructing one fences at the site; the CLASS as a value participates
3501
- * in identity-only flows. */
4099
+ /* node:worker_threads — native workers use statically compiled entry points.
4100
+ * Lowering and runtime diagnostics define the supported options and methods. */
3502
4101
  declare module "worker_threads" {
3503
4102
  export const isMainThread: boolean;
4103
+ export const isInternalThread: boolean;
3504
4104
  export const threadId: number;
4105
+ export interface WorkerOptions {
4106
+ workerData?: unknown;
4107
+ transferList?: readonly unknown[];
4108
+ argv?: readonly unknown[];
4109
+ name?: string;
4110
+ [option: string]: unknown;
4111
+ }
3505
4112
  export class Worker {
3506
- constructor(filename: string | URL, options?: unknown);
3507
- on(event: string, listener: (...args: unknown[]) => void): void;
3508
- postMessage(value: unknown): void;
4113
+ constructor(filename: string | URL, options?: WorkerOptions);
4114
+ readonly threadId: number;
4115
+ on(event: "online", listener: () => void): this;
4116
+ on(event: "message", listener: (value: any) => void): this;
4117
+ on(event: "error", listener: (error: Error) => void): this;
4118
+ on(event: "exit", listener: (code: number) => void): this;
4119
+ on(event: string, listener: (...args: any[]) => void): this;
4120
+ once(event: string, listener: (...args: any[]) => void): this;
4121
+ off(event: string, listener: (...args: any[]) => void): this;
4122
+ addListener(event: string, listener: (...args: any[]) => void): this;
4123
+ removeListener(event: string, listener: (...args: any[]) => void): this;
4124
+ prependListener(event: string, listener: (...args: any[]) => void): this;
4125
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
4126
+ postMessage(value: unknown, transferList?: readonly unknown[]): void;
4127
+ ref(): void;
4128
+ unref(): void;
3509
4129
  terminate(): Promise<number>;
4130
+ removeAllListeners(event?: string): this;
4131
+ listenerCount(event: string, listener?: (...args: any[]) => void): number;
3510
4132
  }
3511
- export const parentPort: unknown;
3512
- export const workerData: unknown;
4133
+ export class MessagePort {
4134
+ on(event: "message", listener: (value: any) => void): this;
4135
+ on(event: "close", listener: () => void): this;
4136
+ on(event: string, listener: (...args: any[]) => void): this;
4137
+ once(event: string, listener: (...args: any[]) => void): this;
4138
+ off(event: string, listener: (...args: any[]) => void): this;
4139
+ addListener(event: string, listener: (...args: any[]) => void): this;
4140
+ removeListener(event: string, listener: (...args: any[]) => void): this;
4141
+ prependListener(event: string, listener: (...args: any[]) => void): this;
4142
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
4143
+ postMessage(value: unknown, transferList?: readonly unknown[]): void;
4144
+ start(): void;
4145
+ close(callback?: () => void): void;
4146
+ ref(): void;
4147
+ unref(): void;
4148
+ hasRef(): boolean;
4149
+ removeAllListeners(event?: string): this;
4150
+ listenerCount(event: string, listener?: (...args: any[]) => void): number;
4151
+ }
4152
+ export const parentPort: MessagePort | null;
4153
+ export const workerData: any;
3513
4154
  }
3514
4155
  declare module "node:worker_threads" {
3515
4156
  export * from "worker_threads";
@@ -3556,7 +4197,11 @@ declare module "node:cluster" {
3556
4197
  declare module "tty" {
3557
4198
  export interface WriteStream {
3558
4199
  write(data: string | Uint8Array, callback?: (error?: Error | null) => void): boolean;
3559
- write(data: string | Uint8Array, encoding: BufferEncoding, callback?: (error?: Error | null) => void): boolean;
4200
+ write(
4201
+ data: string | Uint8Array,
4202
+ encoding: BufferEncoding,
4203
+ callback?: (error?: Error | null) => void,
4204
+ ): boolean;
3560
4205
  readonly isTTY: boolean;
3561
4206
  }
3562
4207
  export function isatty(fd: number): boolean;
@@ -3676,7 +4321,12 @@ declare module "stream" {
3676
4321
  decodeStrings?: boolean;
3677
4322
  defaultEncoding?: string;
3678
4323
  objectMode?: boolean;
3679
- write?(this: Writable, chunk: Buffer, encoding: string, callback: (error?: Error | null) => void): void;
4324
+ write?(
4325
+ this: Writable,
4326
+ chunk: Buffer,
4327
+ encoding: string,
4328
+ callback: (error?: Error | null) => void,
4329
+ ): void;
3680
4330
  writev?(this: Writable, chunks: unknown[], callback: (error?: Error | null) => void): void;
3681
4331
  final?(this: Writable, callback: (error?: Error | null) => void): void;
3682
4332
  destroy?(this: Writable, error: Error | null, callback: (error?: Error | null) => void): void;
@@ -3697,7 +4347,12 @@ declare module "stream" {
3697
4347
  writableObjectMode?: boolean;
3698
4348
  allowHalfOpen?: boolean;
3699
4349
  read?(this: Duplex, size: number): void;
3700
- write?(this: Duplex, chunk: Buffer, encoding: string, callback: (error?: Error | null) => void): void;
4350
+ write?(
4351
+ this: Duplex,
4352
+ chunk: Buffer,
4353
+ encoding: string,
4354
+ callback: (error?: Error | null) => void,
4355
+ ): void;
3701
4356
  final?(this: Duplex, callback: (error?: Error | null) => void): void;
3702
4357
  destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void;
3703
4358
  construct?(this: Duplex, callback: (error?: Error | null) => void): void;
@@ -3720,12 +4375,22 @@ declare module "stream" {
3720
4375
  readableObjectMode?: boolean;
3721
4376
  writableObjectMode?: boolean;
3722
4377
  allowHalfOpen?: boolean;
3723
- transform?(this: Transform, chunk: Buffer, encoding: string, callback: (error?: Error | null, data?: Buffer | string) => void): void;
4378
+ transform?(
4379
+ this: Transform,
4380
+ chunk: Buffer,
4381
+ encoding: string,
4382
+ callback: (error?: Error | null, data?: Buffer | string) => void,
4383
+ ): void;
3724
4384
  flush?(this: Transform, callback: (error?: Error | null, data?: Buffer | string) => void): void;
3725
4385
  destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void;
3726
4386
  construct?(this: Transform, callback: (error?: Error | null) => void): void;
3727
4387
  read?(this: Transform, size: number): void;
3728
- write?(this: Transform, chunk: Buffer, encoding: string, callback: (error?: Error | null) => void): void;
4388
+ write?(
4389
+ this: Transform,
4390
+ chunk: Buffer,
4391
+ encoding: string,
4392
+ callback: (error?: Error | null) => void,
4393
+ ): void;
3729
4394
  final?(this: Transform, callback: (error?: Error | null) => void): void;
3730
4395
  writev?(this: Transform, chunks: unknown[], callback: (error?: Error | null) => void): void;
3731
4396
  autoDestroy?: boolean;
@@ -3776,15 +4441,24 @@ declare module "stream" {
3776
4441
  once(event: "error", listener: (err: Error) => void): this;
3777
4442
  once(event: string, listener: (...args: any[]) => void): this;
3778
4443
  addListener(event: "data", listener: (chunk: any) => void): this;
3779
- addListener(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
4444
+ addListener(
4445
+ event: "end" | "close" | "readable" | "pause" | "resume",
4446
+ listener: () => void,
4447
+ ): this;
3780
4448
  addListener(event: "error", listener: (err: Error) => void): this;
3781
4449
  addListener(event: string, listener: (...args: any[]) => void): this;
3782
4450
  prependListener(event: "data", listener: (chunk: any) => void): this;
3783
- prependListener(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
4451
+ prependListener(
4452
+ event: "end" | "close" | "readable" | "pause" | "resume",
4453
+ listener: () => void,
4454
+ ): this;
3784
4455
  prependListener(event: "error", listener: (err: Error) => void): this;
3785
4456
  prependListener(event: string, listener: (...args: any[]) => void): this;
3786
4457
  prependOnceListener(event: "data", listener: (chunk: any) => void): this;
3787
- prependOnceListener(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
4458
+ prependOnceListener(
4459
+ event: "end" | "close" | "readable" | "pause" | "resume",
4460
+ listener: () => void,
4461
+ ): this;
3788
4462
  prependOnceListener(event: "error", listener: (err: Error) => void): this;
3789
4463
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3790
4464
  off(event: "data", listener: (chunk: any) => void): this;
@@ -3792,7 +4466,10 @@ declare module "stream" {
3792
4466
  off(event: "error", listener: (err: Error) => void): this;
3793
4467
  off(event: string, listener: (...args: any[]) => void): this;
3794
4468
  removeListener(event: "data", listener: (chunk: any) => void): this;
3795
- removeListener(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
4469
+ removeListener(
4470
+ event: "end" | "close" | "readable" | "pause" | "resume",
4471
+ listener: () => void,
4472
+ ): this;
3796
4473
  removeListener(event: "error", listener: (err: Error) => void): this;
3797
4474
  removeListener(event: string, listener: (...args: any[]) => void): this;
3798
4475
  }
@@ -3801,11 +4478,18 @@ declare module "stream" {
3801
4478
  constructor(opts?: WritableOptions);
3802
4479
  /* The underscore-method surface (see Readable). */
3803
4480
  _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
3804
- _writev(chunks: Array<{ chunk: any; encoding: string }>, callback: (error?: Error | null) => void): void;
4481
+ _writev(
4482
+ chunks: Array<{ chunk: any; encoding: string }>,
4483
+ callback: (error?: Error | null) => void,
4484
+ ): void;
3805
4485
  _final(callback: (error?: Error | null) => void): void;
3806
4486
  _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
3807
4487
  write(chunk: Buffer | string, callback?: (error?: Error | null) => void): boolean;
3808
- write(chunk: Buffer | string, encoding: string, callback?: (error?: Error | null) => void): boolean;
4488
+ write(
4489
+ chunk: Buffer | string,
4490
+ encoding: string,
4491
+ callback?: (error?: Error | null) => void,
4492
+ ): boolean;
3809
4493
  end(callback?: () => void): this;
3810
4494
  end(chunk: Buffer | string, callback?: () => void): this;
3811
4495
  end(chunk: Buffer | string, encoding: string, callback?: () => void): this;
@@ -3861,10 +4545,17 @@ declare module "stream" {
3861
4545
  constructor(opts?: DuplexOptions);
3862
4546
  /* The underscore-method surface (see Readable). */
3863
4547
  _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
3864
- _writev(chunks: Array<{ chunk: any; encoding: string }>, callback: (error?: Error | null) => void): void;
4548
+ _writev(
4549
+ chunks: Array<{ chunk: any; encoding: string }>,
4550
+ callback: (error?: Error | null) => void,
4551
+ ): void;
3865
4552
  _final(callback: (error?: Error | null) => void): void;
3866
4553
  write(chunk: Buffer | string, callback?: (error?: Error | null) => void): boolean;
3867
- write(chunk: Buffer | string, encoding: string, callback?: (error?: Error | null) => void): boolean;
4554
+ write(
4555
+ chunk: Buffer | string,
4556
+ encoding: string,
4557
+ callback?: (error?: Error | null) => void,
4558
+ ): boolean;
3868
4559
  end(callback?: () => void): this;
3869
4560
  end(chunk: Buffer | string, callback?: () => void): this;
3870
4561
  end(chunk: Buffer | string, encoding: string, callback?: () => void): this;
@@ -3881,37 +4572,58 @@ declare module "stream" {
3881
4572
  readonly writableCorked: number;
3882
4573
  readonly allowHalfOpen: boolean;
3883
4574
  on(event: "data", listener: (chunk: any) => void): this;
3884
- on(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
4575
+ on(
4576
+ event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish",
4577
+ listener: () => void,
4578
+ ): this;
3885
4579
  on(event: "error", listener: (err: Error) => void): this;
3886
4580
  on(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3887
4581
  on(event: string, listener: (...args: any[]) => void): this;
3888
4582
  once(event: "data", listener: (chunk: any) => void): this;
3889
- once(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
4583
+ once(
4584
+ event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish",
4585
+ listener: () => void,
4586
+ ): this;
3890
4587
  once(event: "error", listener: (err: Error) => void): this;
3891
4588
  once(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3892
4589
  once(event: string, listener: (...args: any[]) => void): this;
3893
4590
  addListener(event: "data", listener: (chunk: any) => void): this;
3894
- addListener(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
4591
+ addListener(
4592
+ event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish",
4593
+ listener: () => void,
4594
+ ): this;
3895
4595
  addListener(event: "error", listener: (err: Error) => void): this;
3896
4596
  addListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3897
4597
  addListener(event: string, listener: (...args: any[]) => void): this;
3898
4598
  prependListener(event: "data", listener: (chunk: any) => void): this;
3899
- prependListener(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
4599
+ prependListener(
4600
+ event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish",
4601
+ listener: () => void,
4602
+ ): this;
3900
4603
  prependListener(event: "error", listener: (err: Error) => void): this;
3901
4604
  prependListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3902
4605
  prependListener(event: string, listener: (...args: any[]) => void): this;
3903
4606
  prependOnceListener(event: "data", listener: (chunk: any) => void): this;
3904
- prependOnceListener(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
4607
+ prependOnceListener(
4608
+ event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish",
4609
+ listener: () => void,
4610
+ ): this;
3905
4611
  prependOnceListener(event: "error", listener: (err: Error) => void): this;
3906
4612
  prependOnceListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3907
4613
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3908
4614
  off(event: "data", listener: (chunk: any) => void): this;
3909
- off(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
4615
+ off(
4616
+ event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish",
4617
+ listener: () => void,
4618
+ ): this;
3910
4619
  off(event: "error", listener: (err: Error) => void): this;
3911
4620
  off(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3912
4621
  off(event: string, listener: (...args: any[]) => void): this;
3913
4622
  removeListener(event: "data", listener: (chunk: any) => void): this;
3914
- removeListener(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
4623
+ removeListener(
4624
+ event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish",
4625
+ listener: () => void,
4626
+ ): this;
3915
4627
  removeListener(event: "error", listener: (err: Error) => void): this;
3916
4628
  removeListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3917
4629
  removeListener(event: string, listener: (...args: any[]) => void): this;
@@ -3920,7 +4632,11 @@ declare module "stream" {
3920
4632
  class Transform extends Duplex {
3921
4633
  constructor(opts?: TransformOptions);
3922
4634
  /* The underscore-method surface (see Readable). */
3923
- _transform(chunk: any, encoding: string, callback: (error?: Error | null, data?: Buffer | string) => void): void;
4635
+ _transform(
4636
+ chunk: any,
4637
+ encoding: string,
4638
+ callback: (error?: Error | null, data?: Buffer | string) => void,
4639
+ ): void;
3924
4640
  _flush(callback: (error?: Error | null, data?: Buffer | string) => void): void;
3925
4641
  }
3926
4642
  class PassThrough extends Transform {
@@ -3939,7 +4655,18 @@ declare module "stream" {
3939
4655
  }
3940
4656
  class Stream extends EventEmitter {}
3941
4657
 
3942
- export { Readable, Writable, Duplex, Transform, PassThrough, Stream, pipeline, finished, getDefaultHighWaterMark, promises };
4658
+ export {
4659
+ Readable,
4660
+ Writable,
4661
+ Duplex,
4662
+ Transform,
4663
+ PassThrough,
4664
+ Stream,
4665
+ pipeline,
4666
+ finished,
4667
+ getDefaultHighWaterMark,
4668
+ promises,
4669
+ };
3943
4670
  export type { ReadableOptions, WritableOptions, DuplexOptions, TransformOptions };
3944
4671
  }
3945
4672
  declare module "node:stream" {