@scriptc/cli-darwin-x64 0.0.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (963) hide show
  1. package/dist/LICENSE +202 -0
  2. package/dist/THIRD_PARTY_NOTICES +4 -0
  3. package/dist/bin/scriptc +0 -0
  4. package/dist/bin/scriptc.json +21 -0
  5. package/dist/lib/declarations/scriptc-node-fallback.d.ts +3857 -0
  6. package/dist/lib/declarations/scriptc-overrides.d.ts +92 -0
  7. package/dist/lib/declarations/scriptc.d.ts +98 -0
  8. package/dist/lib/llvm/LICENSE +1 -0
  9. package/dist/lib/llvm/SCRIPTC_LICENSE +1 -0
  10. package/dist/lib/llvm/THIRD_PARTY_NOTICES +1 -0
  11. package/dist/lib/llvm/bin/scriptc-llvm-codegen +0 -0
  12. package/dist/lib/llvm/package.json +35 -0
  13. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_array.o +0 -0
  14. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_assert.o +0 -0
  15. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_async.o +0 -0
  16. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_async_dyn.o +0 -0
  17. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bigint.o +0 -0
  18. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bigint_assert.o +0 -0
  19. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bytes.o +0 -0
  20. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bytes_io.o +0 -0
  21. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_child.o +0 -0
  22. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_closure.o +0 -0
  23. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_console.o +0 -0
  24. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_console_native.o +0 -0
  25. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_copying.o +0 -0
  26. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_crypto_async.o +0 -0
  27. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_cycle.o +0 -0
  28. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dc.o +0 -0
  29. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dgram.o +0 -0
  30. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dyn_handle.o +0 -0
  31. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dyn_invoke.o +0 -0
  32. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_error.o +0 -0
  33. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_events.o +0 -0
  34. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_events_emitter.o +0 -0
  35. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_exception.o +0 -0
  36. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_fetch.o +0 -0
  37. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_ffi.o +0 -0
  38. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_ffi_queue.o +0 -0
  39. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_file_handle.o +0 -0
  40. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_grapheme.o +0 -0
  41. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_http.o +0 -0
  42. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_http2.o +0 -0
  43. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_inspect.o +0 -0
  44. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_json.o +0 -0
  45. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_lib.o +0 -0
  46. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_loop_epoll.o +0 -0
  47. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_loop_kqueue.o +0 -0
  48. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_loop_wsapoll.o +0 -0
  49. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_map.o +0 -0
  50. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_net.o +0 -0
  51. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_node_builtin.o +0 -0
  52. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_number.o +0 -0
  53. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_object.o +0 -0
  54. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_path.o +0 -0
  55. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_qs.o +0 -0
  56. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_readline.o +0 -0
  57. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_regex.o +0 -0
  58. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_stream.o +0 -0
  59. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_string.o +0 -0
  60. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_symbol.o +0 -0
  61. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_test.o +0 -0
  62. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_tls.o +0 -0
  63. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_tls_ca.o +0 -0
  64. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_union.o +0 -0
  65. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_url.o +0 -0
  66. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_url_params.o +0 -0
  67. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_util.o +0 -0
  68. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_watch.o +0 -0
  69. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_zlib.o +0 -0
  70. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_array.o +0 -0
  71. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_assert.o +0 -0
  72. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_async.o +0 -0
  73. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_async_dyn.o +0 -0
  74. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bigint.o +0 -0
  75. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bigint_assert.o +0 -0
  76. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bytes.o +0 -0
  77. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bytes_io.o +0 -0
  78. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_child.o +0 -0
  79. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_closure.o +0 -0
  80. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_console.o +0 -0
  81. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_console_native.o +0 -0
  82. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_copying.o +0 -0
  83. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_crypto_async.o +0 -0
  84. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_cycle.o +0 -0
  85. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dc.o +0 -0
  86. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dgram.o +0 -0
  87. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dyn_handle.o +0 -0
  88. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dyn_invoke.o +0 -0
  89. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_error.o +0 -0
  90. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_events.o +0 -0
  91. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_events_emitter.o +0 -0
  92. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_exception.o +0 -0
  93. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_fetch.o +0 -0
  94. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_ffi.o +0 -0
  95. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_ffi_queue.o +0 -0
  96. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_file_handle.o +0 -0
  97. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_grapheme.o +0 -0
  98. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_http.o +0 -0
  99. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_http2.o +0 -0
  100. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_inspect.o +0 -0
  101. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_inspect_island.o +0 -0
  102. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_island.o +0 -0
  103. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_json.o +0 -0
  104. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_lib.o +0 -0
  105. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_loop_epoll.o +0 -0
  106. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_loop_kqueue.o +0 -0
  107. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_loop_wsapoll.o +0 -0
  108. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_map.o +0 -0
  109. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_net.o +0 -0
  110. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_net_island.o +0 -0
  111. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_node_builtin.o +0 -0
  112. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_number.o +0 -0
  113. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_object.o +0 -0
  114. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_path.o +0 -0
  115. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_qs.o +0 -0
  116. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_readline.o +0 -0
  117. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_regex.o +0 -0
  118. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_stream.o +0 -0
  119. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_string.o +0 -0
  120. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_symbol.o +0 -0
  121. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_test.o +0 -0
  122. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_tls.o +0 -0
  123. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_tls_ca.o +0 -0
  124. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_union.o +0 -0
  125. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_url.o +0 -0
  126. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_url_params.o +0 -0
  127. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_util.o +0 -0
  128. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_watch.o +0 -0
  129. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_web.o +0 -0
  130. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_zlib.o +0 -0
  131. package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_zlib_island.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/library-dev/runtime/default/scr_array.o +0 -0
  135. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_assert.o +0 -0
  136. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bigint.o +0 -0
  137. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bigint_assert.o +0 -0
  138. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bytes.o +0 -0
  139. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bytes_io.o +0 -0
  140. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_closure.o +0 -0
  141. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_console.o +0 -0
  142. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_console_native.o +0 -0
  143. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_copying.o +0 -0
  144. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_cycle.o +0 -0
  145. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_dyn_handle.o +0 -0
  146. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_dyn_invoke.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_grapheme.o +0 -0
  151. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_inspect.o +0 -0
  152. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_json.o +0 -0
  153. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_lib.o +0 -0
  154. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_library.o +0 -0
  155. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_map.o +0 -0
  156. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_node_builtin.o +0 -0
  157. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_number.o +0 -0
  158. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_object.o +0 -0
  159. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_path.o +0 -0
  160. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_regex.o +0 -0
  161. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_string.o +0 -0
  162. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_symbol.o +0 -0
  163. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_union.o +0 -0
  164. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_url.o +0 -0
  165. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_url_params.o +0 -0
  166. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_zlib.o +0 -0
  167. package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  168. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_array.o +0 -0
  169. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_assert.o +0 -0
  170. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bigint.o +0 -0
  171. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bigint_assert.o +0 -0
  172. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bytes.o +0 -0
  173. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bytes_io.o +0 -0
  174. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_closure.o +0 -0
  175. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_console.o +0 -0
  176. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_console_native.o +0 -0
  177. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_copying.o +0 -0
  178. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_cycle.o +0 -0
  179. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_dyn_handle.o +0 -0
  180. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_dyn_invoke.o +0 -0
  181. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_error.o +0 -0
  182. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_events_emitter.o +0 -0
  183. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_exception.o +0 -0
  184. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_grapheme.o +0 -0
  185. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_inspect.o +0 -0
  186. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_json.o +0 -0
  187. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_lib.o +0 -0
  188. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_library.o +0 -0
  189. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_map.o +0 -0
  190. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_node_builtin.o +0 -0
  191. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_number.o +0 -0
  192. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_object.o +0 -0
  193. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_path.o +0 -0
  194. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_regex.o +0 -0
  195. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_string.o +0 -0
  196. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_symbol.o +0 -0
  197. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_union.o +0 -0
  198. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_url.o +0 -0
  199. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_url_params.o +0 -0
  200. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_zlib.o +0 -0
  201. package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  202. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_array.o +0 -0
  203. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_assert.o +0 -0
  204. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bigint.o +0 -0
  205. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bigint_assert.o +0 -0
  206. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bytes.o +0 -0
  207. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bytes_io.o +0 -0
  208. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_closure.o +0 -0
  209. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_console.o +0 -0
  210. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_console_native.o +0 -0
  211. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_copying.o +0 -0
  212. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_cycle.o +0 -0
  213. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_dyn_handle.o +0 -0
  214. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_dyn_invoke.o +0 -0
  215. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_error.o +0 -0
  216. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_events_emitter.o +0 -0
  217. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_exception.o +0 -0
  218. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_grapheme.o +0 -0
  219. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_inspect.o +0 -0
  220. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_json.o +0 -0
  221. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_lib.o +0 -0
  222. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_library.o +0 -0
  223. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_map.o +0 -0
  224. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_node_builtin.o +0 -0
  225. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_number.o +0 -0
  226. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_object.o +0 -0
  227. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_path.o +0 -0
  228. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_regex.o +0 -0
  229. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_string.o +0 -0
  230. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_symbol.o +0 -0
  231. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_union.o +0 -0
  232. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_url.o +0 -0
  233. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_url_params.o +0 -0
  234. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_zlib.o +0 -0
  235. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  236. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_array.o +0 -0
  237. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_assert.o +0 -0
  238. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bigint.o +0 -0
  239. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bigint_assert.o +0 -0
  240. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bytes.o +0 -0
  241. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bytes_io.o +0 -0
  242. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_closure.o +0 -0
  243. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_console.o +0 -0
  244. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_console_native.o +0 -0
  245. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_copying.o +0 -0
  246. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_cycle.o +0 -0
  247. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_dyn_handle.o +0 -0
  248. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_dyn_invoke.o +0 -0
  249. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_error.o +0 -0
  250. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_events_emitter.o +0 -0
  251. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_exception.o +0 -0
  252. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_grapheme.o +0 -0
  253. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_inspect.o +0 -0
  254. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_json.o +0 -0
  255. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_lib.o +0 -0
  256. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_library.o +0 -0
  257. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_map.o +0 -0
  258. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_node_builtin.o +0 -0
  259. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_number.o +0 -0
  260. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_object.o +0 -0
  261. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_path.o +0 -0
  262. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_regex.o +0 -0
  263. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_string.o +0 -0
  264. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_symbol.o +0 -0
  265. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_union.o +0 -0
  266. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_url.o +0 -0
  267. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_url_params.o +0 -0
  268. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_zlib.o +0 -0
  269. package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  270. package/dist/lib/runtime-darwin-x64/artifacts/licenses/mbedtls.txt +553 -0
  271. package/dist/lib/runtime-darwin-x64/artifacts/licenses/quickjs-ng.txt +24 -0
  272. package/dist/lib/runtime-darwin-x64/artifacts/licenses/ryu.txt +23 -0
  273. package/dist/lib/runtime-darwin-x64/artifacts/licenses/scriptc-runtime.txt +202 -0
  274. package/dist/lib/runtime-darwin-x64/artifacts/licenses/unicode.txt +39 -0
  275. package/dist/lib/runtime-darwin-x64/artifacts/licenses/v8-number-radix.txt +61 -0
  276. package/dist/lib/runtime-darwin-x64/artifacts/licenses/zlib.txt +22 -0
  277. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_array.o +0 -0
  278. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_assert.o +0 -0
  279. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_async.o +0 -0
  280. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_async_dyn.o +0 -0
  281. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bigint.o +0 -0
  282. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bigint_assert.o +0 -0
  283. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bytes.o +0 -0
  284. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bytes_io.o +0 -0
  285. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_child.o +0 -0
  286. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_closure.o +0 -0
  287. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_console.o +0 -0
  288. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_console_native.o +0 -0
  289. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_copying.o +0 -0
  290. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_crypto_async.o +0 -0
  291. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_cycle.o +0 -0
  292. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dc.o +0 -0
  293. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dgram.o +0 -0
  294. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dyn_handle.o +0 -0
  295. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dyn_invoke.o +0 -0
  296. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_error.o +0 -0
  297. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_events.o +0 -0
  298. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_events_emitter.o +0 -0
  299. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_exception.o +0 -0
  300. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_fetch.o +0 -0
  301. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_ffi.o +0 -0
  302. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_ffi_queue.o +0 -0
  303. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_file_handle.o +0 -0
  304. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_grapheme.o +0 -0
  305. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_http.o +0 -0
  306. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_http2.o +0 -0
  307. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_inspect.o +0 -0
  308. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_json.o +0 -0
  309. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_lib.o +0 -0
  310. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_loop_epoll.o +0 -0
  311. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_loop_kqueue.o +0 -0
  312. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_loop_wsapoll.o +0 -0
  313. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_map.o +0 -0
  314. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_net.o +0 -0
  315. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_node_builtin.o +0 -0
  316. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_number.o +0 -0
  317. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_object.o +0 -0
  318. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_path.o +0 -0
  319. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_qs.o +0 -0
  320. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_readline.o +0 -0
  321. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_regex.o +0 -0
  322. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_stream.o +0 -0
  323. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_string.o +0 -0
  324. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_symbol.o +0 -0
  325. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_test.o +0 -0
  326. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_tls.o +0 -0
  327. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_tls_ca.o +0 -0
  328. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_union.o +0 -0
  329. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_url.o +0 -0
  330. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_url_params.o +0 -0
  331. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_util.o +0 -0
  332. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_watch.o +0 -0
  333. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_zlib.o +0 -0
  334. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_array.o +0 -0
  335. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_assert.o +0 -0
  336. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_async.o +0 -0
  337. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_async_dyn.o +0 -0
  338. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bigint.o +0 -0
  339. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bigint_assert.o +0 -0
  340. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bytes.o +0 -0
  341. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bytes_io.o +0 -0
  342. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_child.o +0 -0
  343. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_closure.o +0 -0
  344. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_console.o +0 -0
  345. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_console_native.o +0 -0
  346. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_copying.o +0 -0
  347. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_crypto_async.o +0 -0
  348. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_cycle.o +0 -0
  349. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dc.o +0 -0
  350. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dgram.o +0 -0
  351. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dyn_handle.o +0 -0
  352. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dyn_invoke.o +0 -0
  353. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_error.o +0 -0
  354. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_events.o +0 -0
  355. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_events_emitter.o +0 -0
  356. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_exception.o +0 -0
  357. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_fetch.o +0 -0
  358. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_ffi.o +0 -0
  359. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_ffi_queue.o +0 -0
  360. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_file_handle.o +0 -0
  361. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_grapheme.o +0 -0
  362. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_http.o +0 -0
  363. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_http2.o +0 -0
  364. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_inspect.o +0 -0
  365. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_inspect_island.o +0 -0
  366. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_island.o +0 -0
  367. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_json.o +0 -0
  368. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_lib.o +0 -0
  369. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_loop_epoll.o +0 -0
  370. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_loop_kqueue.o +0 -0
  371. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_loop_wsapoll.o +0 -0
  372. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_map.o +0 -0
  373. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_net.o +0 -0
  374. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_net_island.o +0 -0
  375. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_node_builtin.o +0 -0
  376. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_number.o +0 -0
  377. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_object.o +0 -0
  378. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_path.o +0 -0
  379. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_qs.o +0 -0
  380. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_readline.o +0 -0
  381. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_regex.o +0 -0
  382. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_stream.o +0 -0
  383. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_string.o +0 -0
  384. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_symbol.o +0 -0
  385. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_test.o +0 -0
  386. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_tls.o +0 -0
  387. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_tls_ca.o +0 -0
  388. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_union.o +0 -0
  389. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_url.o +0 -0
  390. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_url_params.o +0 -0
  391. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_util.o +0 -0
  392. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_watch.o +0 -0
  393. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_web.o +0 -0
  394. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_zlib.o +0 -0
  395. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_zlib_island.o +0 -0
  396. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic-text-decoder-legacy/scr_bytes.o +0 -0
  397. package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
  398. package/dist/lib/runtime-darwin-x64/artifacts/vendor/libregexp/libscriptc-libregexp.a +0 -0
  399. package/dist/lib/runtime-darwin-x64/artifacts/vendor/mbedtls/libscriptc-mbedtls.a +0 -0
  400. package/dist/lib/runtime-darwin-x64/artifacts/vendor/quickjs/libscriptc-quickjs.a +0 -0
  401. package/dist/lib/runtime-darwin-x64/artifacts/vendor/zlib/libscriptc-zlib.a +0 -0
  402. package/dist/lib/runtime-darwin-x64/package.json +24 -0
  403. package/dist/lib/runtime-darwin-x64/runtime-pack.json +5762 -0
  404. package/dist/lib/runtime-sources/LICENSE +202 -0
  405. package/dist/lib/runtime-sources/package.json +22 -0
  406. package/dist/lib/runtime-sources/src/scr_array.c +1460 -0
  407. package/dist/lib/runtime-sources/src/scr_assert.c +1538 -0
  408. package/dist/lib/runtime-sources/src/scr_async.c +3945 -0
  409. package/dist/lib/runtime-sources/src/scr_async.test.c +134 -0
  410. package/dist/lib/runtime-sources/src/scr_async.test.ts +34 -0
  411. package/dist/lib/runtime-sources/src/scr_async_dyn.c +877 -0
  412. package/dist/lib/runtime-sources/src/scr_bigint.c +898 -0
  413. package/dist/lib/runtime-sources/src/scr_bigint_assert.c +22 -0
  414. package/dist/lib/runtime-sources/src/scr_bytes.c +2682 -0
  415. package/dist/lib/runtime-sources/src/scr_bytes_io.c +1324 -0
  416. package/dist/lib/runtime-sources/src/scr_child.c +6335 -0
  417. package/dist/lib/runtime-sources/src/scr_closure.c +213 -0
  418. package/dist/lib/runtime-sources/src/scr_console.c +259 -0
  419. package/dist/lib/runtime-sources/src/scr_console_native.c +95 -0
  420. package/dist/lib/runtime-sources/src/scr_copying.c +146 -0
  421. package/dist/lib/runtime-sources/src/scr_crypto_async.c +24 -0
  422. package/dist/lib/runtime-sources/src/scr_cycle.c +565 -0
  423. package/dist/lib/runtime-sources/src/scr_dc.c +814 -0
  424. package/dist/lib/runtime-sources/src/scr_dgram.c +1182 -0
  425. package/dist/lib/runtime-sources/src/scr_dyn_handle.c +96 -0
  426. package/dist/lib/runtime-sources/src/scr_dyn_invoke.c +1759 -0
  427. package/dist/lib/runtime-sources/src/scr_error.c +419 -0
  428. package/dist/lib/runtime-sources/src/scr_events.c +1222 -0
  429. package/dist/lib/runtime-sources/src/scr_events_emitter.c +842 -0
  430. package/dist/lib/runtime-sources/src/scr_exception.c +484 -0
  431. package/dist/lib/runtime-sources/src/scr_fetch.c +7479 -0
  432. package/dist/lib/runtime-sources/src/scr_fetch_curl.c +666 -0
  433. package/dist/lib/runtime-sources/src/scr_ffi.c +143 -0
  434. package/dist/lib/runtime-sources/src/scr_ffi_queue.c +379 -0
  435. package/dist/lib/runtime-sources/src/scr_file_handle.c +562 -0
  436. package/dist/lib/runtime-sources/src/scr_grapheme.c +203 -0
  437. package/dist/lib/runtime-sources/src/scr_grapheme_data.h +842 -0
  438. package/dist/lib/runtime-sources/src/scr_http.c +5811 -0
  439. package/dist/lib/runtime-sources/src/scr_http2.c +3243 -0
  440. package/dist/lib/runtime-sources/src/scr_inspect.c +923 -0
  441. package/dist/lib/runtime-sources/src/scr_inspect_island.c +51 -0
  442. package/dist/lib/runtime-sources/src/scr_island.c +10012 -0
  443. package/dist/lib/runtime-sources/src/scr_island_manifest.h +153 -0
  444. package/dist/lib/runtime-sources/src/scr_json.c +8986 -0
  445. package/dist/lib/runtime-sources/src/scr_json.test.c +182 -0
  446. package/dist/lib/runtime-sources/src/scr_json.test.ts +33 -0
  447. package/dist/lib/runtime-sources/src/scr_lib.c +6304 -0
  448. package/dist/lib/runtime-sources/src/scr_library.c +444 -0
  449. package/dist/lib/runtime-sources/src/scr_loop_epoll.c +241 -0
  450. package/dist/lib/runtime-sources/src/scr_loop_kqueue.c +121 -0
  451. package/dist/lib/runtime-sources/src/scr_loop_wsapoll.c +208 -0
  452. package/dist/lib/runtime-sources/src/scr_map.c +752 -0
  453. package/dist/lib/runtime-sources/src/scr_musl.c +438 -0
  454. package/dist/lib/runtime-sources/src/scr_net.c +3708 -0
  455. package/dist/lib/runtime-sources/src/scr_net_island.c +458 -0
  456. package/dist/lib/runtime-sources/src/scr_node_builtin.c +291 -0
  457. package/dist/lib/runtime-sources/src/scr_number.c +192 -0
  458. package/dist/lib/runtime-sources/src/scr_object.c +91 -0
  459. package/dist/lib/runtime-sources/src/scr_path.c +1281 -0
  460. package/dist/lib/runtime-sources/src/scr_platform.h +119 -0
  461. package/dist/lib/runtime-sources/src/scr_qs.c +496 -0
  462. package/dist/lib/runtime-sources/src/scr_readline.c +288 -0
  463. package/dist/lib/runtime-sources/src/scr_regex.c +1313 -0
  464. package/dist/lib/runtime-sources/src/scr_runtime.h +7364 -0
  465. package/dist/lib/runtime-sources/src/scr_stream.c +3346 -0
  466. package/dist/lib/runtime-sources/src/scr_string.c +1864 -0
  467. package/dist/lib/runtime-sources/src/scr_symbol.c +239 -0
  468. package/dist/lib/runtime-sources/src/scr_test.c +662 -0
  469. package/dist/lib/runtime-sources/src/scr_text_decoder_data.h +7389 -0
  470. package/dist/lib/runtime-sources/src/scr_text_decoder_labels.h +225 -0
  471. package/dist/lib/runtime-sources/src/scr_tls.c +1806 -0
  472. package/dist/lib/runtime-sources/src/scr_tls_ca.c +433 -0
  473. package/dist/lib/runtime-sources/src/scr_union.c +105 -0
  474. package/dist/lib/runtime-sources/src/scr_url.c +1400 -0
  475. package/dist/lib/runtime-sources/src/scr_url_internal.h +29 -0
  476. package/dist/lib/runtime-sources/src/scr_url_params.c +526 -0
  477. package/dist/lib/runtime-sources/src/scr_util.c +984 -0
  478. package/dist/lib/runtime-sources/src/scr_watch.c +568 -0
  479. package/dist/lib/runtime-sources/src/scr_web.c +1854 -0
  480. package/dist/lib/runtime-sources/src/scr_win.c +231 -0
  481. package/dist/lib/runtime-sources/src/scr_win_stats.h +23 -0
  482. package/dist/lib/runtime-sources/src/scr_zlib.c +358 -0
  483. package/dist/lib/runtime-sources/src/scr_zlib_island.c +15 -0
  484. package/dist/lib/runtime-sources/vendor/README.md +60 -0
  485. package/dist/lib/runtime-sources/vendor/curl/COPYRIGHT +534 -0
  486. package/dist/lib/runtime-sources/vendor/curl/include/curl/curl.h +3214 -0
  487. package/dist/lib/runtime-sources/vendor/curl/include/curl/curlver.h +79 -0
  488. package/dist/lib/runtime-sources/vendor/curl/include/curl/easy.h +125 -0
  489. package/dist/lib/runtime-sources/vendor/curl/include/curl/header.h +74 -0
  490. package/dist/lib/runtime-sources/vendor/curl/include/curl/mprintf.h +52 -0
  491. package/dist/lib/runtime-sources/vendor/curl/include/curl/multi.h +460 -0
  492. package/dist/lib/runtime-sources/vendor/curl/include/curl/options.h +70 -0
  493. package/dist/lib/runtime-sources/vendor/curl/include/curl/stdcheaders.h +35 -0
  494. package/dist/lib/runtime-sources/vendor/curl/include/curl/system.h +508 -0
  495. package/dist/lib/runtime-sources/vendor/curl/include/curl/typecheck-gcc.h +716 -0
  496. package/dist/lib/runtime-sources/vendor/curl/include/curl/urlapi.h +149 -0
  497. package/dist/lib/runtime-sources/vendor/curl/include/curl/websockets.h +84 -0
  498. package/dist/lib/runtime-sources/vendor/mbedtls/LICENSE +553 -0
  499. package/dist/lib/runtime-sources/vendor/mbedtls/include/CMakeLists.txt +22 -0
  500. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/aes.h +631 -0
  501. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/aria.h +343 -0
  502. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/asn1.h +642 -0
  503. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/asn1write.h +390 -0
  504. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/base64.h +82 -0
  505. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/bignum.h +1088 -0
  506. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/block_cipher.h +76 -0
  507. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/build_info.h +194 -0
  508. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/camellia.h +305 -0
  509. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ccm.h +526 -0
  510. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/chacha20.h +209 -0
  511. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/chachapoly.h +351 -0
  512. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/check_config.h +1149 -0
  513. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/cipher.h +1250 -0
  514. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/cmac.h +246 -0
  515. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/compat-2.x.h +46 -0
  516. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_legacy_crypto.h +578 -0
  517. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_legacy_from_psa.h +873 -0
  518. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_psa_from_legacy.h +359 -0
  519. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_psa_superset_legacy.h +145 -0
  520. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_ssl.h +91 -0
  521. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_x509.h +35 -0
  522. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_psa.h +61 -0
  523. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/constant_time.h +36 -0
  524. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ctr_drbg.h +596 -0
  525. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/debug.h +156 -0
  526. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/des.h +385 -0
  527. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/dhm.h +972 -0
  528. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ecdh.h +455 -0
  529. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ecdsa.h +674 -0
  530. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ecjpake.h +298 -0
  531. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ecp.h +1517 -0
  532. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/entropy.h +274 -0
  533. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/error.h +201 -0
  534. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/gcm.h +387 -0
  535. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/hkdf.h +124 -0
  536. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/hmac_drbg.h +434 -0
  537. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/lms.h +440 -0
  538. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/mbedtls_config.h +4446 -0
  539. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/md.h +526 -0
  540. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/md5.h +190 -0
  541. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/memory_buffer_alloc.h +142 -0
  542. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/net_sockets.h +299 -0
  543. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/nist_kw.h +166 -0
  544. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/oid.h +727 -0
  545. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pem.h +160 -0
  546. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pk.h +1303 -0
  547. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pkcs12.h +186 -0
  548. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pkcs5.h +198 -0
  549. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pkcs7.h +252 -0
  550. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/platform.h +516 -0
  551. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/platform_time.h +79 -0
  552. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/platform_util.h +247 -0
  553. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/poly1305.h +168 -0
  554. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/private_access.h +20 -0
  555. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/psa_util.h +207 -0
  556. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ripemd160.h +136 -0
  557. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/rsa.h +1170 -0
  558. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/sha1.h +219 -0
  559. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/sha256.h +200 -0
  560. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/sha3.h +172 -0
  561. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/sha512.h +208 -0
  562. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl.h +5887 -0
  563. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl_cache.h +187 -0
  564. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl_ciphersuites.h +482 -0
  565. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl_cookie.h +106 -0
  566. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl_ticket.h +199 -0
  567. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/threading.h +167 -0
  568. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/timing.h +94 -0
  569. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/version.h +78 -0
  570. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/x509.h +500 -0
  571. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/x509_crl.h +184 -0
  572. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/x509_crt.h +1208 -0
  573. package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/x509_csr.h +382 -0
  574. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/build_info.h +20 -0
  575. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto.h +4998 -0
  576. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_adjust_auto_enabled.h +31 -0
  577. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_adjust_config_dependencies.h +51 -0
  578. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_adjust_config_key_pair_types.h +101 -0
  579. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_adjust_config_synonyms.h +49 -0
  580. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_builtin_composites.h +214 -0
  581. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_builtin_key_derivation.h +118 -0
  582. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_builtin_primitives.h +114 -0
  583. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_compat.h +230 -0
  584. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_config.h +145 -0
  585. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_driver_common.h +44 -0
  586. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_driver_contexts_composites.h +151 -0
  587. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_driver_contexts_key_derivation.h +52 -0
  588. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_driver_contexts_primitives.h +105 -0
  589. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_extra.h +2145 -0
  590. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_legacy.h +88 -0
  591. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_platform.h +102 -0
  592. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_se_driver.h +1383 -0
  593. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_sizes.h +1319 -0
  594. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_struct.h +527 -0
  595. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_types.h +508 -0
  596. package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_values.h +2782 -0
  597. package/dist/lib/runtime-sources/vendor/mbedtls/library/aes.c +2294 -0
  598. package/dist/lib/runtime-sources/vendor/mbedtls/library/aesce.c +624 -0
  599. package/dist/lib/runtime-sources/vendor/mbedtls/library/aesce.h +136 -0
  600. package/dist/lib/runtime-sources/vendor/mbedtls/library/aesni.c +846 -0
  601. package/dist/lib/runtime-sources/vendor/mbedtls/library/aesni.h +162 -0
  602. package/dist/lib/runtime-sources/vendor/mbedtls/library/alignment.h +704 -0
  603. package/dist/lib/runtime-sources/vendor/mbedtls/library/aria.c +969 -0
  604. package/dist/lib/runtime-sources/vendor/mbedtls/library/asn1parse.c +468 -0
  605. package/dist/lib/runtime-sources/vendor/mbedtls/library/asn1write.c +440 -0
  606. package/dist/lib/runtime-sources/vendor/mbedtls/library/base64.c +322 -0
  607. package/dist/lib/runtime-sources/vendor/mbedtls/library/base64_internal.h +45 -0
  608. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum.c +2583 -0
  609. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_core.c +1240 -0
  610. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_core.h +872 -0
  611. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_core_invasive.h +38 -0
  612. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_internal.h +122 -0
  613. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod.c +394 -0
  614. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod.h +452 -0
  615. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod_raw.c +276 -0
  616. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod_raw.h +416 -0
  617. package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod_raw_invasive.h +34 -0
  618. package/dist/lib/runtime-sources/vendor/mbedtls/library/block_cipher.c +207 -0
  619. package/dist/lib/runtime-sources/vendor/mbedtls/library/block_cipher_internal.h +99 -0
  620. package/dist/lib/runtime-sources/vendor/mbedtls/library/bn_mul.h +1094 -0
  621. package/dist/lib/runtime-sources/vendor/mbedtls/library/camellia.c +1058 -0
  622. package/dist/lib/runtime-sources/vendor/mbedtls/library/ccm.c +777 -0
  623. package/dist/lib/runtime-sources/vendor/mbedtls/library/chacha20.c +563 -0
  624. package/dist/lib/runtime-sources/vendor/mbedtls/library/chacha20_internal.h +23 -0
  625. package/dist/lib/runtime-sources/vendor/mbedtls/library/chachapoly.c +487 -0
  626. package/dist/lib/runtime-sources/vendor/mbedtls/library/check_crypto_config.h +136 -0
  627. package/dist/lib/runtime-sources/vendor/mbedtls/library/cipher.c +1712 -0
  628. package/dist/lib/runtime-sources/vendor/mbedtls/library/cipher_invasive.h +28 -0
  629. package/dist/lib/runtime-sources/vendor/mbedtls/library/cipher_wrap.c +2482 -0
  630. package/dist/lib/runtime-sources/vendor/mbedtls/library/cipher_wrap.h +178 -0
  631. package/dist/lib/runtime-sources/vendor/mbedtls/library/cmac.c +1067 -0
  632. package/dist/lib/runtime-sources/vendor/mbedtls/library/common.h +487 -0
  633. package/dist/lib/runtime-sources/vendor/mbedtls/library/constant_time.c +247 -0
  634. package/dist/lib/runtime-sources/vendor/mbedtls/library/constant_time_impl.h +541 -0
  635. package/dist/lib/runtime-sources/vendor/mbedtls/library/constant_time_internal.h +579 -0
  636. package/dist/lib/runtime-sources/vendor/mbedtls/library/ctr.h +35 -0
  637. package/dist/lib/runtime-sources/vendor/mbedtls/library/ctr_drbg.c +1016 -0
  638. package/dist/lib/runtime-sources/vendor/mbedtls/library/debug.c +475 -0
  639. package/dist/lib/runtime-sources/vendor/mbedtls/library/debug_internal.h +185 -0
  640. package/dist/lib/runtime-sources/vendor/mbedtls/library/des.c +1042 -0
  641. package/dist/lib/runtime-sources/vendor/mbedtls/library/dhm.c +700 -0
  642. package/dist/lib/runtime-sources/vendor/mbedtls/library/ecdh.c +696 -0
  643. package/dist/lib/runtime-sources/vendor/mbedtls/library/ecdsa.c +858 -0
  644. package/dist/lib/runtime-sources/vendor/mbedtls/library/ecjpake.c +1216 -0
  645. package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp.c +3674 -0
  646. package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp_curves.c +6125 -0
  647. package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp_curves_new.c +9 -0
  648. package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp_internal_alt.h +287 -0
  649. package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp_invasive.h +305 -0
  650. package/dist/lib/runtime-sources/vendor/mbedtls/library/entropy.c +680 -0
  651. package/dist/lib/runtime-sources/vendor/mbedtls/library/entropy_poll.c +233 -0
  652. package/dist/lib/runtime-sources/vendor/mbedtls/library/entropy_poll.h +64 -0
  653. package/dist/lib/runtime-sources/vendor/mbedtls/library/error.c +878 -0
  654. package/dist/lib/runtime-sources/vendor/mbedtls/library/gcm.c +1330 -0
  655. package/dist/lib/runtime-sources/vendor/mbedtls/library/hkdf.c +161 -0
  656. package/dist/lib/runtime-sources/vendor/mbedtls/library/hmac_drbg.c +633 -0
  657. package/dist/lib/runtime-sources/vendor/mbedtls/library/lmots.c +789 -0
  658. package/dist/lib/runtime-sources/vendor/mbedtls/library/lmots.h +288 -0
  659. package/dist/lib/runtime-sources/vendor/mbedtls/library/lms.c +778 -0
  660. package/dist/lib/runtime-sources/vendor/mbedtls/library/md.c +1108 -0
  661. package/dist/lib/runtime-sources/vendor/mbedtls/library/md5.c +426 -0
  662. package/dist/lib/runtime-sources/vendor/mbedtls/library/md_psa.h +26 -0
  663. package/dist/lib/runtime-sources/vendor/mbedtls/library/md_wrap.h +46 -0
  664. package/dist/lib/runtime-sources/vendor/mbedtls/library/memory_buffer_alloc.c +751 -0
  665. package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_common.h +181 -0
  666. package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_error.h +89 -0
  667. package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_reader.c +538 -0
  668. package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_reader.h +366 -0
  669. package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_trace.c +112 -0
  670. package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_trace.h +154 -0
  671. package/dist/lib/runtime-sources/vendor/mbedtls/library/net_sockets.c +694 -0
  672. package/dist/lib/runtime-sources/vendor/mbedtls/library/nist_kw.c +729 -0
  673. package/dist/lib/runtime-sources/vendor/mbedtls/library/oid.c +1166 -0
  674. package/dist/lib/runtime-sources/vendor/mbedtls/library/padlock.c +157 -0
  675. package/dist/lib/runtime-sources/vendor/mbedtls/library/padlock.h +111 -0
  676. package/dist/lib/runtime-sources/vendor/mbedtls/library/pem.c +554 -0
  677. package/dist/lib/runtime-sources/vendor/mbedtls/library/pk.c +1602 -0
  678. package/dist/lib/runtime-sources/vendor/mbedtls/library/pk_ecc.c +261 -0
  679. package/dist/lib/runtime-sources/vendor/mbedtls/library/pk_internal.h +241 -0
  680. package/dist/lib/runtime-sources/vendor/mbedtls/library/pk_wrap.c +1618 -0
  681. package/dist/lib/runtime-sources/vendor/mbedtls/library/pk_wrap.h +138 -0
  682. package/dist/lib/runtime-sources/vendor/mbedtls/library/pkcs12.c +437 -0
  683. package/dist/lib/runtime-sources/vendor/mbedtls/library/pkcs5.c +500 -0
  684. package/dist/lib/runtime-sources/vendor/mbedtls/library/pkcs7.c +787 -0
  685. package/dist/lib/runtime-sources/vendor/mbedtls/library/pkparse.c +1392 -0
  686. package/dist/lib/runtime-sources/vendor/mbedtls/library/pkwrite.c +631 -0
  687. package/dist/lib/runtime-sources/vendor/mbedtls/library/pkwrite.h +121 -0
  688. package/dist/lib/runtime-sources/vendor/mbedtls/library/platform.c +402 -0
  689. package/dist/lib/runtime-sources/vendor/mbedtls/library/platform_util.c +258 -0
  690. package/dist/lib/runtime-sources/vendor/mbedtls/library/poly1305.c +492 -0
  691. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto.c +9532 -0
  692. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_aead.c +646 -0
  693. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_aead.h +499 -0
  694. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_cipher.c +747 -0
  695. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_cipher.h +316 -0
  696. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_client.c +22 -0
  697. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_core.h +983 -0
  698. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_core_common.h +52 -0
  699. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_driver_wrappers.h +2896 -0
  700. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_driver_wrappers_no_static.c +256 -0
  701. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_driver_wrappers_no_static.h +31 -0
  702. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_ecp.c +594 -0
  703. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_ecp.h +267 -0
  704. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_ffdh.c +361 -0
  705. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_ffdh.h +131 -0
  706. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_hash.c +470 -0
  707. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_hash.h +211 -0
  708. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_invasive.h +92 -0
  709. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_its.h +131 -0
  710. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_mac.c +505 -0
  711. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_mac.h +264 -0
  712. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_pake.c +571 -0
  713. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_pake.h +159 -0
  714. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_random.c +181 -0
  715. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_random.h +72 -0
  716. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_random_impl.h +200 -0
  717. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_rsa.c +714 -0
  718. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_rsa.h +321 -0
  719. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_se.c +373 -0
  720. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_se.h +192 -0
  721. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_slot_management.c +1137 -0
  722. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_slot_management.h +344 -0
  723. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_storage.c +481 -0
  724. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_storage.h +392 -0
  725. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_its_file.c +254 -0
  726. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_util.c +614 -0
  727. package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_util_internal.h +100 -0
  728. package/dist/lib/runtime-sources/vendor/mbedtls/library/ripemd160.c +490 -0
  729. package/dist/lib/runtime-sources/vendor/mbedtls/library/rsa.c +3121 -0
  730. package/dist/lib/runtime-sources/vendor/mbedtls/library/rsa_alt_helpers.c +455 -0
  731. package/dist/lib/runtime-sources/vendor/mbedtls/library/rsa_alt_helpers.h +209 -0
  732. package/dist/lib/runtime-sources/vendor/mbedtls/library/rsa_internal.h +188 -0
  733. package/dist/lib/runtime-sources/vendor/mbedtls/library/sha1.c +480 -0
  734. package/dist/lib/runtime-sources/vendor/mbedtls/library/sha256.c +983 -0
  735. package/dist/lib/runtime-sources/vendor/mbedtls/library/sha3.c +721 -0
  736. package/dist/lib/runtime-sources/vendor/mbedtls/library/sha512.c +1115 -0
  737. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_cache.c +410 -0
  738. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_ciphersuites.c +2050 -0
  739. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_ciphersuites_internal.h +154 -0
  740. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_client.c +1023 -0
  741. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_client.h +22 -0
  742. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_cookie.c +384 -0
  743. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_debug_helpers.h +85 -0
  744. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_debug_helpers_generated.c +251 -0
  745. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_misc.h +3198 -0
  746. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_msg.c +6619 -0
  747. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_ticket.c +556 -0
  748. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls.c +10234 -0
  749. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls12_client.c +3688 -0
  750. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls12_server.c +4311 -0
  751. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_client.c +3208 -0
  752. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_generic.c +1793 -0
  753. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_invasive.h +23 -0
  754. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_keys.c +1918 -0
  755. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_keys.h +668 -0
  756. package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_server.c +3624 -0
  757. package/dist/lib/runtime-sources/vendor/mbedtls/library/threading.c +193 -0
  758. package/dist/lib/runtime-sources/vendor/mbedtls/library/threading_internal.h +28 -0
  759. package/dist/lib/runtime-sources/vendor/mbedtls/library/timing.c +152 -0
  760. package/dist/lib/runtime-sources/vendor/mbedtls/library/version.c +32 -0
  761. package/dist/lib/runtime-sources/vendor/mbedtls/library/version_features.c +856 -0
  762. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509.c +1776 -0
  763. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_create.c +570 -0
  764. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_crl.c +708 -0
  765. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_crt.c +3311 -0
  766. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_csr.c +648 -0
  767. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_internal.h +101 -0
  768. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509write.c +174 -0
  769. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509write_crt.c +688 -0
  770. package/dist/lib/runtime-sources/vendor/mbedtls/library/x509write_csr.c +336 -0
  771. package/dist/lib/runtime-sources/vendor/quickjs-ng/CMakeLists.txt +566 -0
  772. package/dist/lib/runtime-sources/vendor/quickjs-ng/LICENSE +24 -0
  773. package/dist/lib/runtime-sources/vendor/quickjs-ng/README.md +24 -0
  774. package/dist/lib/runtime-sources/vendor/quickjs-ng/api-test.c +1195 -0
  775. package/dist/lib/runtime-sources/vendor/quickjs-ng/builtin-array-fromasync.h +119 -0
  776. package/dist/lib/runtime-sources/vendor/quickjs-ng/builtin-iterator-zip-keyed.h +332 -0
  777. package/dist/lib/runtime-sources/vendor/quickjs-ng/builtin-iterator-zip.h +337 -0
  778. package/dist/lib/runtime-sources/vendor/quickjs-ng/cutils.h +1998 -0
  779. package/dist/lib/runtime-sources/vendor/quickjs-ng/dtoa.c +1619 -0
  780. package/dist/lib/runtime-sources/vendor/quickjs-ng/dtoa.h +87 -0
  781. package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/function_source.c +81 -0
  782. package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/hello.c +53 -0
  783. package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/hello_module.c +106 -0
  784. package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/repl.c +3036 -0
  785. package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/standalone.c +323 -0
  786. package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/test_fib.c +81 -0
  787. package/dist/lib/runtime-sources/vendor/quickjs-ng/libregexp-opcode.h +73 -0
  788. package/dist/lib/runtime-sources/vendor/quickjs-ng/libregexp.c +3474 -0
  789. package/dist/lib/runtime-sources/vendor/quickjs-ng/libregexp.h +101 -0
  790. package/dist/lib/runtime-sources/vendor/quickjs-ng/libunicode-table.h +5173 -0
  791. package/dist/lib/runtime-sources/vendor/quickjs-ng/libunicode.c +2069 -0
  792. package/dist/lib/runtime-sources/vendor/quickjs-ng/libunicode.h +172 -0
  793. package/dist/lib/runtime-sources/vendor/quickjs-ng/list.h +107 -0
  794. package/dist/lib/runtime-sources/vendor/quickjs-ng/lre-test.c +52 -0
  795. package/dist/lib/runtime-sources/vendor/quickjs-ng/qjs.c +762 -0
  796. package/dist/lib/runtime-sources/vendor/quickjs-ng/qjsc.c +673 -0
  797. package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-atom.h +280 -0
  798. package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-c-atomics.h +54 -0
  799. package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-libc.c +5037 -0
  800. package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-libc.h +87 -0
  801. package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-opcode.h +377 -0
  802. package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs.c +64041 -0
  803. package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs.h +1447 -0
  804. package/dist/lib/runtime-sources/vendor/quickjs-ng/run-test262.c +2374 -0
  805. package/dist/lib/runtime-sources/vendor/quickjs-ng/unicode_gen.c +3121 -0
  806. package/dist/lib/runtime-sources/vendor/quickjs-ng/unicode_gen_def.h +310 -0
  807. package/dist/lib/runtime-sources/vendor/ryu/LICENSE-Boost +23 -0
  808. package/dist/lib/runtime-sources/vendor/ryu/common.h +114 -0
  809. package/dist/lib/runtime-sources/vendor/ryu/d2s.c +509 -0
  810. package/dist/lib/runtime-sources/vendor/ryu/d2s_full_table.h +367 -0
  811. package/dist/lib/runtime-sources/vendor/ryu/d2s_intrinsics.h +357 -0
  812. package/dist/lib/runtime-sources/vendor/ryu/d2s_small_table.h +186 -0
  813. package/dist/lib/runtime-sources/vendor/ryu/digit_table.h +35 -0
  814. package/dist/lib/runtime-sources/vendor/ryu/ryu.h +46 -0
  815. package/dist/lib/runtime-sources/vendor/unicode/LICENSE +39 -0
  816. package/dist/lib/runtime-sources/vendor/v8-number-radix/LICENSE +61 -0
  817. package/dist/lib/runtime-sources/vendor/zlib/LICENSE +22 -0
  818. package/dist/lib/runtime-sources/vendor/zlib/adler32.c +164 -0
  819. package/dist/lib/runtime-sources/vendor/zlib/compress.c +75 -0
  820. package/dist/lib/runtime-sources/vendor/zlib/crc32.c +1049 -0
  821. package/dist/lib/runtime-sources/vendor/zlib/crc32.h +9446 -0
  822. package/dist/lib/runtime-sources/vendor/zlib/deflate.c +2139 -0
  823. package/dist/lib/runtime-sources/vendor/zlib/deflate.h +377 -0
  824. package/dist/lib/runtime-sources/vendor/zlib/gzclose.c +23 -0
  825. package/dist/lib/runtime-sources/vendor/zlib/gzguts.h +214 -0
  826. package/dist/lib/runtime-sources/vendor/zlib/gzlib.c +582 -0
  827. package/dist/lib/runtime-sources/vendor/zlib/gzread.c +602 -0
  828. package/dist/lib/runtime-sources/vendor/zlib/gzwrite.c +631 -0
  829. package/dist/lib/runtime-sources/vendor/zlib/infback.c +628 -0
  830. package/dist/lib/runtime-sources/vendor/zlib/inffast.c +320 -0
  831. package/dist/lib/runtime-sources/vendor/zlib/inffast.h +11 -0
  832. package/dist/lib/runtime-sources/vendor/zlib/inffixed.h +94 -0
  833. package/dist/lib/runtime-sources/vendor/zlib/inflate.c +1526 -0
  834. package/dist/lib/runtime-sources/vendor/zlib/inflate.h +126 -0
  835. package/dist/lib/runtime-sources/vendor/zlib/inftrees.c +299 -0
  836. package/dist/lib/runtime-sources/vendor/zlib/inftrees.h +62 -0
  837. package/dist/lib/runtime-sources/vendor/zlib/trees.c +1117 -0
  838. package/dist/lib/runtime-sources/vendor/zlib/trees.h +128 -0
  839. package/dist/lib/runtime-sources/vendor/zlib/uncompr.c +85 -0
  840. package/dist/lib/runtime-sources/vendor/zlib/zconf.h +543 -0
  841. package/dist/lib/runtime-sources/vendor/zlib/zlib.h +1938 -0
  842. package/dist/lib/runtime-sources/vendor/zlib/zutil.c +299 -0
  843. package/dist/lib/runtime-sources/vendor/zlib/zutil.h +254 -0
  844. package/dist/lib/scriptc-comptime +0 -0
  845. package/dist/lib/typescript/LICENSE +55 -0
  846. package/dist/lib/typescript/NOTICE.txt +436 -0
  847. package/dist/lib/typescript/lib/lib.d.ts +20 -0
  848. package/dist/lib/typescript/lib/lib.decorators.d.ts +382 -0
  849. package/dist/lib/typescript/lib/lib.decorators.legacy.d.ts +20 -0
  850. package/dist/lib/typescript/lib/lib.dom.asynciterable.d.ts +18 -0
  851. package/dist/lib/typescript/lib/lib.dom.d.ts +45125 -0
  852. package/dist/lib/typescript/lib/lib.dom.iterable.d.ts +18 -0
  853. package/dist/lib/typescript/lib/lib.es2015.collection.d.ts +159 -0
  854. package/dist/lib/typescript/lib/lib.es2015.core.d.ts +595 -0
  855. package/dist/lib/typescript/lib/lib.es2015.d.ts +26 -0
  856. package/dist/lib/typescript/lib/lib.es2015.generator.d.ts +75 -0
  857. package/dist/lib/typescript/lib/lib.es2015.iterable.d.ts +603 -0
  858. package/dist/lib/typescript/lib/lib.es2015.promise.d.ts +79 -0
  859. package/dist/lib/typescript/lib/lib.es2015.proxy.d.ts +126 -0
  860. package/dist/lib/typescript/lib/lib.es2015.reflect.d.ts +142 -0
  861. package/dist/lib/typescript/lib/lib.es2015.symbol.d.ts +44 -0
  862. package/dist/lib/typescript/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
  863. package/dist/lib/typescript/lib/lib.es2016.array.include.d.ts +114 -0
  864. package/dist/lib/typescript/lib/lib.es2016.d.ts +19 -0
  865. package/dist/lib/typescript/lib/lib.es2016.full.d.ts +21 -0
  866. package/dist/lib/typescript/lib/lib.es2016.intl.d.ts +29 -0
  867. package/dist/lib/typescript/lib/lib.es2017.arraybuffer.d.ts +19 -0
  868. package/dist/lib/typescript/lib/lib.es2017.d.ts +24 -0
  869. package/dist/lib/typescript/lib/lib.es2017.date.d.ts +29 -0
  870. package/dist/lib/typescript/lib/lib.es2017.full.d.ts +21 -0
  871. package/dist/lib/typescript/lib/lib.es2017.intl.d.ts +42 -0
  872. package/dist/lib/typescript/lib/lib.es2017.object.d.ts +47 -0
  873. package/dist/lib/typescript/lib/lib.es2017.sharedmemory.d.ts +133 -0
  874. package/dist/lib/typescript/lib/lib.es2017.string.d.ts +47 -0
  875. package/dist/lib/typescript/lib/lib.es2017.typedarrays.d.ts +51 -0
  876. package/dist/lib/typescript/lib/lib.es2018.asyncgenerator.d.ts +75 -0
  877. package/dist/lib/typescript/lib/lib.es2018.asynciterable.d.ts +51 -0
  878. package/dist/lib/typescript/lib/lib.es2018.d.ts +22 -0
  879. package/dist/lib/typescript/lib/lib.es2018.full.d.ts +22 -0
  880. package/dist/lib/typescript/lib/lib.es2018.intl.d.ts +81 -0
  881. package/dist/lib/typescript/lib/lib.es2018.promise.d.ts +28 -0
  882. package/dist/lib/typescript/lib/lib.es2018.regexp.d.ts +35 -0
  883. package/dist/lib/typescript/lib/lib.es2019.array.d.ts +77 -0
  884. package/dist/lib/typescript/lib/lib.es2019.d.ts +22 -0
  885. package/dist/lib/typescript/lib/lib.es2019.full.d.ts +22 -0
  886. package/dist/lib/typescript/lib/lib.es2019.intl.d.ts +21 -0
  887. package/dist/lib/typescript/lib/lib.es2019.object.d.ts +31 -0
  888. package/dist/lib/typescript/lib/lib.es2019.string.d.ts +35 -0
  889. package/dist/lib/typescript/lib/lib.es2019.symbol.d.ts +22 -0
  890. package/dist/lib/typescript/lib/lib.es2020.bigint.d.ts +763 -0
  891. package/dist/lib/typescript/lib/lib.es2020.d.ts +25 -0
  892. package/dist/lib/typescript/lib/lib.es2020.date.d.ts +40 -0
  893. package/dist/lib/typescript/lib/lib.es2020.full.d.ts +22 -0
  894. package/dist/lib/typescript/lib/lib.es2020.intl.d.ts +472 -0
  895. package/dist/lib/typescript/lib/lib.es2020.number.d.ts +26 -0
  896. package/dist/lib/typescript/lib/lib.es2020.promise.d.ts +45 -0
  897. package/dist/lib/typescript/lib/lib.es2020.sharedmemory.d.ts +97 -0
  898. package/dist/lib/typescript/lib/lib.es2020.string.d.ts +42 -0
  899. package/dist/lib/typescript/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
  900. package/dist/lib/typescript/lib/lib.es2021.d.ts +21 -0
  901. package/dist/lib/typescript/lib/lib.es2021.full.d.ts +22 -0
  902. package/dist/lib/typescript/lib/lib.es2021.intl.d.ts +164 -0
  903. package/dist/lib/typescript/lib/lib.es2021.promise.d.ts +46 -0
  904. package/dist/lib/typescript/lib/lib.es2021.string.d.ts +31 -0
  905. package/dist/lib/typescript/lib/lib.es2021.weakref.d.ts +76 -0
  906. package/dist/lib/typescript/lib/lib.es2022.array.d.ts +119 -0
  907. package/dist/lib/typescript/lib/lib.es2022.d.ts +23 -0
  908. package/dist/lib/typescript/lib/lib.es2022.error.d.ts +73 -0
  909. package/dist/lib/typescript/lib/lib.es2022.full.d.ts +22 -0
  910. package/dist/lib/typescript/lib/lib.es2022.intl.d.ts +143 -0
  911. package/dist/lib/typescript/lib/lib.es2022.object.d.ts +24 -0
  912. package/dist/lib/typescript/lib/lib.es2022.regexp.d.ts +37 -0
  913. package/dist/lib/typescript/lib/lib.es2022.string.d.ts +23 -0
  914. package/dist/lib/typescript/lib/lib.es2023.array.d.ts +922 -0
  915. package/dist/lib/typescript/lib/lib.es2023.collection.d.ts +19 -0
  916. package/dist/lib/typescript/lib/lib.es2023.d.ts +20 -0
  917. package/dist/lib/typescript/lib/lib.es2023.full.d.ts +22 -0
  918. package/dist/lib/typescript/lib/lib.es2023.intl.d.ts +62 -0
  919. package/dist/lib/typescript/lib/lib.es2024.arraybuffer.d.ts +63 -0
  920. package/dist/lib/typescript/lib/lib.es2024.collection.d.ts +27 -0
  921. package/dist/lib/typescript/lib/lib.es2024.d.ts +24 -0
  922. package/dist/lib/typescript/lib/lib.es2024.full.d.ts +22 -0
  923. package/dist/lib/typescript/lib/lib.es2024.object.d.ts +27 -0
  924. package/dist/lib/typescript/lib/lib.es2024.promise.d.ts +33 -0
  925. package/dist/lib/typescript/lib/lib.es2024.regexp.d.ts +23 -0
  926. package/dist/lib/typescript/lib/lib.es2024.sharedmemory.d.ts +66 -0
  927. package/dist/lib/typescript/lib/lib.es2024.string.d.ts +27 -0
  928. package/dist/lib/typescript/lib/lib.es2025.collection.d.ts +94 -0
  929. package/dist/lib/typescript/lib/lib.es2025.d.ts +23 -0
  930. package/dist/lib/typescript/lib/lib.es2025.float16.d.ts +443 -0
  931. package/dist/lib/typescript/lib/lib.es2025.full.d.ts +22 -0
  932. package/dist/lib/typescript/lib/lib.es2025.intl.d.ts +200 -0
  933. package/dist/lib/typescript/lib/lib.es2025.iterator.d.ts +146 -0
  934. package/dist/lib/typescript/lib/lib.es2025.promise.d.ts +32 -0
  935. package/dist/lib/typescript/lib/lib.es2025.regexp.d.ts +30 -0
  936. package/dist/lib/typescript/lib/lib.es5.d.ts +4599 -0
  937. package/dist/lib/typescript/lib/lib.es6.d.ts +21 -0
  938. package/dist/lib/typescript/lib/lib.esnext.array.d.ts +33 -0
  939. package/dist/lib/typescript/lib/lib.esnext.collection.d.ts +47 -0
  940. package/dist/lib/typescript/lib/lib.esnext.d.ts +27 -0
  941. package/dist/lib/typescript/lib/lib.esnext.date.d.ts +21 -0
  942. package/dist/lib/typescript/lib/lib.esnext.decorators.d.ts +26 -0
  943. package/dist/lib/typescript/lib/lib.esnext.disposable.d.ts +191 -0
  944. package/dist/lib/typescript/lib/lib.esnext.error.d.ts +22 -0
  945. package/dist/lib/typescript/lib/lib.esnext.full.d.ts +22 -0
  946. package/dist/lib/typescript/lib/lib.esnext.intl.d.ts +107 -0
  947. package/dist/lib/typescript/lib/lib.esnext.sharedmemory.d.ts +23 -0
  948. package/dist/lib/typescript/lib/lib.esnext.temporal.d.ts +485 -0
  949. package/dist/lib/typescript/lib/lib.esnext.typedarrays.d.ts +90 -0
  950. package/dist/lib/typescript/lib/lib.scripthost.d.ts +320 -0
  951. package/dist/lib/typescript/lib/lib.webworker.asynciterable.d.ts +18 -0
  952. package/dist/lib/typescript/lib/lib.webworker.d.ts +15606 -0
  953. package/dist/lib/typescript/lib/lib.webworker.importscripts.d.ts +21 -0
  954. package/dist/lib/typescript/lib/lib.webworker.iterable.d.ts +18 -0
  955. package/dist/lib/typescript/lib/tsc +0 -0
  956. package/dist/lib/typescript/package.json +45 -0
  957. package/dist/lib/wasi/cli/wasi-paths.js +41 -0
  958. package/dist/lib/wasi/cli/wasi-runner.js +28 -0
  959. package/dist/lib/wasi/package.json +1 -0
  960. package/dist/lib/wasi/wasi-paths.js +25 -0
  961. package/package.json +22 -6
  962. package/README.md +0 -3
  963. package/index.js +0 -2
