rahad-all-downloader 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (366) hide show
  1. package/.cache/nix/binary-cache-v6.sqlite +0 -0
  2. package/.cache/nix/binary-cache-v6.sqlite-journal +0 -0
  3. package/.cache/replit/__replit_disk_meta.json +1 -0
  4. package/.cache/replit/modules/nodejs-20.res +1 -0
  5. package/.cache/replit/modules/replit.res +1 -0
  6. package/.cache/replit/modules.stamp +0 -0
  7. package/.cache/replit/nix/env.json +1 -0
  8. package/.cache/typescript/5.0/node_modules/.package-lock.json +12 -0
  9. package/.cache/typescript/5.0/node_modules/types-registry/README.md +2 -0
  10. package/.cache/typescript/5.0/node_modules/types-registry/index.json +1 -0
  11. package/.cache/typescript/5.0/node_modules/types-registry/package.json +20 -0
  12. package/.cache/typescript/5.0/package-lock.json +17 -0
  13. package/.cache/typescript/5.0/package.json +1 -0
  14. package/.cache/typescript/5.3/node_modules/.package-lock.json +99 -0
  15. package/.cache/typescript/5.3/node_modules/@types/node/LICENSE +21 -0
  16. package/.cache/typescript/5.3/node_modules/@types/node/README.md +15 -0
  17. package/.cache/typescript/5.3/node_modules/@types/node/assert/strict.d.ts +8 -0
  18. package/.cache/typescript/5.3/node_modules/@types/node/assert.d.ts +996 -0
  19. package/.cache/typescript/5.3/node_modules/@types/node/async_hooks.d.ts +539 -0
  20. package/.cache/typescript/5.3/node_modules/@types/node/buffer.d.ts +2362 -0
  21. package/.cache/typescript/5.3/node_modules/@types/node/child_process.d.ts +1540 -0
  22. package/.cache/typescript/5.3/node_modules/@types/node/cluster.d.ts +432 -0
  23. package/.cache/typescript/5.3/node_modules/@types/node/console.d.ts +415 -0
  24. package/.cache/typescript/5.3/node_modules/@types/node/constants.d.ts +19 -0
  25. package/.cache/typescript/5.3/node_modules/@types/node/crypto.d.ts +4456 -0
  26. package/.cache/typescript/5.3/node_modules/@types/node/dgram.d.ts +586 -0
  27. package/.cache/typescript/5.3/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
  28. package/.cache/typescript/5.3/node_modules/@types/node/dns/promises.d.ts +425 -0
  29. package/.cache/typescript/5.3/node_modules/@types/node/dns.d.ts +809 -0
  30. package/.cache/typescript/5.3/node_modules/@types/node/dom-events.d.ts +122 -0
  31. package/.cache/typescript/5.3/node_modules/@types/node/domain.d.ts +170 -0
  32. package/.cache/typescript/5.3/node_modules/@types/node/events.d.ts +879 -0
  33. package/.cache/typescript/5.3/node_modules/@types/node/fs/promises.d.ts +1239 -0
  34. package/.cache/typescript/5.3/node_modules/@types/node/fs.d.ts +4291 -0
  35. package/.cache/typescript/5.3/node_modules/@types/node/globals.d.ts +385 -0
  36. package/.cache/typescript/5.3/node_modules/@types/node/globals.global.d.ts +1 -0
  37. package/.cache/typescript/5.3/node_modules/@types/node/http.d.ts +1888 -0
  38. package/.cache/typescript/5.3/node_modules/@types/node/http2.d.ts +2382 -0
  39. package/.cache/typescript/5.3/node_modules/@types/node/https.d.ts +550 -0
  40. package/.cache/typescript/5.3/node_modules/@types/node/index.d.ts +88 -0
  41. package/.cache/typescript/5.3/node_modules/@types/node/inspector.d.ts +2747 -0
  42. package/.cache/typescript/5.3/node_modules/@types/node/module.d.ts +301 -0
  43. package/.cache/typescript/5.3/node_modules/@types/node/net.d.ts +949 -0
  44. package/.cache/typescript/5.3/node_modules/@types/node/os.d.ts +478 -0
  45. package/.cache/typescript/5.3/node_modules/@types/node/package.json +230 -0
  46. package/.cache/typescript/5.3/node_modules/@types/node/path.d.ts +191 -0
  47. package/.cache/typescript/5.3/node_modules/@types/node/perf_hooks.d.ts +639 -0
  48. package/.cache/typescript/5.3/node_modules/@types/node/process.d.ts +1539 -0
  49. package/.cache/typescript/5.3/node_modules/@types/node/punycode.d.ts +117 -0
  50. package/.cache/typescript/5.3/node_modules/@types/node/querystring.d.ts +141 -0
  51. package/.cache/typescript/5.3/node_modules/@types/node/readline/promises.d.ts +150 -0
  52. package/.cache/typescript/5.3/node_modules/@types/node/readline.d.ts +539 -0
  53. package/.cache/typescript/5.3/node_modules/@types/node/repl.d.ts +430 -0
  54. package/.cache/typescript/5.3/node_modules/@types/node/stream/consumers.d.ts +12 -0
  55. package/.cache/typescript/5.3/node_modules/@types/node/stream/promises.d.ts +83 -0
  56. package/.cache/typescript/5.3/node_modules/@types/node/stream/web.d.ts +350 -0
  57. package/.cache/typescript/5.3/node_modules/@types/node/stream.d.ts +1701 -0
  58. package/.cache/typescript/5.3/node_modules/@types/node/string_decoder.d.ts +67 -0
  59. package/.cache/typescript/5.3/node_modules/@types/node/test.d.ts +1382 -0
  60. package/.cache/typescript/5.3/node_modules/@types/node/timers/promises.d.ts +93 -0
  61. package/.cache/typescript/5.3/node_modules/@types/node/timers.d.ts +240 -0
  62. package/.cache/typescript/5.3/node_modules/@types/node/tls.d.ts +1210 -0
  63. package/.cache/typescript/5.3/node_modules/@types/node/trace_events.d.ts +182 -0
  64. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  65. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
  66. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
  67. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
  68. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
  69. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
  70. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/console.d.ts +415 -0
  71. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
  72. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
  73. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
  74. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  75. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
  76. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
  77. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
  78. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  79. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/events.d.ts +879 -0
  80. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
  81. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
  82. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/globals.d.ts +385 -0
  83. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  84. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
  85. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
  86. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/https.d.ts +550 -0
  87. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  88. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
  89. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/module.d.ts +301 -0
  90. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/net.d.ts +949 -0
  91. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/os.d.ts +478 -0
  92. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  93. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
  94. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/process.d.ts +1539 -0
  95. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  96. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
  97. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
  98. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
  99. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
  100. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  101. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
  102. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
  103. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
  104. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  105. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
  106. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  107. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
  108. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
  109. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  110. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
  111. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/url.d.ts +927 -0
  112. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
  113. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  114. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
  115. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
  116. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
  117. package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  118. package/.cache/typescript/5.3/node_modules/@types/node/tty.d.ts +208 -0
  119. package/.cache/typescript/5.3/node_modules/@types/node/url.d.ts +927 -0
  120. package/.cache/typescript/5.3/node_modules/@types/node/util.d.ts +2183 -0
  121. package/.cache/typescript/5.3/node_modules/@types/node/v8.d.ts +635 -0
  122. package/.cache/typescript/5.3/node_modules/@types/node/vm.d.ts +903 -0
  123. package/.cache/typescript/5.3/node_modules/@types/node/wasi.d.ts +158 -0
  124. package/.cache/typescript/5.3/node_modules/@types/node/worker_threads.d.ts +691 -0
  125. package/.cache/typescript/5.3/node_modules/@types/node/zlib.d.ts +517 -0
  126. package/.cache/typescript/5.3/node_modules/@types/node-fetch/LICENSE +21 -0
  127. package/.cache/typescript/5.3/node_modules/@types/node-fetch/README.md +15 -0
  128. package/.cache/typescript/5.3/node_modules/@types/node-fetch/externals.d.ts +32 -0
  129. package/.cache/typescript/5.3/node_modules/@types/node-fetch/index.d.ts +214 -0
  130. package/.cache/typescript/5.3/node_modules/@types/node-fetch/package.json +83 -0
  131. package/.cache/typescript/5.3/node_modules/asynckit/LICENSE +21 -0
  132. package/.cache/typescript/5.3/node_modules/asynckit/README.md +233 -0
  133. package/.cache/typescript/5.3/node_modules/asynckit/bench.js +76 -0
  134. package/.cache/typescript/5.3/node_modules/asynckit/index.js +6 -0
  135. package/.cache/typescript/5.3/node_modules/asynckit/lib/abort.js +29 -0
  136. package/.cache/typescript/5.3/node_modules/asynckit/lib/async.js +34 -0
  137. package/.cache/typescript/5.3/node_modules/asynckit/lib/defer.js +26 -0
  138. package/.cache/typescript/5.3/node_modules/asynckit/lib/iterate.js +75 -0
  139. package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  140. package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_parallel.js +25 -0
  141. package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_serial.js +25 -0
  142. package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  143. package/.cache/typescript/5.3/node_modules/asynckit/lib/state.js +37 -0
  144. package/.cache/typescript/5.3/node_modules/asynckit/lib/streamify.js +141 -0
  145. package/.cache/typescript/5.3/node_modules/asynckit/lib/terminator.js +29 -0
  146. package/.cache/typescript/5.3/node_modules/asynckit/package.json +63 -0
  147. package/.cache/typescript/5.3/node_modules/asynckit/parallel.js +43 -0
  148. package/.cache/typescript/5.3/node_modules/asynckit/serial.js +17 -0
  149. package/.cache/typescript/5.3/node_modules/asynckit/serialOrdered.js +75 -0
  150. package/.cache/typescript/5.3/node_modules/asynckit/stream.js +21 -0
  151. package/.cache/typescript/5.3/node_modules/combined-stream/License +19 -0
  152. package/.cache/typescript/5.3/node_modules/combined-stream/Readme.md +138 -0
  153. package/.cache/typescript/5.3/node_modules/combined-stream/lib/combined_stream.js +208 -0
  154. package/.cache/typescript/5.3/node_modules/combined-stream/package.json +25 -0
  155. package/.cache/typescript/5.3/node_modules/combined-stream/yarn.lock +17 -0
  156. package/.cache/typescript/5.3/node_modules/delayed-stream/License +19 -0
  157. package/.cache/typescript/5.3/node_modules/delayed-stream/Makefile +7 -0
  158. package/.cache/typescript/5.3/node_modules/delayed-stream/Readme.md +141 -0
  159. package/.cache/typescript/5.3/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  160. package/.cache/typescript/5.3/node_modules/delayed-stream/package.json +27 -0
  161. package/.cache/typescript/5.3/node_modules/form-data/License +19 -0
  162. package/.cache/typescript/5.3/node_modules/form-data/README.md.bak +358 -0
  163. package/.cache/typescript/5.3/node_modules/form-data/Readme.md +358 -0
  164. package/.cache/typescript/5.3/node_modules/form-data/index.d.ts +62 -0
  165. package/.cache/typescript/5.3/node_modules/form-data/lib/browser.js +2 -0
  166. package/.cache/typescript/5.3/node_modules/form-data/lib/form_data.js +501 -0
  167. package/.cache/typescript/5.3/node_modules/form-data/lib/populate.js +10 -0
  168. package/.cache/typescript/5.3/node_modules/form-data/package.json +68 -0
  169. package/.cache/typescript/5.3/node_modules/mime-db/HISTORY.md +507 -0
  170. package/.cache/typescript/5.3/node_modules/mime-db/LICENSE +23 -0
  171. package/.cache/typescript/5.3/node_modules/mime-db/README.md +100 -0
  172. package/.cache/typescript/5.3/node_modules/mime-db/db.json +8519 -0
  173. package/.cache/typescript/5.3/node_modules/mime-db/index.js +12 -0
  174. package/.cache/typescript/5.3/node_modules/mime-db/package.json +60 -0
  175. package/.cache/typescript/5.3/node_modules/mime-types/HISTORY.md +397 -0
  176. package/.cache/typescript/5.3/node_modules/mime-types/LICENSE +23 -0
  177. package/.cache/typescript/5.3/node_modules/mime-types/README.md +113 -0
  178. package/.cache/typescript/5.3/node_modules/mime-types/index.js +188 -0
  179. package/.cache/typescript/5.3/node_modules/mime-types/package.json +44 -0
  180. package/.cache/typescript/5.3/node_modules/types-registry/README.md +2 -0
  181. package/.cache/typescript/5.3/node_modules/types-registry/index.json +1 -0
  182. package/.cache/typescript/5.3/node_modules/types-registry/package.json +20 -0
  183. package/.cache/typescript/5.3/node_modules/undici-types/README.md +6 -0
  184. package/.cache/typescript/5.3/node_modules/undici-types/agent.d.ts +31 -0
  185. package/.cache/typescript/5.3/node_modules/undici-types/api.d.ts +43 -0
  186. package/.cache/typescript/5.3/node_modules/undici-types/balanced-pool.d.ts +18 -0
  187. package/.cache/typescript/5.3/node_modules/undici-types/cache.d.ts +36 -0
  188. package/.cache/typescript/5.3/node_modules/undici-types/client.d.ts +97 -0
  189. package/.cache/typescript/5.3/node_modules/undici-types/connector.d.ts +34 -0
  190. package/.cache/typescript/5.3/node_modules/undici-types/content-type.d.ts +21 -0
  191. package/.cache/typescript/5.3/node_modules/undici-types/cookies.d.ts +28 -0
  192. package/.cache/typescript/5.3/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  193. package/.cache/typescript/5.3/node_modules/undici-types/dispatcher.d.ts +241 -0
  194. package/.cache/typescript/5.3/node_modules/undici-types/errors.d.ts +128 -0
  195. package/.cache/typescript/5.3/node_modules/undici-types/fetch.d.ts +209 -0
  196. package/.cache/typescript/5.3/node_modules/undici-types/file.d.ts +39 -0
  197. package/.cache/typescript/5.3/node_modules/undici-types/filereader.d.ts +54 -0
  198. package/.cache/typescript/5.3/node_modules/undici-types/formdata.d.ts +108 -0
  199. package/.cache/typescript/5.3/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  200. package/.cache/typescript/5.3/node_modules/undici-types/global-origin.d.ts +7 -0
  201. package/.cache/typescript/5.3/node_modules/undici-types/handlers.d.ts +9 -0
  202. package/.cache/typescript/5.3/node_modules/undici-types/header.d.ts +4 -0
  203. package/.cache/typescript/5.3/node_modules/undici-types/index.d.ts +63 -0
  204. package/.cache/typescript/5.3/node_modules/undici-types/interceptors.d.ts +5 -0
  205. package/.cache/typescript/5.3/node_modules/undici-types/mock-agent.d.ts +50 -0
  206. package/.cache/typescript/5.3/node_modules/undici-types/mock-client.d.ts +25 -0
  207. package/.cache/typescript/5.3/node_modules/undici-types/mock-errors.d.ts +12 -0
  208. package/.cache/typescript/5.3/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  209. package/.cache/typescript/5.3/node_modules/undici-types/mock-pool.d.ts +25 -0
  210. package/.cache/typescript/5.3/node_modules/undici-types/package.json +55 -0
  211. package/.cache/typescript/5.3/node_modules/undici-types/patch.d.ts +71 -0
  212. package/.cache/typescript/5.3/node_modules/undici-types/pool-stats.d.ts +19 -0
  213. package/.cache/typescript/5.3/node_modules/undici-types/pool.d.ts +28 -0
  214. package/.cache/typescript/5.3/node_modules/undici-types/proxy-agent.d.ts +30 -0
  215. package/.cache/typescript/5.3/node_modules/undici-types/readable.d.ts +61 -0
  216. package/.cache/typescript/5.3/node_modules/undici-types/webidl.d.ts +220 -0
  217. package/.cache/typescript/5.3/node_modules/undici-types/websocket.d.ts +131 -0
  218. package/.cache/typescript/5.3/package-lock.json +107 -0
  219. package/.cache/typescript/5.3/package.json +1 -0
  220. package/.cache/typescript/5.4/node_modules/.package-lock.json +115 -0
  221. package/.cache/typescript/5.4/node_modules/@types/body-parser/LICENSE +21 -0
  222. package/.cache/typescript/5.4/node_modules/@types/body-parser/README.md +15 -0
  223. package/.cache/typescript/5.4/node_modules/@types/body-parser/index.d.ts +95 -0
  224. package/.cache/typescript/5.4/node_modules/@types/body-parser/package.json +58 -0
  225. package/.cache/typescript/5.4/node_modules/@types/connect/LICENSE +21 -0
  226. package/.cache/typescript/5.4/node_modules/@types/connect/README.md +15 -0
  227. package/.cache/typescript/5.4/node_modules/@types/connect/index.d.ts +91 -0
  228. package/.cache/typescript/5.4/node_modules/@types/connect/package.json +32 -0
  229. package/.cache/typescript/5.4/node_modules/@types/express/LICENSE +21 -0
  230. package/.cache/typescript/5.4/node_modules/@types/express/README.md +15 -0
  231. package/.cache/typescript/5.4/node_modules/@types/express/index.d.ts +128 -0
  232. package/.cache/typescript/5.4/node_modules/@types/express/package.json +45 -0
  233. package/.cache/typescript/5.4/node_modules/@types/express-serve-static-core/LICENSE +21 -0
  234. package/.cache/typescript/5.4/node_modules/@types/express-serve-static-core/README.md +15 -0
  235. package/.cache/typescript/5.4/node_modules/@types/express-serve-static-core/index.d.ts +1295 -0
  236. package/.cache/typescript/5.4/node_modules/@types/express-serve-static-core/package.json +50 -0
  237. package/.cache/typescript/5.4/node_modules/@types/http-errors/LICENSE +21 -0
  238. package/.cache/typescript/5.4/node_modules/@types/http-errors/README.md +15 -0
  239. package/.cache/typescript/5.4/node_modules/@types/http-errors/index.d.ts +77 -0
  240. package/.cache/typescript/5.4/node_modules/@types/http-errors/package.json +30 -0
  241. package/.cache/typescript/5.4/node_modules/@types/mime/LICENSE +21 -0
  242. package/.cache/typescript/5.4/node_modules/@types/mime/Mime.d.ts +10 -0
  243. package/.cache/typescript/5.4/node_modules/@types/mime/README.md +15 -0
  244. package/.cache/typescript/5.4/node_modules/@types/mime/index.d.ts +31 -0
  245. package/.cache/typescript/5.4/node_modules/@types/mime/lite.d.ts +7 -0
  246. package/.cache/typescript/5.4/node_modules/@types/mime/package.json +30 -0
  247. package/.cache/typescript/5.4/node_modules/@types/node/LICENSE +21 -0
  248. package/.cache/typescript/5.4/node_modules/@types/node/README.md +15 -0
  249. package/.cache/typescript/5.4/node_modules/@types/node/assert/strict.d.ts +8 -0
  250. package/.cache/typescript/5.4/node_modules/@types/node/assert.d.ts +1040 -0
  251. package/.cache/typescript/5.4/node_modules/@types/node/async_hooks.d.ts +541 -0
  252. package/.cache/typescript/5.4/node_modules/@types/node/buffer.d.ts +2363 -0
  253. package/.cache/typescript/5.4/node_modules/@types/node/child_process.d.ts +1544 -0
  254. package/.cache/typescript/5.4/node_modules/@types/node/cluster.d.ts +578 -0
  255. package/.cache/typescript/5.4/node_modules/@types/node/console.d.ts +452 -0
  256. package/.cache/typescript/5.4/node_modules/@types/node/constants.d.ts +19 -0
  257. package/.cache/typescript/5.4/node_modules/@types/node/crypto.d.ts +4523 -0
  258. package/.cache/typescript/5.4/node_modules/@types/node/dgram.d.ts +596 -0
  259. package/.cache/typescript/5.4/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
  260. package/.cache/typescript/5.4/node_modules/@types/node/dns/promises.d.ts +474 -0
  261. package/.cache/typescript/5.4/node_modules/@types/node/dns.d.ts +864 -0
  262. package/.cache/typescript/5.4/node_modules/@types/node/dom-events.d.ts +124 -0
  263. package/.cache/typescript/5.4/node_modules/@types/node/domain.d.ts +170 -0
  264. package/.cache/typescript/5.4/node_modules/@types/node/events.d.ts +909 -0
  265. package/.cache/typescript/5.4/node_modules/@types/node/fs/promises.d.ts +1245 -0
  266. package/.cache/typescript/5.4/node_modules/@types/node/fs.d.ts +4317 -0
  267. package/.cache/typescript/5.4/node_modules/@types/node/globals.d.ts +411 -0
  268. package/.cache/typescript/5.4/node_modules/@types/node/globals.global.d.ts +1 -0
  269. package/.cache/typescript/5.4/node_modules/@types/node/http.d.ts +1908 -0
  270. package/.cache/typescript/5.4/node_modules/@types/node/http2.d.ts +2418 -0
  271. package/.cache/typescript/5.4/node_modules/@types/node/https.d.ts +550 -0
  272. package/.cache/typescript/5.4/node_modules/@types/node/index.d.ts +89 -0
  273. package/.cache/typescript/5.4/node_modules/@types/node/inspector.d.ts +2746 -0
  274. package/.cache/typescript/5.4/node_modules/@types/node/module.d.ts +315 -0
  275. package/.cache/typescript/5.4/node_modules/@types/node/net.d.ts +999 -0
  276. package/.cache/typescript/5.4/node_modules/@types/node/os.d.ts +495 -0
  277. package/.cache/typescript/5.4/node_modules/@types/node/package.json +217 -0
  278. package/.cache/typescript/5.4/node_modules/@types/node/path.d.ts +191 -0
  279. package/.cache/typescript/5.4/node_modules/@types/node/perf_hooks.d.ts +905 -0
  280. package/.cache/typescript/5.4/node_modules/@types/node/process.d.ts +1754 -0
  281. package/.cache/typescript/5.4/node_modules/@types/node/punycode.d.ts +117 -0
  282. package/.cache/typescript/5.4/node_modules/@types/node/querystring.d.ts +153 -0
  283. package/.cache/typescript/5.4/node_modules/@types/node/readline/promises.d.ts +150 -0
  284. package/.cache/typescript/5.4/node_modules/@types/node/readline.d.ts +540 -0
  285. package/.cache/typescript/5.4/node_modules/@types/node/repl.d.ts +430 -0
  286. package/.cache/typescript/5.4/node_modules/@types/node/sea.d.ts +153 -0
  287. package/.cache/typescript/5.4/node_modules/@types/node/stream/consumers.d.ts +12 -0
  288. package/.cache/typescript/5.4/node_modules/@types/node/stream/promises.d.ts +83 -0
  289. package/.cache/typescript/5.4/node_modules/@types/node/stream/web.d.ts +367 -0
  290. package/.cache/typescript/5.4/node_modules/@types/node/stream.d.ts +1707 -0
  291. package/.cache/typescript/5.4/node_modules/@types/node/string_decoder.d.ts +67 -0
  292. package/.cache/typescript/5.4/node_modules/@types/node/test.d.ts +1718 -0
  293. package/.cache/typescript/5.4/node_modules/@types/node/timers/promises.d.ts +97 -0
  294. package/.cache/typescript/5.4/node_modules/@types/node/timers.d.ts +240 -0
  295. package/.cache/typescript/5.4/node_modules/@types/node/tls.d.ts +1217 -0
  296. package/.cache/typescript/5.4/node_modules/@types/node/trace_events.d.ts +197 -0
  297. package/.cache/typescript/5.4/node_modules/@types/node/tty.d.ts +208 -0
  298. package/.cache/typescript/5.4/node_modules/@types/node/url.d.ts +952 -0
  299. package/.cache/typescript/5.4/node_modules/@types/node/util.d.ts +2292 -0
  300. package/.cache/typescript/5.4/node_modules/@types/node/v8.d.ts +808 -0
  301. package/.cache/typescript/5.4/node_modules/@types/node/vm.d.ts +924 -0
  302. package/.cache/typescript/5.4/node_modules/@types/node/wasi.d.ts +181 -0
  303. package/.cache/typescript/5.4/node_modules/@types/node/worker_threads.d.ts +691 -0
  304. package/.cache/typescript/5.4/node_modules/@types/node/zlib.d.ts +530 -0
  305. package/.cache/typescript/5.4/node_modules/@types/qs/LICENSE +21 -0
  306. package/.cache/typescript/5.4/node_modules/@types/qs/README.md +15 -0
  307. package/.cache/typescript/5.4/node_modules/@types/qs/index.d.ts +79 -0
  308. package/.cache/typescript/5.4/node_modules/@types/qs/package.json +65 -0
  309. package/.cache/typescript/5.4/node_modules/@types/range-parser/LICENSE +21 -0
  310. package/.cache/typescript/5.4/node_modules/@types/range-parser/README.md +53 -0
  311. package/.cache/typescript/5.4/node_modules/@types/range-parser/index.d.ts +34 -0
  312. package/.cache/typescript/5.4/node_modules/@types/range-parser/package.json +25 -0
  313. package/.cache/typescript/5.4/node_modules/@types/send/LICENSE +21 -0
  314. package/.cache/typescript/5.4/node_modules/@types/send/README.md +15 -0
  315. package/.cache/typescript/5.4/node_modules/@types/send/index.d.ts +225 -0
  316. package/.cache/typescript/5.4/node_modules/@types/send/package.json +33 -0
  317. package/.cache/typescript/5.4/node_modules/@types/serve-static/LICENSE +21 -0
  318. package/.cache/typescript/5.4/node_modules/@types/serve-static/README.md +15 -0
  319. package/.cache/typescript/5.4/node_modules/@types/serve-static/index.d.ts +107 -0
  320. package/.cache/typescript/5.4/node_modules/@types/serve-static/package.json +39 -0
  321. package/.cache/typescript/5.4/node_modules/types-registry/README.md +2 -0
  322. package/.cache/typescript/5.4/node_modules/types-registry/index.json +1 -0
  323. package/.cache/typescript/5.4/node_modules/types-registry/package.json +20 -0
  324. package/.cache/typescript/5.4/node_modules/undici-types/README.md +6 -0
  325. package/.cache/typescript/5.4/node_modules/undici-types/agent.d.ts +31 -0
  326. package/.cache/typescript/5.4/node_modules/undici-types/api.d.ts +43 -0
  327. package/.cache/typescript/5.4/node_modules/undici-types/balanced-pool.d.ts +18 -0
  328. package/.cache/typescript/5.4/node_modules/undici-types/cache.d.ts +36 -0
  329. package/.cache/typescript/5.4/node_modules/undici-types/client.d.ts +97 -0
  330. package/.cache/typescript/5.4/node_modules/undici-types/connector.d.ts +34 -0
  331. package/.cache/typescript/5.4/node_modules/undici-types/content-type.d.ts +21 -0
  332. package/.cache/typescript/5.4/node_modules/undici-types/cookies.d.ts +28 -0
  333. package/.cache/typescript/5.4/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  334. package/.cache/typescript/5.4/node_modules/undici-types/dispatcher.d.ts +241 -0
  335. package/.cache/typescript/5.4/node_modules/undici-types/errors.d.ts +128 -0
  336. package/.cache/typescript/5.4/node_modules/undici-types/fetch.d.ts +209 -0
  337. package/.cache/typescript/5.4/node_modules/undici-types/file.d.ts +39 -0
  338. package/.cache/typescript/5.4/node_modules/undici-types/filereader.d.ts +54 -0
  339. package/.cache/typescript/5.4/node_modules/undici-types/formdata.d.ts +108 -0
  340. package/.cache/typescript/5.4/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  341. package/.cache/typescript/5.4/node_modules/undici-types/global-origin.d.ts +7 -0
  342. package/.cache/typescript/5.4/node_modules/undici-types/handlers.d.ts +9 -0
  343. package/.cache/typescript/5.4/node_modules/undici-types/header.d.ts +4 -0
  344. package/.cache/typescript/5.4/node_modules/undici-types/index.d.ts +63 -0
  345. package/.cache/typescript/5.4/node_modules/undici-types/interceptors.d.ts +5 -0
  346. package/.cache/typescript/5.4/node_modules/undici-types/mock-agent.d.ts +50 -0
  347. package/.cache/typescript/5.4/node_modules/undici-types/mock-client.d.ts +25 -0
  348. package/.cache/typescript/5.4/node_modules/undici-types/mock-errors.d.ts +12 -0
  349. package/.cache/typescript/5.4/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  350. package/.cache/typescript/5.4/node_modules/undici-types/mock-pool.d.ts +25 -0
  351. package/.cache/typescript/5.4/node_modules/undici-types/package.json +55 -0
  352. package/.cache/typescript/5.4/node_modules/undici-types/patch.d.ts +71 -0
  353. package/.cache/typescript/5.4/node_modules/undici-types/pool-stats.d.ts +19 -0
  354. package/.cache/typescript/5.4/node_modules/undici-types/pool.d.ts +28 -0
  355. package/.cache/typescript/5.4/node_modules/undici-types/proxy-agent.d.ts +30 -0
  356. package/.cache/typescript/5.4/node_modules/undici-types/readable.d.ts +61 -0
  357. package/.cache/typescript/5.4/node_modules/undici-types/webidl.d.ts +220 -0
  358. package/.cache/typescript/5.4/node_modules/undici-types/websocket.d.ts +131 -0
  359. package/.cache/typescript/5.4/package-lock.json +124 -0
  360. package/.cache/typescript/5.4/package.json +1 -0
  361. package/.replit +21 -0
  362. package/.upm/store.json +1 -0
  363. package/README.md +71 -0
  364. package/index.js +1 -0
  365. package/package.json +40 -0
  366. package/replit.nix +3 -0
