cloudstructs 0.1.37 → 0.1.41

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