@@ -0,0 +1,3857 @@
1
+ /* The FALLBACK Node-ish declarations — shipped into the program ONLY when
2
+ * the target project has no @types/node (see loadProgram): console, the
3
+ * process global, and the "node:fs" module, typed as exactly the supported
4
+ * surface so unsupported uses are honest TYPE errors. Where a member is
5
+ * part of the stock lib surface but has no lowering, prefer DECLARING it
6
+ * (console's non-lowered members below): a program that typechecks under
7
+ * its own tsc then reaches the per-site lowering fence with its hint,
8
+ * instead of a fallback-manufactured type error it cannot reproduce.
9
+ *
10
+ * When the project's node_modules contains @types/node, this file STANDS
11
+ * DOWN — its declarations would collide with @types/node's own (`declare
12
+ * var process`, `declare var console`, `declare module "node:fs"`), and
13
+ * the project's real types win. The LOWERED surface does not change: the
14
+ * lowerer recognizes the same members by name + provenance (shipped
15
+ * ambient OR @types/node — see isStdlibFile/isNodeTypesPath), and
16
+ * everything else @types/node declares hits the SC2020-family fence at
17
+ * its use site. scriptc.d.ts holds the always-shipped core (divergence
18
+ * overrides, comptime, __island_eval, setTimeout — which MERGES with
19
+ * @types/node's as an overload instead of colliding). */
20
+
21
+ /* NodeJS.ErrnoException — the Error shape @types/node attaches to fs and
22
+ * child failures. The TYPE maps to the runtime Error root; only `code`
23
+ * has a lowering (throw sites stamp the errno name — "ENOENT" and
24
+ * friends; reads answer `string | undefined`), errno/syscall/path
25
+ * typecheck and fence per member. */
26
+ declare namespace NodeJS {
27
+ interface ProcessVersions {
28
+ readonly node: string;
29
+ readonly openssl?: string;
30
+ readonly [name: string]: string | undefined;
31
+ }
32
+ /* The process introspection records — named interfaces so the type
33
+ * mapper interns their record shapes (the RemoteInfo pattern; the
34
+ * names match @types/node's, so the mappings hold when it adopts). */
35
+ interface CpuUsage {
36
+ user: number;
37
+ system: number;
38
+ }
39
+ interface ResourceUsage {
40
+ userCPUTime: number;
41
+ systemCPUTime: number;
42
+ maxRSS: number;
43
+ sharedMemorySize: number;
44
+ unsharedDataSize: number;
45
+ unsharedStackSize: number;
46
+ minorPageFault: number;
47
+ majorPageFault: number;
48
+ swappedOut: number;
49
+ fsRead: number;
50
+ fsWrite: number;
51
+ ipcSent: number;
52
+ ipcReceived: number;
53
+ signalsCount: number;
54
+ voluntaryContextSwitches: number;
55
+ involuntaryContextSwitches: number;
56
+ }
57
+ interface ErrnoException extends Error {
58
+ errno?: number | undefined;
59
+ code?: string | undefined;
60
+ path?: string | undefined;
61
+ syscall?: string | undefined;
62
+ }
63
+ /* The piped child-output stream (child.stdout / child.stderr under
64
+ * stdio ["ignore", "pipe", "pipe"]): 'data' fires one Buffer chunk per
65
+ * read (≤64KB, consumer-driven — no listener, no read), 'end' fires
66
+ * once at EOF and always BEFORE the child's 'exit'. A flowing stream
67
+ * keeps the loop alive. */
68
+ interface ReadableStream {
69
+ on(event: "data", listener: (chunk: Buffer) => void): void;
70
+ on(event: "data", listener: (chunk: string) => void): void;
71
+ on(event: "end", listener: () => void): void;
72
+ once(event: "data", listener: (chunk: Buffer) => void): void;
73
+ once(event: "data", listener: (chunk: string) => void): void;
74
+ once(event: "end", listener: () => void): void;
75
+ /* setEncoding('utf8') makes subsequent data chunks strings, including
76
+ * multibyte sequences split across native pipe reads. */
77
+ setEncoding(encoding: string): this;
78
+ }
79
+ }
80
+
81
+ /* log/info/debug write stdout (info and debug ARE log in Node); error and
82
+ * warn are ONE stream (warn IS error under another name) and write stderr
83
+ * with the exact same formatting. Each call submits its output promptly;
84
+ * stdout settles first under merged 2>&1 output. Arguments take Node's
85
+ * console semantics: strings verbatim, everything else through the static
86
+ * util.inspect rendering — so the parameters are unknown[], like stock
87
+ * lib's console; values inspect cannot render statically (functions inside
88
+ * composites, class hierarchies, `any`) fence per argument with a hint.
89
+ *
90
+ * The REMAINING stock console members are declared too — not because they
91
+ * lower (none do), but so a program that typechecks under its own tsc
92
+ * reaches the per-site SC2020 fence naming the member and the supported
93
+ * surface, instead of dying on a fallback-manufactured type error its own
94
+ * tsc cannot reproduce. */
95
+ declare const console: {
96
+ log(...args: unknown[]): void;
97
+ info(...args: unknown[]): void;
98
+ debug(...args: unknown[]): void;
99
+ error(...args: unknown[]): void;
100
+ warn(...args: unknown[]): void;
101
+ assert(condition?: unknown, ...data: unknown[]): void;
102
+ clear(): void;
103
+ count(label?: string): void;
104
+ countReset(label?: string): void;
105
+ dir(item?: unknown, options?: unknown): void;
106
+ dirxml(...data: unknown[]): void;
107
+ group(...data: unknown[]): void;
108
+ groupCollapsed(...data: unknown[]): void;
109
+ groupEnd(): void;
110
+ table(tabularData?: unknown, properties?: readonly string[]): void;
111
+ time(label?: string): void;
112
+ timeEnd(label?: string): void;
113
+ timeLog(label?: string, ...data: unknown[]): void;
114
+ timeStamp(label?: string): void;
115
+ trace(...data: unknown[]): void;
116
+ };
117
+
118
+ // node:console exports the global instance's bound methods. The constructor
119
+ // and remaining methods are declared so unsupported uses reach named fences.
120
+ type ScriptcConsoleMethods = typeof console;
121
+ declare module "node:console" {
122
+ export class Console {
123
+ constructor(stdout: unknown, stderr?: unknown, ignoreErrors?: boolean);
124
+ }
125
+ export interface Console extends ScriptcConsoleMethods {}
126
+ export const log: ScriptcConsoleMethods["log"];
127
+ export const info: ScriptcConsoleMethods["info"];
128
+ export const debug: ScriptcConsoleMethods["debug"];
129
+ export const error: ScriptcConsoleMethods["error"];
130
+ export const warn: ScriptcConsoleMethods["warn"];
131
+ export const assert: ScriptcConsoleMethods["assert"];
132
+ export const clear: ScriptcConsoleMethods["clear"];
133
+ export const count: ScriptcConsoleMethods["count"];
134
+ export const countReset: ScriptcConsoleMethods["countReset"];
135
+ export const dir: ScriptcConsoleMethods["dir"];
136
+ export const dirxml: ScriptcConsoleMethods["dirxml"];
137
+ export const group: ScriptcConsoleMethods["group"];
138
+ export const groupCollapsed: ScriptcConsoleMethods["groupCollapsed"];
139
+ export const groupEnd: ScriptcConsoleMethods["groupEnd"];
140
+ export const table: ScriptcConsoleMethods["table"];
141
+ export const time: ScriptcConsoleMethods["time"];
142
+ export const timeEnd: ScriptcConsoleMethods["timeEnd"];
143
+ export const timeLog: ScriptcConsoleMethods["timeLog"];
144
+ export const timeStamp: ScriptcConsoleMethods["timeStamp"];
145
+ export const trace: ScriptcConsoleMethods["trace"];
146
+ const defaultConsole: ScriptcConsoleMethods & { Console: typeof Console };
147
+ export default defaultConsole;
148
+ }
149
+ declare module "console" {
150
+ export * from "node:console";
151
+ export { default } from "node:console";
152
+ }
153
+
154
+ /* The process global (Node-like, deliberately tiny). Every member lowers to
155
+ * a `libCall` and is implemented in the runtime's scr_lib.c. `argv` is one
156
+ * interned array (identity and mutation semantics match Node's stable
157
+ * process.argv); `exit` flushes stdout and ends the process immediately.
158
+ * `env` reads (`process.env.NAME` / `process.env[name]`) are getenv(3)
159
+ * behind a `string | undefined` union — narrow with `!== undefined` before
160
+ * use — and writes are setenv(3): later reads and spawned children observe
161
+ * them, like Node. `process.env` as a WHOLE value is a fresh
162
+ * `{ [k: string]: string | undefined }` SNAPSHOT record over environ
163
+ * (spreads, Object.keys, spawn-env flows). `pid`/`getuid()` are the POSIX
164
+ * identities (getuid is declared optional to match @types/node — the
165
+ * `?.()` call lowers as the plain call on this POSIX-only target), and
166
+ * `kill` has Node's exact semantics: signal names or numbers, SIGTERM
167
+ * default, signal 0 as an existence probe, and Node's error shapes
168
+ * (`kill ESRCH`/`kill EPERM` Errors, TypeErrors for unknown signals and
169
+ * non-int32 pids). */
170
+ declare var process: {
171
+ getBuiltinModule(id: string): unknown;
172
+ hrtime: {
173
+ (time?: [number, number]): [number, number];
174
+ bigint(): bigint;
175
+ };
176
+ argv: string[];
177
+ platform: string;
178
+ /* The binary's OWN architecture ("arm64", "x64") — Node's answer for
179
+ * its own build on the same machine. */
180
+ readonly arch: string;
181
+ /* Stable native dictionary. node and openssl name compatibility targets;
182
+ * components absent from the runtime have no entries. */
183
+ readonly versions: NodeJS.ProcessVersions;
184
+ /* The build-configuration snapshot Node exposes from its gyp config.
185
+ * A scriptc binary has no V8 and no gyp, so `variables` answers the
186
+ * honest capability record (v8_enable_i18n_support: 0 — no ICU; asan
187
+ * mirrors the sanitizer build flag) and `target_defaults` is absent —
188
+ * probe code takes its documented fallbacks. Reads of undeclared
189
+ * variables go through the index signature (string | number | boolean
190
+ * | undefined) and answer undefined. */
191
+ readonly config: {
192
+ readonly variables: { readonly [name: string]: string | number | boolean | undefined };
193
+ readonly target_defaults?: { readonly default_configuration: string };
194
+ };
195
+ /* Node's feature probes — a compiled binary has no inspector and is
196
+ * not a debug build; undeclared members read undefined through the
197
+ * index signature. */
198
+ readonly features: { readonly [name: string]: boolean | undefined };
199
+ /* umask(2) — sets the file-mode creation mask and returns the previous
200
+ * one; the no-argument form reads without setting (Node's shape). */
201
+ umask(mask?: number): number;
202
+ /* chdir(2) — failures throw Node's fs-shaped catchable error. */
203
+ chdir(directory: string): void;
204
+ /* The extra CLI arguments Node itself consumed (--expose-internals,
205
+ * ...): a compiled binary consumed none, so this is always []. */
206
+ readonly execArgv: string[];
207
+ /* Node's internal "exit sequence started" flag (real, undocumented
208
+ * surface — the test harness reads it): true while 'exit' listeners
209
+ * run, false otherwise. */
210
+ readonly _exiting: boolean;
211
+ /* Node's raw synchronous stderr write (internal surface the test
212
+ * harness uses on its failure paths). */
213
+ _rawDebug(...args: unknown[]): void;
214
+ pid: number;
215
+ /* The compiled binary's own resolved absolute path — Node's is the node
216
+ * executable's (SEMANTICS.md divergence 12, the argv[0]/argv[1] story). */
217
+ readonly execPath: string;
218
+ getuid?(): number;
219
+ getgid?(): number;
220
+ /* signal admits null (Node treats it as the SIGTERM default) — real
221
+ * callers forward a `string | null` result field. */
222
+ kill(pid: number, signal?: string | number | null): true;
223
+ env: { [name: string]: string | undefined };
224
+ /** Numeric writes set the status returned by ordinary program exit. */
225
+ exitCode?: number;
226
+ /* `never`, like @types/node: code behind an early-exit guard narrows
227
+ * (`if (!x) process.exit(1)` proves x afterwards) — typed `void` the
228
+ * guard narrows nothing and correct programs fail preflight. The
229
+ * lowering already handles the optional code (bare exit() uses exitCode,
230
+ * or zero when it was never set). */
231
+ exit(code?: number | null): never;
232
+ cwd(): string;
233
+ /* The user tick queue: callbacks run before promise jobs at every loop
234
+ * checkpoint (Node's tick-then-microtask order); trailing arguments
235
+ * pass to the callback at fire time, like Node. */
236
+ nextTick(callback: (...args: any[]) => void, ...args: any[]): void;
237
+ /* The process introspection statics — Node's shapes and units. */
238
+ uptime(): number;
239
+ cpuUsage(previousValue?: NodeJS.CpuUsage): NodeJS.CpuUsage;
240
+ threadCpuUsage(previousValue?: NodeJS.CpuUsage): NodeJS.CpuUsage;
241
+ resourceUsage(): NodeJS.ResourceUsage;
242
+ availableMemory(): number;
243
+ constrainedMemory(): number;
244
+ /* The loop's own bookkeeping: 'Timeout' per armed timer, 'Immediate'
245
+ * per queued unfired immediate; unmodeled kinds absent (SEMANTICS.md). */
246
+ getActiveResourcesInfo(): string[];
247
+ /* The raw byte writes — no newline, no formatting. stdout shares
248
+ * console.log's stream, each call is submitted promptly, and ordering is
249
+ * preserved. The boolean is Node's backpressure signal — these synchronous
250
+ * writes always return true. Static BufferEncoding arguments and the
251
+ * completion callback overloads match Node's WritableStream surface. */
252
+ stdout: {
253
+ write(data: string | Uint8Array, callback?: (error?: Error | null) => void): boolean;
254
+ write(data: string | Uint8Array, encoding: BufferEncoding, callback?: (error?: Error | null) => void): boolean;
255
+ readonly isTTY: boolean;
256
+ };
257
+ stderr: {
258
+ write(data: string | Uint8Array, callback?: (error?: Error | null) => void): boolean;
259
+ write(data: string | Uint8Array, encoding: BufferEncoding, callback?: (error?: Error | null) => void): boolean;
260
+ readonly isTTY: boolean;
261
+ };
262
+ /* The stdin stream, the piped-input slice: the TTY probe, the
263
+ * data/end/error events (on and once — a 'data' listener keeps the
264
+ * event loop alive until EOF, like Node's flowing stdin), destroy()
265
+ * (full teardown: nothing fires after, the loop stops waiting), and
266
+ * async iteration (`for await (const chunk of process.stdin)` — chunks
267
+ * are Uint8Array values, ending at EOF). setEncoding has no lowering
268
+ * (chunks stay bytes; decode with TextDecoder). */
269
+ stdin: {
270
+ readonly isTTY: boolean;
271
+ on(event: "data", listener: (chunk: Uint8Array) => void): void;
272
+ on(event: "end", listener: () => void): void;
273
+ on(event: "error", listener: (err: Error) => void): void;
274
+ once(event: "data", listener: (chunk: Uint8Array) => void): void;
275
+ once(event: "end", listener: () => void): void;
276
+ once(event: "error", listener: (err: Error) => void): void;
277
+ destroy(): void;
278
+ setEncoding(encoding: "utf8"): void;
279
+ /* Termios raw mode on a TTY stdin (libuv's UV_TTY_MODE_RAW, the mode
280
+ * Node applies); on a NON-TTY stdin the member does not exist in Node
281
+ * and the call throws Node's exact catchable TypeError. Node returns
282
+ * `this` for chaining; here the call is statement-position only. */
283
+ setRawMode(mode: boolean): void;
284
+ [Symbol.asyncIterator](): AsyncIterableIterator<Uint8Array>;
285
+ };
286
+ /* Process events, the CLI slice: SIGINT/SIGTERM handlers (watching a
287
+ * signal replaces its default disposition; removing the last listener
288
+ * restores it; signal listeners never keep the loop alive — all Node's
289
+ * rules) and the 'exit' hook (runs synchronously at termination with
290
+ * the exit code; scheduling anything from it is too late, like Node).
291
+ * `once` auto-removes after the first delivery; `off` removes by
292
+ * listener identity — bind the listener to a const so registration and
293
+ * removal see the same value. */
294
+ on(event: "SIGINT" | "SIGTERM", listener: () => void): void;
295
+ on(event: "exit", listener: (code: number) => void): void;
296
+ /* 'warning' — Node's process-warning channel: listeners receive the
297
+ * warning Error (as a dyn value); emitWarning and the runtime's
298
+ * deprecation sites dispatch synchronously (SEMANTICS.md). */
299
+ on(event: "warning", listener: (warning: Error & { code?: string }) => void): void;
300
+ /* 'unhandledRejection' — dispatched per never-observed rejection at
301
+ * the completed nextTick/microtask checkpoint (reason, promise),
302
+ * suppressing the default report. 'rejectionHandled' — the sibling
303
+ * event, fired once when a delivered promise later gains a handler
304
+ * (promise payload, Node's shape). */
305
+ on(event: "unhandledRejection", listener: (reason: unknown, promise: unknown) => void): void;
306
+ on(event: "rejectionHandled", listener: (promise: unknown) => void): void;
307
+ once(event: "SIGINT" | "SIGTERM", listener: () => void): void;
308
+ once(event: "exit", listener: (code: number) => void): void;
309
+ once(event: "unhandledRejection", listener: (reason: unknown, promise: unknown) => void): void;
310
+ once(event: "rejectionHandled", listener: (promise: unknown) => void): void;
311
+ off(event: "SIGINT" | "SIGTERM", listener: () => void): void;
312
+ off(event: "exit", listener: (code: number) => void): void;
313
+ off(event: "warning", listener: (warning: Error & { code?: string }) => void): void;
314
+ off(event: "unhandledRejection", listener: (reason: unknown, promise: unknown) => void): void;
315
+ off(event: "rejectionHandled", listener: (promise: unknown) => void): void;
316
+ /* removeListener IS off — Node aliases them; both lower identically. */
317
+ removeListener(event: "SIGINT" | "SIGTERM", listener: () => void): void;
318
+ removeListener(event: "exit", listener: (code: number) => void): void;
319
+ removeListener(event: "warning", listener: (warning: Error & { code?: string }) => void): void;
320
+ removeListener(event: "unhandledRejection", listener: (reason: unknown, promise: unknown) => void): void;
321
+ removeListener(event: "rejectionHandled", listener: (promise: unknown) => void): void;
322
+ /* emitWarning — Node's full grammar (string or Error warning; type/
323
+ * ctor/options second; code/ctor third). */
324
+ emitWarning(warning: string | Error, ...args: any[]): void;
325
+ /** Present in a child created by child_process.fork(). */
326
+ readonly connected: boolean;
327
+ send?(message: object, callback?: (error: Error | null) => void): boolean;
328
+ disconnect(): void;
329
+ on(event: "message", listener: (message: any) => void): void;
330
+ on(event: "disconnect", listener: () => void): void;
331
+ once(event: "message", listener: (message: any) => void): void;
332
+ once(event: "disconnect", listener: () => void): void;
333
+ };
334
+
335
+ /* Node's process module default export is the global process object. These
336
+ * declaration aliases let the ESM spelling typecheck against the same
337
+ * deliberately narrow fallback surface when @types/node is absent. */
338
+ declare module "process" {
339
+ export = process;
340
+ }
341
+ declare module "node:process" {
342
+ import process = require("process");
343
+ export = process;
344
+ }
345
+
346
+ /* ── globals a real CLI's sources reference (all @types/node or dyn-lib
347
+ * territory; the fallback declares the slice so projects PREFLIGHT and
348
+ * every reached use lands on the SC2020 fence — or a real lowering where
349
+ * one exists — instead of "Cannot find name"). With @types/node these
350
+ * stand down with the rest of the file. ─────────────────────────────── */
351
+
352
+ /* The CommonJS module globals. `__dirname`/`__filename` are compile-time
353
+ * constants — each MODULE's real directory/file path (Node's per-module
354
+ * values exactly; the build machine's paths are baked in, which is also
355
+ * what Node answers when the same tree runs in place). In a file with ESM
356
+ * syntax they fence: Node throws ReferenceError there. */
357
+ declare var __dirname: string;
358
+ declare var __filename: string;
359
+
360
+ interface ScriptcModule {
361
+ children: ScriptcModule[];
362
+ exports: any;
363
+ filename: string;
364
+ id: string;
365
+ isPreloading: boolean;
366
+ loaded: boolean;
367
+ parent: ScriptcModule | null | undefined;
368
+ path: string;
369
+ paths: string[];
370
+ require(id: string): any;
371
+ }
372
+ declare var module: ScriptcModule;
373
+
374
+ /* `global` IS globalThis (Node's alias), and `declare var process` above
375
+ * puts process on `typeof globalThis` — so `globalThis.process` and
376
+ * `global.process` read the same object as the bare name. */
377
+ declare var global: typeof globalThis;
378
+
379
+ /* The `require` VALUE's non-call surface. require() CALLS are module
380
+ * edges (the checker models them as imports); the object's own members
381
+ * are declared here so harness idioms typecheck. The main/cache values and
382
+ * the CommonJS module graph lower to native process-lifetime handles. */
383
+ interface ScriptcRequireResolveOptions {
384
+ paths?: string[];
385
+ }
386
+ interface ScriptcRequireResolve {
387
+ (id: string, options?: ScriptcRequireResolveOptions): string;
388
+ paths(id: string): string[] | null;
389
+ }
390
+ interface ScriptcRequire {
391
+ /* The call signature types NON-IMPORT-SHAPED require expressions (the
392
+ * checker models import-shaped requires as module aliases regardless,
393
+ * exactly like under @types/node's NodeRequire). `any`, like
394
+ * @types/node: the value's home is the module system, not the static
395
+ * value model — reached uses fence per site. */
396
+ (id: string): any;
397
+ main: ScriptcModule | undefined;
398
+ resolve: ScriptcRequireResolve;
399
+ cache: { [id: string]: ScriptcModule | undefined };
400
+ }
401
+ declare var require: ScriptcRequire;
402
+
403
+ /* setImmediate/clearImmediate — Node's macrotask pair (fires after I/O
404
+ * events of the current loop turn, before timers due later). The handle
405
+ * follows the Timeout pattern: loop-liveness bookkeeping. */
406
+ interface Immediate extends Disposable {
407
+ ref(): Immediate;
408
+ unref(): Immediate;
409
+ hasRef(): boolean;
410
+ [Symbol.dispose](): void;
411
+ }
412
+ declare function setImmediate(callback: () => void): Immediate;
413
+ /* The trailing-argument form — Node passes the extras to the callback. */
414
+ declare function setImmediate(callback: (...args: never[]) => void, ...args: unknown[]): Immediate;
415
+ declare function clearImmediate(handle?: Immediate | null | undefined): void;
416
+
417
+ /* queueMicrotask — the microtask queue (the promise-continuation queue:
418
+ * runs before any timer/immediate/I/O callback scheduled later). */
419
+ declare function queueMicrotask(callback: () => void): void;
420
+
421
+ /* structuredClone — the JSON-safe + bytes subset clones deep (cycles
422
+ * fence; functions throw the spec's DataCloneError; DOMException clones
423
+ * per WebIDL serialization). `value` is optional and `options` is
424
+ * `unknown` so Node's own RUNTIME errors fire (ERR_MISSING_ARGS for the
425
+ * zero-argument call, the dictionary/sequence TypeErrors for bad
426
+ * options) where a tighter signature would reject at compile time —
427
+ * the suite exercises exactly those. */
428
+ declare function structuredClone<T = undefined>(value?: T, options?: unknown): T;
429
+
430
+ /* AbortController — the signal factory for the fetch-cancellation slice
431
+ * (AbortSignal above). */
432
+ interface AbortController {
433
+ readonly signal: AbortSignal;
434
+ abort(reason?: unknown): void;
435
+ }
436
+ declare var AbortController: { new (): AbortController };
437
+
438
+ /* atob/btoa — Node globals since v16 (the "buffer" module re-exports
439
+ * them below): base64 → binary string and back, Latin-1 domain like the
440
+ * WHATWG originals. The parameter is `unknown` because WebIDL ToStrings
441
+ * whatever arrives (Node's atob(null) decodes "null") — the coercion
442
+ * runs in the runtime over the dyn kind, and the Node suite exercises
443
+ * it; malformed input throws the catchable DOMException
444
+ * InvalidCharacterError, the zero-argument call Node's TypeError
445
+ * [ERR_MISSING_ARGS]. */
446
+ declare function atob(data?: unknown): string;
447
+ declare function btoa(data?: unknown): string;
448
+
449
+ /* DOMException — the web-standard error shape (a Node global since
450
+ * v17): an Error subclass whose `code` is the WebIDL legacy NUMBER
451
+ * (InvalidCharacterError = 5, 0 for off-table names) and whose options
452
+ * form carries `cause`. `new DOMException(msg)` has name "Error" like
453
+ * the spec's default. Subclassing is fenced (the runtime layout carries
454
+ * hidden slots) — extend Error instead. */
455
+ interface DOMException extends Error {
456
+ readonly code: number;
457
+ }
458
+ declare var DOMException: {
459
+ new (message?: unknown, nameOrOptions?: unknown): DOMException;
460
+ readonly prototype: DOMException;
461
+ };
462
+
463
+ /* Capability-gated globals harness code probes behind feature guards
464
+ * (globalThis.crypto under a hasCrypto check, the SQLite-backed storage
465
+ * pair): typed `unknown` — no lowering exists, the guard is expected to
466
+ * be false in a compiled binary, and any reached use fences per site. */
467
+ declare var crypto: unknown;
468
+ declare var Crypto: unknown;
469
+ declare var CryptoKey: unknown;
470
+ declare var SubtleCrypto: unknown;
471
+ declare var localStorage: unknown;
472
+ declare var sessionStorage: unknown;
473
+
474
+ /* Node's Buffer, typed as a Uint8Array subtype with the members CLI code
475
+ * touches — ONE runtime representation with Uint8Array (the u8 bytes
476
+ * kind); the members beyond the lowered surface fence per site. */
477
+ /* Node's encoding-name union (aliases included — the compiler folds them
478
+ * to the runtime's canonical spellings at the call site). */
479
+ type BufferEncoding =
480
+ | "utf8"
481
+ | "utf-8"
482
+ | "hex"
483
+ | "base64"
484
+ | "base64url"
485
+ | "latin1"
486
+ | "ascii"
487
+ | "binary"
488
+ | "utf16le"
489
+ | "utf-16le"
490
+ | "ucs2"
491
+ | "ucs-2";
492
+ interface Buffer<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> extends Uint8Array<TArrayBuffer> {
493
+ toString(encoding?: BufferEncoding, start?: number, end?: number): string;
494
+ equals(otherBuffer: Uint8Array): boolean;
495
+ compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
496
+ indexOf(value: string | number | Uint8Array, byteOffset?: number | BufferEncoding, encoding?: BufferEncoding): number;
497
+ lastIndexOf(value: string | number | Uint8Array, byteOffset?: number | BufferEncoding, encoding?: BufferEncoding): number;
498
+ includes(value: string | number | Buffer, byteOffset?: number | BufferEncoding, encoding?: BufferEncoding): boolean;
499
+ fill(value: string | number | Uint8Array, offset?: number | BufferEncoding, end?: number | BufferEncoding, encoding?: BufferEncoding): this;
500
+ copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
501
+ swap16(): Buffer;
502
+ swap32(): Buffer;
503
+ swap64(): Buffer;
504
+ write(string: string, offset?: number | BufferEncoding, length?: number | BufferEncoding, encoding?: BufferEncoding): number;
505
+ subarray(start?: number, end?: number): Buffer<TArrayBuffer>;
506
+ /* @types/node's spelling — the ArrayBuffer instantiation keeps the
507
+ * override compatible with the lib's Uint8Array.slice. */
508
+ slice(start?: number, end?: number): Buffer<ArrayBuffer>;
509
+ writeUInt8(value: number, offset?: number): number;
510
+ writeUInt16BE(value: number, offset?: number): number;
511
+ writeUInt16LE(value: number, offset?: number): number;
512
+ writeUInt32BE(value: number, offset?: number): number;
513
+ writeUInt32LE(value: number, offset?: number): number;
514
+ writeInt8(value: number, offset?: number): number;
515
+ writeInt16BE(value: number, offset?: number): number;
516
+ writeInt16LE(value: number, offset?: number): number;
517
+ writeInt32BE(value: number, offset?: number): number;
518
+ writeInt32LE(value: number, offset?: number): number;
519
+ writeFloatBE(value: number, offset?: number): number;
520
+ writeFloatLE(value: number, offset?: number): number;
521
+ writeDoubleBE(value: number, offset?: number): number;
522
+ writeDoubleLE(value: number, offset?: number): number;
523
+ writeUIntBE(value: number, offset: number, byteLength: number): number;
524
+ writeUIntLE(value: number, offset: number, byteLength: number): number;
525
+ writeIntBE(value: number, offset: number, byteLength: number): number;
526
+ writeIntLE(value: number, offset: number, byteLength: number): number;
527
+ writeBigInt64BE(value: bigint, offset?: number): number;
528
+ writeBigInt64LE(value: bigint, offset?: number): number;
529
+ writeBigUInt64BE(value: bigint, offset?: number): number;
530
+ writeBigUInt64LE(value: bigint, offset?: number): number;
531
+ writeBigUint64BE(value: bigint, offset?: number): number;
532
+ writeBigUint64LE(value: bigint, offset?: number): number;
533
+ readUInt8(offset?: number): number;
534
+ readUInt16BE(offset?: number): number;
535
+ readUInt16LE(offset?: number): number;
536
+ readUInt32BE(offset?: number): number;
537
+ readUInt32LE(offset?: number): number;
538
+ readInt8(offset?: number): number;
539
+ readInt16BE(offset?: number): number;
540
+ readInt16LE(offset?: number): number;
541
+ readInt32BE(offset?: number): number;
542
+ readInt32LE(offset?: number): number;
543
+ readFloatBE(offset?: number): number;
544
+ readFloatLE(offset?: number): number;
545
+ readDoubleBE(offset?: number): number;
546
+ readDoubleLE(offset?: number): number;
547
+ readUIntBE(offset: number, byteLength: number): number;
548
+ readUIntLE(offset: number, byteLength: number): number;
549
+ readIntBE(offset: number, byteLength: number): number;
550
+ readIntLE(offset: number, byteLength: number): number;
551
+ readBigInt64BE(offset?: number): bigint;
552
+ readBigInt64LE(offset?: number): bigint;
553
+ readBigUInt64BE(offset?: number): bigint;
554
+ readBigUInt64LE(offset?: number): bigint;
555
+ readBigUint64BE(offset?: number): bigint;
556
+ readBigUint64LE(offset?: number): bigint;
557
+ }
558
+ interface BufferConstructor {
559
+ from(data: string, encoding?: BufferEncoding): Buffer;
560
+ /* The ArrayBuffer form is the VIEW construction: x.buffer with an
561
+ * optional byte offset/length shares x's storage (the subarray rule). */
562
+ from(data: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
563
+ from(data: Uint8Array | readonly number[]): Buffer;
564
+ alloc(size: number, fill?: string | number | Uint8Array, encoding?: BufferEncoding): Buffer;
565
+ compare(buf1: Uint8Array, buf2: Uint8Array): number;
566
+ /* alloc without the zero-fill guarantee — the lowering zero-fills
567
+ * anyway (never handing out uninitialized memory costs one memset). */
568
+ allocUnsafe(size: number): Buffer;
569
+ concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
570
+ isBuffer(obj: unknown): obj is Buffer;
571
+ byteLength(input: string | Uint8Array, encoding?: BufferEncoding): number;
572
+ isEncoding(encoding: string): boolean;
573
+ }
574
+ declare var Buffer: BufferConstructor;
575
+
576
+ /* The WHATWG codec constructors. Instance types live in scriptc.d.ts so
577
+ * programs with @types/node have the same global type names. */
578
+ declare var TextEncoder: { new (): TextEncoder };
579
+ declare var TextDecoder: { new (label?: string, options?: { fatal?: boolean; ignoreBOM?: boolean }): TextDecoder };
580
+
581
+ /* The WHATWG event surface (Node globals since v15): declared so the
582
+ * suite's event-plumbing tests typecheck and fence per SITE with the
583
+ * member's own name. The dynamic island's web prelude implements
584
+ * Event/CustomEvent/EventTarget/DOMException/AbortController for real;
585
+ * the static tier has no lowering yet — construction and members fence
586
+ * honestly (SC2020). */
587
+ interface Event {
588
+ readonly type: string;
589
+ readonly bubbles: boolean;
590
+ readonly cancelable: boolean;
591
+ readonly composed: boolean;
592
+ readonly defaultPrevented: boolean;
593
+ readonly eventPhase: number;
594
+ readonly target: EventTarget | null;
595
+ readonly currentTarget: EventTarget | null;
596
+ readonly srcElement: EventTarget | null;
597
+ readonly isTrusted: boolean;
598
+ readonly timeStamp: number;
599
+ cancelBubble: boolean;
600
+ returnValue: boolean;
601
+ preventDefault(): void;
602
+ stopPropagation(): void;
603
+ stopImmediatePropagation(): void;
604
+ composedPath(): unknown[];
605
+ }
606
+ declare var Event: {
607
+ new (type: string, eventInitDict?: { bubbles?: boolean; cancelable?: boolean; composed?: boolean }): Event;
608
+ readonly prototype: Event;
609
+ readonly NONE: 0;
610
+ readonly CAPTURING_PHASE: 1;
611
+ readonly AT_TARGET: 2;
612
+ readonly BUBBLING_PHASE: 3;
613
+ };
614
+ interface CustomEvent<T = unknown> extends Event {
615
+ readonly detail: T;
616
+ }
617
+ declare var CustomEvent: {
618
+ new <T = unknown>(type: string, eventInitDict?: { detail?: T; bubbles?: boolean; cancelable?: boolean; composed?: boolean }): CustomEvent<T>;
619
+ readonly prototype: CustomEvent;
620
+ };
621
+ interface MessageEvent<T = unknown> extends Event {
622
+ readonly data: T;
623
+ readonly origin: string;
624
+ readonly lastEventId: string;
625
+ readonly ports: readonly MessagePort[];
626
+ }
627
+ declare var MessageEvent: {
628
+ new <T = unknown>(type: string, eventInitDict?: { data?: T; origin?: string; lastEventId?: string }): MessageEvent<T>;
629
+ readonly prototype: MessageEvent;
630
+ };
631
+ interface AddEventListenerOptions {
632
+ capture?: boolean;
633
+ once?: boolean;
634
+ passive?: boolean;
635
+ signal?: AbortSignal;
636
+ }
637
+ interface EventTarget {
638
+ addEventListener(
639
+ type: string,
640
+ listener: ((event: Event) => void) | { handleEvent(event: Event): void } | null,
641
+ options?: AddEventListenerOptions | boolean,
642
+ ): void;
643
+ removeEventListener(
644
+ type: string,
645
+ listener: ((event: Event) => void) | { handleEvent(event: Event): void } | null,
646
+ options?: { capture?: boolean } | boolean,
647
+ ): void;
648
+ dispatchEvent(event: Event): boolean;
649
+ }
650
+ declare var EventTarget: {
651
+ new (): EventTarget;
652
+ readonly prototype: EventTarget;
653
+ };
654
+
655
+ /* MessagePort/MessageChannel — the worker_threads pair Node exposes as
656
+ * globals (v15+). The island's worker_threads shim implements the
657
+ * same-thread subset (postMessage delivers structured-clone copies on a
658
+ * microtask); the web prelude exposes the classes as engine globals.
659
+ * Statically declared-not-lowered: per-site fences. */
660
+ interface MessagePort extends EventTarget {
661
+ postMessage(value: unknown, transferOrOptions?: unknown): void;
662
+ start(): void;
663
+ close(): void;
664
+ ref(): void;
665
+ unref(): void;
666
+ onmessage: ((event: MessageEvent) => void) | null;
667
+ onmessageerror: ((event: MessageEvent) => void) | null;
668
+ onclose: ((event: Event) => void) | null;
669
+ }
670
+ declare var MessagePort: {
671
+ readonly prototype: MessagePort;
672
+ };
673
+ interface MessageChannel {
674
+ readonly port1: MessagePort;
675
+ readonly port2: MessagePort;
676
+ }
677
+ declare var MessageChannel: {
678
+ new (): MessageChannel;
679
+ readonly prototype: MessageChannel;
680
+ };
681
+
682
+ /* AbortSignal, the native fetch-cancellation slice. The three statics,
683
+ * state/reason reads, throwIfAborted, and abort listeners all lower in
684
+ * static builds; dynamic builds use the island's Web implementation. */
685
+ interface AbortSignal extends EventTarget {
686
+ readonly aborted: boolean;
687
+ readonly reason: unknown;
688
+ onabort: ((event: Event) => void) | null;
689
+ throwIfAborted(): void;
690
+ }
691
+ declare var AbortSignal: {
692
+ timeout(ms: number): AbortSignal;
693
+ abort(reason?: unknown): AbortSignal;
694
+ any(signals: readonly AbortSignal[]): AbortSignal;
695
+ readonly prototype: AbortSignal;
696
+ };
697
+
698
+ interface QueuingStrategySize<T = unknown> {
699
+ (chunk: T): number;
700
+ }
701
+ interface QueuingStrategy<T = unknown> {
702
+ highWaterMark?: number;
703
+ size?: QueuingStrategySize<T>;
704
+ }
705
+ interface ReadableStreamReadValueResult<T> {
706
+ done: false;
707
+ value: T;
708
+ }
709
+ interface ReadableStreamReadDoneResult<T> {
710
+ done: true;
711
+ value: T | undefined;
712
+ }
713
+ type ReadableStreamReadResult<T> =
714
+ | ReadableStreamReadValueResult<T>
715
+ | ReadableStreamReadDoneResult<T>;
716
+ interface ReadableStreamDefaultReader<T = unknown> {
717
+ readonly closed: Promise<void>;
718
+ read(): Promise<ReadableStreamReadResult<T>>;
719
+ cancel(reason?: unknown): Promise<void>;
720
+ releaseLock(): void;
721
+ }
722
+ interface ReadableStreamDefaultController<T = unknown> {
723
+ readonly desiredSize: number | null;
724
+ enqueue(chunk?: T): void;
725
+ close(): void;
726
+ error(reason?: unknown): void;
727
+ }
728
+ interface UnderlyingSource<T = unknown> {
729
+ start?(controller: ReadableStreamDefaultController<T>): unknown;
730
+ pull?(controller: ReadableStreamDefaultController<T>): unknown;
731
+ cancel?(reason?: unknown): unknown;
732
+ }
733
+ interface ReadableStream<T = unknown> {
734
+ readonly locked: boolean;
735
+ cancel(reason?: unknown): Promise<void>;
736
+ getReader(): ReadableStreamDefaultReader<T>;
737
+ [Symbol.asyncIterator](options?: { preventCancel?: boolean }): AsyncIterableIterator<T>;
738
+ values(options?: { preventCancel?: boolean }): AsyncIterableIterator<T>;
739
+ }
740
+ declare var ReadableStream: {
741
+ new <T = unknown>(source?: UnderlyingSource<T>): ReadableStream<T>;
742
+ from<T>(iterable: readonly T[]): ReadableStream<T>;
743
+ from(iterable: Uint8Array): ReadableStream<number>;
744
+ from(iterable: string): ReadableStream<string>;
745
+ readonly prototype: ReadableStream<unknown>;
746
+ };
747
+
748
+ /* fetch, typed as the native JSON + readable-stream slice: one URL, an
749
+ * optional init with the members CLI requests carry, and a Response
750
+ * whose body is the same stream consumed by json(). json() returns
751
+ * unknown — the same dynamic boundary as JSON.parse: cast and validate. */
752
+ /* Headers — a response's native header map (lowercase names,
753
+ * combine-on-append, sorted iteration). The value is a checked-dynamic
754
+ * native handle like Response itself. */
755
+ interface Headers {
756
+ append(name: string, value: string): void;
757
+ delete(name: string): void;
758
+ get(name: string): string | null;
759
+ getSetCookie(): string[];
760
+ has(name: string): boolean;
761
+ set(name: string, value: string): void;
762
+ forEach(
763
+ callbackfn: (value: string, key: string, parent: Headers) => void,
764
+ thisArg?: unknown,
765
+ ): void;
766
+ [Symbol.iterator](): IterableIterator<[string, string]>;
767
+ }
768
+ declare var Headers: {
769
+ new (init?: Headers | Record<string, string> | readonly (readonly [string, string])[]): Headers;
770
+ readonly prototype: Headers;
771
+ };
772
+ interface Response {
773
+ readonly ok: boolean;
774
+ readonly status: number;
775
+ readonly statusText: string;
776
+ readonly url: string;
777
+ readonly redirected: boolean;
778
+ readonly headers: Headers;
779
+ readonly body: ReadableStream<Uint8Array> | null;
780
+ readonly bodyUsed: boolean;
781
+ json(): Promise<unknown>;
782
+ text(): Promise<string>;
783
+ /* The whole body as bytes: bytes() answers a Uint8Array in both tiers.
784
+ * arrayBuffer() remains dynamic-only because static programs have no
785
+ * free-standing ArrayBuffer representation; the compiler diagnoses its
786
+ * direct use and points at bytes(). */
787
+ arrayBuffer(): Promise<ArrayBuffer>;
788
+ bytes(): Promise<Uint8Array>;
789
+ }
790
+ interface ResponseInit {
791
+ headers?:
792
+ | Headers
793
+ | Record<string, string>
794
+ | readonly (readonly [string, string])[];
795
+ status?: number;
796
+ statusText?: string;
797
+ }
798
+ declare var Response: {
799
+ new (
800
+ body?: string | Uint8Array | ReadableStream<Uint8Array> | null,
801
+ init?: ResponseInit,
802
+ ): Response;
803
+ readonly prototype: Response;
804
+ error(): Response;
805
+ json(data: unknown, init?: ResponseInit): Response;
806
+ redirect(url: string | URL, status?: number): Response;
807
+ };
808
+ interface Request {
809
+ readonly method: string;
810
+ readonly url: string;
811
+ readonly headers: Headers;
812
+ readonly destination: string;
813
+ readonly referrer: string;
814
+ readonly referrerPolicy: string;
815
+ readonly mode: string;
816
+ readonly credentials: string;
817
+ readonly cache: string;
818
+ readonly redirect: "follow" | "error" | "manual";
819
+ readonly integrity: string;
820
+ readonly keepalive: boolean;
821
+ readonly isReloadNavigation: boolean;
822
+ readonly isHistoryNavigation: boolean;
823
+ readonly duplex: "half";
824
+ readonly signal: AbortSignal;
825
+ readonly body: ReadableStream<Uint8Array> | null;
826
+ readonly bodyUsed: boolean;
827
+ json(): Promise<unknown>;
828
+ text(): Promise<string>;
829
+ arrayBuffer(): Promise<ArrayBuffer>;
830
+ bytes(): Promise<Uint8Array>;
831
+ }
832
+ interface RequestInit {
833
+ method?: string;
834
+ headers?:
835
+ | Headers
836
+ | Record<string, string>
837
+ | readonly (readonly [string, string])[];
838
+ body?: string | Uint8Array | ReadableStream<Uint8Array> | null;
839
+ duplex?: "half";
840
+ redirect?: "follow" | "error" | "manual";
841
+ signal?: AbortSignal;
842
+ }
843
+ declare var Request: {
844
+ new (input: RequestInfo, init?: RequestInit): Request;
845
+ readonly prototype: Request;
846
+ };
847
+ declare function fetch(input: string | URL, init?: RequestInit): Promise<Response>;
848
+
849
+ /* The repeating timer pair (setTimeout lives in scriptc.d.ts — always
850
+ * shipped). The handle is the Timeout interface, like Node's — it maps to
851
+ * the numeric timer id, so ReturnType<typeof setInterval> stays a
852
+ * representable type and `.unref()/.ref()/.hasRef()/.refresh()` chain over
853
+ * setInterval results exactly like setTimeout's. clearInterval keeps the
854
+ * historic number arm (the id IS the handle) alongside Node's undefined
855
+ * tolerance. */
856
+ declare function setInterval(callback: () => void, ms?: number): Timeout;
857
+ /* The trailing-argument form — setTimeout's exact story, every tick. */
858
+ declare function setInterval(callback: (...args: never[]) => void, ms?: number, ...args: unknown[]): Timeout;
859
+ declare function clearInterval(handle?: Timeout | number | null | undefined): void;
860
+
861
+ /* node:timers — the module twins of the timer globals (Node's timers
862
+ * module re-exports them: require('timers').setTimeout IS setTimeout).
863
+ * Named imports, destructured requires, and namespace calls all lower to
864
+ * the same libCalls as the globals; the surface beyond these six
865
+ * (enroll/unenroll, promises) fences per member. */
866
+ declare module "node:timers" {
867
+ export function setTimeout(callback: () => void, ms?: number): Timeout;
868
+ export function setTimeout(callback: (...args: never[]) => void, ms?: number, ...args: unknown[]): Timeout;
869
+ export function clearTimeout(handle?: Timeout | number | null | undefined): void;
870
+ export function setInterval(callback: () => void, ms?: number): Timeout;
871
+ export function setInterval(callback: (...args: never[]) => void, ms?: number, ...args: unknown[]): Timeout;
872
+ export function clearInterval(handle?: Timeout | number | null | undefined): void;
873
+ export function setImmediate(callback: () => void): Immediate;
874
+ export function setImmediate(callback: (...args: never[]) => void, ...args: unknown[]): Immediate;
875
+ export function clearImmediate(handle?: Immediate | null | undefined): void;
876
+ }
877
+ declare module "timers" {
878
+ export * from "node:timers";
879
+ }
880
+
881
+ /* node:timers/promises — the promisified pair the Node test harness leans
882
+ * on (`await setTimeout(ms)` as a sleep). setTimeout's delay-only form and
883
+ * setImmediate's bare form lower (a void promise the shared timer heap
884
+ * settles); setInterval(delay, value) lowers to a typed async iterator.
885
+ * Resolve values on the one-shot pair and AbortSignal options remain
886
+ * declared surface that fences per site. */
887
+ declare module "node:timers/promises" {
888
+ export function setTimeout(delay?: number): Promise<void>;
889
+ export function setImmediate(): Promise<void>;
890
+ export function setInterval<T = unknown>(delay?: number, value?: T, options?: unknown): AsyncGenerator<T, void, undefined>;
891
+ export const scheduler: {
892
+ wait(delay?: number): Promise<void>;
893
+ yield(): Promise<void>;
894
+ };
895
+ }
896
+ declare module "timers/promises" {
897
+ export * from "node:timers/promises";
898
+ }
899
+
900
+ /* node:diagnostics_channel — the in-process pub/sub core: named channels,
901
+ * subscribe/unsubscribe (module-level and channel-level), publish with any
902
+ * dyn-convertible message. Channel values are f64 handles into the
903
+ * runtime's channel registry (the readline.Interface precedent — channels
904
+ * are process-lived in Node too, its WeakRef machinery aside).
905
+ * The store-binding surface (bindStore/unbindStore/runStores) lowers onto
906
+ * the AsyncLocalStorage integration (dc.chan* libCalls).
907
+ *
908
+ * TracingChannel (tracingChannel) is the five-event-channel collection:
909
+ * an f64 handle into the runtime's tracing registry (type-mapper.ts maps the
910
+ * name like Channel). subscribe/unsubscribe walk a handlers object;
911
+ * traceSync/traceCallback run Node's publish choreography in the runtime
912
+ * (context defaults to a fresh {}); tracePromise is declared (the member
913
+ * exists in Node) but fences at the call site — the traced function's
914
+ * promise cannot cross the checked-dynamic tree boundary yet. */
915
+ declare module "node:diagnostics_channel" {
916
+ export type ChannelListener = (message: unknown, name: string) => void;
917
+ export interface Channel {
918
+ readonly name: string;
919
+ readonly hasSubscribers: boolean;
920
+ publish(message: unknown): void;
921
+ subscribe(onMessage: ChannelListener): void;
922
+ unsubscribe(onMessage: ChannelListener): boolean;
923
+ bindStore(store: import("async_hooks").AsyncLocalStorage<any>, transform?: (context: any) => any): void;
924
+ unbindStore(store: import("async_hooks").AsyncLocalStorage<any>): boolean;
925
+ runStores(context: unknown, fn: (...args: any[]) => any, thisArg?: any, ...args: any[]): any;
926
+ }
927
+ export function channel(name: string): Channel;
928
+ export function subscribe(name: string, onMessage: ChannelListener): void;
929
+ export function unsubscribe(name: string, onMessage: ChannelListener): boolean;
930
+ export function hasSubscribers(name: string): boolean;
931
+ export interface TracingChannelSubscribers {
932
+ start?: (message: any) => void;
933
+ end?: (message: any) => void;
934
+ asyncStart?: (message: any) => void;
935
+ asyncEnd?: (message: any) => void;
936
+ error?: (message: any) => void;
937
+ }
938
+ export interface TracingChannelCollection {
939
+ start: Channel;
940
+ end: Channel;
941
+ asyncStart: Channel;
942
+ asyncEnd: Channel;
943
+ error: Channel;
944
+ }
945
+ export interface TracingChannel {
946
+ start: Channel;
947
+ end: Channel;
948
+ asyncStart: Channel;
949
+ asyncEnd: Channel;
950
+ error: Channel;
951
+ readonly hasSubscribers: boolean;
952
+ subscribe(subscribers: TracingChannelSubscribers): void;
953
+ /** True when every present handler was found and removed (Node's
954
+ * all-found conjunction; @types/node under-declares this as void). */
955
+ unsubscribe(subscribers: TracingChannelSubscribers): boolean;
956
+ traceSync<ThisArg = any, Args extends any[] = any[], Result = any>(
957
+ fn: (this: ThisArg, ...args: Args) => Result,
958
+ context?: object,
959
+ thisArg?: ThisArg,
960
+ ...args: Args
961
+ ): Result;
962
+ tracePromise<ThisArg = any, Args extends any[] = any[], Result = any>(
963
+ fn: (this: ThisArg, ...args: Args) => Promise<Result>,
964
+ context?: object,
965
+ thisArg?: ThisArg,
966
+ ...args: Args
967
+ ): Promise<Result>;
968
+ traceCallback<ThisArg = any, Args extends any[] = any[], Result = any>(
969
+ fn: (this: ThisArg, ...args: Args) => Result,
970
+ position?: number,
971
+ context?: object,
972
+ thisArg?: ThisArg,
973
+ ...args: Args
974
+ ): Result;
975
+ }
976
+ export function tracingChannel(nameOrChannels: string | TracingChannelCollection): TracingChannel;
977
+ }
978
+ declare module "diagnostics_channel" {
979
+ export * from "node:diagnostics_channel";
980
+ }
981
+
982
+ /* node:perf_hooks — performance.now() over the runtime's process-start-
983
+ * anchored monotonic clock (Node's timeOrigin for a compiled program),
984
+ * fractional milliseconds. The .bind(performance) spelling lowers to the
985
+ * same clock as a plain () => number function value (the mockable-clock idiom's
986
+ * getTimestamp); everything else fences per member. */
987
+ declare module "node:perf_hooks" {
988
+ export interface Performance {
989
+ now(): number;
990
+ }
991
+ export const performance: Performance;
992
+ }
993
+ declare module "perf_hooks" {
994
+ export * from "node:perf_hooks";
995
+ }
996
+ /* Node also exposes the same performance object as a GLOBAL (no import
997
+ * needed) — the module export and the global are one value, so the global
998
+ * spelling lowers through the identical perf_hooks tables (name +
999
+ * provenance, like console/process). With @types/node present this file
1000
+ * stands down and its wider global serves; the lowered surface stays
1001
+ * performance.now() either way. */
1002
+ declare var performance: import("node:perf_hooks").Performance;
1003
+
1004
+ /* node:module. createRequire's lowered shape is the version/config-
1005
+ * reading pattern real CLIs ship: a const binding over
1006
+ * createRequire(import.meta.url) (or __filename) whose require calls
1007
+ * take STATIC string literals — the indirection erases at compile time.
1008
+ * A builtin spec makes the binding a namespace import in const clothing;
1009
+ * relative and package-import program modules use the compiled module
1010
+ * graph; a relative .json document bakes and parses (JSON.parse's
1011
+ * `unknown` stance — validate with a checked cast); an installed npm
1012
+ * package loads through the island's require-condition entry under
1013
+ * --dynamic, or through the compiled graph under --npm-static; a bare name
1014
+ * nothing installed resolves compiles to Node's catchable MODULE_NOT_FOUND
1015
+ * throw (the optional-dependency try/require pattern).
1016
+ * Dynamic specifiers fence: a compiled binary's module graph is fixed at
1017
+ * build time. builtinModules is the baked Node v24 list (a fresh
1018
+ * mutable array per read where Node ships one frozen singleton);
1019
+ * isBuiltin checks runtime strings against that pinned list, and
1020
+ * syncBuiltinESMExports is a no-op because the static builtin surface is
1021
+ * immutable. Both spellings
1022
+ * name the builtin, like in Node (the builtin wins over the npm package
1023
+ * named "module" for the bare specifier there too). */
1024
+ declare module "node:module" {
1025
+ export function createRequire(filename: string | URL): ScriptcRequire;
1026
+ export const builtinModules: string[];
1027
+ export function isBuiltin(moduleName: string): boolean;
1028
+ export function syncBuiltinESMExports(): void;
1029
+ }
1030
+ declare module "module" {
1031
+ export * from "node:module";
1032
+ }
1033
+ /* import.meta: module-loader metadata with no value representation —
1034
+ * direct file-backed fields lower to constants, while the object and
1035
+ * remaining members fence (SC1090) EXCEPT as createRequire's base, where it
1036
+ * only NAMES the containing file. Declared so unsupported forms reach their
1037
+ * named lowering fences; @types/node's own augmentation stands in when
1038
+ * adopted. */
1039
+ interface ImportMeta {
1040
+ url: string;
1041
+ filename: string;
1042
+ dirname: string;
1043
+ main: boolean;
1044
+ resolve(specifier: string, parent?: string | URL): string;
1045
+ }
1046
+
1047
+ /* The synchronous node:fs surface — utf8-only, no options objects, no
1048
+ * Buffers. Importing "node:fs" resolves here (preflight allowlists exactly
1049
+ * the ambient-declared node: modules); every function lowers to a `libCall`
1050
+ * with a scr_fs_* runtime implementation. Failures throw CATCHABLE string
1051
+ * values formatted like Node's error messages ("ENOENT: no such file or
1052
+ * directory, open 'x'"). `rmSync` removes FILES only (like Node without
1053
+ * `recursive`); empty directories go through `rmdirSync`. */
1054
+ declare module "node:fs" {
1055
+ /* The lowered forms first. The string-encoding overload's result is
1056
+ * CONDITIONAL so a runtime encoding value (an untyped JS parameter —
1057
+ * test/common fixtures.js's readFixtureKey(name, enc)) infers `any`
1058
+ * (the lowering dispatches at runtime: undefined/null read Buffers,
1059
+ * utf8 a string, anything else throws) while a literal utf8 keeps the
1060
+ * string result TypeScript callers chain on. The encoding-less
1061
+ * overload is the Buffer read. */
1062
+ export function readFileSync<T extends string>(
1063
+ path: string,
1064
+ encoding: T,
1065
+ ): T extends "utf8" ? string : T extends "utf-8" ? string : any;
1066
+ export function readFileSync(path: string): Buffer;
1067
+ /* The file-descriptor forms — a read(2) loop to EOF from the current
1068
+ * position; the stdin pattern is readFileSync(0, "utf8"). */
1069
+ export function readFileSync(fd: number, encoding: "utf8" | "utf-8"): string;
1070
+ export function readFileSync(fd: number): Buffer;
1071
+ /* The options-object spelling of the utf8 form. */
1072
+ export function readFileSync(path: string, options: { encoding: "utf8" | "utf-8" }): string;
1073
+ /* Error-first callbacks select string or Buffer data from their encoding.
1074
+ * Unknown options retain that union until the caller validates the value. */
1075
+ export function readFile(
1076
+ path: string,
1077
+ options: unknown,
1078
+ callback: (error: Error | null, data: string | Buffer) => void,
1079
+ ): void;
1080
+ /* The options form carries the mode (applied at CREATION only, like
1081
+ * Node — an existing file keeps its permissions) and/or the utf8
1082
+ * encoding spelling. */
1083
+ export function writeFileSync(
1084
+ path: string,
1085
+ data: string,
1086
+ /* The options-record stance (see http.RequestOptions): flag fences
1087
+ * by name at the call site; undocumented keys drop like Node. */
1088
+ options?: { mode?: number; encoding?: "utf8" | "utf-8"; flag?: string; [option: string]: unknown },
1089
+ ): void;
1090
+ /* The bare-encoding spelling — the options record's encoding key alone. */
1091
+ export function writeFileSync(path: string, data: string, encoding: "utf8" | "utf-8"): void;
1092
+ export function writeFileSync(path: string, data: string | Uint8Array): void;
1093
+ export function appendFileSync(path: string, data: string | Uint8Array): void;
1094
+ export function existsSync(path: string): boolean;
1095
+ export function mkdirSync(path: string): void;
1096
+ export function mkdirSync(path: string, options: { recursive?: boolean; mode?: number }): void;
1097
+ export function unlinkSync(path: string): void;
1098
+ export function chmodSync(path: string, mode: number): void;
1099
+ export function fchmodSync(fd: number, mode: number): void;
1100
+ export function fsyncSync(fd: number): void;
1101
+ export function linkSync(existingPath: string, newPath: string): void;
1102
+ export function chownSync(path: string, uid: number, gid: number): void;
1103
+ /* The 2-argument form only (Node's mode flags have no lowering). The
1104
+ * destination is created or truncated carrying the SOURCE's mode. */
1105
+ export function copyFileSync(src: string, dest: string): void;
1106
+ export function rename(oldPath: string, newPath: string, callback: (err: NodeJS.ErrnoException | null) => void): void;
1107
+ export function renameSync(oldPath: string, newPath: string): void;
1108
+ export function rmSync(path: string): void;
1109
+ /* maxRetries/retryDelay are accepted no-ops (Node retries around
1110
+ * EBUSY-class races; the synchronous lowering has no re-entrancy that
1111
+ * needs them). */
1112
+ export function rmSync(path: string, options: { recursive?: boolean; force?: boolean; maxRetries?: number; retryDelay?: number }): void;
1113
+ export function rmdirSync(path: string): void;
1114
+ export function readdirSync(path: string): string[];
1115
+ /* The withFileTypes form: Dirent rows (name + parentPath + the type
1116
+ * probes — the honest subset of Node's Dirent surface). The type is
1117
+ * interned explicitly in type-mapper.ts (the record's hidden %dtype field
1118
+ * carries the entry kind; isFile/isDirectory/isSymbolicLink lower as
1119
+ * reads of it in lower-builtins.ts). */
1120
+ export interface Dirent {
1121
+ name: string;
1122
+ parentPath: string;
1123
+ isFile(): boolean;
1124
+ isDirectory(): boolean;
1125
+ isSymbolicLink(): boolean;
1126
+ }
1127
+ export function readdirSync(
1128
+ path: string,
1129
+ /* The options-record stance (see http.RequestOptions): recursive
1130
+ * fences by name at the call site; undocumented keys drop like Node. */
1131
+ options: { withFileTypes: true; recursive?: boolean; [option: string]: unknown },
1132
+ ): Dirent[];
1133
+ export function accessSync(path: string, mode?: number): void;
1134
+ export function mkdtempSync(prefix: string): string;
1135
+ export const constants: {
1136
+ readonly F_OK: number;
1137
+ readonly R_OK: number;
1138
+ readonly W_OK: number;
1139
+ readonly X_OK: number;
1140
+ readonly O_RDONLY: number;
1141
+ readonly O_WRONLY: number;
1142
+ readonly O_RDWR: number;
1143
+ readonly O_CREAT: number;
1144
+ readonly O_EXCL: number;
1145
+ readonly O_NOFOLLOW: number;
1146
+ readonly O_NONBLOCK: number;
1147
+ readonly O_TRUNC: number;
1148
+ readonly O_APPEND: number;
1149
+ };
1150
+ /* A stat(2) snapshot (statSync follows symlinks, lstatSync does not —
1151
+ * Node's split) — immutable; the supported surface is exactly these
1152
+ * members. dev/ino identify the filesystem entry, blocks is the allocated
1153
+ * size in 512-byte units, and the time fields are milliseconds with their
1154
+ * sub-second fractions. */
1155
+ export interface Stats {
1156
+ isFile(): boolean;
1157
+ isDirectory(): boolean;
1158
+ isSymbolicLink(): boolean;
1159
+ readonly dev: number;
1160
+ readonly ino: number;
1161
+ readonly size: number;
1162
+ readonly blocks: number;
1163
+ readonly nlink: number;
1164
+ readonly atimeMs: number;
1165
+ readonly mtimeMs: number;
1166
+ readonly ctimeMs: number;
1167
+ }
1168
+ export function statSync(path: string): Stats;
1169
+ export function lstatSync(path: string): Stats;
1170
+ /* The fd pair behind spawn's fd-stdio form: openSync(path, flags) →
1171
+ * the raw fd. Numeric flags use an inline OR of the O_* constants. */
1172
+ export function openSync(path: string, flags: string): number;
1173
+ export function openSync(path: string, flags: number, mode?: number): number;
1174
+ export function closeSync(fd: number): void;
1175
+ /* Read into a caller buffer from the fd's current position when position
1176
+ * is omitted/null, or from a numeric byte position without advancing the
1177
+ * fd. Answers the byte count, 0 at EOF. */
1178
+ export interface ReadSyncOptions {
1179
+ offset?: number;
1180
+ length?: number;
1181
+ position?: number | null;
1182
+ }
1183
+ export function readSync(fd: number, buffer: Uint8Array, options?: ReadSyncOptions): number;
1184
+ export function readSync(fd: number, buffer: Uint8Array, offset: number, length: number, position?: number | null): number;
1185
+ /* Write a caller-buffer window, or a utf8 string, at the fd's current
1186
+ * position when position is omitted/null (advancing it), or at a numeric
1187
+ * byte position without advancing it. Answers the byte count. */
1188
+ export interface WriteSyncOptions {
1189
+ offset?: number;
1190
+ length?: number;
1191
+ position?: number | null;
1192
+ }
1193
+ export function writeSync(fd: number, buffer: Uint8Array, options: WriteSyncOptions): number;
1194
+ export function writeSync(fd: number, buffer: Uint8Array, offset?: number, length?: number, position?: number | null): number;
1195
+ export function writeSync(fd: number, string: string, position?: number | null, encoding?: "utf8" | "utf-8"): number;
1196
+ /* statSync over an open fd — the same Stats snapshot. */
1197
+ export function fstatSync(fd: number): Stats;
1198
+ /* realpath(3) — resolves symlinks, `.`/`..`, throwing Node's fs error
1199
+ * shapes for missing paths. */
1200
+ export function realpathSync(path: string): string;
1201
+ export namespace realpathSync {
1202
+ function native(path: string): string;
1203
+ }
1204
+ /* statfs(2)/statvfs(3) — the filesystem-capacity snapshot (the fields
1205
+ * Node's statfsSync reports; bavail × bsize is the free-space probe). */
1206
+ export interface StatsFs {
1207
+ readonly type: number;
1208
+ readonly bsize: number;
1209
+ readonly blocks: number;
1210
+ readonly bfree: number;
1211
+ readonly bavail: number;
1212
+ readonly files: number;
1213
+ readonly ffree: number;
1214
+ }
1215
+ export function statfsSync(path: string): StatsFs;
1216
+ /* fs.watch — the file-watching slice (scr_watch.c, kqueue EVFILT_VNODE):
1217
+ * "rename"/"change" events on ONE path, watcher.close() to stop. The
1218
+ * listener takes zero parameters or the eventType string (the filename
1219
+ * parameter has no lowering); an open watcher keeps the loop alive. A
1220
+ * path that cannot be opened THROWS Node's fs error synchronously. */
1221
+ export interface FSWatcher {
1222
+ close(): void;
1223
+ }
1224
+ /* The options-record stance (see http.RequestOptions): persistent: true,
1225
+ * recursive: false, and encoding: "utf8" state the lowered behavior and
1226
+ * are accepted; persistent: false, recursive: true, and signal fence by
1227
+ * name at the call site; undocumented keys drop like Node. */
1228
+ export interface WatchOptions {
1229
+ persistent?: boolean;
1230
+ recursive?: boolean;
1231
+ encoding?: string;
1232
+ [option: string]: unknown;
1233
+ }
1234
+ export function watch(path: string, listener?: (eventType: string) => void): FSWatcher;
1235
+ export function watch(
1236
+ path: string,
1237
+ options: WatchOptions,
1238
+ listener?: (eventType: string) => void,
1239
+ ): FSWatcher;
1240
+ /* fs.promises IS the fs/promises module (Node's rule) — the namespace-
1241
+ * import form `fs.promises.readFile(...)` lowers through the same
1242
+ * fs/promises table as `import { readFile } from "node:fs/promises"`. */
1243
+ export const promises: typeof import("node:fs/promises");
1244
+ }
1245
+ /* Every builtin answers to BOTH specifier forms, like in Node: the bare
1246
+ * module re-exports its node:-prefixed twin (or holds the declarations
1247
+ * itself — one of the pair forwards). The lowerer recognizes members by
1248
+ * their import SPECIFIER, so both forms lower identically. */
1249
+ declare module "fs" {
1250
+ export * from "node:fs";
1251
+ }
1252
+
1253
+ /* fs/promises — the SAME synchronous operations behind already-settled
1254
+ * promises: success fulfills, failure REJECTS with the would-be thrown
1255
+ * error (catchable at the await, like Node). DOCUMENTED DIVERGENCE
1256
+ * (SEMANTICS.md): the syscall blocks the event loop, so I/O never
1257
+ * interleaves with timers or other fibers — observable only in concurrent
1258
+ * code. readFile is utf8-only, like readFileSync. */
1259
+ declare module "fs/promises" {
1260
+ export interface FileReadResult<T extends Uint8Array> {
1261
+ bytesRead: number;
1262
+ buffer: T;
1263
+ }
1264
+ export interface FileWriteResult<T> {
1265
+ bytesWritten: number;
1266
+ buffer: T;
1267
+ }
1268
+ export interface FileHandle extends AsyncDisposable {
1269
+ readonly fd: number;
1270
+ close(): Promise<void>;
1271
+ read<T extends Uint8Array>(
1272
+ buffer: T,
1273
+ offset?: number | null,
1274
+ length?: number | null,
1275
+ position?: number | null,
1276
+ ): Promise<FileReadResult<T>>;
1277
+ write<T extends Uint8Array>(
1278
+ buffer: T,
1279
+ offset?: number | null,
1280
+ length?: number | null,
1281
+ position?: number | null,
1282
+ ): Promise<FileWriteResult<T>>;
1283
+ write(data: string, position?: number | null, encoding?: "utf8" | "utf-8" | null): Promise<FileWriteResult<string>>;
1284
+ readFile(options?: null): Promise<Buffer>;
1285
+ readFile(encoding: "utf8" | "utf-8"): Promise<string>;
1286
+ writeFile(data: string | Uint8Array, encoding?: "utf8" | "utf-8" | null): Promise<void>;
1287
+ appendFile(data: string | Uint8Array, encoding?: "utf8" | "utf-8" | null): Promise<void>;
1288
+ stat(): Promise<import("node:fs").Stats>;
1289
+ [Symbol.asyncDispose](): Promise<void>;
1290
+ }
1291
+ export function open(path: string, flags?: string, mode?: number): Promise<FileHandle>;
1292
+ export function readFile(path: string, encoding: "utf8" | "utf-8"): Promise<string>;
1293
+ export function readFile(path: string): Promise<Buffer>;
1294
+ export function writeFile(
1295
+ path: string,
1296
+ data: string,
1297
+ options?: { mode?: number; encoding?: "utf8" | "utf-8"; flag?: string; [option: string]: unknown },
1298
+ ): Promise<void>;
1299
+ export function writeFile(path: string, data: string, encoding: "utf8" | "utf-8"): Promise<void>;
1300
+ export function mkdir(path: string, options?: { recursive?: boolean; mode?: number }): Promise<void>;
1301
+ export function readdir(path: string): Promise<string[]>;
1302
+ export function readdir(
1303
+ path: string,
1304
+ options: {
1305
+ encoding?: "utf8" | "utf-8";
1306
+ withFileTypes: true;
1307
+ recursive?: boolean;
1308
+ [option: string]: unknown;
1309
+ },
1310
+ ): Promise<import("node:fs").Dirent[]>;
1311
+ export function rm(path: string): Promise<void>;
1312
+ export function stat(path: string): Promise<import("node:fs").Stats>;
1313
+ export function realpath(path: string): Promise<string>;
1314
+ export function lstat(path: string): Promise<import("node:fs").Stats>;
1315
+ export function unlink(path: string): Promise<void>;
1316
+ export function chmod(path: string, mode: number): Promise<void>;
1317
+ export function rename(oldPath: string, newPath: string): Promise<void>;
1318
+ }
1319
+ declare module "node:fs/promises" {
1320
+ export * from "fs/promises";
1321
+ }
1322
+
1323
+ /* node:path — the TARGET platform's implementation (Node's rule): posix
1324
+ * on posix triples, path.win32 under a win32 triple, with the posix and
1325
+ * win32 namespaces answering their own platform anywhere. Every function
1326
+ * is a pure string algorithm matching Node's implementations
1327
+ * byte-for-byte; join/resolve are variadic like Node's. */
1328
+ declare module "path" {
1329
+ export function join(...paths: string[]): string;
1330
+ export function resolve(...paths: string[]): string;
1331
+ export function normalize(path: string): string;
1332
+ export function dirname(path: string): string;
1333
+ export function basename(path: string, suffix?: string): string;
1334
+ export function extname(path: string): string;
1335
+ export function isAbsolute(path: string): boolean;
1336
+ export function relative(from: string, to: string): string;
1337
+ export function toNamespacedPath(path: string): string;
1338
+ /* The union @types/node declares: the bare module answers the TARGET
1339
+ * platform's value (a compile-time constant — "\\"/";" under a win32
1340
+ * triple, "/"/":" everywhere else). */
1341
+ export const sep: "\\" | "/";
1342
+ export const delimiter: ";" | ":";
1343
+ /* The platform-specific namespaces (real Node submodules too —
1344
+ * "node:path/posix" resolves). Each carries the FULL surface and
1345
+ * answers ITS platform's rules on any target, Node's own contract;
1346
+ * the bare module IS the target platform's implementation. */
1347
+ export const posix: typeof import("path/posix");
1348
+ export const win32: typeof import("path/win32");
1349
+ }
1350
+ declare module "node:path" {
1351
+ export * from "path";
1352
+ }
1353
+ declare module "path/posix" {
1354
+ export function join(...paths: string[]): string;
1355
+ export function resolve(...paths: string[]): string;
1356
+ export function normalize(path: string): string;
1357
+ export function dirname(path: string): string;
1358
+ export function basename(path: string, suffix?: string): string;
1359
+ export function extname(path: string): string;
1360
+ export function isAbsolute(path: string): boolean;
1361
+ export function relative(from: string, to: string): string;
1362
+ export function toNamespacedPath(path: string): string;
1363
+ export const sep: "/";
1364
+ export const delimiter: ":";
1365
+ }
1366
+ declare module "node:path/posix" {
1367
+ export * from "path/posix";
1368
+ }
1369
+ declare module "path/win32" {
1370
+ export function join(...paths: string[]): string;
1371
+ export function resolve(...paths: string[]): string;
1372
+ export function normalize(path: string): string;
1373
+ export function dirname(path: string): string;
1374
+ export function basename(path: string, suffix?: string): string;
1375
+ export function extname(path: string): string;
1376
+ export function isAbsolute(path: string): boolean;
1377
+ export function relative(from: string, to: string): string;
1378
+ export function toNamespacedPath(path: string): string;
1379
+ export const sep: "\\";
1380
+ export const delimiter: ";";
1381
+ }
1382
+ declare module "node:path/win32" {
1383
+ export * from "path/win32";
1384
+ }
1385
+
1386
+ /* node:os — the slice a CLI needs: platform() (same implementation as
1387
+ * process.platform), homedir(), tmpdir() (Node's env cascade), EOL
1388
+ * (always "\n" — POSIX pinned, like path.sep), and networkInterfaces()
1389
+ * (getifaddrs(3); the interface shapes mirror @types/node's exactly so
1390
+ * both type worlds map to the same IR structure). */
1391
+ declare module "os" {
1392
+ export function platform(): string;
1393
+ export function homedir(): string;
1394
+ export function tmpdir(): string;
1395
+ /* uname(2)'s release field — Node's own implementation. */
1396
+ export function release(): string;
1397
+ /* uname(2)'s sysname field ("Darwin", "Linux") — Node's os.type(). */
1398
+ export function type(): string;
1399
+ /* Total system memory in bytes (sysctl hw.memsize / sysconf). */
1400
+ export function totalmem(): number;
1401
+ /* The passwd-entry snapshot (uv_os_get_passwd): shell is `string |
1402
+ * null` to match @types/node (POSIX always answers the string arm);
1403
+ * homedir is pw_dir — NOT os.homedir()'s $HOME-first cascade. The type
1404
+ * is interned explicitly in type-mapper.ts (the AddressInfo pattern — this
1405
+ * concrete form and @types/node's UserInfo<string> both), and the call
1406
+ * assembles field-by-field in lowerOsUserInfoCall. */
1407
+ export interface UserInfo {
1408
+ username: string;
1409
+ uid: number;
1410
+ gid: number;
1411
+ shell: string | null;
1412
+ homedir: string;
1413
+ }
1414
+ export function userInfo(): UserInfo;
1415
+ /* The TARGET platform's line terminator (a compile-time constant:
1416
+ * "\r\n" under a win32 triple, "\n" everywhere else). */
1417
+ export const EOL: "\r\n" | "\n";
1418
+ export interface NetworkInterfaceBase {
1419
+ address: string;
1420
+ netmask: string;
1421
+ mac: string;
1422
+ internal: boolean;
1423
+ cidr: string | null;
1424
+ scopeid?: number;
1425
+ }
1426
+ export interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
1427
+ family: "IPv4";
1428
+ }
1429
+ export interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
1430
+ family: "IPv6";
1431
+ scopeid: number;
1432
+ }
1433
+ export type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
1434
+ export function networkInterfaces(): { [name: string]: NetworkInterfaceInfo[] | undefined };
1435
+ }
1436
+ declare module "node:os" {
1437
+ export * from "os";
1438
+ }
1439
+
1440
+ /* The WHATWG URL class (a Node global; the es2023 lib doesn't declare it),
1441
+ * typed as exactly the supported surface: construction from ONE absolute-
1442
+ * URL string (invalid input throws a catchable TypeError, like Node), the
1443
+ * protocol/origin/username/pathname/href/host/hostname/port/search/hash getters, searchParams (the
1444
+ * LIVE query view — mutations through it re-serialize into the URL, so
1445
+ * href reflects immediately; every read answers the same object, Node's
1446
+ * caching), and toString() (the href serialization).
1447
+ * URL values have no SETTERS — the component fields are read-only (the
1448
+ * one supported mutation path is searchParams) — and participate in
1449
+ * unions (URL | undefined). The parser covers the common CLI schemes
1450
+ * exactly (http/https/ws/wss/ftp/file authority URLs, opaque paths like
1451
+ * data: and mailto:) — divergences from the full WHATWG algorithm are
1452
+ * documented in SEMANTICS.md. */
1453
+ interface URL {
1454
+ readonly protocol: string;
1455
+ readonly origin: string;
1456
+ readonly username: string;
1457
+ readonly password: string;
1458
+ readonly pathname: string;
1459
+ readonly href: string;
1460
+ readonly host: string;
1461
+ readonly hostname: string;
1462
+ readonly port: string;
1463
+ readonly search: string;
1464
+ readonly hash: string;
1465
+ readonly searchParams: URLSearchParams;
1466
+ toString(): string;
1467
+ }
1468
+ declare var URL: {
1469
+ new (input: string | { toString: () => string }, base?: string | URL): URL;
1470
+ };
1471
+
1472
+ /* URLSearchParams — the WHATWG application/x-www-form-urlencoded list.
1473
+ * Constructed standalone (string / string[][] pairs / inline record
1474
+ * literal / another URLSearchParams) or read live off a URL via
1475
+ * url.searchParams. keys()/values()/entries() lower when a for-of head
1476
+ * consumes them directly; stored iterator OBJECTS have no lowering. */
1477
+ interface URLSearchParams {
1478
+ readonly size: number;
1479
+ append(name: string, value: string): void;
1480
+ delete(name: string, value?: string): void;
1481
+ get(name: string): string | null;
1482
+ getAll(name: string): string[];
1483
+ has(name: string, value?: string): boolean;
1484
+ set(name: string, value: string): void;
1485
+ sort(): void;
1486
+ toString(): string;
1487
+ forEach(callback: (value: string, name: string, searchParams: URLSearchParams) => void): void;
1488
+ keys(): IterableIterator<string>;
1489
+ values(): IterableIterator<string>;
1490
+ entries(): IterableIterator<[string, string]>;
1491
+ [Symbol.iterator](): IterableIterator<[string, string]>;
1492
+ }
1493
+ declare var URLSearchParams: {
1494
+ new (init?: string | string[][] | { [key: string]: string } | URLSearchParams): URLSearchParams;
1495
+ };
1496
+
1497
+ /* node:url — the file-URL bridge pair. fileURLToPath accepts a URL value
1498
+ * or a URL string and throws Node's TypeErrors (non-file scheme, encoded
1499
+ * slashes, non-empty host); pathToFileURL resolves the path and percent-
1500
+ * encodes it into a file: URL. */
1501
+ declare module "url" {
1502
+ export function fileURLToPath(url: string | URL): string;
1503
+ export function pathToFileURL(path: string, options?: { windows?: boolean }): URL;
1504
+ }
1505
+ declare module "node:url" {
1506
+ export * from "url";
1507
+ }
1508
+
1509
+ /* node:crypto: the static hashing/MAC/random/PBKDF2 utility slice. */
1510
+ declare module "crypto" {
1511
+ export function randomUUID(): string;
1512
+ export function randomBytes(size: number): Buffer;
1513
+ export interface Hash {
1514
+ update(data: string | Uint8Array, inputEncoding?: "utf8" | "utf-8" | "hex" | "base64"): Hash;
1515
+ digest(): Buffer;
1516
+ digest(encoding: "hex" | "base64"): string;
1517
+ copy(): Hash;
1518
+ }
1519
+ export interface Hmac {
1520
+ update(data: string | Uint8Array, inputEncoding?: "utf8" | "utf-8" | "hex" | "base64"): Hmac;
1521
+ digest(): Buffer;
1522
+ digest(encoding: "hex" | "base64"): string;
1523
+ }
1524
+ export function createHash(algorithm: string): Hash;
1525
+ export function createHmac(algorithm: string, key: string | Uint8Array): Hmac;
1526
+ export function hash(algorithm: string, data: string | Uint8Array, outputEncoding?: "hex" | "base64"): string;
1527
+ export function timingSafeEqual(a: Uint8Array, b: Uint8Array): boolean;
1528
+ export function randomFillSync<T extends Uint8Array>(buffer: T, offset?: number, size?: number): T;
1529
+ export function randomInt(max: number): number;
1530
+ export function randomInt(min: number, max: number): number;
1531
+ export function pbkdf2Sync(password: string | Uint8Array, salt: string | Uint8Array, iterations: number, keylen: number, digest: string): Buffer;
1532
+ export function pbkdf2(password: string | Uint8Array, salt: string | Uint8Array, iterations: number, keylen: number, digest: string, callback: (error: Error | null, derivedKey: Buffer) => void): void;
1533
+ export function randomBytes(size: number, callback: (error: Error | null, buffer: Buffer) => void): void;
1534
+ /* The lowered X509Certificate surface is the data-record slice:
1535
+ * fingerprint (the SHA-1 of the DER, uppercase colon-separated) and
1536
+ * the validFrom/validTo validity window (Node's ASN1_TIME_print
1537
+ * strings — "Jul 1 00:00:00 2026 GMT"; the cert-expiry idiom composes
1538
+ * them with new Date(...).getTime()). All compute at construction;
1539
+ * unparseable input throws Node's ERR_OSSL_PEM_NO_START_LINE Error. */
1540
+ export class X509Certificate {
1541
+ constructor(buffer: Uint8Array | string);
1542
+ readonly fingerprint: string;
1543
+ readonly validFrom: string;
1544
+ readonly validTo: string;
1545
+ }
1546
+ /* The crypto introspection statics: getFips() answers 0 (a compiled
1547
+ * binary is never a FIPS build), the three name lists bake as fresh
1548
+ * string[] literals of Node v24 answers, and constants (below) bakes
1549
+ * per member like http2.constants. */
1550
+ export function getFips(): 1 | 0;
1551
+ export function getCiphers(): string[];
1552
+ export function getHashes(): string[];
1553
+ export function getCurves(): string[];
1554
+ /* Node v24 crypto.constants, literal-typed (the Http2Constants
1555
+ * stance). Every ACCESS bakes as its literal at lowering; the object
1556
+ * itself never materializes (bare crypto.constants value uses fence). */
1557
+ export interface CryptoConstants {
1558
+ readonly OPENSSL_VERSION_NUMBER: 810549328;
1559
+ readonly SSL_OP_ALL: 2147485776;
1560
+ readonly SSL_OP_ALLOW_NO_DHE_KEX: 1024;
1561
+ readonly SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: 262144;
1562
+ readonly SSL_OP_CIPHER_SERVER_PREFERENCE: 4194304;
1563
+ readonly SSL_OP_CISCO_ANYCONNECT: 32768;
1564
+ readonly SSL_OP_COOKIE_EXCHANGE: 8192;
1565
+ readonly SSL_OP_CRYPTOPRO_TLSEXT_BUG: 2147483648;
1566
+ readonly SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: 2048;
1567
+ readonly SSL_OP_LEGACY_SERVER_CONNECT: 4;
1568
+ readonly SSL_OP_NO_COMPRESSION: 131072;
1569
+ readonly SSL_OP_NO_ENCRYPT_THEN_MAC: 524288;
1570
+ readonly SSL_OP_NO_QUERY_MTU: 4096;
1571
+ readonly SSL_OP_NO_RENEGOTIATION: 1073741824;
1572
+ readonly SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: 65536;
1573
+ readonly SSL_OP_NO_SSLv2: 0;
1574
+ readonly SSL_OP_NO_SSLv3: 33554432;
1575
+ readonly SSL_OP_NO_TICKET: 16384;
1576
+ readonly SSL_OP_NO_TLSv1: 67108864;
1577
+ readonly SSL_OP_NO_TLSv1_1: 268435456;
1578
+ readonly SSL_OP_NO_TLSv1_2: 134217728;
1579
+ readonly SSL_OP_NO_TLSv1_3: 536870912;
1580
+ readonly SSL_OP_PRIORITIZE_CHACHA: 2097152;
1581
+ readonly SSL_OP_TLS_ROLLBACK_BUG: 8388608;
1582
+ readonly ENGINE_METHOD_RSA: 1;
1583
+ readonly ENGINE_METHOD_DSA: 2;
1584
+ readonly ENGINE_METHOD_DH: 4;
1585
+ readonly ENGINE_METHOD_RAND: 8;
1586
+ readonly ENGINE_METHOD_EC: 2048;
1587
+ readonly ENGINE_METHOD_CIPHERS: 64;
1588
+ readonly ENGINE_METHOD_DIGESTS: 128;
1589
+ readonly ENGINE_METHOD_PKEY_METHS: 512;
1590
+ readonly ENGINE_METHOD_PKEY_ASN1_METHS: 1024;
1591
+ readonly ENGINE_METHOD_ALL: 65535;
1592
+ readonly ENGINE_METHOD_NONE: 0;
1593
+ readonly DH_CHECK_P_NOT_SAFE_PRIME: 2;
1594
+ readonly DH_CHECK_P_NOT_PRIME: 1;
1595
+ readonly DH_UNABLE_TO_CHECK_GENERATOR: 4;
1596
+ readonly DH_NOT_SUITABLE_GENERATOR: 8;
1597
+ readonly RSA_PKCS1_PADDING: 1;
1598
+ readonly RSA_NO_PADDING: 3;
1599
+ readonly RSA_PKCS1_OAEP_PADDING: 4;
1600
+ readonly RSA_X931_PADDING: 5;
1601
+ readonly RSA_PKCS1_PSS_PADDING: 6;
1602
+ readonly RSA_PSS_SALTLEN_DIGEST: -1;
1603
+ readonly RSA_PSS_SALTLEN_MAX_SIGN: -2;
1604
+ readonly RSA_PSS_SALTLEN_AUTO: -2;
1605
+ readonly defaultCoreCipherList: "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA";
1606
+ readonly TLS1_VERSION: 769;
1607
+ readonly TLS1_1_VERSION: 770;
1608
+ readonly TLS1_2_VERSION: 771;
1609
+ readonly TLS1_3_VERSION: 772;
1610
+ readonly POINT_CONVERSION_COMPRESSED: 2;
1611
+ readonly POINT_CONVERSION_UNCOMPRESSED: 4;
1612
+ readonly POINT_CONVERSION_HYBRID: 6;
1613
+ readonly defaultCipherList: "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA";
1614
+ }
1615
+ export const constants: CryptoConstants;
1616
+ }
1617
+ declare module "node:crypto" {
1618
+ export * from "crypto";
1619
+ }
1620
+
1621
+ /* node:child_process — the synchronous slice: spawnSync(command, args?)
1622
+ * runs the child to completion (posix_spawn + waitpid) with stdout/stderr
1623
+ * captured as utf8 strings. `status` is the exit code, or null when the
1624
+ * child died to a signal OR could not be spawned at all (nonexistent
1625
+ * binary, permission denied) — Node reports spawn failure through the
1626
+ * result's `error` property, which this surface does not carry, and types
1627
+ * stdout/stderr null there where scriptc returns "" (SEMANTICS.md).
1628
+ * No shell, no options object: the command runs directly (PATH-searched,
1629
+ * like Node). */
1630
+ declare module "child_process" {
1631
+ export interface SpawnSyncReturns {
1632
+ readonly status: number | null;
1633
+ readonly stdout: string;
1634
+ readonly stderr: string;
1635
+ /* The termination signal's name ("SIGTERM", ...) when a signal
1636
+ * killed the child (a timeout's killSignal included), null otherwise
1637
+ * — Node's shape. */
1638
+ readonly signal: string | null;
1639
+ /* Node's spawn-failure carrier: a real Error ("spawnSync <file>
1640
+ * ENOENT", `code` stamped) when the spawn itself failed — status is
1641
+ * null and both outputs "" then — or ETIMEDOUT after a timeout kill;
1642
+ * undefined otherwise. */
1643
+ readonly error?: Error;
1644
+ }
1645
+ /* scriptc always captures utf8 strings; pass { encoding: "utf8" }
1646
+ * whenever stdout/stderr is READ so plain Node agrees (without it Node
1647
+ * hands Buffers). The other supported options: timeout (ms — sends
1648
+ * killSignal at the deadline and the result carries error: ETIMEDOUT +
1649
+ * the signal, never a throw), killSignal (a signal NAME literal),
1650
+ * stdio ("ignore"/"inherit"/"pipe" or a 3-tuple of those — captures
1651
+ * read "" for non-piped streams), and windowsHide (a POSIX no-op). */
1652
+ export function spawnSync(
1653
+ command: string,
1654
+ args?: string[],
1655
+ options?: {
1656
+ encoding?: "utf8" | "utf-8";
1657
+ timeout?: number;
1658
+ killSignal?: string;
1659
+ stdio?: "pipe" | "ignore" | "inherit" | ("pipe" | "ignore" | "inherit")[];
1660
+ windowsHide?: boolean;
1661
+ },
1662
+ ): SpawnSyncReturns;
1663
+
1664
+ /* The asynchronous slice: spawn with stdio "ignore"/"inherit"/fd/"pipe"
1665
+ * tuples (piped stdin is writable through child.stdin; piped stdout/stderr
1666
+ * deliver through child.stdout/stderr) and the terminal events. "exit"
1667
+ * fires once with the exit code, or
1668
+ * null when the child died to a signal; "error" fires ONLY when the
1669
+ * child could not be spawned at all (Node's split: a spawn failure
1670
+ * emits "error" and never "exit"). "close" fires after exit/error and
1671
+ * every piped stdio handle reaches EOF. Exit/close listeners may take
1672
+ * Node's code and signal parameters. `on`/`once` return void here (Node
1673
+ * returns the child; chaining is fenced). The event loop keeps the process
1674
+ * alive until every spawned child is reaped, like Node — reaping polls at
1675
+ * loop quiescence (SEMANTICS.md documents the divergence). An "error"
1676
+ * event with no registered listener prints the error and exits 1,
1677
+ * exactly the unhandled-'error' EventEmitter behavior. */
1678
+ export interface ChildStdin {
1679
+ readonly writable: boolean;
1680
+ write(chunk: string | Uint8Array): boolean;
1681
+ end(): void;
1682
+ destroy(): void;
1683
+ on(event: "drain" | "finish", listener: () => void): void;
1684
+ on(event: "error", listener: (err: Error) => void): void;
1685
+ once(event: "drain" | "finish", listener: () => void): void;
1686
+ once(event: "error", listener: (err: Error) => void): void;
1687
+ }
1688
+
1689
+ export interface ChildProcess extends Disposable {
1690
+ ref(): void;
1691
+ on(event: "spawn", listener: () => void): void;
1692
+ once(event: "spawn", listener: () => void): void;
1693
+ /* The exit listener may also take Node's second parameter — the
1694
+ * terminating signal's name, null for a normal exit. */
1695
+ on(event: "exit", listener: (code: number | null, signal: string | null) => void): void;
1696
+ on(event: "close", listener: (code: number | null, signal: string | null) => void): void;
1697
+ on(event: "error", listener: (err: Error) => void): void;
1698
+ once(event: "exit", listener: (code: number | null, signal: string | null) => void): void;
1699
+ once(event: "close", listener: (code: number | null, signal: string | null) => void): void;
1700
+ once(event: "error", listener: (err: Error) => void): void;
1701
+ on(event: "message", listener: (message: any) => void): void;
1702
+ on(event: "disconnect", listener: () => void): void;
1703
+ once(event: "message", listener: (message: any) => void): void;
1704
+ once(event: "disconnect", listener: () => void): void;
1705
+ /* The lifecycle members, Node's exact shapes: pid is undefined exactly
1706
+ * when the spawn failed; exitCode is null while running, the code
1707
+ * after a normal exit, null for a signal death, and -errno once a
1708
+ * spawn failure's "error" event has fired; kill resolves signal names
1709
+ * through Node's table (unknown names throw the Unknown signal
1710
+ * TypeError), answers true when the signal was sent, false once the
1711
+ * child was reaped (or never spawned), and sets `killed` on success;
1712
+ * unref() drops the child from the event loop's keep-alive set (it is
1713
+ * still reaped while the loop runs for other reasons — SEMANTICS.md
1714
+ * has the reap story). */
1715
+ readonly pid: number | undefined;
1716
+ readonly exitCode: number | null;
1717
+ readonly killed: boolean;
1718
+ kill(signal?: string | number): boolean;
1719
+ unref(): void;
1720
+ readonly connected: boolean;
1721
+ send(message: object, callback?: (error: Error | null) => void): boolean;
1722
+ disconnect(): void;
1723
+ [Symbol.dispose](): void;
1724
+ /* The piped streams — non-null exactly when the matching stdio slot
1725
+ * was "pipe" (Node's shape). */
1726
+ readonly stdin: ChildStdin | null;
1727
+ readonly stdout: NodeJS.ReadableStream | null;
1728
+ readonly stderr: NodeJS.ReadableStream | null;
1729
+ }
1730
+ export interface SpawnOptions {
1731
+ /* The 3-tuple form admits number fds in the stdout/stderr slots —
1732
+ * openSync results dup2'd into the child (the daemon-log idiom
1733
+ * ["ignore", logFd, logFd]) — and "pipe" there too (child.stdout/
1734
+ * child.stderr streams); "pipe" in the stdin slot exposes
1735
+ * child.stdin. */
1736
+ stdio?: "ignore" | "inherit" | "pipe" | ("ignore" | "inherit" | "pipe" | number)[];
1737
+ /* detached gives the child its own session and process group
1738
+ * (POSIX_SPAWN_SETSID); env REPLACES the child environment; cwd
1739
+ * sets its working directory; windowsHide is a POSIX no-op; shell
1740
+ * runs the complete command string through /bin/sh or cmd.exe. */
1741
+ detached?: boolean;
1742
+ env?: { [k: string]: string | undefined };
1743
+ cwd?: string;
1744
+ windowsHide?: boolean;
1745
+ shell?: boolean;
1746
+ }
1747
+ export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess;
1748
+ export function spawn(command: string, options?: SpawnOptions): ChildProcess;
1749
+
1750
+ export function fork(
1751
+ modulePath: string | URL,
1752
+ args?: string[],
1753
+ options?: {
1754
+ cwd?: string;
1755
+ env?: { [k: string]: string | undefined };
1756
+ execArgv?: string[];
1757
+ silent?: boolean;
1758
+ stdio?: "pipe" | "ignore" | "inherit" | ("pipe" | "ignore" | "inherit" | "ipc")[];
1759
+ serialization?: "json" | "advanced";
1760
+ windowsHide?: boolean;
1761
+ },
1762
+ ): ChildProcess;
1763
+
1764
+ /* The synchronous exec pair: execFileSync runs a file directly (no
1765
+ * shell), execSync runs a command through /bin/sh -c. Both capture
1766
+ * stdout as a utf8 string (pass { encoding: "utf8" } so plain Node
1767
+ * agrees — without it Node returns a Buffer) and THROW on a non-zero
1768
+ * exit / signal death — the Error's message is Node's "Command failed:
1769
+ * <cmd>" (with the captured stderr appended). Supported options:
1770
+ * encoding ("utf8"), cwd, env (REPLACES the child environment), input
1771
+ * (fed to stdin), timeout (ms — SIGTERMs the child, then throws
1772
+ * ETIMEDOUT), stdio ("pipe"/"ignore" or a 3-tuple of those — the
1773
+ * default captures stderr AND echoes it to the parent, like Node), and
1774
+ * maxBuffer (accepted, not enforced). Node's status/stdout/stderr error
1775
+ * properties are not carried (SEMANTICS.md). */
1776
+ interface ExecSyncOptions {
1777
+ encoding?: "utf8" | "utf-8";
1778
+ cwd?: string;
1779
+ env?: { [k: string]: string | undefined };
1780
+ input?: string;
1781
+ timeout?: number;
1782
+ stdio?: "pipe" | "ignore" | "inherit" | ("pipe" | "ignore" | "inherit")[];
1783
+ maxBuffer?: number;
1784
+ killSignal?: string;
1785
+ windowsHide?: boolean;
1786
+ shell?: boolean;
1787
+ }
1788
+ /* The named options interface for the string-encoding exec form —
1789
+ * @types/node's ExecFileSyncOptionsWithStringEncoding, narrowed to the
1790
+ * honestly-implemented members. VALUES of this type are a real record
1791
+ * (type-mapper.ts interns the shape), so a typed const or a runner function's
1792
+ * options parameter flows to execFileSync at runtime — the windows-ca
1793
+ * command-runner idiom. */
1794
+ export interface ExecFileSyncOptionsWithStringEncoding {
1795
+ encoding: "utf8" | "utf-8";
1796
+ cwd?: string;
1797
+ input?: string;
1798
+ timeout?: number;
1799
+ stdio?: "pipe" | "ignore" | "inherit" | ("pipe" | "ignore" | "inherit")[];
1800
+ maxBuffer?: number;
1801
+ windowsHide?: boolean;
1802
+ }
1803
+ export function execFileSync(file: string, args?: string[], options?: ExecSyncOptions): string;
1804
+ export function execSync(command: string, options?: ExecSyncOptions): string;
1805
+ export type ExecFileCallback = (error: Error | null, stdout: string, stderr: string) => void;
1806
+ /* The callback form starts an asynchronous child and captures utf8
1807
+ * stdout/stderr. The no-callback overload remains for util.promisify's
1808
+ * static target recognition; reached no-callback calls still fence. */
1809
+ export function execFile(file: string, callback: ExecFileCallback): ChildProcess;
1810
+ export function execFile(file: string, args: string[] | null, callback: ExecFileCallback): ChildProcess;
1811
+ export function execFile(file: string, args: string[] | null, options: ExecSyncOptions, callback: ExecFileCallback): ChildProcess;
1812
+ export function execFile(
1813
+ file: string,
1814
+ args?: string[] | null,
1815
+ options?: ExecSyncOptions,
1816
+ ): unknown;
1817
+ /* The async shell form — declared surface without full lowering (the
1818
+ * type-level tolerance story): harness code on paths tests don't reach
1819
+ * must typecheck; a reached call fences at its site. */
1820
+ export function exec(
1821
+ command: string,
1822
+ options?: ExecSyncOptions | ((error: Error | null, stdout: string, stderr: string) => void),
1823
+ callback?: (error: Error | null, stdout: string, stderr: string) => void,
1824
+ ): ChildProcess;
1825
+ }
1826
+ declare module "node:child_process" {
1827
+ export * from "child_process";
1828
+ }
1829
+
1830
+ /* node:util — compile-time projections for child_process.execFile and
1831
+ * fs.readFile. The former retains Node's custom { stdout, stderr } result;
1832
+ * the latter resolves the callback's data argument. Other targets and bare
1833
+ * promisify values fence per site. */
1834
+ declare module "util" {
1835
+ export type TextEncoder = globalThis.TextEncoder;
1836
+ export type TextDecoder = globalThis.TextDecoder;
1837
+ export var TextEncoder: typeof globalThis.TextEncoder;
1838
+ export var TextDecoder: typeof globalThis.TextDecoder;
1839
+ export function promisify(
1840
+ fn: typeof import("node:fs").readFile,
1841
+ ): (path: string, encoding: "utf8" | "utf-8") => Promise<string>;
1842
+ export function promisify(
1843
+ fn: (file: string, args?: string[] | null, options?: object) => unknown,
1844
+ ): (
1845
+ file: string,
1846
+ args?: string[],
1847
+ options?: {
1848
+ encoding?: "utf8" | "utf-8";
1849
+ cwd?: string;
1850
+ env?: { [k: string]: string | undefined };
1851
+ timeout?: number;
1852
+ maxBuffer?: number;
1853
+ killSignal?: string;
1854
+ windowsHide?: boolean;
1855
+ },
1856
+ ) => Promise<{ stdout: string; stderr: string }>;
1857
+ /* Declared surface without full lowering (the type-level tolerance
1858
+ * story: guarded/diagnostic-path code must TYPECHECK; a reached use
1859
+ * without a lowering fences at its site). inspect's options carry the
1860
+ * documented knobs through an index signature. */
1861
+ export function inspect(object: unknown, options?: { depth?: number | null; colors?: boolean; [k: string]: unknown }): string;
1862
+ export function format(format?: unknown, ...args: unknown[]): string;
1863
+ export function formatWithOptions(
1864
+ inspectOptions: { depth?: number | null; colors?: boolean; [k: string]: unknown },
1865
+ format?: unknown,
1866
+ ...args: unknown[]
1867
+ ): string;
1868
+ export type ParseArgsOptionsType = "boolean" | "string";
1869
+ export interface ParseArgsOptionDescriptor {
1870
+ type: ParseArgsOptionsType;
1871
+ multiple?: boolean;
1872
+ short?: string;
1873
+ default?: string | boolean | string[] | boolean[];
1874
+ }
1875
+ export interface ParseArgsOptionsConfig {
1876
+ [longOption: string]: ParseArgsOptionDescriptor;
1877
+ }
1878
+ export interface ParseArgsConfig {
1879
+ args?: readonly string[];
1880
+ options?: ParseArgsOptionsConfig;
1881
+ strict?: boolean;
1882
+ allowPositionals?: boolean;
1883
+ allowNegative?: boolean;
1884
+ tokens?: boolean;
1885
+ }
1886
+ export type ParseArgsToken =
1887
+ | {
1888
+ kind: "option";
1889
+ index: number;
1890
+ name: string;
1891
+ rawName: string;
1892
+ value: string | undefined;
1893
+ inlineValue: boolean | undefined;
1894
+ }
1895
+ | { kind: "positional"; index: number; value: string }
1896
+ | { kind: "option-terminator"; index: number };
1897
+ export interface ParseArgsResult {
1898
+ values: { [longOption: string]: undefined | string | boolean | Array<string | boolean> };
1899
+ positionals: string[];
1900
+ tokens?: ParseArgsToken[];
1901
+ }
1902
+ export function parseArgs(config?: ParseArgsConfig): ParseArgsResult;
1903
+ /* util.getCallSites (Node ≥22.9): the captured-frame slice harness
1904
+ * code reads. No stack bookkeeping exists in a compiled binary — every
1905
+ * reached call fences per site. */
1906
+ export interface CallSite {
1907
+ readonly functionName: string;
1908
+ readonly scriptName: string;
1909
+ readonly lineNumber: number;
1910
+ readonly column: number;
1911
+ }
1912
+ export function getCallSites(frameCount?: number): CallSite[];
1913
+ }
1914
+ declare module "node:util" {
1915
+ export * from "util";
1916
+ }
1917
+
1918
+ /* node:util/types — the type probes. isModuleNamespaceObject answers a
1919
+ * REAL question about compiled modules and fences until it lowers; the
1920
+ * rest of Node's surface is undeclared (honest type errors). */
1921
+ declare module "util/types" {
1922
+ export function isModuleNamespaceObject(value: unknown): boolean;
1923
+ }
1924
+ declare module "node:util/types" {
1925
+ export * from "util/types";
1926
+ }
1927
+
1928
+ /* node:assert — the static assertion surface. The module object IS a
1929
+ * callable function (`assert(x)` is `assert.ok(x)`), so the declaration
1930
+ * is the callable-namespace `export =` shape and BOTH `import assert
1931
+ * from "node:assert"` and `const assert = require("assert")` bind the
1932
+ * callable; named imports take the members. Failures throw
1933
+ * AssertionError (name "AssertionError", code "ERR_ASSERTION" — catch and
1934
+ * read .name/.message/.code). strictEqual/deepStrictEqual compare with
1935
+ * Object.is over scalars; deepStrictEqual compares composites
1936
+ * structurally per their static types. The messages here are plain
1937
+ * strings (Node accepts Errors — that form fences per site), and the
1938
+ * shallow legacy pair (equal/notEqual) follows Node's == coercions for
1939
+ * primitive and primitive-union operands, including Node v24's NaN
1940
+ * exception. deepEqual/notDeepEqual remain declared-but-fenced;
1941
+ * assert/strict's loose names alias the strict forms and lower. */
1942
+ /* node:test — the in-process test runner (prefix-only in Node too:
1943
+ * require("test") is MODULE_NOT_FOUND). test/it register tests (sync and
1944
+ * async bodies, skip/todo/only options and method twins), describe/suite
1945
+ * group them (bodies run at registration, Node's collection phase),
1946
+ * before/after/beforeEach/afterEach hook the enclosing suite, and the
1947
+ * TestContext argument carries subtests (t.test), t.skip/t.todo,
1948
+ * t.diagnostic, and t.assert. mock/run/snapshot are DECLARED so real
1949
+ * suites typecheck but fence at their use sites (no lowering). */
1950
+ declare module "node:test" {
1951
+ type TestFn = (t: TestContext) => void | Promise<void>;
1952
+ type SuiteFn = () => void;
1953
+ type HookFn = () => void | Promise<void>;
1954
+ interface TestOptions {
1955
+ skip?: boolean | string;
1956
+ todo?: boolean | string;
1957
+ only?: boolean;
1958
+ concurrency?: number | boolean;
1959
+ timeout?: number;
1960
+ plan?: number;
1961
+ }
1962
+ interface TestContext {
1963
+ readonly name: string;
1964
+ readonly assert: TestContextAssert;
1965
+ test(name: string, fn?: TestFn): Promise<void>;
1966
+ test(name: string, options: TestOptions, fn?: TestFn): Promise<void>;
1967
+ skip(message?: string): void;
1968
+ todo(message?: string): void;
1969
+ diagnostic(message: string): void;
1970
+ plan(count: number): void;
1971
+ after(fn: HookFn): void;
1972
+ before(fn: HookFn): void;
1973
+ beforeEach(fn: HookFn): void;
1974
+ afterEach(fn: HookFn): void;
1975
+ }
1976
+ interface TestContextAssert {
1977
+ ok(value: unknown, message?: string): void;
1978
+ strictEqual(actual: unknown, expected: unknown, message?: string): void;
1979
+ notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
1980
+ deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
1981
+ notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
1982
+ equal(actual: unknown, expected: unknown, message?: string): void;
1983
+ notEqual(actual: unknown, expected: unknown, message?: string): void;
1984
+ deepEqual(actual: unknown, expected: unknown, message?: string): void;
1985
+ notDeepEqual(actual: unknown, expected: unknown, message?: string): void;
1986
+ fail(message?: string): never;
1987
+ throws(fn: () => unknown, expected?: unknown, message?: string): void;
1988
+ match(value: string, regExp: RegExp, message?: string): void;
1989
+ doesNotMatch(value: string, regExp: RegExp, message?: string): void;
1990
+ }
1991
+ function test(name: string, fn?: TestFn): Promise<void>;
1992
+ function test(name: string, options: TestOptions, fn?: TestFn): Promise<void>;
1993
+ namespace test {
1994
+ function skip(name: string, fn?: TestFn): Promise<void>;
1995
+ function skip(name: string, options: TestOptions, fn?: TestFn): Promise<void>;
1996
+ function todo(name: string, fn?: TestFn): Promise<void>;
1997
+ function todo(name: string, options: TestOptions, fn?: TestFn): Promise<void>;
1998
+ function only(name: string, fn?: TestFn): Promise<void>;
1999
+ function only(name: string, options: TestOptions, fn?: TestFn): Promise<void>;
2000
+ }
2001
+ const it: typeof test;
2002
+ function describe(name: string, fn?: SuiteFn): void;
2003
+ function describe(name: string, options: TestOptions, fn?: SuiteFn): void;
2004
+ namespace describe {
2005
+ function skip(name: string, fn?: SuiteFn): void;
2006
+ function todo(name: string, fn?: SuiteFn): void;
2007
+ function only(name: string, fn?: SuiteFn): void;
2008
+ }
2009
+ const suite: typeof describe;
2010
+ function before(fn: HookFn): void;
2011
+ function after(fn: HookFn): void;
2012
+ function beforeEach(fn: HookFn): void;
2013
+ function afterEach(fn: HookFn): void;
2014
+ /* Declared for typechecking only — every use fences (no lowering).
2015
+ * `assert` is the module-level custom-assertion registry (v24's
2016
+ * `const { assert } = require('node:test')`), not TestContext.assert. */
2017
+ const mock: unknown;
2018
+ const assert: { register(name: string, fn: (...args: unknown[]) => unknown): void };
2019
+ function run(options?: unknown): unknown;
2020
+ function snapshot(...args: unknown[]): unknown;
2021
+ export {
2022
+ test, it, describe, suite, before, after, beforeEach, afterEach,
2023
+ mock, assert, run, snapshot, TestContext, TestOptions,
2024
+ };
2025
+ export default test;
2026
+ }
2027
+
2028
+ declare module "assert" {
2029
+ function assert(value: unknown, message?: string): void;
2030
+ namespace assert {
2031
+ function ok(value: unknown, message?: string): void;
2032
+ function strictEqual(actual: unknown, expected: unknown, message?: string): void;
2033
+ function notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2034
+ function deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2035
+ function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2036
+ function equal(actual: unknown, expected: unknown, message?: string): void;
2037
+ function notEqual(actual: unknown, expected: unknown, message?: string): void;
2038
+ function deepEqual(actual: unknown, expected: unknown, message?: string): void;
2039
+ function notDeepEqual(actual: unknown, expected: unknown, message?: string): void;
2040
+ function fail(message?: string): never;
2041
+ function throws(fn: () => unknown, expected?: unknown, message?: string): void;
2042
+ function rejects(fn: (() => Promise<unknown>) | Promise<unknown>, expected?: unknown, message?: string): Promise<void>;
2043
+ function doesNotReject(fn: (() => Promise<unknown>) | Promise<unknown>, expected?: unknown, message?: string): Promise<void>;
2044
+ function match(value: string, regExp: RegExp, message?: string): void;
2045
+ function doesNotMatch(value: string, regExp: RegExp, message?: string): void;
2046
+ function ifError(value: unknown): void;
2047
+ const strict: typeof import("assert/strict");
2048
+ }
2049
+ export = assert;
2050
+ }
2051
+ declare module "node:assert" {
2052
+ import assert = require("assert");
2053
+ export = assert;
2054
+ }
2055
+ /* node:assert/strict — the same surface with the loose names bound to the
2056
+ * strict comparisons (equal IS strictEqual, ...), exactly Node's aliasing;
2057
+ * the module object is callable like assert's. */
2058
+ declare module "assert/strict" {
2059
+ function strict(value: unknown, message?: string): void;
2060
+ namespace strict {
2061
+ function ok(value: unknown, message?: string): void;
2062
+ function equal(actual: unknown, expected: unknown, message?: string): void;
2063
+ function notEqual(actual: unknown, expected: unknown, message?: string): void;
2064
+ function deepEqual(actual: unknown, expected: unknown, message?: string): void;
2065
+ function notDeepEqual(actual: unknown, expected: unknown, message?: string): void;
2066
+ function strictEqual(actual: unknown, expected: unknown, message?: string): void;
2067
+ function notStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2068
+ function deepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2069
+ function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void;
2070
+ function fail(message?: string): never;
2071
+ function throws(fn: () => unknown, expected?: unknown, message?: string): void;
2072
+ function rejects(fn: (() => Promise<unknown>) | Promise<unknown>, expected?: unknown, message?: string): Promise<void>;
2073
+ function doesNotReject(fn: (() => Promise<unknown>) | Promise<unknown>, expected?: unknown, message?: string): Promise<void>;
2074
+ function match(value: string, regExp: RegExp, message?: string): void;
2075
+ function doesNotMatch(value: string, regExp: RegExp, message?: string): void;
2076
+ function ifError(value: unknown): void;
2077
+ const strict: typeof import("assert/strict");
2078
+ }
2079
+ export = strict;
2080
+ }
2081
+ declare module "node:assert/strict" {
2082
+ import strict = require("assert/strict");
2083
+ export = strict;
2084
+ }
2085
+
2086
+ /* node:string_decoder — StringDecoder over Node's whole encoding set:
2087
+ * write() decodes complete sequences and buffers a trailing partial one
2088
+ * across chunk boundaries (utf8's truncated sequence, base64's mod-3
2089
+ * remainder, utf16le's odd byte / trailing lead surrogate; latin1, ascii
2090
+ * and hex are stateless); end() flushes the buffered partial. `encoding`
2091
+ * answers the normalized name. Node's exact algorithms (SEMANTICS.md);
2092
+ * the encoding must be a literal, and end(buffer) fences — write the
2093
+ * buffer, then end(). */
2094
+ declare module "string_decoder" {
2095
+ export class StringDecoder {
2096
+ constructor(encoding?: BufferEncoding);
2097
+ readonly encoding: string;
2098
+ write(buffer: Uint8Array): string;
2099
+ end(buffer?: Uint8Array): string;
2100
+ }
2101
+ }
2102
+ declare module "node:string_decoder" {
2103
+ export * from "string_decoder";
2104
+ }
2105
+
2106
+ /* node:querystring — Node's legacy query-string codec (NOT
2107
+ * URLSearchParams: '+' means space on the parse side and escape encodes
2108
+ * spaces as %20). parse answers the null-prototype dictionary as a pure
2109
+ * index-signature record (repeated keys become string[] buckets;
2110
+ * @types/node's Dict adds an undefined arm the lowering tolerates);
2111
+ * stringify serializes string/number/boolean values and arrays of those
2112
+ * (Node's rules: arrays expand to repeated keys, null/undefined and
2113
+ * anything else serialize as the empty value). The maxKeys option lowers
2114
+ * (0 removes the cap, Node's rule); the custom encoder/decoder options
2115
+ * typecheck under the options-record stance and fence by name at the
2116
+ * call. decode/encode are Node's own aliases of parse/stringify. */
2117
+ declare module "querystring" {
2118
+ export interface ParseOptions {
2119
+ maxKeys?: number;
2120
+ decodeURIComponent?: (str: string) => string;
2121
+ [option: string]: unknown;
2122
+ }
2123
+ export interface StringifyOptions {
2124
+ encodeURIComponent?: (str: string) => string;
2125
+ [option: string]: unknown;
2126
+ }
2127
+ export interface ParsedUrlQuery {
2128
+ [key: string]: string | string[] | undefined;
2129
+ }
2130
+ export interface ParsedUrlQueryInput {
2131
+ [key: string]:
2132
+ | string
2133
+ | number
2134
+ | boolean
2135
+ | ReadonlyArray<string | number | boolean>
2136
+ | null
2137
+ | undefined;
2138
+ }
2139
+ export function parse(str: string, sep?: string | null, eq?: string | null, options?: ParseOptions): ParsedUrlQuery;
2140
+ export function stringify(obj?: ParsedUrlQueryInput, sep?: string | null, eq?: string | null, options?: StringifyOptions): string;
2141
+ export const decode: typeof parse;
2142
+ export const encode: typeof stringify;
2143
+ export function escape(str: string): string;
2144
+ export function unescape(str: string): string;
2145
+ }
2146
+ declare module "node:querystring" {
2147
+ export * from "querystring";
2148
+ }
2149
+
2150
+ /* node:readline — the question/close slice: createInterface over exactly
2151
+ * { input: process.stdin, output: process.stdout }, question(query, cb)
2152
+ * (the query writes to stdout, the callback gets the next line's text),
2153
+ * close() (fires 'close' synchronously, like Node's inline emit), and
2154
+ * on("close", cb). An open interface keeps the process alive until
2155
+ * close()/EOF, Node's semantics; lines split on \n and \r\n. */
2156
+ declare module "readline" {
2157
+ export interface Interface extends Disposable {
2158
+ question(query: string, callback: (answer: string) => void): void;
2159
+ close(): void;
2160
+ on(event: "close", listener: () => void): void;
2161
+ [Symbol.dispose](): void;
2162
+ }
2163
+ export function createInterface(options: {
2164
+ input: unknown;
2165
+ output?: unknown;
2166
+ terminal?: boolean;
2167
+ /* crlfDelay: Infinity is accepted — the lowered splitter already
2168
+ * holds a trailing \r for the next chunk, Node's Infinity behavior;
2169
+ * completer and the history knobs fence by name (no interactive
2170
+ * terminal). The options-record stance (see http.RequestOptions)
2171
+ * admits every key; the walk decides. */
2172
+ crlfDelay?: number;
2173
+ completer?: unknown;
2174
+ [option: string]: unknown;
2175
+ }): Interface;
2176
+ }
2177
+ declare module "node:readline" {
2178
+ export * from "readline";
2179
+ }
2180
+
2181
+ /* node:zlib — the one-shot zlib/raw/gzip codecs lower for string/Buffer
2182
+ * inputs with Node's default options; libz links only into zlib-using
2183
+ * binaries. Callback forms use the executable worker pool. Options stay
2184
+ * declared so reached uses receive a named SC2020 refusal; Brotli,
2185
+ * streaming, and Zstd remain outside the lowered surface. */
2186
+ declare module "zlib" {
2187
+ export interface ZlibOptions { [option: string]: unknown }
2188
+ export type ZlibCallback = (error: NodeJS.ErrnoException | null, result: Buffer) => void;
2189
+ export function deflate(data: string | Uint8Array, callback: ZlibCallback): void;
2190
+ export function deflate(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2191
+ export function deflateSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2192
+ export function inflate(data: string | Uint8Array, callback: ZlibCallback): void;
2193
+ export function inflate(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2194
+ export function inflateSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2195
+ export function deflateRaw(data: string | Uint8Array, callback: ZlibCallback): void;
2196
+ export function deflateRaw(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2197
+ export function deflateRawSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2198
+ export function inflateRaw(data: string | Uint8Array, callback: ZlibCallback): void;
2199
+ export function inflateRaw(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2200
+ export function inflateRawSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2201
+ export function gzip(data: string | Uint8Array, callback: ZlibCallback): void;
2202
+ export function gzip(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2203
+ export function gzipSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2204
+ export function gunzip(data: string | Uint8Array, callback: ZlibCallback): void;
2205
+ export function gunzip(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2206
+ export function gunzipSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2207
+ export function unzip(data: string | Uint8Array, callback: ZlibCallback): void;
2208
+ export function unzip(data: string | Uint8Array, options: ZlibOptions, callback: ZlibCallback): void;
2209
+ export function unzipSync(data: string | Uint8Array, options?: ZlibOptions): Buffer;
2210
+ export function crc32(data: string | Uint8Array, value?: number): number;
2211
+ export function brotliCompressSync(data: string | Uint8Array): Buffer;
2212
+ export function brotliDecompressSync(data: Uint8Array): Buffer;
2213
+ }
2214
+ declare module "node:zlib" {
2215
+ export * from "zlib";
2216
+ }
2217
+
2218
+ /* node:net — the inbound-networking slice (scr_net.c links only into
2219
+ * net-using binaries). TCP only, Node's shapes narrowed to what lowers:
2220
+ * createServer with an optional connection handler; listen(port[, cb])
2221
+ * with the real port discoverable as address().port (the composed read
2222
+ * is the lowered form — bare address() has no lowering); close([cb])
2223
+ * firing once connections drain; socket write/end/destroy/pipe and the
2224
+ * data/end/close/error/connect events (on and once — listeners take at
2225
+ * most the declared parameter). write/end return void here (Node returns
2226
+ * the backpressure boolean / the socket); on/once return void (chaining
2227
+ * is fenced). connect's host is a numeric IP or "localhost" (pinned to
2228
+ * 127.0.0.1 — SEMANTICS.md); every failure is the async 'error' event,
2229
+ * and an 'error' with no listener exits 1 like an unhandled EventEmitter
2230
+ * 'error'. */
2231
+ declare module "net" {
2232
+ export interface Socket {
2233
+ readonly remoteAddress: string | undefined;
2234
+ /* true once the fd is gone (destroy() or full close) — Node's flag. */
2235
+ readonly destroyed: boolean;
2236
+ /* the write half is open: no end() yet, no FIN sent, fd alive. */
2237
+ readonly writable: boolean;
2238
+ /* true until the read half is done (peer FIN / destroy). */
2239
+ readonly readable: boolean;
2240
+ /* every byte the write paths accepted (buffered included — Node
2241
+ * counts those too; plaintext on TLS sockets). */
2242
+ readonly bytesWritten: number;
2243
+ write(data: string | Uint8Array): void;
2244
+ end(data?: string | Uint8Array): void;
2245
+ destroy(): void;
2246
+ /* Flow control: pause holds reads off (kernel/TCP backpressure is
2247
+ * the buffer); resume flows — and discards without listeners, so
2248
+ * 'end' stays reachable. Both chain, Node's shape. */
2249
+ pause(): Socket;
2250
+ resume(): Socket;
2251
+ /* TCP_NODELAY on the live fd; missing means true. Chains. */
2252
+ setNoDelay(noDelay?: boolean): Socket;
2253
+ /* end() now, destroy once the FIN actually flushed. */
2254
+ destroySoon(): void;
2255
+ /* setEncoding('utf8'): 'data' delivers strings — the IncomingMessage
2256
+ * twin's contract. */
2257
+ setEncoding(encoding: string): void;
2258
+ /* socket→socket, and socket→response (the extended-CONNECT bridge
2259
+ * leg: raw chunks become response body writes; EOF ends it). */
2260
+ pipe(destination: Socket | import("http").ServerResponse | import("http2").Http2ServerResponse): void;
2261
+ setTimeout(ms: number): void;
2262
+ /* The paused-mode demux surface: once('readable') + read(1) +
2263
+ * unshift — read answers exactly n buffered bytes or null. */
2264
+ read(size?: number): Buffer | null;
2265
+ unshift(chunk: Uint8Array): void;
2266
+ /* secureConnect/session are TLS-socket events declared on the shared
2267
+ * socket surface (the lowering collapses TLSSocket onto this kind):
2268
+ * the runtime gates on the transport, so a plain socket's
2269
+ * registration never fires — Node's exact split. 'session' fires
2270
+ * once with the serialized session (the received-ticket event). */
2271
+ on(event: "data", listener: (chunk: Buffer) => void): void;
2272
+ on(event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect", listener: () => void): void;
2273
+ on(event: "error", listener: (err: Error) => void): void;
2274
+ on(event: "session", listener: (session: Buffer) => void): void;
2275
+ /* addListener IS on (Node aliases them) — the suite spells both. */
2276
+ addListener(event: "data", listener: (chunk: Buffer) => void): void;
2277
+ addListener(event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect", listener: () => void): void;
2278
+ addListener(event: "error", listener: (err: Error) => void): void;
2279
+ addListener(event: "session", listener: (session: Buffer) => void): void;
2280
+ once(event: "data", listener: (chunk: Buffer) => void): void;
2281
+ once(event: "end" | "close" | "connect" | "timeout" | "readable" | "finish" | "secureConnect", listener: () => void): void;
2282
+ once(event: "error", listener: (err: Error) => void): void;
2283
+ once(event: "session", listener: (session: Buffer) => void): void;
2284
+ }
2285
+ export interface Server {
2286
+ readonly listening: boolean;
2287
+ /* Node answers the server itself (`return this` chaining). */
2288
+ listen(port: number, callback?: () => void): Server;
2289
+ /* The positional bind address (the options form's host in argument
2290
+ * spelling). */
2291
+ listen(port: number, host: string, callback?: () => void): Server;
2292
+ /* The explicit-interface bind: host is an IP literal (absent = the
2293
+ * host-less dual-stack any); ipv6Only sets IPV6_V6ONLY and reusePort
2294
+ * requests kernel connection distribution where Node supports it. */
2295
+ listen(options: { port: number; host?: string; ipv6Only?: boolean; reusePort?: boolean }, callback?: () => void): Server;
2296
+ close(callback?: () => void): void;
2297
+ /* The bound AddressInfo (Node answers null before listen — this
2298
+ * surface answers the record with port 0 there, the serverPort
2299
+ * stance). */
2300
+ address(): import("node:dgram").AddressInfo;
2301
+ /* The demux route: hand an accepted socket to another server. */
2302
+ emit(event: "connection", socket: Socket): boolean;
2303
+ on(event: "connection" | "secureConnection", listener: (socket: Socket) => void): void;
2304
+ on(event: "close" | "listening", listener: () => void): void;
2305
+ on(event: "timeout", listener: (socket: Socket) => void): void;
2306
+ on(event: "error", listener: (err: Error) => void): void;
2307
+ /* The WebSocket handover: fires INSTEAD of 'request' for
2308
+ * Connection: upgrade requests, with the raw socket + head bytes. */
2309
+ on(event: "upgrade", listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void): void;
2310
+ /* http.createServer(handler)'s event twin (a no-parser net server
2311
+ * never fires it, like Node). */
2312
+ on(event: "request", listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void): void;
2313
+ /* addListener IS on (Node aliases them) — the suite spells both. */
2314
+ addListener(event: "connection" | "secureConnection", listener: (socket: Socket) => void): void;
2315
+ addListener(event: "close" | "listening", listener: () => void): void;
2316
+ addListener(event: "timeout", listener: (socket: Socket) => void): void;
2317
+ addListener(event: "error", listener: (err: Error) => void): void;
2318
+ addListener(event: "upgrade", listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void): void;
2319
+ addListener(event: "request", listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void): void;
2320
+ once(event: "connection" | "secureConnection", listener: (socket: Socket) => void): void;
2321
+ once(event: "close" | "listening", listener: () => void): void;
2322
+ once(event: "timeout", listener: (socket: Socket) => void): void;
2323
+ once(event: "error", listener: (err: Error) => void): void;
2324
+ once(event: "upgrade", listener: (req: import("http").IncomingMessage, socket: Socket, head: Buffer) => void): void;
2325
+ once(event: "request", listener: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void): void;
2326
+ }
2327
+ /* The Socket VALUE — the `x instanceof net.Socket` narrowing target
2328
+ * (the h2 compat 'connect' listener's test). Constructing bare sockets
2329
+ * has no lowering; the construct signature exists for instanceof. */
2330
+ export const Socket: abstract new () => Socket;
2331
+ export function createServer(connectionListener?: (socket: Socket) => void): Server;
2332
+ export function connect(port: number, host?: string, connectListener?: () => void): Socket;
2333
+ export function createConnection(port: number, host?: string, connectListener?: () => void): Socket;
2334
+ /* The caller-resolver dial (@types/node's net.LookupFunction, narrowed
2335
+ * to the lowered shape): the runtime invokes it as Node does and dials
2336
+ * the answered addresses in order under autoSelectFamily: true. */
2337
+ export type LookupFunction = (
2338
+ hostname: string,
2339
+ options: unknown,
2340
+ callback: (err: NodeJS.ErrnoException | null, addresses: { address: string; family: number }[]) => void,
2341
+ ) => void;
2342
+ export function connect(options: {
2343
+ port: number;
2344
+ host?: string;
2345
+ autoSelectFamily?: boolean;
2346
+ lookup?: LookupFunction;
2347
+ }, connectListener?: () => void): Socket;
2348
+ export function createConnection(options: {
2349
+ port: number;
2350
+ host?: string;
2351
+ autoSelectFamily?: boolean;
2352
+ lookup?: LookupFunction;
2353
+ }, connectListener?: () => void): Socket;
2354
+ /* The happy-eyeballs attempt budget (Node's process-wide knob; the
2355
+ * autoSelectFamily dial consults it): one runtime int, default 250ms
2356
+ * like Node's. */
2357
+ export function getDefaultAutoSelectFamilyAttemptTimeout(): number;
2358
+ export function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void;
2359
+ }
2360
+ declare module "node:net" {
2361
+ export * from "net";
2362
+ }
2363
+
2364
+ /* node:http — the SERVER and CLIENT slices (scr_http.c layers a
2365
+ * hand-written HTTP/1.1 parser + serializer on scr_net.c; both link only
2366
+ * into using binaries). createServer(handler) returns a net.Server —
2367
+ * listen/close/address().port/'error' are the same lowered surface. The
2368
+ * request carries url/method (always present on server requests),
2369
+ * statusCode (a number on client responses, undefined on server
2370
+ * requests), the underlying socket, and lowercased headers read as
2371
+ * `string | undefined`; the body streams through on("data"/"end"). The
2372
+ * response is setHeader/writeHead/write/end/destroy with Node's framing
2373
+ * (Content-Length for a single end(body), chunked after writeHead/write)
2374
+ * and the auto Date/Connection headers; writeHead's headers argument is
2375
+ * an object literal or a Record<string, string>. request/get dial one
2376
+ * connection per call (no agent pooling) with Node's exact wire head. */
2377
+ declare module "http" {
2378
+ import { Server as NetServer, Socket } from "net";
2379
+ export const METHODS: string[];
2380
+ export const STATUS_CODES: { [status: number]: string | undefined };
2381
+ export const maxHeaderSize: number;
2382
+ export interface Server extends NetServer {
2383
+ timeout: number;
2384
+ setTimeout(msecs: number, callback?: (socket: Socket) => void): this;
2385
+ closeAllConnections(): void;
2386
+ closeIdleConnections(): void;
2387
+ keepAliveTimeout: number;
2388
+ keepAliveTimeoutBuffer: number;
2389
+ headersTimeout: number;
2390
+ requestTimeout: number;
2391
+ }
2392
+ export type RequestListener =
2393
+ (req: IncomingMessage, res: ServerResponse) => void;
2394
+ /* The Server VALUE — Node's constructor works with and without `new`
2395
+ * (test/parallel's http.Server(fn) spelling); both route to the
2396
+ * createServer lowering. */
2397
+ export const Server: {
2398
+ new (requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
2399
+ new (options: ServerOptions, requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
2400
+ (requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
2401
+ (options: ServerOptions, requestListener?: (req: IncomingMessage, res: ServerResponse) => void): Server;
2402
+ };
2403
+ /* The options-record stance (the RequestOptions precedent): every
2404
+ * documented key typechecks; the lowering's option walk decides per
2405
+ * key — requireHostHeader: false, joinDuplicateHeaders, and
2406
+ * keepAliveTimeoutBuffer lower,
2407
+ * documented-but-unlowered keys fence by name, unknown keys drop. */
2408
+ export interface ServerOptions {
2409
+ requireHostHeader?: boolean;
2410
+ joinDuplicateHeaders?: boolean;
2411
+ keepAliveTimeoutBuffer?: number;
2412
+ [option: string]: unknown;
2413
+ }
2414
+ /* The outgoing-header shape, @types/node's matrix: numbers format via
2415
+ * String(n), arrays write one line per element (set-cookie's shape).
2416
+ * Incoming headers stay `string | undefined` — what the parser answers
2417
+ * (under @types/node the two SLOTS unify so `{ ...req.headers }`
2418
+ * merges into outgoing literals as a copy; the fallback keeps reads
2419
+ * simple and spreads target the same string | undefined slot). */
2420
+ export type OutgoingHttpHeaders = { [name: string]: number | string | string[] | undefined };
2421
+ export interface IncomingMessage {
2422
+ readonly url: string;
2423
+ readonly method: string;
2424
+ readonly httpVersion: string;
2425
+ readonly complete: boolean;
2426
+ readonly aborted: boolean;
2427
+ readonly statusCode: number | undefined;
2428
+ readonly statusMessage: string | undefined;
2429
+ readonly socket: Socket;
2430
+ readonly connection: Socket;
2431
+ readonly headers: { [name: string]: string | undefined };
2432
+ readonly headersDistinct: { [name: string]: string[] | undefined };
2433
+ readonly rawHeaders: string[];
2434
+ readonly trailers: { [name: string]: string | undefined };
2435
+ readonly trailersDistinct: { [name: string]: string[] | undefined };
2436
+ readonly rawTrailers: string[];
2437
+ resume(): void;
2438
+ destroy(): void;
2439
+ setTimeout(msecs: number, callback?: () => void): this;
2440
+ /* setEncoding('utf8'): 'data' delivers strings (other real encodings
2441
+ * fence loudly at runtime; unknown names throw ERR_UNKNOWN_ENCODING). */
2442
+ setEncoding(encoding: string): void;
2443
+ /* The proxy legs: the body streams into a ServerResponse, a
2444
+ * ClientRequest, or a raw Socket; natural end ends the destination. */
2445
+ pipe(destination: ServerResponse | import("http2").Http2ServerResponse | ClientRequest | Socket): void;
2446
+ on(event: "data", listener: (chunk: any) => void): void;
2447
+ on(event: "end" | "close" | "aborted", listener: () => void): void;
2448
+ on(event: "error", listener: (err: Error) => void): void;
2449
+ /* addListener IS on (Node aliases them) — the suite spells both. */
2450
+ addListener(event: "data", listener: (chunk: any) => void): void;
2451
+ addListener(event: "end" | "close" | "aborted", listener: () => void): void;
2452
+ addListener(event: "error", listener: (err: Error) => void): void;
2453
+ once(event: "data", listener: (chunk: any) => void): void;
2454
+ once(event: "end" | "close" | "aborted", listener: () => void): void;
2455
+ once(event: "error", listener: (err: Error) => void): void;
2456
+ }
2457
+ export interface ServerResponse {
2458
+ readonly headersSent: boolean;
2459
+ readonly writableEnded: boolean;
2460
+ readonly finished: boolean;
2461
+ readonly writableFinished: boolean;
2462
+ readonly writableCorked: number;
2463
+ readonly req: IncomingMessage;
2464
+ readonly socket: Socket | null;
2465
+ readonly connection: Socket | null;
2466
+ sendDate: boolean;
2467
+ strictContentLength: boolean;
2468
+ /* Node's writable head properties: the implicit head reads them. */
2469
+ statusCode: number;
2470
+ statusMessage: string | undefined;
2471
+ setHeader(name: string, value: string | number): void;
2472
+ getHeader(name: string): string | undefined;
2473
+ getHeaderNames(): string[];
2474
+ getRawHeaderNames(): string[];
2475
+ getHeaders(): OutgoingHttpHeaders;
2476
+ hasHeader(name: string): boolean;
2477
+ removeHeader(name: string): void;
2478
+ /* Both overloads answer the response (`return this` chaining); the
2479
+ * headers argument also takes Node's flat [name, value, ...] array. */
2480
+ writeHead(statusCode: number, headers?: OutgoingHttpHeaders | string[]): ServerResponse;
2481
+ writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders | string[]): ServerResponse;
2482
+ writeContinue(callback?: () => void): void;
2483
+ writeProcessing(callback?: () => void): void;
2484
+ writeEarlyHints(hints: Record<string, string | string[]>, callback?: () => void): void;
2485
+ write(data: string | Uint8Array): void;
2486
+ flushHeaders(): void;
2487
+ cork(): void;
2488
+ uncork(): void;
2489
+ addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
2490
+ setTimeout(msecs: number, callback?: () => void): this;
2491
+ /* end's callback forms fire once the body went out (the 'finish'
2492
+ * emit, deferred past the handler's synchronous tail). */
2493
+ end(data?: string | Uint8Array, callback?: () => void): void;
2494
+ end(callback: () => void): void;
2495
+ destroy(): void;
2496
+ on(event: "close" | "finish", listener: () => void): void;
2497
+ /* addListener IS on (Node aliases them) — the suite spells both. */
2498
+ addListener(event: "close" | "finish", listener: () => void): void;
2499
+ once(event: "close" | "finish", listener: () => void): void;
2500
+ }
2501
+ /* The CLIENT slice (http.request/http.get): the options-object form
2502
+ * with hostname/host, port, path, method, timeout, and headers; the
2503
+ * callback receives the response as an IncomingMessage (statusCode,
2504
+ * headers, body via on("data"/"end")). */
2505
+ export interface RequestOptions {
2506
+ hostname?: string;
2507
+ host?: string;
2508
+ port?: number;
2509
+ path?: string;
2510
+ method?: string;
2511
+ timeout?: number;
2512
+ headers?: OutgoingHttpHeaders;
2513
+ /* The caller's own dialer (the proxy's loopback dial): invoked once,
2514
+ * synchronously; its socket carries the exchange. */
2515
+ createConnection?: () => Socket;
2516
+ /* agent: false is a one-shot dial with Connection: close — exactly
2517
+ * the compiled client's model; null/undefined are the default; an
2518
+ * Agent VALUE threads through (getName-keyed maxSockets accounting
2519
+ * over one-dial-per-request connections). */
2520
+ agent?: Agent | boolean | null;
2521
+ /* The options-record stance: Node ignores an options record's
2522
+ * unknown keys, so every key typechecks here — the option WALK in
2523
+ * the lowering decides per key (lower, fence by name, or drop
2524
+ * undocumented keys exactly like Node). */
2525
+ [option: string]: unknown;
2526
+ }
2527
+ /* The Agent lowers to a checked-dynamic HANDLE: option parsing at the
2528
+ * literal construction site, getName, destroy, the sockets/requests/
2529
+ * freeSockets snapshots, and REAL maxSockets accounting (over-limit
2530
+ * requests defer their dial and queue). keepAlive: true throws the
2531
+ * named pooling fence — this client dials one connection per request
2532
+ * and closes it with the response, so freeSockets is always
2533
+ * empty. */
2534
+ export interface AgentOptions {
2535
+ keepAlive?: boolean;
2536
+ keepAliveMsecs?: number;
2537
+ maxSockets?: number;
2538
+ maxFreeSockets?: number;
2539
+ maxTotalSockets?: number;
2540
+ scheduling?: string;
2541
+ timeout?: number;
2542
+ port?: number;
2543
+ [option: string]: unknown;
2544
+ }
2545
+ export class Agent {
2546
+ constructor(options?: AgentOptions);
2547
+ destroy(): void;
2548
+ /* Node's exact key shape: host:port:localAddress[:family][:socketPath]. */
2549
+ getName(options?: { host?: string; port?: number; localAddress?: string; family?: number; socketPath?: string; [option: string]: unknown }): string;
2550
+ maxSockets: number;
2551
+ maxFreeSockets: number;
2552
+ keepAliveMsecs: number;
2553
+ readonly keepAlive: boolean;
2554
+ readonly protocol: string;
2555
+ /* Settable — a portless request through this agent dials it (Node's
2556
+ * option merge). */
2557
+ defaultPort: number;
2558
+ readonly totalSocketCount: number;
2559
+ readonly sockets: { [key: string]: unknown[] };
2560
+ readonly freeSockets: { [key: string]: unknown[] };
2561
+ readonly requests: { [key: string]: unknown[] };
2562
+ }
2563
+ export const globalAgent: Agent;
2564
+ export interface ClientRequest {
2565
+ readonly destroyed: boolean;
2566
+ readonly aborted: boolean;
2567
+ readonly socket: Socket;
2568
+ readonly connection: Socket;
2569
+ readonly writableCorked: number;
2570
+ readonly method: string;
2571
+ readonly path: string;
2572
+ readonly host: string;
2573
+ readonly protocol: string;
2574
+ readonly headersSent: boolean;
2575
+ readonly writableEnded: boolean;
2576
+ readonly writableFinished: boolean;
2577
+ readonly finished: boolean;
2578
+ readonly reusedSocket: boolean;
2579
+ setHeader(name: string, value: string): void;
2580
+ getHeader(name: string): string | undefined;
2581
+ hasHeader(name: string): boolean;
2582
+ removeHeader(name: string): void;
2583
+ getHeaderNames(): string[];
2584
+ getRawHeaderNames(): string[];
2585
+ getHeaders(): OutgoingHttpHeaders;
2586
+ flushHeaders(): void;
2587
+ addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
2588
+ cork(): void;
2589
+ uncork(): void;
2590
+ setNoDelay(noDelay?: boolean): void;
2591
+ setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
2592
+ setTimeout(timeout: number, callback?: () => void): this;
2593
+ write(data: string | Uint8Array): void;
2594
+ end(data?: string | Uint8Array): void;
2595
+ destroy(): void;
2596
+ abort(): void;
2597
+ on(event: "response", listener: (res: IncomingMessage) => void): void;
2598
+ on(event: "socket", listener: (socket: Socket) => void): void;
2599
+ on(event: "upgrade", listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void): void;
2600
+ on(event: "timeout" | "close" | "finish" | "abort", listener: () => void): void;
2601
+ on(event: "error", listener: (err: Error) => void): void;
2602
+ /* addListener IS on (Node aliases them) — the suite spells both. */
2603
+ addListener(event: "response", listener: (res: IncomingMessage) => void): void;
2604
+ addListener(event: "socket", listener: (socket: Socket) => void): void;
2605
+ addListener(event: "upgrade", listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void): void;
2606
+ addListener(event: "timeout" | "close" | "finish" | "abort", listener: () => void): void;
2607
+ addListener(event: "error", listener: (err: Error) => void): void;
2608
+ once(event: "response", listener: (res: IncomingMessage) => void): void;
2609
+ once(event: "socket", listener: (socket: Socket) => void): void;
2610
+ once(event: "upgrade", listener: (res: IncomingMessage, socket: Socket, head: Buffer) => void): void;
2611
+ once(event: "timeout" | "close" | "finish" | "abort", listener: () => void): void;
2612
+ once(event: "error", listener: (err: Error) => void): void;
2613
+ }
2614
+ export function createServer(
2615
+ requestListener?: (req: IncomingMessage, res: ServerResponse) => void,
2616
+ ): Server;
2617
+ export function createServer(
2618
+ options: ServerOptions,
2619
+ requestListener?: (req: IncomingMessage, res: ServerResponse) => void,
2620
+ ): Server;
2621
+ /* One signature with a UNION first parameter rather than Node's two
2622
+ * overloads: `const requestFn = tls ? https.request : http.request`
2623
+ * (the portless isProxyRunning shape) unions two function types, and
2624
+ * resolving a call on that union collapses each constituent to a
2625
+ * single signature — with an overload SET on both sides the options
2626
+ * literal ends up checked against URL, in either declaration order.
2627
+ * A union parameter has nothing to collapse. The lowering dispatches
2628
+ * on the argument's own type, so it reads the same either way.
2629
+ *
2630
+ * `target` is a URL string or URL object (the spelling a from-scratch
2631
+ * client reaches for first — dialed directly, with a non-http scheme
2632
+ * an ERR_INVALID_PROTOCOL at runtime rather than a type error), or
2633
+ * the options record. */
2634
+ export function request(
2635
+ target: RequestOptions | string | URL,
2636
+ callback?: (res: IncomingMessage) => void,
2637
+ ): ClientRequest;
2638
+ export function get(
2639
+ target: RequestOptions | string | URL,
2640
+ callback?: (res: IncomingMessage) => void,
2641
+ ): ClientRequest;
2642
+ export function validateHeaderName(name: string, label?: string): void;
2643
+ export function validateHeaderValue(name: string, value: unknown): void;
2644
+ }
2645
+ declare module "node:http" {
2646
+ export * from "http";
2647
+ }
2648
+
2649
+ /* node:tls — the TLS server slice (scr_tls.c over scr_net.c with the
2650
+ * vendored mbedTLS; linked only into using binaries).
2651
+ * createServer({ cert, key }, handler) returns a net.Server; the handler
2652
+ * is Node's 'secureConnection' — it fires post-handshake with a socket
2653
+ * that behaves exactly like a net socket (write/end/destroy/pipe and the
2654
+ * data/end/close/error events are the same lowered surface). cert/key
2655
+ * are PEM strings or Buffers. Handshake failures tear the socket down
2656
+ * silently, Node's default for 'tlsClientError' with no listener. */
2657
+ declare module "tls" {
2658
+ import { Server, Socket } from "net";
2659
+ export { Server };
2660
+ export interface TlsOptions {
2661
+ /* Optional in the DECLARATION only (real Node programs build these
2662
+ * literals with every TLS knob): the lowering still requires both —
2663
+ * a literal without them fences at the call site. */
2664
+ cert?: string | Uint8Array;
2665
+ key?: string | Uint8Array;
2666
+ /* The options-record stance (see http.RequestOptions): every key
2667
+ * typechecks; the option walk fences documented-but-unlowered keys
2668
+ * by name and drops undocumented ones like Node. */
2669
+ [option: string]: unknown;
2670
+ }
2671
+ export function createServer(
2672
+ options: TlsOptions,
2673
+ secureConnectionListener?: (socket: Socket) => void,
2674
+ ): Server;
2675
+ /** TLSSocket — post-handshake it IS a net socket to every lowered
2676
+ * member (the mapping collapses it onto the socket kind; the
2677
+ * secureConnect/session events ride the shared socket declarations).
2678
+ * The TLS extras: authorized/authorizationError answer Node's verify
2679
+ * split — authorizationError is the verify-failure CODE STRING
2680
+ * (DEPTH_ZERO_SELF_SIGNED_CERT, ...), or null. */
2681
+ export interface TLSSocket extends Socket {
2682
+ authorized: boolean;
2683
+ authorizationError: string | null;
2684
+ }
2685
+ /** tls.connect options — the RUNTIME options record (members read at
2686
+ * runtime; port/host/rejectUnauthorized/ca/servername are the
2687
+ * honestly-implemented set, every other documented member throws the
2688
+ * runtime fence — the options-record stance's divergence-66 shape). */
2689
+ export interface ConnectionOptions {
2690
+ port?: number;
2691
+ host?: string;
2692
+ rejectUnauthorized?: boolean;
2693
+ ca?: string | Uint8Array | ReadonlyArray<string | Uint8Array>;
2694
+ servername?: string;
2695
+ [option: string]: unknown;
2696
+ }
2697
+ export function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
2698
+ export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
2699
+ export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
2700
+ /** An opaque parsed cert/key pair — what an SNI callback answers with
2701
+ * (the value is a runtime handle; the members are runtime-internal). */
2702
+ export interface SecureContext {}
2703
+ export function createSecureContext(options: TlsOptions): SecureContext;
2704
+ /** The CA-store introspection surface (scr_tls_ca.c): per-type cached
2705
+ * PEM string arrays. The host bundle stands in for Node's compiled-in
2706
+ * Mozilla roots ('bundled', and rootCertificates) AND the platform
2707
+ * store ('system') — the Windows certificate stores or POSIX bundle probe;
2708
+ * 'extra' reads NODE_EXTRA_CA_CERTS. An unknown type string throws
2709
+ * Node's ERR_INVALID_ARG_VALUE TypeError. */
2710
+ export function getCACertificates(type?: string): string[];
2711
+ export const rootCertificates: readonly string[];
2712
+ /** Replaces the 'default' set (deduped) and the trust anchors the TLS
2713
+ * client verifies against; a certificate-free non-empty array throws
2714
+ * Node's ERR_CRYPTO_OPERATION_FAILED Error. */
2715
+ export function setDefaultCACertificates(certs: readonly string[]): void;
2716
+ }
2717
+ declare module "node:tls" {
2718
+ export * from "tls";
2719
+ }
2720
+
2721
+ /* node:https — http over the TLS transport (scr_tls.c).
2722
+ * createServer({ cert, key }, handler) is the http server behind a
2723
+ * handshake; request/get are the http client with port 443 default and
2724
+ * the local-CA knobs: `ca` (PEM string/Buffer) replaces the trust
2725
+ * anchors, rejectUnauthorized: false disables verification (the
2726
+ * self-signed probe shape). With neither, /etc/ssl/cert.pem stands in
2727
+ * for Node's bundled roots. */
2728
+ declare module "https" {
2729
+ import { Server } from "http";
2730
+ import { Agent, ClientRequest, IncomingMessage, ServerResponse } from "http";
2731
+ export { Agent, Server };
2732
+ export interface ServerOptions {
2733
+ cert: string | Uint8Array;
2734
+ key: string | Uint8Array;
2735
+ /* The options-record stance (see http.RequestOptions). */
2736
+ [option: string]: unknown;
2737
+ }
2738
+ export interface RequestOptions {
2739
+ hostname?: string;
2740
+ host?: string;
2741
+ port?: number;
2742
+ path?: string;
2743
+ method?: string;
2744
+ timeout?: number;
2745
+ headers?: { [name: string]: string };
2746
+ rejectUnauthorized?: boolean;
2747
+ ca?: string | Uint8Array;
2748
+ agent?: Agent | boolean | null;
2749
+ /* The options-record stance (see http.RequestOptions). */
2750
+ [option: string]: unknown;
2751
+ }
2752
+ export function createServer(
2753
+ options: ServerOptions,
2754
+ requestListener: (req: IncomingMessage, res: ServerResponse) => void,
2755
+ ): Server;
2756
+ /* One signature with a union first parameter, for the request-fn
2757
+ * ternary's sake (see the http block). A URL target takes no options,
2758
+ * which means Node's defaults — the certificate is verified against
2759
+ * the default trust anchors. */
2760
+ export function request(
2761
+ target: RequestOptions | string | URL,
2762
+ callback?: (res: IncomingMessage) => void,
2763
+ ): ClientRequest;
2764
+ export function get(
2765
+ target: RequestOptions | string | URL,
2766
+ callback?: (res: IncomingMessage) => void,
2767
+ ): ClientRequest;
2768
+ }
2769
+ declare module "node:https" {
2770
+ export * from "https";
2771
+ }
2772
+
2773
+ /* node:http2 — the compatibility surface: allowHTTP1 servers negotiate
2774
+ * h2 or HTTP/1.1 and expose the shared request/response API. HTTP/2
2775
+ * requests retain their backing stream; server session failures surface
2776
+ * through sessionError. */
2777
+ declare module "http2" {
2778
+ import { Socket } from "net";
2779
+ export interface Http2Stream {
2780
+ on(event: "error" | "close", listener: (err: Error) => void): void;
2781
+ once(event: "error" | "close", listener: (err: Error) => void): void;
2782
+ destroy(): void;
2783
+ }
2784
+ export interface Http2ServerRequest {
2785
+ readonly url: string;
2786
+ readonly method: string;
2787
+ readonly statusCode: number | undefined;
2788
+ readonly socket: Socket;
2789
+ readonly headers: { [name: string]: string | undefined };
2790
+ readonly stream: Http2Stream;
2791
+ /* The h2 compat request's version triple ("2.0" over real h2 streams;
2792
+ * the allowHTTP1 lowering's HTTP/1.1 connections answer 1.x). */
2793
+ readonly httpVersion: string;
2794
+ readonly httpVersionMajor: number;
2795
+ readonly httpVersionMinor: number;
2796
+ readonly aborted: boolean;
2797
+ readonly complete: boolean;
2798
+ resume(): void;
2799
+ destroy(): void;
2800
+ setEncoding(encoding: string): void;
2801
+ pipe(destination: Socket | import("http").ClientRequest): void;
2802
+ on(event: "data", listener: (chunk: Buffer) => void): void;
2803
+ on(event: "end" | "close" | "aborted", listener: () => void): void;
2804
+ on(event: "error", listener: (err: Error) => void): void;
2805
+ /* addListener IS on (Node aliases them) — and the compat req IS the
2806
+ * http.IncomingMessage surface, so the alias mirrors here too. */
2807
+ addListener(event: "data", listener: (chunk: Buffer) => void): void;
2808
+ addListener(event: "end" | "close" | "aborted", listener: () => void): void;
2809
+ addListener(event: "error", listener: (err: Error) => void): void;
2810
+ once(event: "data", listener: (chunk: Buffer) => void): void;
2811
+ once(event: "end" | "close" | "aborted", listener: () => void): void;
2812
+ once(event: "error", listener: (err: Error) => void): void;
2813
+ }
2814
+ export interface Http2ServerResponse {
2815
+ readonly headersSent: boolean;
2816
+ readonly writableEnded: boolean;
2817
+ readonly writableCorked: number;
2818
+ /* The same lowered surface as http.ServerResponse — the allowHTTP1
2819
+ * lowering serves every connection as HTTP/1.1, where the compat
2820
+ * response IS this parser's response handle. */
2821
+ statusCode: number;
2822
+ statusMessage: string;
2823
+ setHeader(name: string, value: string | number): void;
2824
+ getHeader(name: string): string | undefined;
2825
+ getHeaderNames(): string[];
2826
+ getRawHeaderNames(): string[];
2827
+ getHeaders(): import("http").OutgoingHttpHeaders;
2828
+ hasHeader(name: string): boolean;
2829
+ removeHeader(name: string): void;
2830
+ writeHead(statusCode: number, headers?: import("http").OutgoingHttpHeaders | string[]): Http2ServerResponse;
2831
+ writeHead(statusCode: number, statusMessage: string, headers?: import("http").OutgoingHttpHeaders | string[]): Http2ServerResponse;
2832
+ writeContinue(): void;
2833
+ writeEarlyHints(hints: Record<string, string | string[]>): void;
2834
+ write(data: string | Uint8Array): void;
2835
+ flushHeaders(): void;
2836
+ cork(): void;
2837
+ uncork(): void;
2838
+ addTrailers(headers: import("http").OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
2839
+ end(data?: string | Uint8Array, callback?: () => void): void;
2840
+ end(callback: () => void): void;
2841
+ destroy(): void;
2842
+ on(event: "close", listener: () => void): void;
2843
+ /* addListener IS on (Node aliases them) — and the compat res IS the
2844
+ * http.ServerResponse surface (assignability into ServerResponse
2845
+ * unions — IncomingMessage.pipe's destination — needs the alias). */
2846
+ addListener(event: "close", listener: () => void): void;
2847
+ once(event: "close", listener: () => void): void;
2848
+ }
2849
+ export interface Http2SecureServer {
2850
+ listen(port: number, callback?: () => void): void;
2851
+ close(callback?: () => void): void;
2852
+ /* The bound AddressInfo (Node answers null before listen — this
2853
+ * surface answers the record with port 0 there, the serverPort
2854
+ * stance). */
2855
+ address(): import("node:dgram").AddressInfo;
2856
+ emit(event: "connection", socket: Socket): void;
2857
+ on(event: "connection", listener: (socket: Socket) => void): void;
2858
+ on(event: "request", listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void): void;
2859
+ on(event: "error", listener: (err: Error) => void): void;
2860
+ on(event: "close", listener: () => void): void;
2861
+ on(event: "sessionError", listener: (err: Error, session: ServerHttp2Session) => void): void;
2862
+ /* The ALPN=h2 server's surface (createSecureServer WITHOUT
2863
+ * allowHTTP1 — the real h2-over-TLS stack): per-stream and
2864
+ * per-session listeners, exactly the h2c server's. */
2865
+ on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
2866
+ on(event: "session", listener: (session: ServerHttp2Session) => void): void;
2867
+ once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
2868
+ once(event: "session", listener: (session: ServerHttp2Session) => void): void;
2869
+ /* HTTP CONNECT (and, in Node, the h2 extended CONNECT — which the
2870
+ * allowHTTP1 lowering never sees): the second argument is the raw
2871
+ * socket on HTTP/1.1 connections; narrow with instanceof. */
2872
+ on(event: "connect", listener: (req: Http2ServerRequest | import("http").IncomingMessage, resOrSocket: Http2ServerResponse | Socket) => void): void;
2873
+ once(event: "connection", listener: (socket: Socket) => void): void;
2874
+ once(event: "request", listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void): void;
2875
+ once(event: "error", listener: (err: Error) => void): void;
2876
+ once(event: "close", listener: () => void): void;
2877
+ }
2878
+ export interface SecureServerOptions {
2879
+ allowHTTP1?: boolean;
2880
+ cert?: string | Uint8Array;
2881
+ key?: string | Uint8Array;
2882
+ SNICallback?: (
2883
+ servername: string,
2884
+ cb: (err: Error | null, ctx?: import("tls").SecureContext) => void,
2885
+ ) => void;
2886
+ /* The options-record stance (see http.RequestOptions): h2 session-
2887
+ * tuning knobs are accepted as literals and ignored (no h2 session
2888
+ * ever exists under the allowHTTP1 lowering); other documented keys
2889
+ * fence by name; undocumented keys drop like Node. */
2890
+ [option: string]: unknown;
2891
+ }
2892
+ /* The full Node v24 constants table (240 members), literal-typed so
2893
+ * computed header keys ([HTTP2_HEADER_PATH]: value) stay literal keys.
2894
+ * Every ACCESS bakes as its literal at lowering; the object itself
2895
+ * never materializes (bare http2.constants value uses fence). */
2896
+ export interface Http2Constants {
2897
+ readonly NGHTTP2_ERR_FRAME_SIZE_ERROR: -522;
2898
+ readonly NGHTTP2_SESSION_SERVER: 0;
2899
+ readonly NGHTTP2_SESSION_CLIENT: 1;
2900
+ readonly NGHTTP2_STREAM_STATE_IDLE: 1;
2901
+ readonly NGHTTP2_STREAM_STATE_OPEN: 2;
2902
+ readonly NGHTTP2_STREAM_STATE_RESERVED_LOCAL: 3;
2903
+ readonly NGHTTP2_STREAM_STATE_RESERVED_REMOTE: 4;
2904
+ readonly NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: 5;
2905
+ readonly NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: 6;
2906
+ readonly NGHTTP2_STREAM_STATE_CLOSED: 7;
2907
+ readonly NGHTTP2_FLAG_NONE: 0;
2908
+ readonly NGHTTP2_FLAG_END_STREAM: 1;
2909
+ readonly NGHTTP2_FLAG_END_HEADERS: 4;
2910
+ readonly NGHTTP2_FLAG_ACK: 1;
2911
+ readonly NGHTTP2_FLAG_PADDED: 8;
2912
+ readonly NGHTTP2_FLAG_PRIORITY: 32;
2913
+ readonly DEFAULT_SETTINGS_HEADER_TABLE_SIZE: 4096;
2914
+ readonly DEFAULT_SETTINGS_ENABLE_PUSH: 1;
2915
+ readonly DEFAULT_SETTINGS_MAX_CONCURRENT_STREAMS: 4294967295;
2916
+ readonly DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: 65535;
2917
+ readonly DEFAULT_SETTINGS_MAX_FRAME_SIZE: 16384;
2918
+ readonly DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE: 65535;
2919
+ readonly DEFAULT_SETTINGS_ENABLE_CONNECT_PROTOCOL: 0;
2920
+ readonly MAX_MAX_FRAME_SIZE: 16777215;
2921
+ readonly MIN_MAX_FRAME_SIZE: 16384;
2922
+ readonly MAX_INITIAL_WINDOW_SIZE: 2147483647;
2923
+ readonly NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: 1;
2924
+ readonly NGHTTP2_SETTINGS_ENABLE_PUSH: 2;
2925
+ readonly NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: 3;
2926
+ readonly NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: 4;
2927
+ readonly NGHTTP2_SETTINGS_MAX_FRAME_SIZE: 5;
2928
+ readonly NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: 6;
2929
+ readonly NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL: 8;
2930
+ readonly PADDING_STRATEGY_NONE: 0;
2931
+ readonly PADDING_STRATEGY_ALIGNED: 1;
2932
+ readonly PADDING_STRATEGY_MAX: 2;
2933
+ readonly PADDING_STRATEGY_CALLBACK: 1;
2934
+ readonly NGHTTP2_NO_ERROR: 0;
2935
+ readonly NGHTTP2_PROTOCOL_ERROR: 1;
2936
+ readonly NGHTTP2_INTERNAL_ERROR: 2;
2937
+ readonly NGHTTP2_FLOW_CONTROL_ERROR: 3;
2938
+ readonly NGHTTP2_SETTINGS_TIMEOUT: 4;
2939
+ readonly NGHTTP2_STREAM_CLOSED: 5;
2940
+ readonly NGHTTP2_FRAME_SIZE_ERROR: 6;
2941
+ readonly NGHTTP2_REFUSED_STREAM: 7;
2942
+ readonly NGHTTP2_CANCEL: 8;
2943
+ readonly NGHTTP2_COMPRESSION_ERROR: 9;
2944
+ readonly NGHTTP2_CONNECT_ERROR: 10;
2945
+ readonly NGHTTP2_ENHANCE_YOUR_CALM: 11;
2946
+ readonly NGHTTP2_INADEQUATE_SECURITY: 12;
2947
+ readonly NGHTTP2_HTTP_1_1_REQUIRED: 13;
2948
+ readonly NGHTTP2_DEFAULT_WEIGHT: 16;
2949
+ readonly HTTP2_HEADER_STATUS: ":status";
2950
+ readonly HTTP2_HEADER_METHOD: ":method";
2951
+ readonly HTTP2_HEADER_AUTHORITY: ":authority";
2952
+ readonly HTTP2_HEADER_SCHEME: ":scheme";
2953
+ readonly HTTP2_HEADER_PATH: ":path";
2954
+ readonly HTTP2_HEADER_PROTOCOL: ":protocol";
2955
+ readonly HTTP2_HEADER_ACCEPT_ENCODING: "accept-encoding";
2956
+ readonly HTTP2_HEADER_ACCEPT_LANGUAGE: "accept-language";
2957
+ readonly HTTP2_HEADER_ACCEPT_RANGES: "accept-ranges";
2958
+ readonly HTTP2_HEADER_ACCEPT: "accept";
2959
+ readonly HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS: "access-control-allow-credentials";
2960
+ readonly HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS: "access-control-allow-headers";
2961
+ readonly HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS: "access-control-allow-methods";
2962
+ readonly HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: "access-control-allow-origin";
2963
+ readonly HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS: "access-control-expose-headers";
2964
+ readonly HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS: "access-control-request-headers";
2965
+ readonly HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD: "access-control-request-method";
2966
+ readonly HTTP2_HEADER_AGE: "age";
2967
+ readonly HTTP2_HEADER_AUTHORIZATION: "authorization";
2968
+ readonly HTTP2_HEADER_CACHE_CONTROL: "cache-control";
2969
+ readonly HTTP2_HEADER_CONNECTION: "connection";
2970
+ readonly HTTP2_HEADER_CONTENT_DISPOSITION: "content-disposition";
2971
+ readonly HTTP2_HEADER_CONTENT_ENCODING: "content-encoding";
2972
+ readonly HTTP2_HEADER_CONTENT_LENGTH: "content-length";
2973
+ readonly HTTP2_HEADER_CONTENT_TYPE: "content-type";
2974
+ readonly HTTP2_HEADER_COOKIE: "cookie";
2975
+ readonly HTTP2_HEADER_DATE: "date";
2976
+ readonly HTTP2_HEADER_ETAG: "etag";
2977
+ readonly HTTP2_HEADER_FORWARDED: "forwarded";
2978
+ readonly HTTP2_HEADER_HOST: "host";
2979
+ readonly HTTP2_HEADER_IF_MODIFIED_SINCE: "if-modified-since";
2980
+ readonly HTTP2_HEADER_IF_NONE_MATCH: "if-none-match";
2981
+ readonly HTTP2_HEADER_IF_RANGE: "if-range";
2982
+ readonly HTTP2_HEADER_LAST_MODIFIED: "last-modified";
2983
+ readonly HTTP2_HEADER_LINK: "link";
2984
+ readonly HTTP2_HEADER_LOCATION: "location";
2985
+ readonly HTTP2_HEADER_RANGE: "range";
2986
+ readonly HTTP2_HEADER_REFERER: "referer";
2987
+ readonly HTTP2_HEADER_SERVER: "server";
2988
+ readonly HTTP2_HEADER_SET_COOKIE: "set-cookie";
2989
+ readonly HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: "strict-transport-security";
2990
+ readonly HTTP2_HEADER_TRANSFER_ENCODING: "transfer-encoding";
2991
+ readonly HTTP2_HEADER_TE: "te";
2992
+ readonly HTTP2_HEADER_UPGRADE_INSECURE_REQUESTS: "upgrade-insecure-requests";
2993
+ readonly HTTP2_HEADER_UPGRADE: "upgrade";
2994
+ readonly HTTP2_HEADER_USER_AGENT: "user-agent";
2995
+ readonly HTTP2_HEADER_VARY: "vary";
2996
+ readonly HTTP2_HEADER_X_CONTENT_TYPE_OPTIONS: "x-content-type-options";
2997
+ readonly HTTP2_HEADER_X_FRAME_OPTIONS: "x-frame-options";
2998
+ readonly HTTP2_HEADER_KEEP_ALIVE: "keep-alive";
2999
+ readonly HTTP2_HEADER_PROXY_CONNECTION: "proxy-connection";
3000
+ readonly HTTP2_HEADER_X_XSS_PROTECTION: "x-xss-protection";
3001
+ readonly HTTP2_HEADER_ALT_SVC: "alt-svc";
3002
+ readonly HTTP2_HEADER_CONTENT_SECURITY_POLICY: "content-security-policy";
3003
+ readonly HTTP2_HEADER_EARLY_DATA: "early-data";
3004
+ readonly HTTP2_HEADER_EXPECT_CT: "expect-ct";
3005
+ readonly HTTP2_HEADER_ORIGIN: "origin";
3006
+ readonly HTTP2_HEADER_PURPOSE: "purpose";
3007
+ readonly HTTP2_HEADER_TIMING_ALLOW_ORIGIN: "timing-allow-origin";
3008
+ readonly HTTP2_HEADER_X_FORWARDED_FOR: "x-forwarded-for";
3009
+ readonly HTTP2_HEADER_PRIORITY: "priority";
3010
+ readonly HTTP2_HEADER_ACCEPT_CHARSET: "accept-charset";
3011
+ readonly HTTP2_HEADER_ACCESS_CONTROL_MAX_AGE: "access-control-max-age";
3012
+ readonly HTTP2_HEADER_ALLOW: "allow";
3013
+ readonly HTTP2_HEADER_CONTENT_LANGUAGE: "content-language";
3014
+ readonly HTTP2_HEADER_CONTENT_LOCATION: "content-location";
3015
+ readonly HTTP2_HEADER_CONTENT_MD5: "content-md5";
3016
+ readonly HTTP2_HEADER_CONTENT_RANGE: "content-range";
3017
+ readonly HTTP2_HEADER_DNT: "dnt";
3018
+ readonly HTTP2_HEADER_EXPECT: "expect";
3019
+ readonly HTTP2_HEADER_EXPIRES: "expires";
3020
+ readonly HTTP2_HEADER_FROM: "from";
3021
+ readonly HTTP2_HEADER_IF_MATCH: "if-match";
3022
+ readonly HTTP2_HEADER_IF_UNMODIFIED_SINCE: "if-unmodified-since";
3023
+ readonly HTTP2_HEADER_MAX_FORWARDS: "max-forwards";
3024
+ readonly HTTP2_HEADER_PREFER: "prefer";
3025
+ readonly HTTP2_HEADER_PROXY_AUTHENTICATE: "proxy-authenticate";
3026
+ readonly HTTP2_HEADER_PROXY_AUTHORIZATION: "proxy-authorization";
3027
+ readonly HTTP2_HEADER_REFRESH: "refresh";
3028
+ readonly HTTP2_HEADER_RETRY_AFTER: "retry-after";
3029
+ readonly HTTP2_HEADER_TRAILER: "trailer";
3030
+ readonly HTTP2_HEADER_TK: "tk";
3031
+ readonly HTTP2_HEADER_VIA: "via";
3032
+ readonly HTTP2_HEADER_WARNING: "warning";
3033
+ readonly HTTP2_HEADER_WWW_AUTHENTICATE: "www-authenticate";
3034
+ readonly HTTP2_HEADER_HTTP2_SETTINGS: "http2-settings";
3035
+ readonly HTTP2_METHOD_ACL: "ACL";
3036
+ readonly HTTP2_METHOD_BASELINE_CONTROL: "BASELINE-CONTROL";
3037
+ readonly HTTP2_METHOD_BIND: "BIND";
3038
+ readonly HTTP2_METHOD_CHECKIN: "CHECKIN";
3039
+ readonly HTTP2_METHOD_CHECKOUT: "CHECKOUT";
3040
+ readonly HTTP2_METHOD_CONNECT: "CONNECT";
3041
+ readonly HTTP2_METHOD_COPY: "COPY";
3042
+ readonly HTTP2_METHOD_DELETE: "DELETE";
3043
+ readonly HTTP2_METHOD_GET: "GET";
3044
+ readonly HTTP2_METHOD_HEAD: "HEAD";
3045
+ readonly HTTP2_METHOD_LABEL: "LABEL";
3046
+ readonly HTTP2_METHOD_LINK: "LINK";
3047
+ readonly HTTP2_METHOD_LOCK: "LOCK";
3048
+ readonly HTTP2_METHOD_MERGE: "MERGE";
3049
+ readonly HTTP2_METHOD_MKACTIVITY: "MKACTIVITY";
3050
+ readonly HTTP2_METHOD_MKCALENDAR: "MKCALENDAR";
3051
+ readonly HTTP2_METHOD_MKCOL: "MKCOL";
3052
+ readonly HTTP2_METHOD_MKREDIRECTREF: "MKREDIRECTREF";
3053
+ readonly HTTP2_METHOD_MKWORKSPACE: "MKWORKSPACE";
3054
+ readonly HTTP2_METHOD_MOVE: "MOVE";
3055
+ readonly HTTP2_METHOD_OPTIONS: "OPTIONS";
3056
+ readonly HTTP2_METHOD_ORDERPATCH: "ORDERPATCH";
3057
+ readonly HTTP2_METHOD_PATCH: "PATCH";
3058
+ readonly HTTP2_METHOD_POST: "POST";
3059
+ readonly HTTP2_METHOD_PRI: "PRI";
3060
+ readonly HTTP2_METHOD_PROPFIND: "PROPFIND";
3061
+ readonly HTTP2_METHOD_PROPPATCH: "PROPPATCH";
3062
+ readonly HTTP2_METHOD_PUT: "PUT";
3063
+ readonly HTTP2_METHOD_REBIND: "REBIND";
3064
+ readonly HTTP2_METHOD_REPORT: "REPORT";
3065
+ readonly HTTP2_METHOD_SEARCH: "SEARCH";
3066
+ readonly HTTP2_METHOD_TRACE: "TRACE";
3067
+ readonly HTTP2_METHOD_UNBIND: "UNBIND";
3068
+ readonly HTTP2_METHOD_UNCHECKOUT: "UNCHECKOUT";
3069
+ readonly HTTP2_METHOD_UNLINK: "UNLINK";
3070
+ readonly HTTP2_METHOD_UNLOCK: "UNLOCK";
3071
+ readonly HTTP2_METHOD_UPDATE: "UPDATE";
3072
+ readonly HTTP2_METHOD_UPDATEREDIRECTREF: "UPDATEREDIRECTREF";
3073
+ readonly HTTP2_METHOD_VERSION_CONTROL: "VERSION-CONTROL";
3074
+ readonly HTTP_STATUS_CONTINUE: 100;
3075
+ readonly HTTP_STATUS_SWITCHING_PROTOCOLS: 101;
3076
+ readonly HTTP_STATUS_PROCESSING: 102;
3077
+ readonly HTTP_STATUS_EARLY_HINTS: 103;
3078
+ readonly HTTP_STATUS_OK: 200;
3079
+ readonly HTTP_STATUS_CREATED: 201;
3080
+ readonly HTTP_STATUS_ACCEPTED: 202;
3081
+ readonly HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: 203;
3082
+ readonly HTTP_STATUS_NO_CONTENT: 204;
3083
+ readonly HTTP_STATUS_RESET_CONTENT: 205;
3084
+ readonly HTTP_STATUS_PARTIAL_CONTENT: 206;
3085
+ readonly HTTP_STATUS_MULTI_STATUS: 207;
3086
+ readonly HTTP_STATUS_ALREADY_REPORTED: 208;
3087
+ readonly HTTP_STATUS_IM_USED: 226;
3088
+ readonly HTTP_STATUS_MULTIPLE_CHOICES: 300;
3089
+ readonly HTTP_STATUS_MOVED_PERMANENTLY: 301;
3090
+ readonly HTTP_STATUS_FOUND: 302;
3091
+ readonly HTTP_STATUS_SEE_OTHER: 303;
3092
+ readonly HTTP_STATUS_NOT_MODIFIED: 304;
3093
+ readonly HTTP_STATUS_USE_PROXY: 305;
3094
+ readonly HTTP_STATUS_TEMPORARY_REDIRECT: 307;
3095
+ readonly HTTP_STATUS_PERMANENT_REDIRECT: 308;
3096
+ readonly HTTP_STATUS_BAD_REQUEST: 400;
3097
+ readonly HTTP_STATUS_UNAUTHORIZED: 401;
3098
+ readonly HTTP_STATUS_PAYMENT_REQUIRED: 402;
3099
+ readonly HTTP_STATUS_FORBIDDEN: 403;
3100
+ readonly HTTP_STATUS_NOT_FOUND: 404;
3101
+ readonly HTTP_STATUS_METHOD_NOT_ALLOWED: 405;
3102
+ readonly HTTP_STATUS_NOT_ACCEPTABLE: 406;
3103
+ readonly HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: 407;
3104
+ readonly HTTP_STATUS_REQUEST_TIMEOUT: 408;
3105
+ readonly HTTP_STATUS_CONFLICT: 409;
3106
+ readonly HTTP_STATUS_GONE: 410;
3107
+ readonly HTTP_STATUS_LENGTH_REQUIRED: 411;
3108
+ readonly HTTP_STATUS_PRECONDITION_FAILED: 412;
3109
+ readonly HTTP_STATUS_PAYLOAD_TOO_LARGE: 413;
3110
+ readonly HTTP_STATUS_URI_TOO_LONG: 414;
3111
+ readonly HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: 415;
3112
+ readonly HTTP_STATUS_RANGE_NOT_SATISFIABLE: 416;
3113
+ readonly HTTP_STATUS_EXPECTATION_FAILED: 417;
3114
+ readonly HTTP_STATUS_TEAPOT: 418;
3115
+ readonly HTTP_STATUS_MISDIRECTED_REQUEST: 421;
3116
+ readonly HTTP_STATUS_UNPROCESSABLE_ENTITY: 422;
3117
+ readonly HTTP_STATUS_LOCKED: 423;
3118
+ readonly HTTP_STATUS_FAILED_DEPENDENCY: 424;
3119
+ readonly HTTP_STATUS_TOO_EARLY: 425;
3120
+ readonly HTTP_STATUS_UPGRADE_REQUIRED: 426;
3121
+ readonly HTTP_STATUS_PRECONDITION_REQUIRED: 428;
3122
+ readonly HTTP_STATUS_TOO_MANY_REQUESTS: 429;
3123
+ readonly HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
3124
+ readonly HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: 451;
3125
+ readonly HTTP_STATUS_INTERNAL_SERVER_ERROR: 500;
3126
+ readonly HTTP_STATUS_NOT_IMPLEMENTED: 501;
3127
+ readonly HTTP_STATUS_BAD_GATEWAY: 502;
3128
+ readonly HTTP_STATUS_SERVICE_UNAVAILABLE: 503;
3129
+ readonly HTTP_STATUS_GATEWAY_TIMEOUT: 504;
3130
+ readonly HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: 505;
3131
+ readonly HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: 506;
3132
+ readonly HTTP_STATUS_INSUFFICIENT_STORAGE: 507;
3133
+ readonly HTTP_STATUS_LOOP_DETECTED: 508;
3134
+ readonly HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: 509;
3135
+ readonly HTTP_STATUS_NOT_EXTENDED: 510;
3136
+ readonly HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: 511;
3137
+ }
3138
+ export const constants: Http2Constants;
3139
+ /* The eager handler is the first COMPAT 'request' listener — Node's
3140
+ * route on either flavor (the allowHTTP1 server's HTTP/1.1 handles,
3141
+ * the ALPN=h2 server's compat handles over streams). */
3142
+ export function createSecureServer(
3143
+ options: SecureServerOptions,
3144
+ onRequestHandler?: (req: import("http").IncomingMessage, res: import("http").ServerResponse) => void,
3145
+ ): Http2SecureServer;
3146
+
3147
+ /* ── the REAL h2c surface (scr_http2.c: frame codec + HPACK over the
3148
+ * net loop) — createServer/connect and the session/stream handles the
3149
+ * Node suite's http2 family exercises. Headers cross as the canonical
3150
+ * header record (the IncomingHttpHeaders index-signature shape); the
3151
+ * response :status reads back as a number. Members declared here
3152
+ * without a lowering fence by name at their use sites. */
3153
+
3154
+ /** The http2 module's own header shapes: pure index-signature records
3155
+ * (the HEADER-FAMILY canonicalization — string[] arm included). */
3156
+ export interface IncomingHttpHeaders {
3157
+ [name: string]: number | string | string[] | undefined;
3158
+ }
3159
+ export interface OutgoingHttpHeaders {
3160
+ [name: string]: number | string | string[] | undefined;
3161
+ }
3162
+
3163
+ export interface Http2Session {
3164
+ close(callback?: () => void): void;
3165
+ destroy(): void;
3166
+ readonly closed: boolean;
3167
+ readonly destroyed: boolean;
3168
+ readonly encrypted: boolean;
3169
+ readonly type: number;
3170
+ readonly alpnProtocol: string;
3171
+ readonly socket: import("net").Socket;
3172
+ readonly pendingSettingsAck: boolean;
3173
+ ref(): void;
3174
+ unref(): void;
3175
+ setTimeout(msecs: number, callback?: () => void): void;
3176
+ ping(callback: (err: Error | null, duration: number, payload: Uint8Array) => void): boolean;
3177
+ /* The settings surface rides the checked-dynamic machinery (records
3178
+ * cross as dyn values — the suite's mustCall listeners are dyn). */
3179
+ settings(settings?: any, callback?: any): void;
3180
+ readonly localSettings: any;
3181
+ readonly remoteSettings: any;
3182
+ goaway(code?: number, lastStreamID?: number, opaqueData?: Uint8Array): void;
3183
+ on(event: "close" | "timeout", listener: () => void): void;
3184
+ on(event: "error", listener: (err: Error) => void): void;
3185
+ on(event: "connect", listener: (session: Http2Session, socket: import("net").Socket) => void): void;
3186
+ on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3187
+ on(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Uint8Array) => void): void;
3188
+ on(event: "localSettings" | "remoteSettings", listener: (settings: any) => void): void;
3189
+ on(event: "frameError", listener: (type: number, code: number, id: number) => void): void;
3190
+ on(event: "ping", listener: (payload: Uint8Array) => void): void;
3191
+ once(event: "close" | "timeout", listener: () => void): void;
3192
+ once(event: "error", listener: (err: Error) => void): void;
3193
+ once(event: "connect", listener: (session: Http2Session, socket: import("net").Socket) => void): void;
3194
+ once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3195
+ once(event: "goaway", listener: (errorCode: number, lastStreamID: number, opaqueData?: Uint8Array) => void): void;
3196
+ once(event: "localSettings" | "remoteSettings", listener: (settings: any) => void): void;
3197
+ }
3198
+
3199
+ export interface ClientHttp2Session extends Http2Session {
3200
+ request(headers?: OutgoingHttpHeaders, options?: { endStream?: boolean; exclusive?: boolean; parent?: number; weight?: number; waitForTrailers?: boolean }): ClientHttp2Stream;
3201
+ }
3202
+
3203
+ export interface ServerHttp2Session extends Http2Session {
3204
+ altsvc(alt: string, originOrStream: number | string): void;
3205
+ origin(...origins: string[]): void;
3206
+ }
3207
+
3208
+ /** The shared Http2Stream core (both roles). 'data' chunks are Buffers
3209
+ * (strings once setEncoding('utf8') is in force — the IncomingMessage
3210
+ * chunk:any stance keeps both working). */
3211
+ interface Http2StreamCore {
3212
+ readonly id: number | undefined;
3213
+ readonly rstCode: number;
3214
+ readonly closed: boolean;
3215
+ readonly destroyed: boolean;
3216
+ readonly pending: boolean;
3217
+ readonly aborted: boolean;
3218
+ readonly session: Http2Session;
3219
+ readonly sentHeaders: OutgoingHttpHeaders;
3220
+ readonly state: Record<string, number>;
3221
+ write(chunk: string | Uint8Array, callback?: (err?: Error | null) => void): boolean;
3222
+ end(data?: string | Uint8Array, callback?: () => void): void;
3223
+ end(callback: () => void): void;
3224
+ close(code?: number, callback?: () => void): void;
3225
+ destroy(error?: Error): void;
3226
+ setEncoding(encoding: string): this;
3227
+ resume(): void;
3228
+ pause(): void;
3229
+ setTimeout(msecs: number, callback?: () => void): void;
3230
+ priority(options: Record<string, number | boolean>): void;
3231
+ sendTrailers(headers: OutgoingHttpHeaders): void;
3232
+ }
3233
+
3234
+ export interface ServerHttp2Stream extends Http2StreamCore {
3235
+ on(event: "data", listener: (chunk: any) => void): void;
3236
+ on(event: "end" | "close" | "aborted" | "ready" | "timeout" | "drain" | "finish" | "wantTrailers", listener: () => void): void;
3237
+ on(event: "error", listener: (err: Error) => void): void;
3238
+ on(event: "frameError", listener: (type: number, code: number, id: number) => void): void;
3239
+ on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): void;
3240
+ once(event: "data", listener: (chunk: any) => void): void;
3241
+ once(event: "end" | "close" | "aborted" | "ready" | "timeout" | "drain" | "finish" | "wantTrailers", listener: () => void): void;
3242
+ once(event: "error", listener: (err: Error) => void): void;
3243
+ once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): void;
3244
+ respond(headers?: OutgoingHttpHeaders, options?: { endStream?: boolean; waitForTrailers?: boolean }): void;
3245
+ respondWithFile(path: string, headers?: OutgoingHttpHeaders, options?: Record<string, unknown>): void;
3246
+ respondWithFD(fd: number, headers?: OutgoingHttpHeaders, options?: Record<string, unknown>): void;
3247
+ pushStream(headers: OutgoingHttpHeaders, callback: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void;
3248
+ readonly headersSent: boolean;
3249
+ readonly pushAllowed: boolean;
3250
+ additionalHeaders(headers: OutgoingHttpHeaders): void;
3251
+ }
3252
+
3253
+ export interface ClientHttp2Stream extends Http2StreamCore {
3254
+ on(event: "response", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3255
+ on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3256
+ on(event: "headers", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3257
+ on(event: "data", listener: (chunk: any) => void): void;
3258
+ on(event: "end" | "close" | "aborted" | "ready" | "timeout" | "drain" | "finish" | "wantTrailers", listener: () => void): void;
3259
+ on(event: "error", listener: (err: Error) => void): void;
3260
+ on(event: "frameError", listener: (type: number, code: number, id: number) => void): void;
3261
+ on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): void;
3262
+ once(event: "response", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3263
+ once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): void;
3264
+ once(event: "data", listener: (chunk: any) => void): void;
3265
+ once(event: "end" | "close" | "aborted" | "ready" | "timeout" | "drain" | "finish" | "wantTrailers", listener: () => void): void;
3266
+ once(event: "error", listener: (err: Error) => void): void;
3267
+ }
3268
+
3269
+ export interface Http2Server {
3270
+ listen(port?: number, callback?: () => void): void;
3271
+ listen(port: number, host: string, callback?: () => void): void;
3272
+ close(callback?: () => void): void;
3273
+ address(): import("node:dgram").AddressInfo;
3274
+ setTimeout(msecs?: number, callback?: () => void): void;
3275
+ ref(): void;
3276
+ unref(): void;
3277
+ on(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3278
+ on(event: "session", listener: (session: ServerHttp2Session) => void): void;
3279
+ on(event: "request", listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void): void;
3280
+ on(event: "error", listener: (err: Error) => void): void;
3281
+ on(event: "close" | "listening" | "timeout", listener: () => void): void;
3282
+ on(event: "connection", listener: (socket: import("net").Socket) => void): void;
3283
+ on(event: "sessionError", listener: (err: Error, session: ServerHttp2Session) => void): void;
3284
+ once(event: "stream", listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): void;
3285
+ once(event: "session", listener: (session: ServerHttp2Session) => void): void;
3286
+ once(event: "request", listener: (req: Http2ServerRequest, res: Http2ServerResponse) => void): void;
3287
+ once(event: "error", listener: (err: Error) => void): void;
3288
+ once(event: "close" | "listening" | "timeout", listener: () => void): void;
3289
+ }
3290
+
3291
+ export interface ServerOptions {
3292
+ [option: string]: unknown;
3293
+ }
3294
+
3295
+ export function createServer(onRequestHandler?: (req: Http2ServerRequest, res: Http2ServerResponse) => void): Http2Server;
3296
+ export function createServer(options: ServerOptions, onRequestHandler?: (req: Http2ServerRequest, res: Http2ServerResponse) => void): Http2Server;
3297
+
3298
+ export function connect(authority: string, listener?: (session: ClientHttp2Session, socket: import("net").Socket) => void): ClientHttp2Session;
3299
+ export function connect(authority: string, options: Record<string, unknown>, listener?: (session: ClientHttp2Session, socket: import("net").Socket) => void): ClientHttp2Session;
3300
+
3301
+ export function getDefaultSettings(): any;
3302
+ export function getPackedSettings(settings: Record<string, number | boolean>): Uint8Array;
3303
+ export const sensitiveHeaders: unique symbol;
3304
+ }
3305
+ declare module "node:http2" {
3306
+ export * from "http2";
3307
+ }
3308
+
3309
+ /* node:dgram — UDP sockets over the event loop (scr_dgram.c, linked only
3310
+ * into using binaries). createSocket takes "udp4" or the
3311
+ * { type: "udp4", reuseAddr? } literal; bind/connect bind NOW and defer
3312
+ * 'listening'/'connect' to the next loop turn; send takes one string or
3313
+ * Buffer datagram with an explicit port + address (the connected-send
3314
+ * and callback forms have no lowering); address() returns the real
3315
+ * {address, family, port} record and THROWS "Not running" before bind,
3316
+ * like Node. 'error' with no listener exits 1 (the unhandled
3317
+ * EventEmitter 'error' behavior). Multicast has no lowering. */
3318
+ declare module "dgram" {
3319
+ export interface AddressInfo {
3320
+ address: string;
3321
+ family: string;
3322
+ port: number;
3323
+ }
3324
+ export interface RemoteInfo {
3325
+ address: string;
3326
+ family: string;
3327
+ port: number;
3328
+ size: number;
3329
+ }
3330
+ export interface Socket {
3331
+ bind(port: number, address?: string, callback?: () => void): void;
3332
+ connect(port: number, address?: string, callback?: () => void): void;
3333
+ send(msg: string | Uint8Array, port: number, address: string): void;
3334
+ address(): AddressInfo;
3335
+ close(callback?: () => void): void;
3336
+ unref(): void;
3337
+ ref(): void;
3338
+ on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): void;
3339
+ on(event: "listening" | "close" | "connect", listener: () => void): void;
3340
+ on(event: "error", listener: (err: Error) => void): void;
3341
+ once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): void;
3342
+ once(event: "listening" | "close" | "connect", listener: () => void): void;
3343
+ once(event: "error", listener: (err: Error) => void): void;
3344
+ }
3345
+ export function createSocket(type: "udp4"): Socket;
3346
+ export function createSocket(options: { type: "udp4"; reuseAddr?: boolean }): Socket;
3347
+ }
3348
+ declare module "node:dgram" {
3349
+ export * from "dgram";
3350
+ }
3351
+
3352
+ /* node:dns — the lookup slice (scr_dgram.c hosts it; getaddrinfo runs AT
3353
+ * CALL TIME and the callback defers to the next loop turn — SEMANTICS.md
3354
+ * documents the blocking divergence). Only the { family: 4 } options
3355
+ * form lowers; failures deliver Node's error shape ("getaddrinfo
3356
+ * ENOTFOUND <hostname>") as the callback's Error argument, with "" for
3357
+ * the address where Node passes undefined. */
3358
+ declare module "dns" {
3359
+ export function lookup(
3360
+ hostname: string,
3361
+ /* The options-record stance (see http.RequestOptions): family is the
3362
+ * lowered option ({ family: 4 }); hints/all/order/verbatim fence by
3363
+ * name; undocumented keys drop like Node. */
3364
+ options: { family: number; [option: string]: unknown },
3365
+ callback: (err: Error | null, address: string, family: number) => void,
3366
+ ): void;
3367
+ }
3368
+ declare module "node:dns" {
3369
+ export * from "dns";
3370
+ }
3371
+
3372
+ /* node:worker_threads — the MAIN-THREAD slice only. A compiled binary is
3373
+ * always the main thread (no JS-engine thread machinery exists), so
3374
+ * isMainThread lowers to `true` and threadId to 0 — Node's main-thread
3375
+ * answers exactly. Worker itself is declared surface without a lowering:
3376
+ * constructing one fences at the site; the CLASS as a value participates
3377
+ * in identity-only flows. */
3378
+ declare module "worker_threads" {
3379
+ export const isMainThread: boolean;
3380
+ export const threadId: number;
3381
+ export class Worker {
3382
+ constructor(filename: string | URL, options?: unknown);
3383
+ on(event: string, listener: (...args: unknown[]) => void): void;
3384
+ postMessage(value: unknown): void;
3385
+ terminate(): Promise<number>;
3386
+ }
3387
+ export const parentPort: unknown;
3388
+ export const workerData: unknown;
3389
+ }
3390
+ declare module "node:worker_threads" {
3391
+ export * from "worker_threads";
3392
+ }
3393
+
3394
+ /* node:buffer — the module spelling of the Buffer/atob/btoa globals.
3395
+ * Buffer re-exports the GLOBAL declaration, so an imported binding
3396
+ * resolves to the same symbol the lowerings already answer for (and
3397
+ * third-party .d.ts files that `import { Buffer } from "node:buffer"` —
3398
+ * file-entry-cache in a typed-JS source graph — typecheck). */
3399
+ declare module "buffer" {
3400
+ export function atob(data: string): string;
3401
+ export function btoa(data: string): string;
3402
+ export const kMaxLength: number;
3403
+ export const kStringMaxLength: number;
3404
+ export const Buffer: BufferConstructor;
3405
+ }
3406
+ declare module "node:buffer" {
3407
+ export * from "buffer";
3408
+ }
3409
+
3410
+ /* node:cluster — the primary-probe slice. A compiled binary never runs
3411
+ * as a cluster worker (cluster forks the node binary itself — the
3412
+ * mechanism is na for compiled programs), so isPrimary lowers to `true`
3413
+ * and isWorker to `false`; everything else is undeclared. */
3414
+ declare module "cluster" {
3415
+ const cluster: {
3416
+ readonly isPrimary: boolean;
3417
+ readonly isMaster: boolean;
3418
+ readonly isWorker: boolean;
3419
+ };
3420
+ export = cluster;
3421
+ }
3422
+ declare module "node:cluster" {
3423
+ import cluster = require("cluster");
3424
+ export = cluster;
3425
+ }
3426
+
3427
+ /* node:tty — the fd probe (the same isatty(3) behind process.*.isTTY)
3428
+ * and the supported structural view of a process output stream. */
3429
+ declare module "tty" {
3430
+ export interface WriteStream {
3431
+ write(data: string | Uint8Array, callback?: (error?: Error | null) => void): boolean;
3432
+ write(data: string | Uint8Array, encoding: BufferEncoding, callback?: (error?: Error | null) => void): boolean;
3433
+ readonly isTTY: boolean;
3434
+ }
3435
+ export function isatty(fd: number): boolean;
3436
+ }
3437
+ declare module "node:tty" {
3438
+ export * from "tty";
3439
+ }
3440
+
3441
+ /* node:async_hooks — declared surface without lowering: async-hook
3442
+ * instrumentation is guarded behind env flags in harness code; a reached
3443
+ * use fences at its site. */
3444
+ declare module "async_hooks" {
3445
+ /* AsyncLocalStorage: fiber-carried context snapshots — run/getStore/
3446
+ * exit/enterWith/disable lower onto the runtime's active-slot machinery
3447
+ * (als.* libCalls); values cross as dyn values. */
3448
+ export class AsyncLocalStorage<T = any> {
3449
+ constructor();
3450
+ run<R>(store: T, callback: (...args: any[]) => R, ...args: any[]): R;
3451
+ exit<R>(callback: (...args: any[]) => R, ...args: any[]): R;
3452
+ getStore(): T | undefined;
3453
+ enterWith(store: T): void;
3454
+ disable(): void;
3455
+ }
3456
+ export interface AsyncHook {
3457
+ enable(): AsyncHook;
3458
+ disable(): AsyncHook;
3459
+ }
3460
+ export function createHook(callbacks: {
3461
+ init?: (asyncId: number, type: string, triggerAsyncId: number, resource: unknown) => void;
3462
+ before?: (asyncId: number) => void;
3463
+ after?: (asyncId: number) => void;
3464
+ destroy?: (asyncId: number) => void;
3465
+ }): AsyncHook;
3466
+ export function executionAsyncId(): number;
3467
+ export function triggerAsyncId(): number;
3468
+ }
3469
+ declare module "node:async_hooks" {
3470
+ export * from "async_hooks";
3471
+ }
3472
+ /* node:events — the EventEmitter class (the module object IS the class,
3473
+ * like Node's `module.exports = EventEmitter`). Listener/emit signatures
3474
+ * mirror @types/node's untyped `...args: any[]` surface; the compiler's
3475
+ * lowering unifies each event name's argument tuple program-wide and
3476
+ * checks annotated listener parameters against it (unannotated non-empty
3477
+ * parameter lists have no static types and fence at the registration). */
3478
+ declare module "events" {
3479
+ class EventEmitter {
3480
+ constructor();
3481
+ static defaultMaxListeners: number;
3482
+ on(eventName: string, listener: (...args: any[]) => void): this;
3483
+ addListener(eventName: string, listener: (...args: any[]) => void): this;
3484
+ once(eventName: string, listener: (...args: any[]) => void): this;
3485
+ prependListener(eventName: string, listener: (...args: any[]) => void): this;
3486
+ prependOnceListener(eventName: string, listener: (...args: any[]) => void): this;
3487
+ off(eventName: string, listener: (...args: any[]) => void): this;
3488
+ removeListener(eventName: string, listener: (...args: any[]) => void): this;
3489
+ removeAllListeners(eventName?: string): this;
3490
+ emit(eventName: string, ...args: any[]): boolean;
3491
+ listenerCount(eventName: string, listener?: (...args: any[]) => void): number;
3492
+ /* Declared as zero-parameter closures so the RESULT is statically
3493
+ * consumable (.length, indexing, identity): the lowering only admits
3494
+ * these calls for events whose argument tuple is empty — a listener
3495
+ * pulled from the array is then safely callable too. Events with
3496
+ * arguments fence (their element type would lie). */
3497
+ listeners(eventName: string): Array<() => void>;
3498
+ rawListeners(eventName: string): Array<() => void>;
3499
+ eventNames(): string[];
3500
+ setMaxListeners(n: number): this;
3501
+ getMaxListeners(): number;
3502
+ }
3503
+ import internal = require("node:events");
3504
+ namespace EventEmitter {
3505
+ // The class under its own name, so `import { EventEmitter }` resolves
3506
+ // (the @types/node namespace-alias pattern).
3507
+ export { internal as EventEmitter };
3508
+ export function once(emitter: EventEmitter, eventName: string): Promise<any[]>;
3509
+ }
3510
+ export = EventEmitter;
3511
+ }
3512
+ declare module "node:events" {
3513
+ import events = require("events");
3514
+ export = events;
3515
+ }
3516
+
3517
+ /* node:stream — the static stream classes (runtime-provided, the
3518
+ * EventEmitter-hierarchy precedent). Phase 1 is the OPTIONS-OBJECT
3519
+ * constructor surface: `new Readable({ read() {} })`, `new Writable({
3520
+ * write(chunk, enc, cb) {} })`, Duplex/Transform/PassThrough, push/read,
3521
+ * flowing vs paused, write/end backpressure + 'drain', pipe/unpipe, and
3522
+ * destroy — with Node's event orderings. Chunks are BYTES (Buffer), with
3523
+ * utf8 strings converted at push/write like Node; objectMode and
3524
+ * setEncoding are declared so uses fence at their sites with their own
3525
+ * words. `class My extends Readable` (the _read override form) is a
3526
+ * separate feature and fences at the class declaration. The runtime-fired
3527
+ * events carry per-class FORCED argument tuples ('data' is one Buffer,
3528
+ * 'error' one Error, 'pipe'/'unpipe' one Readable, the rest empty) — the
3529
+ * overloads below hand tsc the same contract so unannotated listener
3530
+ * parameters contextually type in .js sources. */
3531
+ declare module "stream" {
3532
+ import { EventEmitter } from "events";
3533
+
3534
+ interface ReadableOptions {
3535
+ highWaterMark?: number;
3536
+ encoding?: string;
3537
+ objectMode?: boolean;
3538
+ read?(this: Readable, size: number): void;
3539
+ destroy?(this: Readable, error: Error | null, callback: (error?: Error | null) => void): void;
3540
+ construct?(this: Readable, callback: (error?: Error | null) => void): void;
3541
+ autoDestroy?: boolean;
3542
+ emitClose?: boolean;
3543
+ captureRejections?: boolean;
3544
+ defaultEncoding?: string;
3545
+ signal?: unknown;
3546
+ }
3547
+ interface WritableOptions {
3548
+ highWaterMark?: number;
3549
+ decodeStrings?: boolean;
3550
+ defaultEncoding?: string;
3551
+ objectMode?: boolean;
3552
+ write?(this: Writable, chunk: Buffer, encoding: string, callback: (error?: Error | null) => void): void;
3553
+ writev?(this: Writable, chunks: unknown[], callback: (error?: Error | null) => void): void;
3554
+ final?(this: Writable, callback: (error?: Error | null) => void): void;
3555
+ destroy?(this: Writable, error: Error | null, callback: (error?: Error | null) => void): void;
3556
+ construct?(this: Writable, callback: (error?: Error | null) => void): void;
3557
+ autoDestroy?: boolean;
3558
+ emitClose?: boolean;
3559
+ captureRejections?: boolean;
3560
+ signal?: unknown;
3561
+ }
3562
+ interface DuplexOptions {
3563
+ highWaterMark?: number;
3564
+ readableHighWaterMark?: number;
3565
+ writableHighWaterMark?: number;
3566
+ encoding?: string;
3567
+ decodeStrings?: boolean;
3568
+ objectMode?: boolean;
3569
+ readableObjectMode?: boolean;
3570
+ writableObjectMode?: boolean;
3571
+ allowHalfOpen?: boolean;
3572
+ read?(this: Duplex, size: number): void;
3573
+ write?(this: Duplex, chunk: Buffer, encoding: string, callback: (error?: Error | null) => void): void;
3574
+ final?(this: Duplex, callback: (error?: Error | null) => void): void;
3575
+ destroy?(this: Duplex, error: Error | null, callback: (error?: Error | null) => void): void;
3576
+ construct?(this: Duplex, callback: (error?: Error | null) => void): void;
3577
+ autoDestroy?: boolean;
3578
+ emitClose?: boolean;
3579
+ captureRejections?: boolean;
3580
+ readable?: boolean;
3581
+ writable?: boolean;
3582
+ defaultEncoding?: string;
3583
+ writev?(this: Duplex, chunks: unknown[], callback: (error?: Error | null) => void): void;
3584
+ signal?: unknown;
3585
+ }
3586
+ interface TransformOptions {
3587
+ highWaterMark?: number;
3588
+ readableHighWaterMark?: number;
3589
+ writableHighWaterMark?: number;
3590
+ encoding?: string;
3591
+ decodeStrings?: boolean;
3592
+ objectMode?: boolean;
3593
+ readableObjectMode?: boolean;
3594
+ writableObjectMode?: boolean;
3595
+ allowHalfOpen?: boolean;
3596
+ transform?(this: Transform, chunk: Buffer, encoding: string, callback: (error?: Error | null, data?: Buffer | string) => void): void;
3597
+ flush?(this: Transform, callback: (error?: Error | null, data?: Buffer | string) => void): void;
3598
+ destroy?(this: Transform, error: Error | null, callback: (error?: Error | null) => void): void;
3599
+ construct?(this: Transform, callback: (error?: Error | null) => void): void;
3600
+ read?(this: Transform, size: number): void;
3601
+ write?(this: Transform, chunk: Buffer, encoding: string, callback: (error?: Error | null) => void): void;
3602
+ final?(this: Transform, callback: (error?: Error | null) => void): void;
3603
+ writev?(this: Transform, chunks: unknown[], callback: (error?: Error | null) => void): void;
3604
+ autoDestroy?: boolean;
3605
+ emitClose?: boolean;
3606
+ captureRejections?: boolean;
3607
+ readable?: boolean;
3608
+ writable?: boolean;
3609
+ defaultEncoding?: string;
3610
+ signal?: unknown;
3611
+ }
3612
+
3613
+ class Readable extends EventEmitter {
3614
+ constructor(opts?: ReadableOptions);
3615
+ /* The underscore-method surface (@types/node declares these on the
3616
+ * classes; assigning them post-construction shadows the prototype
3617
+ * method and the machinery calls through the assignment — lowered
3618
+ * onto the option-callback slots). */
3619
+ _read(size: number): void;
3620
+ _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
3621
+ [Symbol.asyncIterator](): AsyncIterableIterator<any>;
3622
+ iterator(options?: { destroyOnReturn?: boolean }): AsyncIterableIterator<any>;
3623
+ push(chunk: Buffer | string | null, encoding?: string): boolean;
3624
+ unshift(chunk: Buffer | string, encoding?: string): void;
3625
+ read(size?: number): Buffer | null;
3626
+ pause(): this;
3627
+ resume(): this;
3628
+ isPaused(): boolean;
3629
+ setEncoding(encoding: string): this;
3630
+ pipe<T extends Writable>(destination: T, options?: { end?: boolean }): T;
3631
+ unpipe(destination?: Writable): this;
3632
+ destroy(error?: Error): this;
3633
+ readonly readable: boolean;
3634
+ readonly readableEnded: boolean;
3635
+ readonly readableFlowing: boolean | null;
3636
+ readonly readableLength: number;
3637
+ readonly readableHighWaterMark: number;
3638
+ readonly readableObjectMode: boolean;
3639
+ readonly closed: boolean;
3640
+ readonly destroyed: boolean;
3641
+ readonly errored: Error | null;
3642
+ static from(iterable: unknown, options?: ReadableOptions): Readable;
3643
+ on(event: "data", listener: (chunk: any) => void): this;
3644
+ on(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
3645
+ on(event: "error", listener: (err: Error) => void): this;
3646
+ on(event: string, listener: (...args: any[]) => void): this;
3647
+ once(event: "data", listener: (chunk: any) => void): this;
3648
+ once(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
3649
+ once(event: "error", listener: (err: Error) => void): this;
3650
+ once(event: string, listener: (...args: any[]) => void): this;
3651
+ addListener(event: "data", listener: (chunk: any) => void): this;
3652
+ addListener(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
3653
+ addListener(event: "error", listener: (err: Error) => void): this;
3654
+ addListener(event: string, listener: (...args: any[]) => void): this;
3655
+ prependListener(event: "data", listener: (chunk: any) => void): this;
3656
+ prependListener(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
3657
+ prependListener(event: "error", listener: (err: Error) => void): this;
3658
+ prependListener(event: string, listener: (...args: any[]) => void): this;
3659
+ prependOnceListener(event: "data", listener: (chunk: any) => void): this;
3660
+ prependOnceListener(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
3661
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
3662
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3663
+ off(event: "data", listener: (chunk: any) => void): this;
3664
+ off(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
3665
+ off(event: "error", listener: (err: Error) => void): this;
3666
+ off(event: string, listener: (...args: any[]) => void): this;
3667
+ removeListener(event: "data", listener: (chunk: any) => void): this;
3668
+ removeListener(event: "end" | "close" | "readable" | "pause" | "resume", listener: () => void): this;
3669
+ removeListener(event: "error", listener: (err: Error) => void): this;
3670
+ removeListener(event: string, listener: (...args: any[]) => void): this;
3671
+ }
3672
+
3673
+ class Writable extends EventEmitter {
3674
+ constructor(opts?: WritableOptions);
3675
+ /* The underscore-method surface (see Readable). */
3676
+ _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
3677
+ _writev(chunks: Array<{ chunk: any; encoding: string }>, callback: (error?: Error | null) => void): void;
3678
+ _final(callback: (error?: Error | null) => void): void;
3679
+ _destroy(error: Error | null, callback: (error?: Error | null) => void): void;
3680
+ write(chunk: Buffer | string, callback?: (error?: Error | null) => void): boolean;
3681
+ write(chunk: Buffer | string, encoding: string, callback?: (error?: Error | null) => void): boolean;
3682
+ end(callback?: () => void): this;
3683
+ end(chunk: Buffer | string, callback?: () => void): this;
3684
+ end(chunk: Buffer | string, encoding: string, callback?: () => void): this;
3685
+ cork(): void;
3686
+ uncork(): void;
3687
+ setDefaultEncoding(encoding: string): this;
3688
+ destroy(error?: Error): this;
3689
+ readonly writable: boolean;
3690
+ readonly writableEnded: boolean;
3691
+ readonly writableFinished: boolean;
3692
+ readonly writableLength: number;
3693
+ readonly writableHighWaterMark: number;
3694
+ readonly writableObjectMode: boolean;
3695
+ readonly writableNeedDrain: boolean;
3696
+ readonly writableCorked: number;
3697
+ readonly closed: boolean;
3698
+ readonly destroyed: boolean;
3699
+ readonly errored: Error | null;
3700
+ on(event: "drain" | "finish" | "close", listener: () => void): this;
3701
+ on(event: "error", listener: (err: Error) => void): this;
3702
+ on(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3703
+ on(event: string, listener: (...args: any[]) => void): this;
3704
+ once(event: "drain" | "finish" | "close", listener: () => void): this;
3705
+ once(event: "error", listener: (err: Error) => void): this;
3706
+ once(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3707
+ once(event: string, listener: (...args: any[]) => void): this;
3708
+ addListener(event: "drain" | "finish" | "close", listener: () => void): this;
3709
+ addListener(event: "error", listener: (err: Error) => void): this;
3710
+ addListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3711
+ addListener(event: string, listener: (...args: any[]) => void): this;
3712
+ prependListener(event: "drain" | "finish" | "close", listener: () => void): this;
3713
+ prependListener(event: "error", listener: (err: Error) => void): this;
3714
+ prependListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3715
+ prependListener(event: string, listener: (...args: any[]) => void): this;
3716
+ prependOnceListener(event: "drain" | "finish" | "close", listener: () => void): this;
3717
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
3718
+ prependOnceListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3719
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3720
+ off(event: "drain" | "finish" | "close", listener: () => void): this;
3721
+ off(event: "error", listener: (err: Error) => void): this;
3722
+ off(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3723
+ off(event: string, listener: (...args: any[]) => void): this;
3724
+ removeListener(event: "drain" | "finish" | "close", listener: () => void): this;
3725
+ removeListener(event: "error", listener: (err: Error) => void): this;
3726
+ removeListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3727
+ removeListener(event: string, listener: (...args: any[]) => void): this;
3728
+ }
3729
+
3730
+ /* Duplex is Readable + Writable in one object. TS single inheritance
3731
+ * mirrors @types/node: extends Readable, the writable half declared
3732
+ * again. The lowering treats both halves as first-class. */
3733
+ class Duplex extends Readable {
3734
+ constructor(opts?: DuplexOptions);
3735
+ /* The underscore-method surface (see Readable). */
3736
+ _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
3737
+ _writev(chunks: Array<{ chunk: any; encoding: string }>, callback: (error?: Error | null) => void): void;
3738
+ _final(callback: (error?: Error | null) => void): void;
3739
+ write(chunk: Buffer | string, callback?: (error?: Error | null) => void): boolean;
3740
+ write(chunk: Buffer | string, encoding: string, callback?: (error?: Error | null) => void): boolean;
3741
+ end(callback?: () => void): this;
3742
+ end(chunk: Buffer | string, callback?: () => void): this;
3743
+ end(chunk: Buffer | string, encoding: string, callback?: () => void): this;
3744
+ cork(): void;
3745
+ uncork(): void;
3746
+ setDefaultEncoding(encoding: string): this;
3747
+ readonly writable: boolean;
3748
+ readonly writableEnded: boolean;
3749
+ readonly writableFinished: boolean;
3750
+ readonly writableLength: number;
3751
+ readonly writableHighWaterMark: number;
3752
+ readonly writableObjectMode: boolean;
3753
+ readonly writableNeedDrain: boolean;
3754
+ readonly writableCorked: number;
3755
+ readonly allowHalfOpen: boolean;
3756
+ on(event: "data", listener: (chunk: any) => void): this;
3757
+ on(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
3758
+ on(event: "error", listener: (err: Error) => void): this;
3759
+ on(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3760
+ on(event: string, listener: (...args: any[]) => void): this;
3761
+ once(event: "data", listener: (chunk: any) => void): this;
3762
+ once(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
3763
+ once(event: "error", listener: (err: Error) => void): this;
3764
+ once(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3765
+ once(event: string, listener: (...args: any[]) => void): this;
3766
+ addListener(event: "data", listener: (chunk: any) => void): this;
3767
+ addListener(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
3768
+ addListener(event: "error", listener: (err: Error) => void): this;
3769
+ addListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3770
+ addListener(event: string, listener: (...args: any[]) => void): this;
3771
+ prependListener(event: "data", listener: (chunk: any) => void): this;
3772
+ prependListener(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
3773
+ prependListener(event: "error", listener: (err: Error) => void): this;
3774
+ prependListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3775
+ prependListener(event: string, listener: (...args: any[]) => void): this;
3776
+ prependOnceListener(event: "data", listener: (chunk: any) => void): this;
3777
+ prependOnceListener(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
3778
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
3779
+ prependOnceListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3780
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3781
+ off(event: "data", listener: (chunk: any) => void): this;
3782
+ off(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
3783
+ off(event: "error", listener: (err: Error) => void): this;
3784
+ off(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3785
+ off(event: string, listener: (...args: any[]) => void): this;
3786
+ removeListener(event: "data", listener: (chunk: any) => void): this;
3787
+ removeListener(event: "end" | "close" | "readable" | "pause" | "resume" | "drain" | "finish", listener: () => void): this;
3788
+ removeListener(event: "error", listener: (err: Error) => void): this;
3789
+ removeListener(event: "pipe" | "unpipe", listener: (src: Readable) => void): this;
3790
+ removeListener(event: string, listener: (...args: any[]) => void): this;
3791
+ }
3792
+
3793
+ class Transform extends Duplex {
3794
+ constructor(opts?: TransformOptions);
3795
+ /* The underscore-method surface (see Readable). */
3796
+ _transform(chunk: any, encoding: string, callback: (error?: Error | null, data?: Buffer | string) => void): void;
3797
+ _flush(callback: (error?: Error | null, data?: Buffer | string) => void): void;
3798
+ }
3799
+ class PassThrough extends Transform {
3800
+ constructor(opts?: TransformOptions);
3801
+ }
3802
+
3803
+ /* Declared so requires typecheck; each fences at its use site. */
3804
+ function pipeline(...streams: unknown[]): unknown;
3805
+ function finished(stream: unknown, callback: (err?: Error | null) => void): () => void;
3806
+ /* Folds to the TARGET platform's default at compile time (win32 16384,
3807
+ * else 65536 — Node's own state.js split); literal argument only. */
3808
+ function getDefaultHighWaterMark(objectMode: boolean): number;
3809
+ namespace promises {
3810
+ function pipeline(...streams: unknown[]): Promise<void>;
3811
+ function finished(stream: unknown): Promise<void>;
3812
+ }
3813
+ class Stream extends EventEmitter {}
3814
+
3815
+ export { Readable, Writable, Duplex, Transform, PassThrough, Stream, pipeline, finished, getDefaultHighWaterMark, promises };
3816
+ export type { ReadableOptions, WritableOptions, DuplexOptions, TransformOptions };
3817
+ }
3818
+ declare module "node:stream" {
3819
+ import stream = require("stream");
3820
+ export = stream;
3821
+ }
3822
+ declare module "stream/promises" {
3823
+ /* The promise forms of finished/pipeline: a void promise the stream's
3824
+ * terminal point settles (rejected with the error, or
3825
+ * ERR_STREAM_PREMATURE_CLOSE on an early close). Stream arguments are
3826
+ * the lowered surface — iterables/generators/functions fence per site. */
3827
+ function pipeline(...streams: unknown[]): Promise<void>;
3828
+ function finished(stream: unknown): Promise<void>;
3829
+ export { pipeline, finished };
3830
+ }
3831
+ declare module "node:stream/promises" {
3832
+ import streamPromises = require("stream/promises");
3833
+ export = streamPromises;
3834
+ }
3835
+ declare module "stream/consumers" {
3836
+ /* The promise consumers over a readable: accumulate every chunk and
3837
+ * settle — text (the utf8 decode), json (the text through JSON.parse:
3838
+ * `unknown`, validated with a checked cast; malformed input rejects
3839
+ * with the parse's SyntaxError), buffer (the concatenated bytes;
3840
+ * string chunks contribute their utf8 bytes, Node's Blob rule).
3841
+ * Stream errors reject; an early close rejects with
3842
+ * ERR_STREAM_PREMATURE_CLOSE. arrayBuffer and blob fence per site:
3843
+ * neither value has a representation in a compiled binary. */
3844
+ function text(stream: unknown): Promise<string>;
3845
+ function json(stream: unknown): Promise<unknown>;
3846
+ function buffer(stream: unknown): Promise<Buffer>;
3847
+ function arrayBuffer(stream: unknown): Promise<ArrayBuffer>;
3848
+ function blob(stream: unknown): Promise<unknown>;
3849
+ export { arrayBuffer, blob, buffer, json, text };
3850
+ }
3851
+ declare module "node:stream/consumers" {
3852
+ import streamConsumers = require("stream/consumers");
3853
+ export = streamConsumers;
3854
+ }
3855
+ interface ErrorConstructor {
3856
+ stackTraceLimit: number;
3857
+ }