@scriptc/cli-darwin-x64 0.0.0 → 0.2.0

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