@@ -0,0 +1,1539 @@
1
+ declare module "process" {
2
+ import * as tty from "node:tty";
3
+ import { Worker } from "node:worker_threads";
4
+ global {
5
+ var process: NodeJS.Process;
6
+ namespace NodeJS {
7
+ // this namespace merge is here because these are specifically used
8
+ // as the type for process.stdin, process.stdout, and process.stderr.
9
+ // they can't live in tty.d.ts because we need to disambiguate the imported name.
10
+ interface ReadStream extends tty.ReadStream {}
11
+ interface WriteStream extends tty.WriteStream {}
12
+ interface MemoryUsageFn {
13
+ /**
14
+ * The `process.memoryUsage()` method iterate over each page to gather informations about memory
15
+ * usage which can be slow depending on the program memory allocations.
16
+ */
17
+ (): MemoryUsage;
18
+ /**
19
+ * method returns an integer representing the Resident Set Size (RSS) in bytes.
20
+ */
21
+ rss(): number;
22
+ }
23
+ interface MemoryUsage {
24
+ rss: number;
25
+ heapTotal: number;
26
+ heapUsed: number;
27
+ external: number;
28
+ arrayBuffers: number;
29
+ }
30
+ interface CpuUsage {
31
+ user: number;
32
+ system: number;
33
+ }
34
+ interface ProcessRelease {
35
+ name: string;
36
+ sourceUrl?: string | undefined;
37
+ headersUrl?: string | undefined;
38
+ libUrl?: string | undefined;
39
+ lts?: string | undefined;
40
+ }
41
+ interface ProcessVersions extends Dict<string> {
42
+ http_parser: string;
43
+ node: string;
44
+ v8: string;
45
+ ares: string;
46
+ uv: string;
47
+ zlib: string;
48
+ modules: string;
49
+ openssl: string;
50
+ }
51
+ type Platform =
52
+ | "aix"
53
+ | "android"
54
+ | "darwin"
55
+ | "freebsd"
56
+ | "haiku"
57
+ | "linux"
58
+ | "openbsd"
59
+ | "sunos"
60
+ | "win32"
61
+ | "cygwin"
62
+ | "netbsd";
63
+ type Architecture =
64
+ | "arm"
65
+ | "arm64"
66
+ | "ia32"
67
+ | "mips"
68
+ | "mipsel"
69
+ | "ppc"
70
+ | "ppc64"
71
+ | "riscv64"
72
+ | "s390"
73
+ | "s390x"
74
+ | "x64";
75
+ type Signals =
76
+ | "SIGABRT"
77
+ | "SIGALRM"
78
+ | "SIGBUS"
79
+ | "SIGCHLD"
80
+ | "SIGCONT"
81
+ | "SIGFPE"
82
+ | "SIGHUP"
83
+ | "SIGILL"
84
+ | "SIGINT"
85
+ | "SIGIO"
86
+ | "SIGIOT"
87
+ | "SIGKILL"
88
+ | "SIGPIPE"
89
+ | "SIGPOLL"
90
+ | "SIGPROF"
91
+ | "SIGPWR"
92
+ | "SIGQUIT"
93
+ | "SIGSEGV"
94
+ | "SIGSTKFLT"
95
+ | "SIGSTOP"
96
+ | "SIGSYS"
97
+ | "SIGTERM"
98
+ | "SIGTRAP"
99
+ | "SIGTSTP"
100
+ | "SIGTTIN"
101
+ | "SIGTTOU"
102
+ | "SIGUNUSED"
103
+ | "SIGURG"
104
+ | "SIGUSR1"
105
+ | "SIGUSR2"
106
+ | "SIGVTALRM"
107
+ | "SIGWINCH"
108
+ | "SIGXCPU"
109
+ | "SIGXFSZ"
110
+ | "SIGBREAK"
111
+ | "SIGLOST"
112
+ | "SIGINFO";
113
+ type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection";
114
+ type MultipleResolveType = "resolve" | "reject";
115
+ type BeforeExitListener = (code: number) => void;
116
+ type DisconnectListener = () => void;
117
+ type ExitListener = (code: number) => void;
118
+ type RejectionHandledListener = (promise: Promise<unknown>) => void;
119
+ type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
120
+ /**
121
+ * Most of the time the unhandledRejection will be an Error, but this should not be relied upon
122
+ * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
123
+ */
124
+ type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
125
+ type WarningListener = (warning: Error) => void;
126
+ type MessageListener = (message: unknown, sendHandle: unknown) => void;
127
+ type SignalsListener = (signal: Signals) => void;
128
+ type MultipleResolveListener = (
129
+ type: MultipleResolveType,
130
+ promise: Promise<unknown>,
131
+ value: unknown,
132
+ ) => void;
133
+ type WorkerListener = (worker: Worker) => void;
134
+ interface Socket extends ReadWriteStream {
135
+ isTTY?: true | undefined;
136
+ }
137
+ // Alias for compatibility
138
+ interface ProcessEnv extends Dict<string> {
139
+ /**
140
+ * Can be used to change the default timezone at runtime
141
+ */
142
+ TZ?: string;
143
+ }
144
+ interface HRTime {
145
+ (time?: [number, number]): [number, number];
146
+ bigint(): bigint;
147
+ }
148
+ interface ProcessReport {
149
+ /**
150
+ * Directory where the report is written.
151
+ * working directory of the Node.js process.
152
+ * @default '' indicating that reports are written to the current
153
+ */
154
+ directory: string;
155
+ /**
156
+ * Filename where the report is written.
157
+ * The default value is the empty string.
158
+ * @default '' the output filename will be comprised of a timestamp,
159
+ * PID, and sequence number.
160
+ */
161
+ filename: string;
162
+ /**
163
+ * Returns a JSON-formatted diagnostic report for the running process.
164
+ * The report's JavaScript stack trace is taken from err, if present.
165
+ */
166
+ getReport(err?: Error): string;
167
+ /**
168
+ * If true, a diagnostic report is generated on fatal errors,
169
+ * such as out of memory errors or failed C++ assertions.
170
+ * @default false
171
+ */
172
+ reportOnFatalError: boolean;
173
+ /**
174
+ * If true, a diagnostic report is generated when the process
175
+ * receives the signal specified by process.report.signal.
176
+ * @default false
177
+ */
178
+ reportOnSignal: boolean;
179
+ /**
180
+ * If true, a diagnostic report is generated on uncaught exception.
181
+ * @default false
182
+ */
183
+ reportOnUncaughtException: boolean;
184
+ /**
185
+ * The signal used to trigger the creation of a diagnostic report.
186
+ * @default 'SIGUSR2'
187
+ */
188
+ signal: Signals;
189
+ /**
190
+ * Writes a diagnostic report to a file. If filename is not provided, the default filename
191
+ * includes the date, time, PID, and a sequence number.
192
+ * The report's JavaScript stack trace is taken from err, if present.
193
+ *
194
+ * @param fileName Name of the file where the report is written.
195
+ * This should be a relative path, that will be appended to the directory specified in
196
+ * `process.report.directory`, or the current working directory of the Node.js process,
197
+ * if unspecified.
198
+ * @param error A custom error used for reporting the JavaScript stack.
199
+ * @return Filename of the generated report.
200
+ */
201
+ writeReport(fileName?: string): string;
202
+ writeReport(error?: Error): string;
203
+ writeReport(fileName?: string, err?: Error): string;
204
+ }
205
+ interface ResourceUsage {
206
+ fsRead: number;
207
+ fsWrite: number;
208
+ involuntaryContextSwitches: number;
209
+ ipcReceived: number;
210
+ ipcSent: number;
211
+ majorPageFault: number;
212
+ maxRSS: number;
213
+ minorPageFault: number;
214
+ sharedMemorySize: number;
215
+ signalsCount: number;
216
+ swappedOut: number;
217
+ systemCPUTime: number;
218
+ unsharedDataSize: number;
219
+ unsharedStackSize: number;
220
+ userCPUTime: number;
221
+ voluntaryContextSwitches: number;
222
+ }
223
+ interface EmitWarningOptions {
224
+ /**
225
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
226
+ *
227
+ * @default 'Warning'
228
+ */
229
+ type?: string | undefined;
230
+ /**
231
+ * A unique identifier for the warning instance being emitted.
232
+ */
233
+ code?: string | undefined;
234
+ /**
235
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
236
+ *
237
+ * @default process.emitWarning
238
+ */
239
+ ctor?: Function | undefined;
240
+ /**
241
+ * Additional text to include with the error.
242
+ */
243
+ detail?: string | undefined;
244
+ }
245
+ interface ProcessConfig {
246
+ readonly target_defaults: {
247
+ readonly cflags: any[];
248
+ readonly default_configuration: string;
249
+ readonly defines: string[];
250
+ readonly include_dirs: string[];
251
+ readonly libraries: string[];
252
+ };
253
+ readonly variables: {
254
+ readonly clang: number;
255
+ readonly host_arch: string;
256
+ readonly node_install_npm: boolean;
257
+ readonly node_install_waf: boolean;
258
+ readonly node_prefix: string;
259
+ readonly node_shared_openssl: boolean;
260
+ readonly node_shared_v8: boolean;
261
+ readonly node_shared_zlib: boolean;
262
+ readonly node_use_dtrace: boolean;
263
+ readonly node_use_etw: boolean;
264
+ readonly node_use_openssl: boolean;
265
+ readonly target_arch: string;
266
+ readonly v8_no_strict_aliasing: number;
267
+ readonly v8_use_snapshot: boolean;
268
+ readonly visibility: string;
269
+ };
270
+ }
271
+ interface Process extends EventEmitter {
272
+ /**
273
+ * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is
274
+ * a `Writable` stream.
275
+ *
276
+ * For example, to copy `process.stdin` to `process.stdout`:
277
+ *
278
+ * ```js
279
+ * import { stdin, stdout } from 'node:process';
280
+ *
281
+ * stdin.pipe(stdout);
282
+ * ```
283
+ *
284
+ * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
285
+ */
286
+ stdout: WriteStream & {
287
+ fd: 1;
288
+ };
289
+ /**
290
+ * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is
291
+ * a `Writable` stream.
292
+ *
293
+ * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information.
294
+ */
295
+ stderr: WriteStream & {
296
+ fd: 2;
297
+ };
298
+ /**
299
+ * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is
300
+ * a `Readable` stream.
301
+ *
302
+ * For details of how to read from `stdin` see `readable.read()`.
303
+ *
304
+ * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that
305
+ * is compatible with scripts written for Node.js prior to v0.10\.
306
+ * For more information see `Stream compatibility`.
307
+ *
308
+ * In "old" streams mode the `stdin` stream is paused by default, so one
309
+ * must call `process.stdin.resume()` to read from it. Note also that calling`process.stdin.resume()` itself would switch stream to "old" mode.
310
+ */
311
+ stdin: ReadStream & {
312
+ fd: 0;
313
+ };
314
+ openStdin(): Socket;
315
+ /**
316
+ * The `process.argv` property returns an array containing the command-line
317
+ * arguments passed when the Node.js process was launched. The first element will
318
+ * be {@link execPath}. See `process.argv0` if access to the original value
319
+ * of `argv[0]` is needed. The second element will be the path to the JavaScript
320
+ * file being executed. The remaining elements will be any additional command-line
321
+ * arguments.
322
+ *
323
+ * For example, assuming the following script for `process-args.js`:
324
+ *
325
+ * ```js
326
+ * import { argv } from 'node:process';
327
+ *
328
+ * // print process.argv
329
+ * argv.forEach((val, index) => {
330
+ * console.log(`${index}: ${val}`);
331
+ * });
332
+ * ```
333
+ *
334
+ * Launching the Node.js process as:
335
+ *
336
+ * ```bash
337
+ * node process-args.js one two=three four
338
+ * ```
339
+ *
340
+ * Would generate the output:
341
+ *
342
+ * ```text
343
+ * 0: /usr/local/bin/node
344
+ * 1: /Users/mjr/work/node/process-args.js
345
+ * 2: one
346
+ * 3: two=three
347
+ * 4: four
348
+ * ```
349
+ * @since v0.1.27
350
+ */
351
+ argv: string[];
352
+ /**
353
+ * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts.
354
+ *
355
+ * ```console
356
+ * $ bash -c 'exec -a customArgv0 ./node'
357
+ * > process.argv[0]
358
+ * '/Volumes/code/external/node/out/Release/node'
359
+ * > process.argv0
360
+ * 'customArgv0'
361
+ * ```
362
+ * @since v6.4.0
363
+ */
364
+ argv0: string;
365
+ /**
366
+ * The `process.execArgv` property returns the set of Node.js-specific command-line
367
+ * options passed when the Node.js process was launched. These options do not
368
+ * appear in the array returned by the {@link argv} property, and do not
369
+ * include the Node.js executable, the name of the script, or any options following
370
+ * the script name. These options are useful in order to spawn child processes with
371
+ * the same execution environment as the parent.
372
+ *
373
+ * ```bash
374
+ * node --harmony script.js --version
375
+ * ```
376
+ *
377
+ * Results in `process.execArgv`:
378
+ *
379
+ * ```js
380
+ * ['--harmony']
381
+ * ```
382
+ *
383
+ * And `process.argv`:
384
+ *
385
+ * ```js
386
+ * ['/usr/local/bin/node', 'script.js', '--version']
387
+ * ```
388
+ *
389
+ * Refer to `Worker constructor` for the detailed behavior of worker
390
+ * threads with this property.
391
+ * @since v0.7.7
392
+ */
393
+ execArgv: string[];
394
+ /**
395
+ * The `process.execPath` property returns the absolute pathname of the executable
396
+ * that started the Node.js process. Symbolic links, if any, are resolved.
397
+ *
398
+ * ```js
399
+ * '/usr/local/bin/node'
400
+ * ```
401
+ * @since v0.1.100
402
+ */
403
+ execPath: string;
404
+ /**
405
+ * The `process.abort()` method causes the Node.js process to exit immediately and
406
+ * generate a core file.
407
+ *
408
+ * This feature is not available in `Worker` threads.
409
+ * @since v0.7.0
410
+ */
411
+ abort(): never;
412
+ /**
413
+ * The `process.chdir()` method changes the current working directory of the
414
+ * Node.js process or throws an exception if doing so fails (for instance, if
415
+ * the specified `directory` does not exist).
416
+ *
417
+ * ```js
418
+ * import { chdir, cwd } from 'node:process';
419
+ *
420
+ * console.log(`Starting directory: ${cwd()}`);
421
+ * try {
422
+ * chdir('/tmp');
423
+ * console.log(`New directory: ${cwd()}`);
424
+ * } catch (err) {
425
+ * console.error(`chdir: ${err}`);
426
+ * }
427
+ * ```
428
+ *
429
+ * This feature is not available in `Worker` threads.
430
+ * @since v0.1.17
431
+ */
432
+ chdir(directory: string): void;
433
+ /**
434
+ * The `process.cwd()` method returns the current working directory of the Node.js
435
+ * process.
436
+ *
437
+ * ```js
438
+ * import { cwd } from 'node:process';
439
+ *
440
+ * console.log(`Current directory: ${cwd()}`);
441
+ * ```
442
+ * @since v0.1.8
443
+ */
444
+ cwd(): string;
445
+ /**
446
+ * The port used by the Node.js debugger when enabled.
447
+ *
448
+ * ```js
449
+ * import process from 'node:process';
450
+ *
451
+ * process.debugPort = 5858;
452
+ * ```
453
+ * @since v0.7.2
454
+ */
455
+ debugPort: number;
456
+ /**
457
+ * The `process.emitWarning()` method can be used to emit custom or application
458
+ * specific process warnings. These can be listened for by adding a handler to the `'warning'` event.
459
+ *
460
+ * ```js
461
+ * import { emitWarning } from 'node:process';
462
+ *
463
+ * // Emit a warning with a code and additional detail.
464
+ * emitWarning('Something happened!', {
465
+ * code: 'MY_WARNING',
466
+ * detail: 'This is some additional information',
467
+ * });
468
+ * // Emits:
469
+ * // (node:56338) [MY_WARNING] Warning: Something happened!
470
+ * // This is some additional information
471
+ * ```
472
+ *
473
+ * In this example, an `Error` object is generated internally by`process.emitWarning()` and passed through to the `'warning'` handler.
474
+ *
475
+ * ```js
476
+ * import process from 'node:process';
477
+ *
478
+ * process.on('warning', (warning) => {
479
+ * console.warn(warning.name); // 'Warning'
480
+ * console.warn(warning.message); // 'Something happened!'
481
+ * console.warn(warning.code); // 'MY_WARNING'
482
+ * console.warn(warning.stack); // Stack trace
483
+ * console.warn(warning.detail); // 'This is some additional information'
484
+ * });
485
+ * ```
486
+ *
487
+ * If `warning` is passed as an `Error` object, the `options` argument is ignored.
488
+ * @since v8.0.0
489
+ * @param warning The warning to emit.
490
+ */
491
+ emitWarning(warning: string | Error, ctor?: Function): void;
492
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
493
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
494
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
495
+ /**
496
+ * The `process.env` property returns an object containing the user environment.
497
+ * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html).
498
+ *
499
+ * An example of this object looks like:
500
+ *
501
+ * ```js
502
+ * {
503
+ * TERM: 'xterm-256color',
504
+ * SHELL: '/usr/local/bin/bash',
505
+ * USER: 'maciej',
506
+ * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin',
507
+ * PWD: '/Users/maciej',
508
+ * EDITOR: 'vim',
509
+ * SHLVL: '1',
510
+ * HOME: '/Users/maciej',
511
+ * LOGNAME: 'maciej',
512
+ * _: '/usr/local/bin/node'
513
+ * }
514
+ * ```
515
+ *
516
+ * It is possible to modify this object, but such modifications will not be
517
+ * reflected outside the Node.js process, or (unless explicitly requested)
518
+ * to other `Worker` threads.
519
+ * In other words, the following example would not work:
520
+ *
521
+ * ```bash
522
+ * node -e 'process.env.foo = "bar"' &#x26;&#x26; echo $foo
523
+ * ```
524
+ *
525
+ * While the following will:
526
+ *
527
+ * ```js
528
+ * import { env } from 'node:process';
529
+ *
530
+ * env.foo = 'bar';
531
+ * console.log(env.foo);
532
+ * ```
533
+ *
534
+ * Assigning a property on `process.env` will implicitly convert the value
535
+ * to a string. **This behavior is deprecated.** Future versions of Node.js may
536
+ * throw an error when the value is not a string, number, or boolean.
537
+ *
538
+ * ```js
539
+ * import { env } from 'node:process';
540
+ *
541
+ * env.test = null;
542
+ * console.log(env.test);
543
+ * // => 'null'
544
+ * env.test = undefined;
545
+ * console.log(env.test);
546
+ * // => 'undefined'
547
+ * ```
548
+ *
549
+ * Use `delete` to delete a property from `process.env`.
550
+ *
551
+ * ```js
552
+ * import { env } from 'node:process';
553
+ *
554
+ * env.TEST = 1;
555
+ * delete env.TEST;
556
+ * console.log(env.TEST);
557
+ * // => undefined
558
+ * ```
559
+ *
560
+ * On Windows operating systems, environment variables are case-insensitive.
561
+ *
562
+ * ```js
563
+ * import { env } from 'node:process';
564
+ *
565
+ * env.TEST = 1;
566
+ * console.log(env.test);
567
+ * // => 1
568
+ * ```
569
+ *
570
+ * Unless explicitly specified when creating a `Worker` instance,
571
+ * each `Worker` thread has its own copy of `process.env`, based on its
572
+ * parent thread's `process.env`, or whatever was specified as the `env` option
573
+ * to the `Worker` constructor. Changes to `process.env` will not be visible
574
+ * across `Worker` threads, and only the main thread can make changes that
575
+ * are visible to the operating system or to native add-ons. On Windows, a copy of`process.env` on a `Worker` instance operates in a case-sensitive manner
576
+ * unlike the main thread.
577
+ * @since v0.1.27
578
+ */
579
+ env: ProcessEnv;
580
+ /**
581
+ * The `process.exit()` method instructs Node.js to terminate the process
582
+ * synchronously with an exit status of `code`. If `code` is omitted, exit uses
583
+ * either the 'success' code `0` or the value of `process.exitCode` if it has been
584
+ * set. Node.js will not terminate until all the `'exit'` event listeners are
585
+ * called.
586
+ *
587
+ * To exit with a 'failure' code:
588
+ *
589
+ * ```js
590
+ * import { exit } from 'node:process';
591
+ *
592
+ * exit(1);
593
+ * ```
594
+ *
595
+ * The shell that executed Node.js should see the exit code as `1`.
596
+ *
597
+ * Calling `process.exit()` will force the process to exit as quickly as possible
598
+ * even if there are still asynchronous operations pending that have not yet
599
+ * completed fully, including I/O operations to `process.stdout` and`process.stderr`.
600
+ *
601
+ * In most situations, it is not actually necessary to call `process.exit()`explicitly. The Node.js process will exit on its own _if there is no additional_
602
+ * _work pending_ in the event loop. The `process.exitCode` property can be set to
603
+ * tell the process which exit code to use when the process exits gracefully.
604
+ *
605
+ * For instance, the following example illustrates a _misuse_ of the`process.exit()` method that could lead to data printed to stdout being
606
+ * truncated and lost:
607
+ *
608
+ * ```js
609
+ * import { exit } from 'node:process';
610
+ *
611
+ * // This is an example of what *not* to do:
612
+ * if (someConditionNotMet()) {
613
+ * printUsageToStdout();
614
+ * exit(1);
615
+ * }
616
+ * ```
617
+ *
618
+ * The reason this is problematic is because writes to `process.stdout` in Node.js
619
+ * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js
620
+ * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed.
621
+ *
622
+ * Rather than calling `process.exit()` directly, the code _should_ set the`process.exitCode` and allow the process to exit naturally by avoiding
623
+ * scheduling any additional work for the event loop:
624
+ *
625
+ * ```js
626
+ * import process from 'node:process';
627
+ *
628
+ * // How to properly set the exit code while letting
629
+ * // the process exit gracefully.
630
+ * if (someConditionNotMet()) {
631
+ * printUsageToStdout();
632
+ * process.exitCode = 1;
633
+ * }
634
+ * ```
635
+ *
636
+ * If it is necessary to terminate the Node.js process due to an error condition,
637
+ * throwing an _uncaught_ error and allowing the process to terminate accordingly
638
+ * is safer than calling `process.exit()`.
639
+ *
640
+ * In `Worker` threads, this function stops the current thread rather
641
+ * than the current process.
642
+ * @since v0.1.13
643
+ * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
644
+ */
645
+ exit(code?: number): never;
646
+ /**
647
+ * A number which will be the process exit code, when the process either
648
+ * exits gracefully, or is exited via {@link exit} without specifying
649
+ * a code.
650
+ *
651
+ * Specifying a code to {@link exit} will override any
652
+ * previous setting of `process.exitCode`.
653
+ * @since v0.11.8
654
+ */
655
+ exitCode?: number | undefined;
656
+ /**
657
+ * The `process.getgid()` method returns the numerical group identity of the
658
+ * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
659
+ *
660
+ * ```js
661
+ * import process from 'process';
662
+ *
663
+ * if (process.getgid) {
664
+ * console.log(`Current gid: ${process.getgid()}`);
665
+ * }
666
+ * ```
667
+ *
668
+ * This function is only available on POSIX platforms (i.e. not Windows or
669
+ * Android).
670
+ * @since v0.1.31
671
+ */
672
+ getgid?: () => number;
673
+ /**
674
+ * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a
675
+ * numeric ID or a group name
676
+ * string. If a group name is specified, this method blocks while resolving the
677
+ * associated numeric ID.
678
+ *
679
+ * ```js
680
+ * import process from 'process';
681
+ *
682
+ * if (process.getgid &#x26;&#x26; process.setgid) {
683
+ * console.log(`Current gid: ${process.getgid()}`);
684
+ * try {
685
+ * process.setgid(501);
686
+ * console.log(`New gid: ${process.getgid()}`);
687
+ * } catch (err) {
688
+ * console.log(`Failed to set gid: ${err}`);
689
+ * }
690
+ * }
691
+ * ```
692
+ *
693
+ * This function is only available on POSIX platforms (i.e. not Windows or
694
+ * Android).
695
+ * This feature is not available in `Worker` threads.
696
+ * @since v0.1.31
697
+ * @param id The group name or ID
698
+ */
699
+ setgid?: (id: number | string) => void;
700
+ /**
701
+ * The `process.getuid()` method returns the numeric user identity of the process.
702
+ * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).)
703
+ *
704
+ * ```js
705
+ * import process from 'process';
706
+ *
707
+ * if (process.getuid) {
708
+ * console.log(`Current uid: ${process.getuid()}`);
709
+ * }
710
+ * ```
711
+ *
712
+ * This function is only available on POSIX platforms (i.e. not Windows or
713
+ * Android).
714
+ * @since v0.1.28
715
+ */
716
+ getuid?: () => number;
717
+ /**
718
+ * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a
719
+ * numeric ID or a username string.
720
+ * If a username is specified, the method blocks while resolving the associated
721
+ * numeric ID.
722
+ *
723
+ * ```js
724
+ * import process from 'process';
725
+ *
726
+ * if (process.getuid &#x26;&#x26; process.setuid) {
727
+ * console.log(`Current uid: ${process.getuid()}`);
728
+ * try {
729
+ * process.setuid(501);
730
+ * console.log(`New uid: ${process.getuid()}`);
731
+ * } catch (err) {
732
+ * console.log(`Failed to set uid: ${err}`);
733
+ * }
734
+ * }
735
+ * ```
736
+ *
737
+ * This function is only available on POSIX platforms (i.e. not Windows or
738
+ * Android).
739
+ * This feature is not available in `Worker` threads.
740
+ * @since v0.1.28
741
+ */
742
+ setuid?: (id: number | string) => void;
743
+ /**
744
+ * The `process.geteuid()` method returns the numerical effective user identity of
745
+ * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).)
746
+ *
747
+ * ```js
748
+ * import process from 'process';
749
+ *
750
+ * if (process.geteuid) {
751
+ * console.log(`Current uid: ${process.geteuid()}`);
752
+ * }
753
+ * ```
754
+ *
755
+ * This function is only available on POSIX platforms (i.e. not Windows or
756
+ * Android).
757
+ * @since v2.0.0
758
+ */
759
+ geteuid?: () => number;
760
+ /**
761
+ * The `process.seteuid()` method sets the effective user identity of the process.
762
+ * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username
763
+ * string. If a username is specified, the method blocks while resolving the
764
+ * associated numeric ID.
765
+ *
766
+ * ```js
767
+ * import process from 'process';
768
+ *
769
+ * if (process.geteuid &#x26;&#x26; process.seteuid) {
770
+ * console.log(`Current uid: ${process.geteuid()}`);
771
+ * try {
772
+ * process.seteuid(501);
773
+ * console.log(`New uid: ${process.geteuid()}`);
774
+ * } catch (err) {
775
+ * console.log(`Failed to set uid: ${err}`);
776
+ * }
777
+ * }
778
+ * ```
779
+ *
780
+ * This function is only available on POSIX platforms (i.e. not Windows or
781
+ * Android).
782
+ * This feature is not available in `Worker` threads.
783
+ * @since v2.0.0
784
+ * @param id A user name or ID
785
+ */
786
+ seteuid?: (id: number | string) => void;
787
+ /**
788
+ * The `process.getegid()` method returns the numerical effective group identity
789
+ * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).)
790
+ *
791
+ * ```js
792
+ * import process from 'process';
793
+ *
794
+ * if (process.getegid) {
795
+ * console.log(`Current gid: ${process.getegid()}`);
796
+ * }
797
+ * ```
798
+ *
799
+ * This function is only available on POSIX platforms (i.e. not Windows or
800
+ * Android).
801
+ * @since v2.0.0
802
+ */
803
+ getegid?: () => number;
804
+ /**
805
+ * The `process.setegid()` method sets the effective group identity of the process.
806
+ * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group
807
+ * name string. If a group name is specified, this method blocks while resolving
808
+ * the associated a numeric ID.
809
+ *
810
+ * ```js
811
+ * import process from 'process';
812
+ *
813
+ * if (process.getegid &#x26;&#x26; process.setegid) {
814
+ * console.log(`Current gid: ${process.getegid()}`);
815
+ * try {
816
+ * process.setegid(501);
817
+ * console.log(`New gid: ${process.getegid()}`);
818
+ * } catch (err) {
819
+ * console.log(`Failed to set gid: ${err}`);
820
+ * }
821
+ * }
822
+ * ```
823
+ *
824
+ * This function is only available on POSIX platforms (i.e. not Windows or
825
+ * Android).
826
+ * This feature is not available in `Worker` threads.
827
+ * @since v2.0.0
828
+ * @param id A group name or ID
829
+ */
830
+ setegid?: (id: number | string) => void;
831
+ /**
832
+ * The `process.getgroups()` method returns an array with the supplementary group
833
+ * IDs. POSIX leaves it unspecified if the effective group ID is included but
834
+ * Node.js ensures it always is.
835
+ *
836
+ * ```js
837
+ * import process from 'process';
838
+ *
839
+ * if (process.getgroups) {
840
+ * console.log(process.getgroups()); // [ 16, 21, 297 ]
841
+ * }
842
+ * ```
843
+ *
844
+ * This function is only available on POSIX platforms (i.e. not Windows or
845
+ * Android).
846
+ * @since v0.9.4
847
+ */
848
+ getgroups?: () => number[];
849
+ /**
850
+ * The `process.setgroups()` method sets the supplementary group IDs for the
851
+ * Node.js process. This is a privileged operation that requires the Node.js
852
+ * process to have `root` or the `CAP_SETGID` capability.
853
+ *
854
+ * The `groups` array can contain numeric group IDs, group names, or both.
855
+ *
856
+ * ```js
857
+ * import process from 'process';
858
+ *
859
+ * if (process.getgroups &#x26;&#x26; process.setgroups) {
860
+ * try {
861
+ * process.setgroups([501]);
862
+ * console.log(process.getgroups()); // new groups
863
+ * } catch (err) {
864
+ * console.log(`Failed to set groups: ${err}`);
865
+ * }
866
+ * }
867
+ * ```
868
+ *
869
+ * This function is only available on POSIX platforms (i.e. not Windows or
870
+ * Android).
871
+ * This feature is not available in `Worker` threads.
872
+ * @since v0.9.4
873
+ */
874
+ setgroups?: (groups: ReadonlyArray<string | number>) => void;
875
+ /**
876
+ * The `process.setUncaughtExceptionCaptureCallback()` function sets a function
877
+ * that will be invoked when an uncaught exception occurs, which will receive the
878
+ * exception value itself as its first argument.
879
+ *
880
+ * If such a function is set, the `'uncaughtException'` event will
881
+ * not be emitted. If `--abort-on-uncaught-exception` was passed from the
882
+ * command line or set through `v8.setFlagsFromString()`, the process will
883
+ * not abort. Actions configured to take place on exceptions such as report
884
+ * generations will be affected too
885
+ *
886
+ * To unset the capture function,`process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this
887
+ * method with a non-`null` argument while another capture function is set will
888
+ * throw an error.
889
+ *
890
+ * Using this function is mutually exclusive with using the deprecated `domain` built-in module.
891
+ * @since v9.3.0
892
+ */
893
+ setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void;
894
+ /**
895
+ * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}.
896
+ * @since v9.3.0
897
+ */
898
+ hasUncaughtExceptionCaptureCallback(): boolean;
899
+ /**
900
+ * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled.
901
+ * @since v20.7.0
902
+ * @experimental
903
+ */
904
+ readonly sourceMapsEnabled: boolean;
905
+ /**
906
+ * This function enables or disables the Source Map v3 support for stack traces.
907
+ * It provides same features as launching Node.js process with commandline options --enable-source-maps.
908
+ * @since v16.6.0
909
+ * @experimental
910
+ */
911
+ setSourceMapsEnabled(value: boolean): void;
912
+ /**
913
+ * The `process.version` property contains the Node.js version string.
914
+ *
915
+ * ```js
916
+ * import { version } from 'node:process';
917
+ *
918
+ * console.log(`Version: ${version}`);
919
+ * // Version: v14.8.0
920
+ * ```
921
+ *
922
+ * To get the version string without the prepended _v_, use`process.versions.node`.
923
+ * @since v0.1.3
924
+ */
925
+ readonly version: string;
926
+ /**
927
+ * The `process.versions` property returns an object listing the version strings of
928
+ * Node.js and its dependencies. `process.versions.modules` indicates the current
929
+ * ABI version, which is increased whenever a C++ API changes. Node.js will refuse
930
+ * to load modules that were compiled against a different module ABI version.
931
+ *
932
+ * ```js
933
+ * import { versions } from 'node:process';
934
+ *
935
+ * console.log(versions);
936
+ * ```
937
+ *
938
+ * Will generate an object similar to:
939
+ *
940
+ * ```console
941
+ * { node: '20.2.0',
942
+ * acorn: '8.8.2',
943
+ * ada: '2.4.0',
944
+ * ares: '1.19.0',
945
+ * base64: '0.5.0',
946
+ * brotli: '1.0.9',
947
+ * cjs_module_lexer: '1.2.2',
948
+ * cldr: '43.0',
949
+ * icu: '73.1',
950
+ * llhttp: '8.1.0',
951
+ * modules: '115',
952
+ * napi: '8',
953
+ * nghttp2: '1.52.0',
954
+ * nghttp3: '0.7.0',
955
+ * ngtcp2: '0.8.1',
956
+ * openssl: '3.0.8+quic',
957
+ * simdutf: '3.2.9',
958
+ * tz: '2023c',
959
+ * undici: '5.22.0',
960
+ * unicode: '15.0',
961
+ * uv: '1.44.2',
962
+ * uvwasi: '0.0.16',
963
+ * v8: '11.3.244.8-node.9',
964
+ * zlib: '1.2.13' }
965
+ * ```
966
+ * @since v0.2.0
967
+ */
968
+ readonly versions: ProcessVersions;
969
+ /**
970
+ * The `process.config` property returns a frozen `Object` containing the
971
+ * JavaScript representation of the configure options used to compile the current
972
+ * Node.js executable. This is the same as the `config.gypi` file that was produced
973
+ * when running the `./configure` script.
974
+ *
975
+ * An example of the possible output looks like:
976
+ *
977
+ * ```js
978
+ * {
979
+ * target_defaults:
980
+ * { cflags: [],
981
+ * default_configuration: 'Release',
982
+ * defines: [],
983
+ * include_dirs: [],
984
+ * libraries: [] },
985
+ * variables:
986
+ * {
987
+ * host_arch: 'x64',
988
+ * napi_build_version: 5,
989
+ * node_install_npm: 'true',
990
+ * node_prefix: '',
991
+ * node_shared_cares: 'false',
992
+ * node_shared_http_parser: 'false',
993
+ * node_shared_libuv: 'false',
994
+ * node_shared_zlib: 'false',
995
+ * node_use_openssl: 'true',
996
+ * node_shared_openssl: 'false',
997
+ * strict_aliasing: 'true',
998
+ * target_arch: 'x64',
999
+ * v8_use_snapshot: 1
1000
+ * }
1001
+ * }
1002
+ * ```
1003
+ * @since v0.7.7
1004
+ */
1005
+ readonly config: ProcessConfig;
1006
+ /**
1007
+ * The `process.kill()` method sends the `signal` to the process identified by`pid`.
1008
+ *
1009
+ * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information.
1010
+ *
1011
+ * This method will throw an error if the target `pid` does not exist. As a special
1012
+ * case, a signal of `0` can be used to test for the existence of a process.
1013
+ * Windows platforms will throw an error if the `pid` is used to kill a process
1014
+ * group.
1015
+ *
1016
+ * Even though the name of this function is `process.kill()`, it is really just a
1017
+ * signal sender, like the `kill` system call. The signal sent may do something
1018
+ * other than kill the target process.
1019
+ *
1020
+ * ```js
1021
+ * import process, { kill } from 'node:process';
1022
+ *
1023
+ * process.on('SIGHUP', () => {
1024
+ * console.log('Got SIGHUP signal.');
1025
+ * });
1026
+ *
1027
+ * setTimeout(() => {
1028
+ * console.log('Exiting.');
1029
+ * process.exit(0);
1030
+ * }, 100);
1031
+ *
1032
+ * kill(process.pid, 'SIGHUP');
1033
+ * ```
1034
+ *
1035
+ * When `SIGUSR1` is received by a Node.js process, Node.js will start the
1036
+ * debugger. See `Signal Events`.
1037
+ * @since v0.0.6
1038
+ * @param pid A process ID
1039
+ * @param [signal='SIGTERM'] The signal to send, either as a string or number.
1040
+ */
1041
+ kill(pid: number, signal?: string | number): true;
1042
+ /**
1043
+ * The `process.pid` property returns the PID of the process.
1044
+ *
1045
+ * ```js
1046
+ * import { pid } from 'node:process';
1047
+ *
1048
+ * console.log(`This process is pid ${pid}`);
1049
+ * ```
1050
+ * @since v0.1.15
1051
+ */
1052
+ readonly pid: number;
1053
+ /**
1054
+ * The `process.ppid` property returns the PID of the parent of the
1055
+ * current process.
1056
+ *
1057
+ * ```js
1058
+ * import { ppid } from 'node:process';
1059
+ *
1060
+ * console.log(`The parent process is pid ${ppid}`);
1061
+ * ```
1062
+ * @since v9.2.0, v8.10.0, v6.13.0
1063
+ */
1064
+ readonly ppid: number;
1065
+ /**
1066
+ * The `process.title` property returns the current process title (i.e. returns
1067
+ * the current value of `ps`). Assigning a new value to `process.title` modifies
1068
+ * the current value of `ps`.
1069
+ *
1070
+ * When a new value is assigned, different platforms will impose different maximum
1071
+ * length restrictions on the title. Usually such restrictions are quite limited.
1072
+ * For instance, on Linux and macOS, `process.title` is limited to the size of the
1073
+ * binary name plus the length of the command-line arguments because setting the`process.title` overwrites the `argv` memory of the process. Node.js v0.8
1074
+ * allowed for longer process title strings by also overwriting the `environ`memory but that was potentially insecure and confusing in some (rather obscure)
1075
+ * cases.
1076
+ *
1077
+ * Assigning a value to `process.title` might not result in an accurate label
1078
+ * within process manager applications such as macOS Activity Monitor or Windows
1079
+ * Services Manager.
1080
+ * @since v0.1.104
1081
+ */
1082
+ title: string;
1083
+ /**
1084
+ * The operating system CPU architecture for which the Node.js binary was compiled.
1085
+ * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
1086
+ *
1087
+ * ```js
1088
+ * import { arch } from 'node:process';
1089
+ *
1090
+ * console.log(`This processor architecture is ${arch}`);
1091
+ * ```
1092
+ * @since v0.5.0
1093
+ */
1094
+ readonly arch: Architecture;
1095
+ /**
1096
+ * The `process.platform` property returns a string identifying the operating
1097
+ * system platform for which the Node.js binary was compiled.
1098
+ *
1099
+ * Currently possible values are:
1100
+ *
1101
+ * * `'aix'`
1102
+ * * `'darwin'`
1103
+ * * `'freebsd'`
1104
+ * * `'linux'`
1105
+ * * `'openbsd'`
1106
+ * * `'sunos'`
1107
+ * * `'win32'`
1108
+ *
1109
+ * ```js
1110
+ * import { platform } from 'node:process';
1111
+ *
1112
+ * console.log(`This platform is ${platform}`);
1113
+ * ```
1114
+ *
1115
+ * The value `'android'` may also be returned if the Node.js is built on the
1116
+ * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os).
1117
+ * @since v0.1.16
1118
+ */
1119
+ readonly platform: Platform;
1120
+ /**
1121
+ * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at
1122
+ * runtime, `require.main` may still refer to the original main module in
1123
+ * modules that were required before the change occurred. Generally, it's
1124
+ * safe to assume that the two refer to the same module.
1125
+ *
1126
+ * As with `require.main`, `process.mainModule` will be `undefined` if there
1127
+ * is no entry script.
1128
+ * @since v0.1.17
1129
+ * @deprecated Since v14.0.0 - Use `main` instead.
1130
+ */
1131
+ mainModule?: Module | undefined;
1132
+ memoryUsage: MemoryUsageFn;
1133
+ /**
1134
+ * Gets the amount of memory available to the process (in bytes) based on
1135
+ * limits imposed by the OS. If there is no such constraint, or the constraint
1136
+ * is unknown, `undefined` is returned.
1137
+ *
1138
+ * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more
1139
+ * information.
1140
+ * @since v19.6.0, v18.15.0
1141
+ * @experimental
1142
+ */
1143
+ constrainedMemory(): number | undefined;
1144
+ /**
1145
+ * The `process.cpuUsage()` method returns the user and system CPU time usage of
1146
+ * the current process, in an object with properties `user` and `system`, whose
1147
+ * values are microsecond values (millionth of a second). These values measure time
1148
+ * spent in user and system code respectively, and may end up being greater than
1149
+ * actual elapsed time if multiple CPU cores are performing work for this process.
1150
+ *
1151
+ * The result of a previous call to `process.cpuUsage()` can be passed as the
1152
+ * argument to the function, to get a diff reading.
1153
+ *
1154
+ * ```js
1155
+ * import { cpuUsage } from 'node:process';
1156
+ *
1157
+ * const startUsage = cpuUsage();
1158
+ * // { user: 38579, system: 6986 }
1159
+ *
1160
+ * // spin the CPU for 500 milliseconds
1161
+ * const now = Date.now();
1162
+ * while (Date.now() - now < 500);
1163
+ *
1164
+ * console.log(cpuUsage(startUsage));
1165
+ * // { user: 514883, system: 11226 }
1166
+ * ```
1167
+ * @since v6.1.0
1168
+ * @param previousValue A previous return value from calling `process.cpuUsage()`
1169
+ */
1170
+ cpuUsage(previousValue?: CpuUsage): CpuUsage;
1171
+ /**
1172
+ * `process.nextTick()` adds `callback` to the "next tick queue". This queue is
1173
+ * fully drained after the current operation on the JavaScript stack runs to
1174
+ * completion and before the event loop is allowed to continue. It's possible to
1175
+ * create an infinite loop if one were to recursively call `process.nextTick()`.
1176
+ * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background.
1177
+ *
1178
+ * ```js
1179
+ * import { nextTick } from 'node:process';
1180
+ *
1181
+ * console.log('start');
1182
+ * nextTick(() => {
1183
+ * console.log('nextTick callback');
1184
+ * });
1185
+ * console.log('scheduled');
1186
+ * // Output:
1187
+ * // start
1188
+ * // scheduled
1189
+ * // nextTick callback
1190
+ * ```
1191
+ *
1192
+ * This is important when developing APIs in order to give users the opportunity
1193
+ * to assign event handlers _after_ an object has been constructed but before any
1194
+ * I/O has occurred:
1195
+ *
1196
+ * ```js
1197
+ * import { nextTick } from 'node:process';
1198
+ *
1199
+ * function MyThing(options) {
1200
+ * this.setupOptions(options);
1201
+ *
1202
+ * nextTick(() => {
1203
+ * this.startDoingStuff();
1204
+ * });
1205
+ * }
1206
+ *
1207
+ * const thing = new MyThing();
1208
+ * thing.getReadyForStuff();
1209
+ *
1210
+ * // thing.startDoingStuff() gets called now, not before.
1211
+ * ```
1212
+ *
1213
+ * It is very important for APIs to be either 100% synchronous or 100%
1214
+ * asynchronous. Consider this example:
1215
+ *
1216
+ * ```js
1217
+ * // WARNING! DO NOT USE! BAD UNSAFE HAZARD!
1218
+ * function maybeSync(arg, cb) {
1219
+ * if (arg) {
1220
+ * cb();
1221
+ * return;
1222
+ * }
1223
+ *
1224
+ * fs.stat('file', cb);
1225
+ * }
1226
+ * ```
1227
+ *
1228
+ * This API is hazardous because in the following case:
1229
+ *
1230
+ * ```js
1231
+ * const maybeTrue = Math.random() > 0.5;
1232
+ *
1233
+ * maybeSync(maybeTrue, () => {
1234
+ * foo();
1235
+ * });
1236
+ *
1237
+ * bar();
1238
+ * ```
1239
+ *
1240
+ * It is not clear whether `foo()` or `bar()` will be called first.
1241
+ *
1242
+ * The following approach is much better:
1243
+ *
1244
+ * ```js
1245
+ * import { nextTick } from 'node:process';
1246
+ *
1247
+ * function definitelyAsync(arg, cb) {
1248
+ * if (arg) {
1249
+ * nextTick(cb);
1250
+ * return;
1251
+ * }
1252
+ *
1253
+ * fs.stat('file', cb);
1254
+ * }
1255
+ * ```
1256
+ * @since v0.1.26
1257
+ * @param args Additional arguments to pass when invoking the `callback`
1258
+ */
1259
+ nextTick(callback: Function, ...args: any[]): void;
1260
+ /**
1261
+ * The `process.release` property returns an `Object` containing metadata related
1262
+ * to the current release, including URLs for the source tarball and headers-only
1263
+ * tarball.
1264
+ *
1265
+ * `process.release` contains the following properties:
1266
+ *
1267
+ * ```js
1268
+ * {
1269
+ * name: 'node',
1270
+ * lts: 'Hydrogen',
1271
+ * sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz',
1272
+ * headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz',
1273
+ * libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib'
1274
+ * }
1275
+ * ```
1276
+ *
1277
+ * In custom builds from non-release versions of the source tree, only the`name` property may be present. The additional properties should not be
1278
+ * relied upon to exist.
1279
+ * @since v3.0.0
1280
+ */
1281
+ readonly release: ProcessRelease;
1282
+ features: {
1283
+ inspector: boolean;
1284
+ debug: boolean;
1285
+ uv: boolean;
1286
+ ipv6: boolean;
1287
+ tls_alpn: boolean;
1288
+ tls_sni: boolean;
1289
+ tls_ocsp: boolean;
1290
+ tls: boolean;
1291
+ };
1292
+ /**
1293
+ * `process.umask()` returns the Node.js process's file mode creation mask. Child
1294
+ * processes inherit the mask from the parent process.
1295
+ * @since v0.1.19
1296
+ * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential *
1297
+ * security vulnerability. There is no safe, cross-platform alternative API.
1298
+ */
1299
+ umask(): number;
1300
+ /**
1301
+ * Can only be set if not in worker thread.
1302
+ */
1303
+ umask(mask: string | number): number;
1304
+ /**
1305
+ * The `process.uptime()` method returns the number of seconds the current Node.js
1306
+ * process has been running.
1307
+ *
1308
+ * The return value includes fractions of a second. Use `Math.floor()` to get whole
1309
+ * seconds.
1310
+ * @since v0.5.0
1311
+ */
1312
+ uptime(): number;
1313
+ hrtime: HRTime;
1314
+ /**
1315
+ * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1316
+ * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
1317
+ *
1318
+ * If Node.js was not spawned with an IPC channel, `process.send` will be `undefined`.
1319
+ *
1320
+ * The message goes through serialization and parsing. The resulting message might
1321
+ * not be the same as what is originally sent.
1322
+ * @since v0.5.9
1323
+ * @param options used to parameterize the sending of certain types of handles.`options` supports the following properties:
1324
+ */
1325
+ send?(
1326
+ message: any,
1327
+ sendHandle?: any,
1328
+ options?: {
1329
+ swallowErrors?: boolean | undefined;
1330
+ },
1331
+ callback?: (error: Error | null) => void,
1332
+ ): boolean;
1333
+ /**
1334
+ * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the
1335
+ * IPC channel to the parent process, allowing the child process to exit gracefully
1336
+ * once there are no other connections keeping it alive.
1337
+ *
1338
+ * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process.
1339
+ *
1340
+ * If the Node.js process was not spawned with an IPC channel,`process.disconnect()` will be `undefined`.
1341
+ * @since v0.7.2
1342
+ */
1343
+ disconnect(): void;
1344
+ /**
1345
+ * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return`true` so long as the IPC
1346
+ * channel is connected and will return `false` after`process.disconnect()` is called.
1347
+ *
1348
+ * Once `process.connected` is `false`, it is no longer possible to send messages
1349
+ * over the IPC channel using `process.send()`.
1350
+ * @since v0.7.2
1351
+ */
1352
+ connected: boolean;
1353
+ /**
1354
+ * The `process.allowedNodeEnvironmentFlags` property is a special,
1355
+ * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable.
1356
+ *
1357
+ * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides`Set.prototype.has` to recognize several different possible flag
1358
+ * representations. `process.allowedNodeEnvironmentFlags.has()` will
1359
+ * return `true` in the following cases:
1360
+ *
1361
+ * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g.,`inspect-brk` for `--inspect-brk`, or `r` for `-r`.
1362
+ * * Flags passed through to V8 (as listed in `--v8-options`) may replace
1363
+ * one or more _non-leading_ dashes for an underscore, or vice-versa;
1364
+ * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`,
1365
+ * etc.
1366
+ * * Flags may contain one or more equals (`=`) characters; all
1367
+ * characters after and including the first equals will be ignored;
1368
+ * e.g., `--stack-trace-limit=100`.
1369
+ * * Flags _must_ be allowable within `NODE_OPTIONS`.
1370
+ *
1371
+ * When iterating over `process.allowedNodeEnvironmentFlags`, flags will
1372
+ * appear only _once_; each will begin with one or more dashes. Flags
1373
+ * passed through to V8 will contain underscores instead of non-leading
1374
+ * dashes:
1375
+ *
1376
+ * ```js
1377
+ * import { allowedNodeEnvironmentFlags } from 'node:process';
1378
+ *
1379
+ * allowedNodeEnvironmentFlags.forEach((flag) => {
1380
+ * // -r
1381
+ * // --inspect-brk
1382
+ * // --abort_on_uncaught_exception
1383
+ * // ...
1384
+ * });
1385
+ * ```
1386
+ *
1387
+ * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail
1388
+ * silently.
1389
+ *
1390
+ * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will
1391
+ * contain what _would have_ been allowable.
1392
+ * @since v10.10.0
1393
+ */
1394
+ allowedNodeEnvironmentFlags: ReadonlySet<string>;
1395
+ /**
1396
+ * `process.report` is an object whose methods are used to generate diagnostic
1397
+ * reports for the current process. Additional documentation is available in the `report documentation`.
1398
+ * @since v11.8.0
1399
+ */
1400
+ report?: ProcessReport | undefined;
1401
+ /**
1402
+ * ```js
1403
+ * import { resourceUsage } from 'node:process';
1404
+ *
1405
+ * console.log(resourceUsage());
1406
+ * /*
1407
+ * Will output:
1408
+ * {
1409
+ * userCPUTime: 82872,
1410
+ * systemCPUTime: 4143,
1411
+ * maxRSS: 33164,
1412
+ * sharedMemorySize: 0,
1413
+ * unsharedDataSize: 0,
1414
+ * unsharedStackSize: 0,
1415
+ * minorPageFault: 2469,
1416
+ * majorPageFault: 0,
1417
+ * swappedOut: 0,
1418
+ * fsRead: 0,
1419
+ * fsWrite: 8,
1420
+ * ipcSent: 0,
1421
+ * ipcReceived: 0,
1422
+ * signalsCount: 0,
1423
+ * voluntaryContextSwitches: 79,
1424
+ * involuntaryContextSwitches: 1
1425
+ * }
1426
+ *
1427
+ * ```
1428
+ * @since v12.6.0
1429
+ * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t].
1430
+ */
1431
+ resourceUsage(): ResourceUsage;
1432
+ /**
1433
+ * The `process.traceDeprecation` property indicates whether the`--trace-deprecation` flag is set on the current Node.js process. See the
1434
+ * documentation for the `'warning' event` and the `emitWarning() method` for more information about this
1435
+ * flag's behavior.
1436
+ * @since v0.8.0
1437
+ */
1438
+ traceDeprecation: boolean;
1439
+ /* EventEmitter */
1440
+ addListener(event: "beforeExit", listener: BeforeExitListener): this;
1441
+ addListener(event: "disconnect", listener: DisconnectListener): this;
1442
+ addListener(event: "exit", listener: ExitListener): this;
1443
+ addListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1444
+ addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1445
+ addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1446
+ addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1447
+ addListener(event: "warning", listener: WarningListener): this;
1448
+ addListener(event: "message", listener: MessageListener): this;
1449
+ addListener(event: Signals, listener: SignalsListener): this;
1450
+ addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1451
+ addListener(event: "worker", listener: WorkerListener): this;
1452
+ emit(event: "beforeExit", code: number): boolean;
1453
+ emit(event: "disconnect"): boolean;
1454
+ emit(event: "exit", code: number): boolean;
1455
+ emit(event: "rejectionHandled", promise: Promise<unknown>): boolean;
1456
+ emit(event: "uncaughtException", error: Error): boolean;
1457
+ emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
1458
+ emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
1459
+ emit(event: "warning", warning: Error): boolean;
1460
+ emit(event: "message", message: unknown, sendHandle: unknown): this;
1461
+ emit(event: Signals, signal?: Signals): boolean;
1462
+ emit(
1463
+ event: "multipleResolves",
1464
+ type: MultipleResolveType,
1465
+ promise: Promise<unknown>,
1466
+ value: unknown,
1467
+ ): this;
1468
+ emit(event: "worker", listener: WorkerListener): this;
1469
+ on(event: "beforeExit", listener: BeforeExitListener): this;
1470
+ on(event: "disconnect", listener: DisconnectListener): this;
1471
+ on(event: "exit", listener: ExitListener): this;
1472
+ on(event: "rejectionHandled", listener: RejectionHandledListener): this;
1473
+ on(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1474
+ on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1475
+ on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1476
+ on(event: "warning", listener: WarningListener): this;
1477
+ on(event: "message", listener: MessageListener): this;
1478
+ on(event: Signals, listener: SignalsListener): this;
1479
+ on(event: "multipleResolves", listener: MultipleResolveListener): this;
1480
+ on(event: "worker", listener: WorkerListener): this;
1481
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
1482
+ once(event: "beforeExit", listener: BeforeExitListener): this;
1483
+ once(event: "disconnect", listener: DisconnectListener): this;
1484
+ once(event: "exit", listener: ExitListener): this;
1485
+ once(event: "rejectionHandled", listener: RejectionHandledListener): this;
1486
+ once(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1487
+ once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1488
+ once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1489
+ once(event: "warning", listener: WarningListener): this;
1490
+ once(event: "message", listener: MessageListener): this;
1491
+ once(event: Signals, listener: SignalsListener): this;
1492
+ once(event: "multipleResolves", listener: MultipleResolveListener): this;
1493
+ once(event: "worker", listener: WorkerListener): this;
1494
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
1495
+ prependListener(event: "beforeExit", listener: BeforeExitListener): this;
1496
+ prependListener(event: "disconnect", listener: DisconnectListener): this;
1497
+ prependListener(event: "exit", listener: ExitListener): this;
1498
+ prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1499
+ prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1500
+ prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1501
+ prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1502
+ prependListener(event: "warning", listener: WarningListener): this;
1503
+ prependListener(event: "message", listener: MessageListener): this;
1504
+ prependListener(event: Signals, listener: SignalsListener): this;
1505
+ prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1506
+ prependListener(event: "worker", listener: WorkerListener): this;
1507
+ prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this;
1508
+ prependOnceListener(event: "disconnect", listener: DisconnectListener): this;
1509
+ prependOnceListener(event: "exit", listener: ExitListener): this;
1510
+ prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this;
1511
+ prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this;
1512
+ prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this;
1513
+ prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1514
+ prependOnceListener(event: "warning", listener: WarningListener): this;
1515
+ prependOnceListener(event: "message", listener: MessageListener): this;
1516
+ prependOnceListener(event: Signals, listener: SignalsListener): this;
1517
+ prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1518
+ prependOnceListener(event: "worker", listener: WorkerListener): this;
1519
+ listeners(event: "beforeExit"): BeforeExitListener[];
1520
+ listeners(event: "disconnect"): DisconnectListener[];
1521
+ listeners(event: "exit"): ExitListener[];
1522
+ listeners(event: "rejectionHandled"): RejectionHandledListener[];
1523
+ listeners(event: "uncaughtException"): UncaughtExceptionListener[];
1524
+ listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[];
1525
+ listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
1526
+ listeners(event: "warning"): WarningListener[];
1527
+ listeners(event: "message"): MessageListener[];
1528
+ listeners(event: Signals): SignalsListener[];
1529
+ listeners(event: "multipleResolves"): MultipleResolveListener[];
1530
+ listeners(event: "worker"): WorkerListener[];
1531
+ }
1532
+ }
1533
+ }
1534
+ export = process;
1535
+ }
1536
+ declare module "node:process" {
1537
+ import process = require("process");
1538
+ export = process;
1539
+ }