css-variable-lsp 1.0.0 → 1.0.2

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