rahad-media-downloader 2.1.10 → 2.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. package/.cache/replit/modules/nodejs-20.res +1 -0
  2. package/.cache/replit/modules/replit.res +1 -0
  3. package/.cache/typescript/5.3/node_modules/.package-lock.json +6 -0
  4. package/.cache/typescript/5.3/node_modules/@types/qs/LICENSE +21 -0
  5. package/.cache/typescript/5.3/node_modules/@types/qs/README.md +15 -0
  6. package/.cache/typescript/5.3/node_modules/@types/qs/index.d.ts +79 -0
  7. package/.cache/typescript/5.3/node_modules/@types/qs/package.json +65 -0
  8. package/.cache/typescript/5.3/package-lock.json +7 -0
  9. package/.cache/typescript/5.3/package.json +1 -1
  10. package/.cache/typescript/5.4/node_modules/.package-lock.json +185 -0
  11. package/.cache/typescript/5.4/node_modules/@types/caseless/LICENSE +21 -0
  12. package/.cache/typescript/5.4/node_modules/@types/caseless/README.md +48 -0
  13. package/.cache/typescript/5.4/node_modules/@types/caseless/index.d.ts +29 -0
  14. package/.cache/typescript/5.4/node_modules/@types/caseless/package.json +35 -0
  15. package/.cache/typescript/5.4/node_modules/@types/domhandler/LICENSE +21 -0
  16. package/.cache/typescript/5.4/node_modules/@types/domhandler/README.md +92 -0
  17. package/.cache/typescript/5.4/node_modules/@types/domhandler/index.d.ts +73 -0
  18. package/.cache/typescript/5.4/node_modules/@types/domhandler/package.json +25 -0
  19. package/.cache/typescript/5.4/node_modules/@types/domutils/LICENSE +21 -0
  20. package/.cache/typescript/5.4/node_modules/@types/domutils/README.md +15 -0
  21. package/.cache/typescript/5.4/node_modules/@types/domutils/index.d.ts +124 -0
  22. package/.cache/typescript/5.4/node_modules/@types/domutils/package.json +27 -0
  23. package/.cache/typescript/5.4/node_modules/@types/htmlparser2/LICENSE +21 -0
  24. package/.cache/typescript/5.4/node_modules/@types/htmlparser2/README.md +15 -0
  25. package/.cache/typescript/5.4/node_modules/@types/htmlparser2/index.d.ts +120 -0
  26. package/.cache/typescript/5.4/node_modules/@types/htmlparser2/package.json +45 -0
  27. package/.cache/typescript/5.4/node_modules/@types/node/LICENSE +21 -0
  28. package/.cache/typescript/5.4/node_modules/@types/node/README.md +15 -0
  29. package/.cache/typescript/5.4/node_modules/@types/node/assert/strict.d.ts +8 -0
  30. package/.cache/typescript/5.4/node_modules/@types/node/assert.d.ts +1040 -0
  31. package/.cache/typescript/5.4/node_modules/@types/node/async_hooks.d.ts +541 -0
  32. package/.cache/typescript/5.4/node_modules/@types/node/buffer.d.ts +2363 -0
  33. package/.cache/typescript/5.4/node_modules/@types/node/child_process.d.ts +1542 -0
  34. package/.cache/typescript/5.4/node_modules/@types/node/cluster.d.ts +578 -0
  35. package/.cache/typescript/5.4/node_modules/@types/node/console.d.ts +452 -0
  36. package/.cache/typescript/5.4/node_modules/@types/node/constants.d.ts +19 -0
  37. package/.cache/typescript/5.4/node_modules/@types/node/crypto.d.ts +4522 -0
  38. package/.cache/typescript/5.4/node_modules/@types/node/dgram.d.ts +596 -0
  39. package/.cache/typescript/5.4/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
  40. package/.cache/typescript/5.4/node_modules/@types/node/dns/promises.d.ts +473 -0
  41. package/.cache/typescript/5.4/node_modules/@types/node/dns.d.ts +853 -0
  42. package/.cache/typescript/5.4/node_modules/@types/node/dom-events.d.ts +124 -0
  43. package/.cache/typescript/5.4/node_modules/@types/node/domain.d.ts +170 -0
  44. package/.cache/typescript/5.4/node_modules/@types/node/events.d.ts +884 -0
  45. package/.cache/typescript/5.4/node_modules/@types/node/fs/promises.d.ts +1245 -0
  46. package/.cache/typescript/5.4/node_modules/@types/node/fs.d.ts +4317 -0
  47. package/.cache/typescript/5.4/node_modules/@types/node/globals.d.ts +411 -0
  48. package/.cache/typescript/5.4/node_modules/@types/node/globals.global.d.ts +1 -0
  49. package/.cache/typescript/5.4/node_modules/@types/node/http.d.ts +1889 -0
  50. package/.cache/typescript/5.4/node_modules/@types/node/http2.d.ts +2418 -0
  51. package/.cache/typescript/5.4/node_modules/@types/node/https.d.ts +550 -0
  52. package/.cache/typescript/5.4/node_modules/@types/node/index.d.ts +89 -0
  53. package/.cache/typescript/5.4/node_modules/@types/node/inspector.d.ts +2746 -0
  54. package/.cache/typescript/5.4/node_modules/@types/node/module.d.ts +315 -0
  55. package/.cache/typescript/5.4/node_modules/@types/node/net.d.ts +996 -0
  56. package/.cache/typescript/5.4/node_modules/@types/node/os.d.ts +495 -0
  57. package/.cache/typescript/5.4/node_modules/@types/node/package.json +217 -0
  58. package/.cache/typescript/5.4/node_modules/@types/node/path.d.ts +191 -0
  59. package/.cache/typescript/5.4/node_modules/@types/node/perf_hooks.d.ts +645 -0
  60. package/.cache/typescript/5.4/node_modules/@types/node/process.d.ts +1747 -0
  61. package/.cache/typescript/5.4/node_modules/@types/node/punycode.d.ts +117 -0
  62. package/.cache/typescript/5.4/node_modules/@types/node/querystring.d.ts +153 -0
  63. package/.cache/typescript/5.4/node_modules/@types/node/readline/promises.d.ts +150 -0
  64. package/.cache/typescript/5.4/node_modules/@types/node/readline.d.ts +540 -0
  65. package/.cache/typescript/5.4/node_modules/@types/node/repl.d.ts +430 -0
  66. package/.cache/typescript/5.4/node_modules/@types/node/sea.d.ts +153 -0
  67. package/.cache/typescript/5.4/node_modules/@types/node/stream/consumers.d.ts +12 -0
  68. package/.cache/typescript/5.4/node_modules/@types/node/stream/promises.d.ts +83 -0
  69. package/.cache/typescript/5.4/node_modules/@types/node/stream/web.d.ts +367 -0
  70. package/.cache/typescript/5.4/node_modules/@types/node/stream.d.ts +1707 -0
  71. package/.cache/typescript/5.4/node_modules/@types/node/string_decoder.d.ts +67 -0
  72. package/.cache/typescript/5.4/node_modules/@types/node/test.d.ts +1470 -0
  73. package/.cache/typescript/5.4/node_modules/@types/node/timers/promises.d.ts +97 -0
  74. package/.cache/typescript/5.4/node_modules/@types/node/timers.d.ts +240 -0
  75. package/.cache/typescript/5.4/node_modules/@types/node/tls.d.ts +1217 -0
  76. package/.cache/typescript/5.4/node_modules/@types/node/trace_events.d.ts +197 -0
  77. package/.cache/typescript/5.4/node_modules/@types/node/tty.d.ts +208 -0
  78. package/.cache/typescript/5.4/node_modules/@types/node/url.d.ts +944 -0
  79. package/.cache/typescript/5.4/node_modules/@types/node/util.d.ts +2276 -0
  80. package/.cache/typescript/5.4/node_modules/@types/node/v8.d.ts +764 -0
  81. package/.cache/typescript/5.4/node_modules/@types/node/vm.d.ts +921 -0
  82. package/.cache/typescript/5.4/node_modules/@types/node/wasi.d.ts +181 -0
  83. package/.cache/typescript/5.4/node_modules/@types/node/worker_threads.d.ts +691 -0
  84. package/.cache/typescript/5.4/node_modules/@types/node/zlib.d.ts +530 -0
  85. package/.cache/typescript/5.4/node_modules/@types/node-fetch/LICENSE +21 -0
  86. package/.cache/typescript/5.4/node_modules/@types/node-fetch/README.md +15 -0
  87. package/.cache/typescript/5.4/node_modules/@types/node-fetch/externals.d.ts +32 -0
  88. package/.cache/typescript/5.4/node_modules/@types/node-fetch/index.d.ts +238 -0
  89. package/.cache/typescript/5.4/node_modules/@types/node-fetch/package.json +83 -0
  90. package/.cache/typescript/5.4/node_modules/@types/qs/LICENSE +21 -0
  91. package/.cache/typescript/5.4/node_modules/@types/qs/README.md +15 -0
  92. package/.cache/typescript/5.4/node_modules/@types/qs/index.d.ts +79 -0
  93. package/.cache/typescript/5.4/node_modules/@types/qs/package.json +65 -0
  94. package/.cache/typescript/5.4/node_modules/@types/request/LICENSE +21 -0
  95. package/.cache/typescript/5.4/node_modules/@types/request/README.md +15 -0
  96. package/.cache/typescript/5.4/node_modules/@types/request/index.d.ts +395 -0
  97. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/License +19 -0
  98. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/README.md +350 -0
  99. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/README.md.bak +350 -0
  100. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/index.d.ts +51 -0
  101. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/browser.js +2 -0
  102. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/form_data.js +483 -0
  103. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/populate.js +10 -0
  104. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/package.json +68 -0
  105. package/.cache/typescript/5.4/node_modules/@types/request/package.json +70 -0
  106. package/.cache/typescript/5.4/node_modules/@types/tough-cookie/LICENSE +21 -0
  107. package/.cache/typescript/5.4/node_modules/@types/tough-cookie/README.md +15 -0
  108. package/.cache/typescript/5.4/node_modules/@types/tough-cookie/index.d.ts +321 -0
  109. package/.cache/typescript/5.4/node_modules/@types/tough-cookie/package.json +35 -0
  110. package/.cache/typescript/5.4/node_modules/asynckit/LICENSE +21 -0
  111. package/.cache/typescript/5.4/node_modules/asynckit/README.md +233 -0
  112. package/.cache/typescript/5.4/node_modules/asynckit/bench.js +76 -0
  113. package/.cache/typescript/5.4/node_modules/asynckit/index.js +6 -0
  114. package/.cache/typescript/5.4/node_modules/asynckit/lib/abort.js +29 -0
  115. package/.cache/typescript/5.4/node_modules/asynckit/lib/async.js +34 -0
  116. package/.cache/typescript/5.4/node_modules/asynckit/lib/defer.js +26 -0
  117. package/.cache/typescript/5.4/node_modules/asynckit/lib/iterate.js +75 -0
  118. package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  119. package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_parallel.js +25 -0
  120. package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_serial.js +25 -0
  121. package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  122. package/.cache/typescript/5.4/node_modules/asynckit/lib/state.js +37 -0
  123. package/.cache/typescript/5.4/node_modules/asynckit/lib/streamify.js +141 -0
  124. package/.cache/typescript/5.4/node_modules/asynckit/lib/terminator.js +29 -0
  125. package/.cache/typescript/5.4/node_modules/asynckit/package.json +63 -0
  126. package/.cache/typescript/5.4/node_modules/asynckit/parallel.js +43 -0
  127. package/.cache/typescript/5.4/node_modules/asynckit/serial.js +17 -0
  128. package/.cache/typescript/5.4/node_modules/asynckit/serialOrdered.js +75 -0
  129. package/.cache/typescript/5.4/node_modules/asynckit/stream.js +21 -0
  130. package/.cache/typescript/5.4/node_modules/combined-stream/License +19 -0
  131. package/.cache/typescript/5.4/node_modules/combined-stream/Readme.md +138 -0
  132. package/.cache/typescript/5.4/node_modules/combined-stream/lib/combined_stream.js +208 -0
  133. package/.cache/typescript/5.4/node_modules/combined-stream/package.json +25 -0
  134. package/.cache/typescript/5.4/node_modules/combined-stream/yarn.lock +17 -0
  135. package/.cache/typescript/5.4/node_modules/delayed-stream/License +19 -0
  136. package/.cache/typescript/5.4/node_modules/delayed-stream/Makefile +7 -0
  137. package/.cache/typescript/5.4/node_modules/delayed-stream/Readme.md +141 -0
  138. package/.cache/typescript/5.4/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  139. package/.cache/typescript/5.4/node_modules/delayed-stream/package.json +27 -0
  140. package/.cache/typescript/5.4/node_modules/domelementtype/LICENSE +11 -0
  141. package/.cache/typescript/5.4/node_modules/domelementtype/index.js +15 -0
  142. package/.cache/typescript/5.4/node_modules/domelementtype/package.json +16 -0
  143. package/.cache/typescript/5.4/node_modules/domelementtype/readme.md +1 -0
  144. package/.cache/typescript/5.4/node_modules/domhandler/.travis.yml +6 -0
  145. package/.cache/typescript/5.4/node_modules/domhandler/LICENSE +11 -0
  146. package/.cache/typescript/5.4/node_modules/domhandler/index.js +217 -0
  147. package/.cache/typescript/5.4/node_modules/domhandler/lib/element.js +20 -0
  148. package/.cache/typescript/5.4/node_modules/domhandler/lib/node.js +44 -0
  149. package/.cache/typescript/5.4/node_modules/domhandler/package.json +41 -0
  150. package/.cache/typescript/5.4/node_modules/domhandler/readme.md +116 -0
  151. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/01-basic.json +57 -0
  152. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/02-single_tag_1.json +21 -0
  153. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/03-single_tag_2.json +21 -0
  154. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/04-unescaped_in_script.json +27 -0
  155. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/05-tags_in_comment.json +18 -0
  156. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/06-comment_in_script.json +18 -0
  157. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/07-unescaped_in_style.json +20 -0
  158. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/08-extra_spaces_in_tag.json +20 -0
  159. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/09-unquoted_attrib.json +20 -0
  160. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/10-singular_attribute.json +15 -0
  161. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/11-text_outside_tags.json +40 -0
  162. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/12-text_only.json +11 -0
  163. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/13-comment_in_text.json +19 -0
  164. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json +18 -0
  165. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/15-non-verbose.json +22 -0
  166. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/16-normalize_whitespace.json +47 -0
  167. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/17-xml_namespace.json +18 -0
  168. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/18-enforce_empty_tags.json +16 -0
  169. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/19-ignore_empty_tags.json +20 -0
  170. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/20-template_script_tags.json +20 -0
  171. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/21-conditional_comments.json +15 -0
  172. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/22-lowercase_tags.json +41 -0
  173. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/23-dom-lvl1.json +131 -0
  174. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/24-with-start-indices.json +85 -0
  175. package/.cache/typescript/5.4/node_modules/domhandler/test/cases/25-with-end-indices.json +86 -0
  176. package/.cache/typescript/5.4/node_modules/domhandler/test/tests.js +60 -0
  177. package/.cache/typescript/5.4/node_modules/form-data/License +19 -0
  178. package/.cache/typescript/5.4/node_modules/form-data/README.md.bak +358 -0
  179. package/.cache/typescript/5.4/node_modules/form-data/Readme.md +358 -0
  180. package/.cache/typescript/5.4/node_modules/form-data/index.d.ts +62 -0
  181. package/.cache/typescript/5.4/node_modules/form-data/lib/browser.js +2 -0
  182. package/.cache/typescript/5.4/node_modules/form-data/lib/form_data.js +501 -0
  183. package/.cache/typescript/5.4/node_modules/form-data/lib/populate.js +10 -0
  184. package/.cache/typescript/5.4/node_modules/form-data/package.json +68 -0
  185. package/.cache/typescript/5.4/node_modules/mime-db/HISTORY.md +507 -0
  186. package/.cache/typescript/5.4/node_modules/mime-db/LICENSE +23 -0
  187. package/.cache/typescript/5.4/node_modules/mime-db/README.md +100 -0
  188. package/.cache/typescript/5.4/node_modules/mime-db/db.json +8519 -0
  189. package/.cache/typescript/5.4/node_modules/mime-db/index.js +12 -0
  190. package/.cache/typescript/5.4/node_modules/mime-db/package.json +60 -0
  191. package/.cache/typescript/5.4/node_modules/mime-types/HISTORY.md +397 -0
  192. package/.cache/typescript/5.4/node_modules/mime-types/LICENSE +23 -0
  193. package/.cache/typescript/5.4/node_modules/mime-types/README.md +113 -0
  194. package/.cache/typescript/5.4/node_modules/mime-types/index.js +188 -0
  195. package/.cache/typescript/5.4/node_modules/mime-types/package.json +44 -0
  196. package/.cache/typescript/5.4/node_modules/types-registry/README.md +2 -0
  197. package/.cache/typescript/5.4/node_modules/types-registry/index.json +1 -0
  198. package/.cache/typescript/5.4/node_modules/types-registry/package.json +20 -0
  199. package/.cache/typescript/5.4/node_modules/undici-types/README.md +6 -0
  200. package/.cache/typescript/5.4/node_modules/undici-types/agent.d.ts +31 -0
  201. package/.cache/typescript/5.4/node_modules/undici-types/api.d.ts +43 -0
  202. package/.cache/typescript/5.4/node_modules/undici-types/balanced-pool.d.ts +18 -0
  203. package/.cache/typescript/5.4/node_modules/undici-types/cache.d.ts +36 -0
  204. package/.cache/typescript/5.4/node_modules/undici-types/client.d.ts +97 -0
  205. package/.cache/typescript/5.4/node_modules/undici-types/connector.d.ts +34 -0
  206. package/.cache/typescript/5.4/node_modules/undici-types/content-type.d.ts +21 -0
  207. package/.cache/typescript/5.4/node_modules/undici-types/cookies.d.ts +28 -0
  208. package/.cache/typescript/5.4/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  209. package/.cache/typescript/5.4/node_modules/undici-types/dispatcher.d.ts +241 -0
  210. package/.cache/typescript/5.4/node_modules/undici-types/errors.d.ts +128 -0
  211. package/.cache/typescript/5.4/node_modules/undici-types/fetch.d.ts +209 -0
  212. package/.cache/typescript/5.4/node_modules/undici-types/file.d.ts +39 -0
  213. package/.cache/typescript/5.4/node_modules/undici-types/filereader.d.ts +54 -0
  214. package/.cache/typescript/5.4/node_modules/undici-types/formdata.d.ts +108 -0
  215. package/.cache/typescript/5.4/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  216. package/.cache/typescript/5.4/node_modules/undici-types/global-origin.d.ts +7 -0
  217. package/.cache/typescript/5.4/node_modules/undici-types/handlers.d.ts +9 -0
  218. package/.cache/typescript/5.4/node_modules/undici-types/header.d.ts +4 -0
  219. package/.cache/typescript/5.4/node_modules/undici-types/index.d.ts +63 -0
  220. package/.cache/typescript/5.4/node_modules/undici-types/interceptors.d.ts +5 -0
  221. package/.cache/typescript/5.4/node_modules/undici-types/mock-agent.d.ts +50 -0
  222. package/.cache/typescript/5.4/node_modules/undici-types/mock-client.d.ts +25 -0
  223. package/.cache/typescript/5.4/node_modules/undici-types/mock-errors.d.ts +12 -0
  224. package/.cache/typescript/5.4/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  225. package/.cache/typescript/5.4/node_modules/undici-types/mock-pool.d.ts +25 -0
  226. package/.cache/typescript/5.4/node_modules/undici-types/package.json +55 -0
  227. package/.cache/typescript/5.4/node_modules/undici-types/patch.d.ts +71 -0
  228. package/.cache/typescript/5.4/node_modules/undici-types/pool-stats.d.ts +19 -0
  229. package/.cache/typescript/5.4/node_modules/undici-types/pool.d.ts +28 -0
  230. package/.cache/typescript/5.4/node_modules/undici-types/proxy-agent.d.ts +30 -0
  231. package/.cache/typescript/5.4/node_modules/undici-types/readable.d.ts +61 -0
  232. package/.cache/typescript/5.4/node_modules/undici-types/webidl.d.ts +220 -0
  233. package/.cache/typescript/5.4/node_modules/undici-types/websocket.d.ts +131 -0
  234. package/.cache/typescript/5.4/package-lock.json +197 -0
  235. package/.cache/typescript/5.4/package.json +1 -0
  236. package/index.js +1 -1
  237. package/package.json +37 -2
  238. package/.cache/replit/modules/nodejs-20:v32-20240401-269b323.res +0 -1
  239. package/.cache/replit/modules/replit:v8-20240329-787bc7d.res +0 -1
@@ -0,0 +1,2746 @@
1
+ // Type definitions for inspector
2
+
3
+ // These definitions are auto-generated.
4
+ // Please see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19330
5
+ // for more information.
6
+
7
+
8
+ /**
9
+ * The `node:inspector` module provides an API for interacting with the V8
10
+ * inspector.
11
+ *
12
+ * It can be accessed using:
13
+ *
14
+ * ```js
15
+ * import * as inspector from 'node:inspector/promises';
16
+ * ```
17
+ *
18
+ * or
19
+ *
20
+ * ```js
21
+ * import * as inspector from 'node:inspector';
22
+ * ```
23
+ * @see [source](https://github.com/nodejs/node/blob/v20.12.2/lib/inspector.js)
24
+ */
25
+ declare module 'inspector' {
26
+ import EventEmitter = require('node:events');
27
+ interface InspectorNotification<T> {
28
+ method: string;
29
+ params: T;
30
+ }
31
+ namespace Schema {
32
+ /**
33
+ * Description of the protocol domain.
34
+ */
35
+ interface Domain {
36
+ /**
37
+ * Domain name.
38
+ */
39
+ name: string;
40
+ /**
41
+ * Domain version.
42
+ */
43
+ version: string;
44
+ }
45
+ interface GetDomainsReturnType {
46
+ /**
47
+ * List of supported domains.
48
+ */
49
+ domains: Domain[];
50
+ }
51
+ }
52
+ namespace Runtime {
53
+ /**
54
+ * Unique script identifier.
55
+ */
56
+ type ScriptId = string;
57
+ /**
58
+ * Unique object identifier.
59
+ */
60
+ type RemoteObjectId = string;
61
+ /**
62
+ * Primitive value which cannot be JSON-stringified.
63
+ */
64
+ type UnserializableValue = string;
65
+ /**
66
+ * Mirror object referencing original JavaScript object.
67
+ */
68
+ interface RemoteObject {
69
+ /**
70
+ * Object type.
71
+ */
72
+ type: string;
73
+ /**
74
+ * Object subtype hint. Specified for <code>object</code> type values only.
75
+ */
76
+ subtype?: string | undefined;
77
+ /**
78
+ * Object class (constructor) name. Specified for <code>object</code> type values only.
79
+ */
80
+ className?: string | undefined;
81
+ /**
82
+ * Remote object value in case of primitive values or JSON values (if it was requested).
83
+ */
84
+ value?: any;
85
+ /**
86
+ * Primitive value which can not be JSON-stringified does not have <code>value</code>, but gets this property.
87
+ */
88
+ unserializableValue?: UnserializableValue | undefined;
89
+ /**
90
+ * String representation of the object.
91
+ */
92
+ description?: string | undefined;
93
+ /**
94
+ * Unique object identifier (for non-primitive values).
95
+ */
96
+ objectId?: RemoteObjectId | undefined;
97
+ /**
98
+ * Preview containing abbreviated property values. Specified for <code>object</code> type values only.
99
+ * @experimental
100
+ */
101
+ preview?: ObjectPreview | undefined;
102
+ /**
103
+ * @experimental
104
+ */
105
+ customPreview?: CustomPreview | undefined;
106
+ }
107
+ /**
108
+ * @experimental
109
+ */
110
+ interface CustomPreview {
111
+ header: string;
112
+ hasBody: boolean;
113
+ formatterObjectId: RemoteObjectId;
114
+ bindRemoteObjectFunctionId: RemoteObjectId;
115
+ configObjectId?: RemoteObjectId | undefined;
116
+ }
117
+ /**
118
+ * Object containing abbreviated remote object value.
119
+ * @experimental
120
+ */
121
+ interface ObjectPreview {
122
+ /**
123
+ * Object type.
124
+ */
125
+ type: string;
126
+ /**
127
+ * Object subtype hint. Specified for <code>object</code> type values only.
128
+ */
129
+ subtype?: string | undefined;
130
+ /**
131
+ * String representation of the object.
132
+ */
133
+ description?: string | undefined;
134
+ /**
135
+ * True iff some of the properties or entries of the original object did not fit.
136
+ */
137
+ overflow: boolean;
138
+ /**
139
+ * List of the properties.
140
+ */
141
+ properties: PropertyPreview[];
142
+ /**
143
+ * List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
144
+ */
145
+ entries?: EntryPreview[] | undefined;
146
+ }
147
+ /**
148
+ * @experimental
149
+ */
150
+ interface PropertyPreview {
151
+ /**
152
+ * Property name.
153
+ */
154
+ name: string;
155
+ /**
156
+ * Object type. Accessor means that the property itself is an accessor property.
157
+ */
158
+ type: string;
159
+ /**
160
+ * User-friendly property value string.
161
+ */
162
+ value?: string | undefined;
163
+ /**
164
+ * Nested value preview.
165
+ */
166
+ valuePreview?: ObjectPreview | undefined;
167
+ /**
168
+ * Object subtype hint. Specified for <code>object</code> type values only.
169
+ */
170
+ subtype?: string | undefined;
171
+ }
172
+ /**
173
+ * @experimental
174
+ */
175
+ interface EntryPreview {
176
+ /**
177
+ * Preview of the key. Specified for map-like collection entries.
178
+ */
179
+ key?: ObjectPreview | undefined;
180
+ /**
181
+ * Preview of the value.
182
+ */
183
+ value: ObjectPreview;
184
+ }
185
+ /**
186
+ * Object property descriptor.
187
+ */
188
+ interface PropertyDescriptor {
189
+ /**
190
+ * Property name or symbol description.
191
+ */
192
+ name: string;
193
+ /**
194
+ * The value associated with the property.
195
+ */
196
+ value?: RemoteObject | undefined;
197
+ /**
198
+ * True if the value associated with the property may be changed (data descriptors only).
199
+ */
200
+ writable?: boolean | undefined;
201
+ /**
202
+ * A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
203
+ */
204
+ get?: RemoteObject | undefined;
205
+ /**
206
+ * A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
207
+ */
208
+ set?: RemoteObject | undefined;
209
+ /**
210
+ * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
211
+ */
212
+ configurable: boolean;
213
+ /**
214
+ * True if this property shows up during enumeration of the properties on the corresponding object.
215
+ */
216
+ enumerable: boolean;
217
+ /**
218
+ * True if the result was thrown during the evaluation.
219
+ */
220
+ wasThrown?: boolean | undefined;
221
+ /**
222
+ * True if the property is owned for the object.
223
+ */
224
+ isOwn?: boolean | undefined;
225
+ /**
226
+ * Property symbol object, if the property is of the <code>symbol</code> type.
227
+ */
228
+ symbol?: RemoteObject | undefined;
229
+ }
230
+ /**
231
+ * Object internal property descriptor. This property isn't normally visible in JavaScript code.
232
+ */
233
+ interface InternalPropertyDescriptor {
234
+ /**
235
+ * Conventional property name.
236
+ */
237
+ name: string;
238
+ /**
239
+ * The value associated with the property.
240
+ */
241
+ value?: RemoteObject | undefined;
242
+ }
243
+ /**
244
+ * Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.
245
+ */
246
+ interface CallArgument {
247
+ /**
248
+ * Primitive value or serializable javascript object.
249
+ */
250
+ value?: any;
251
+ /**
252
+ * Primitive value which can not be JSON-stringified.
253
+ */
254
+ unserializableValue?: UnserializableValue | undefined;
255
+ /**
256
+ * Remote object handle.
257
+ */
258
+ objectId?: RemoteObjectId | undefined;
259
+ }
260
+ /**
261
+ * Id of an execution context.
262
+ */
263
+ type ExecutionContextId = number;
264
+ /**
265
+ * Description of an isolated world.
266
+ */
267
+ interface ExecutionContextDescription {
268
+ /**
269
+ * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
270
+ */
271
+ id: ExecutionContextId;
272
+ /**
273
+ * Execution context origin.
274
+ */
275
+ origin: string;
276
+ /**
277
+ * Human readable name describing given context.
278
+ */
279
+ name: string;
280
+ /**
281
+ * Embedder-specific auxiliary data.
282
+ */
283
+ auxData?: {} | undefined;
284
+ }
285
+ /**
286
+ * Detailed information about exception (or error) that was thrown during script compilation or execution.
287
+ */
288
+ interface ExceptionDetails {
289
+ /**
290
+ * Exception id.
291
+ */
292
+ exceptionId: number;
293
+ /**
294
+ * Exception text, which should be used together with exception object when available.
295
+ */
296
+ text: string;
297
+ /**
298
+ * Line number of the exception location (0-based).
299
+ */
300
+ lineNumber: number;
301
+ /**
302
+ * Column number of the exception location (0-based).
303
+ */
304
+ columnNumber: number;
305
+ /**
306
+ * Script ID of the exception location.
307
+ */
308
+ scriptId?: ScriptId | undefined;
309
+ /**
310
+ * URL of the exception location, to be used when the script was not reported.
311
+ */
312
+ url?: string | undefined;
313
+ /**
314
+ * JavaScript stack trace if available.
315
+ */
316
+ stackTrace?: StackTrace | undefined;
317
+ /**
318
+ * Exception object if available.
319
+ */
320
+ exception?: RemoteObject | undefined;
321
+ /**
322
+ * Identifier of the context where exception happened.
323
+ */
324
+ executionContextId?: ExecutionContextId | undefined;
325
+ }
326
+ /**
327
+ * Number of milliseconds since epoch.
328
+ */
329
+ type Timestamp = number;
330
+ /**
331
+ * Stack entry for runtime errors and assertions.
332
+ */
333
+ interface CallFrame {
334
+ /**
335
+ * JavaScript function name.
336
+ */
337
+ functionName: string;
338
+ /**
339
+ * JavaScript script id.
340
+ */
341
+ scriptId: ScriptId;
342
+ /**
343
+ * JavaScript script name or url.
344
+ */
345
+ url: string;
346
+ /**
347
+ * JavaScript script line number (0-based).
348
+ */
349
+ lineNumber: number;
350
+ /**
351
+ * JavaScript script column number (0-based).
352
+ */
353
+ columnNumber: number;
354
+ }
355
+ /**
356
+ * Call frames for assertions or error messages.
357
+ */
358
+ interface StackTrace {
359
+ /**
360
+ * String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
361
+ */
362
+ description?: string | undefined;
363
+ /**
364
+ * JavaScript function name.
365
+ */
366
+ callFrames: CallFrame[];
367
+ /**
368
+ * Asynchronous JavaScript stack trace that preceded this stack, if available.
369
+ */
370
+ parent?: StackTrace | undefined;
371
+ /**
372
+ * Asynchronous JavaScript stack trace that preceded this stack, if available.
373
+ * @experimental
374
+ */
375
+ parentId?: StackTraceId | undefined;
376
+ }
377
+ /**
378
+ * Unique identifier of current debugger.
379
+ * @experimental
380
+ */
381
+ type UniqueDebuggerId = string;
382
+ /**
383
+ * If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.
384
+ * @experimental
385
+ */
386
+ interface StackTraceId {
387
+ id: string;
388
+ debuggerId?: UniqueDebuggerId | undefined;
389
+ }
390
+ interface EvaluateParameterType {
391
+ /**
392
+ * Expression to evaluate.
393
+ */
394
+ expression: string;
395
+ /**
396
+ * Symbolic group name that can be used to release multiple objects.
397
+ */
398
+ objectGroup?: string | undefined;
399
+ /**
400
+ * Determines whether Command Line API should be available during the evaluation.
401
+ */
402
+ includeCommandLineAPI?: boolean | undefined;
403
+ /**
404
+ * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
405
+ */
406
+ silent?: boolean | undefined;
407
+ /**
408
+ * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
409
+ */
410
+ contextId?: ExecutionContextId | undefined;
411
+ /**
412
+ * Whether the result is expected to be a JSON object that should be sent by value.
413
+ */
414
+ returnByValue?: boolean | undefined;
415
+ /**
416
+ * Whether preview should be generated for the result.
417
+ * @experimental
418
+ */
419
+ generatePreview?: boolean | undefined;
420
+ /**
421
+ * Whether execution should be treated as initiated by user in the UI.
422
+ */
423
+ userGesture?: boolean | undefined;
424
+ /**
425
+ * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
426
+ */
427
+ awaitPromise?: boolean | undefined;
428
+ }
429
+ interface AwaitPromiseParameterType {
430
+ /**
431
+ * Identifier of the promise.
432
+ */
433
+ promiseObjectId: RemoteObjectId;
434
+ /**
435
+ * Whether the result is expected to be a JSON object that should be sent by value.
436
+ */
437
+ returnByValue?: boolean | undefined;
438
+ /**
439
+ * Whether preview should be generated for the result.
440
+ */
441
+ generatePreview?: boolean | undefined;
442
+ }
443
+ interface CallFunctionOnParameterType {
444
+ /**
445
+ * Declaration of the function to call.
446
+ */
447
+ functionDeclaration: string;
448
+ /**
449
+ * Identifier of the object to call function on. Either objectId or executionContextId should be specified.
450
+ */
451
+ objectId?: RemoteObjectId | undefined;
452
+ /**
453
+ * Call arguments. All call arguments must belong to the same JavaScript world as the target object.
454
+ */
455
+ arguments?: CallArgument[] | undefined;
456
+ /**
457
+ * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
458
+ */
459
+ silent?: boolean | undefined;
460
+ /**
461
+ * Whether the result is expected to be a JSON object which should be sent by value.
462
+ */
463
+ returnByValue?: boolean | undefined;
464
+ /**
465
+ * Whether preview should be generated for the result.
466
+ * @experimental
467
+ */
468
+ generatePreview?: boolean | undefined;
469
+ /**
470
+ * Whether execution should be treated as initiated by user in the UI.
471
+ */
472
+ userGesture?: boolean | undefined;
473
+ /**
474
+ * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
475
+ */
476
+ awaitPromise?: boolean | undefined;
477
+ /**
478
+ * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
479
+ */
480
+ executionContextId?: ExecutionContextId | undefined;
481
+ /**
482
+ * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object.
483
+ */
484
+ objectGroup?: string | undefined;
485
+ }
486
+ interface GetPropertiesParameterType {
487
+ /**
488
+ * Identifier of the object to return properties for.
489
+ */
490
+ objectId: RemoteObjectId;
491
+ /**
492
+ * If true, returns properties belonging only to the element itself, not to its prototype chain.
493
+ */
494
+ ownProperties?: boolean | undefined;
495
+ /**
496
+ * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
497
+ * @experimental
498
+ */
499
+ accessorPropertiesOnly?: boolean | undefined;
500
+ /**
501
+ * Whether preview should be generated for the results.
502
+ * @experimental
503
+ */
504
+ generatePreview?: boolean | undefined;
505
+ }
506
+ interface ReleaseObjectParameterType {
507
+ /**
508
+ * Identifier of the object to release.
509
+ */
510
+ objectId: RemoteObjectId;
511
+ }
512
+ interface ReleaseObjectGroupParameterType {
513
+ /**
514
+ * Symbolic object group name.
515
+ */
516
+ objectGroup: string;
517
+ }
518
+ interface SetCustomObjectFormatterEnabledParameterType {
519
+ enabled: boolean;
520
+ }
521
+ interface CompileScriptParameterType {
522
+ /**
523
+ * Expression to compile.
524
+ */
525
+ expression: string;
526
+ /**
527
+ * Source url to be set for the script.
528
+ */
529
+ sourceURL: string;
530
+ /**
531
+ * Specifies whether the compiled script should be persisted.
532
+ */
533
+ persistScript: boolean;
534
+ /**
535
+ * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
536
+ */
537
+ executionContextId?: ExecutionContextId | undefined;
538
+ }
539
+ interface RunScriptParameterType {
540
+ /**
541
+ * Id of the script to run.
542
+ */
543
+ scriptId: ScriptId;
544
+ /**
545
+ * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.
546
+ */
547
+ executionContextId?: ExecutionContextId | undefined;
548
+ /**
549
+ * Symbolic group name that can be used to release multiple objects.
550
+ */
551
+ objectGroup?: string | undefined;
552
+ /**
553
+ * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
554
+ */
555
+ silent?: boolean | undefined;
556
+ /**
557
+ * Determines whether Command Line API should be available during the evaluation.
558
+ */
559
+ includeCommandLineAPI?: boolean | undefined;
560
+ /**
561
+ * Whether the result is expected to be a JSON object which should be sent by value.
562
+ */
563
+ returnByValue?: boolean | undefined;
564
+ /**
565
+ * Whether preview should be generated for the result.
566
+ */
567
+ generatePreview?: boolean | undefined;
568
+ /**
569
+ * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
570
+ */
571
+ awaitPromise?: boolean | undefined;
572
+ }
573
+ interface QueryObjectsParameterType {
574
+ /**
575
+ * Identifier of the prototype to return objects for.
576
+ */
577
+ prototypeObjectId: RemoteObjectId;
578
+ }
579
+ interface GlobalLexicalScopeNamesParameterType {
580
+ /**
581
+ * Specifies in which execution context to lookup global scope variables.
582
+ */
583
+ executionContextId?: ExecutionContextId | undefined;
584
+ }
585
+ interface EvaluateReturnType {
586
+ /**
587
+ * Evaluation result.
588
+ */
589
+ result: RemoteObject;
590
+ /**
591
+ * Exception details.
592
+ */
593
+ exceptionDetails?: ExceptionDetails | undefined;
594
+ }
595
+ interface AwaitPromiseReturnType {
596
+ /**
597
+ * Promise result. Will contain rejected value if promise was rejected.
598
+ */
599
+ result: RemoteObject;
600
+ /**
601
+ * Exception details if stack strace is available.
602
+ */
603
+ exceptionDetails?: ExceptionDetails | undefined;
604
+ }
605
+ interface CallFunctionOnReturnType {
606
+ /**
607
+ * Call result.
608
+ */
609
+ result: RemoteObject;
610
+ /**
611
+ * Exception details.
612
+ */
613
+ exceptionDetails?: ExceptionDetails | undefined;
614
+ }
615
+ interface GetPropertiesReturnType {
616
+ /**
617
+ * Object properties.
618
+ */
619
+ result: PropertyDescriptor[];
620
+ /**
621
+ * Internal object properties (only of the element itself).
622
+ */
623
+ internalProperties?: InternalPropertyDescriptor[] | undefined;
624
+ /**
625
+ * Exception details.
626
+ */
627
+ exceptionDetails?: ExceptionDetails | undefined;
628
+ }
629
+ interface CompileScriptReturnType {
630
+ /**
631
+ * Id of the script.
632
+ */
633
+ scriptId?: ScriptId | undefined;
634
+ /**
635
+ * Exception details.
636
+ */
637
+ exceptionDetails?: ExceptionDetails | undefined;
638
+ }
639
+ interface RunScriptReturnType {
640
+ /**
641
+ * Run result.
642
+ */
643
+ result: RemoteObject;
644
+ /**
645
+ * Exception details.
646
+ */
647
+ exceptionDetails?: ExceptionDetails | undefined;
648
+ }
649
+ interface QueryObjectsReturnType {
650
+ /**
651
+ * Array with objects.
652
+ */
653
+ objects: RemoteObject;
654
+ }
655
+ interface GlobalLexicalScopeNamesReturnType {
656
+ names: string[];
657
+ }
658
+ interface ExecutionContextCreatedEventDataType {
659
+ /**
660
+ * A newly created execution context.
661
+ */
662
+ context: ExecutionContextDescription;
663
+ }
664
+ interface ExecutionContextDestroyedEventDataType {
665
+ /**
666
+ * Id of the destroyed context
667
+ */
668
+ executionContextId: ExecutionContextId;
669
+ }
670
+ interface ExceptionThrownEventDataType {
671
+ /**
672
+ * Timestamp of the exception.
673
+ */
674
+ timestamp: Timestamp;
675
+ exceptionDetails: ExceptionDetails;
676
+ }
677
+ interface ExceptionRevokedEventDataType {
678
+ /**
679
+ * Reason describing why exception was revoked.
680
+ */
681
+ reason: string;
682
+ /**
683
+ * The id of revoked exception, as reported in <code>exceptionThrown</code>.
684
+ */
685
+ exceptionId: number;
686
+ }
687
+ interface ConsoleAPICalledEventDataType {
688
+ /**
689
+ * Type of the call.
690
+ */
691
+ type: string;
692
+ /**
693
+ * Call arguments.
694
+ */
695
+ args: RemoteObject[];
696
+ /**
697
+ * Identifier of the context where the call was made.
698
+ */
699
+ executionContextId: ExecutionContextId;
700
+ /**
701
+ * Call timestamp.
702
+ */
703
+ timestamp: Timestamp;
704
+ /**
705
+ * Stack trace captured when the call was made.
706
+ */
707
+ stackTrace?: StackTrace | undefined;
708
+ /**
709
+ * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
710
+ * @experimental
711
+ */
712
+ context?: string | undefined;
713
+ }
714
+ interface InspectRequestedEventDataType {
715
+ object: RemoteObject;
716
+ hints: {};
717
+ }
718
+ }
719
+ namespace Debugger {
720
+ /**
721
+ * Breakpoint identifier.
722
+ */
723
+ type BreakpointId = string;
724
+ /**
725
+ * Call frame identifier.
726
+ */
727
+ type CallFrameId = string;
728
+ /**
729
+ * Location in the source code.
730
+ */
731
+ interface Location {
732
+ /**
733
+ * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
734
+ */
735
+ scriptId: Runtime.ScriptId;
736
+ /**
737
+ * Line number in the script (0-based).
738
+ */
739
+ lineNumber: number;
740
+ /**
741
+ * Column number in the script (0-based).
742
+ */
743
+ columnNumber?: number | undefined;
744
+ }
745
+ /**
746
+ * Location in the source code.
747
+ * @experimental
748
+ */
749
+ interface ScriptPosition {
750
+ lineNumber: number;
751
+ columnNumber: number;
752
+ }
753
+ /**
754
+ * JavaScript call frame. Array of call frames form the call stack.
755
+ */
756
+ interface CallFrame {
757
+ /**
758
+ * Call frame identifier. This identifier is only valid while the virtual machine is paused.
759
+ */
760
+ callFrameId: CallFrameId;
761
+ /**
762
+ * Name of the JavaScript function called on this call frame.
763
+ */
764
+ functionName: string;
765
+ /**
766
+ * Location in the source code.
767
+ */
768
+ functionLocation?: Location | undefined;
769
+ /**
770
+ * Location in the source code.
771
+ */
772
+ location: Location;
773
+ /**
774
+ * JavaScript script name or url.
775
+ */
776
+ url: string;
777
+ /**
778
+ * Scope chain for this call frame.
779
+ */
780
+ scopeChain: Scope[];
781
+ /**
782
+ * <code>this</code> object for this call frame.
783
+ */
784
+ this: Runtime.RemoteObject;
785
+ /**
786
+ * The value being returned, if the function is at return point.
787
+ */
788
+ returnValue?: Runtime.RemoteObject | undefined;
789
+ }
790
+ /**
791
+ * Scope description.
792
+ */
793
+ interface Scope {
794
+ /**
795
+ * Scope type.
796
+ */
797
+ type: string;
798
+ /**
799
+ * Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
800
+ */
801
+ object: Runtime.RemoteObject;
802
+ name?: string | undefined;
803
+ /**
804
+ * Location in the source code where scope starts
805
+ */
806
+ startLocation?: Location | undefined;
807
+ /**
808
+ * Location in the source code where scope ends
809
+ */
810
+ endLocation?: Location | undefined;
811
+ }
812
+ /**
813
+ * Search match for resource.
814
+ */
815
+ interface SearchMatch {
816
+ /**
817
+ * Line number in resource content.
818
+ */
819
+ lineNumber: number;
820
+ /**
821
+ * Line with match content.
822
+ */
823
+ lineContent: string;
824
+ }
825
+ interface BreakLocation {
826
+ /**
827
+ * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
828
+ */
829
+ scriptId: Runtime.ScriptId;
830
+ /**
831
+ * Line number in the script (0-based).
832
+ */
833
+ lineNumber: number;
834
+ /**
835
+ * Column number in the script (0-based).
836
+ */
837
+ columnNumber?: number | undefined;
838
+ type?: string | undefined;
839
+ }
840
+ interface SetBreakpointsActiveParameterType {
841
+ /**
842
+ * New value for breakpoints active state.
843
+ */
844
+ active: boolean;
845
+ }
846
+ interface SetSkipAllPausesParameterType {
847
+ /**
848
+ * New value for skip pauses state.
849
+ */
850
+ skip: boolean;
851
+ }
852
+ interface SetBreakpointByUrlParameterType {
853
+ /**
854
+ * Line number to set breakpoint at.
855
+ */
856
+ lineNumber: number;
857
+ /**
858
+ * URL of the resources to set breakpoint on.
859
+ */
860
+ url?: string | undefined;
861
+ /**
862
+ * Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
863
+ */
864
+ urlRegex?: string | undefined;
865
+ /**
866
+ * Script hash of the resources to set breakpoint on.
867
+ */
868
+ scriptHash?: string | undefined;
869
+ /**
870
+ * Offset in the line to set breakpoint at.
871
+ */
872
+ columnNumber?: number | undefined;
873
+ /**
874
+ * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
875
+ */
876
+ condition?: string | undefined;
877
+ }
878
+ interface SetBreakpointParameterType {
879
+ /**
880
+ * Location to set breakpoint in.
881
+ */
882
+ location: Location;
883
+ /**
884
+ * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
885
+ */
886
+ condition?: string | undefined;
887
+ }
888
+ interface RemoveBreakpointParameterType {
889
+ breakpointId: BreakpointId;
890
+ }
891
+ interface GetPossibleBreakpointsParameterType {
892
+ /**
893
+ * Start of range to search possible breakpoint locations in.
894
+ */
895
+ start: Location;
896
+ /**
897
+ * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
898
+ */
899
+ end?: Location | undefined;
900
+ /**
901
+ * Only consider locations which are in the same (non-nested) function as start.
902
+ */
903
+ restrictToFunction?: boolean | undefined;
904
+ }
905
+ interface ContinueToLocationParameterType {
906
+ /**
907
+ * Location to continue to.
908
+ */
909
+ location: Location;
910
+ targetCallFrames?: string | undefined;
911
+ }
912
+ interface PauseOnAsyncCallParameterType {
913
+ /**
914
+ * Debugger will pause when async call with given stack trace is started.
915
+ */
916
+ parentStackTraceId: Runtime.StackTraceId;
917
+ }
918
+ interface StepIntoParameterType {
919
+ /**
920
+ * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
921
+ * @experimental
922
+ */
923
+ breakOnAsyncCall?: boolean | undefined;
924
+ }
925
+ interface GetStackTraceParameterType {
926
+ stackTraceId: Runtime.StackTraceId;
927
+ }
928
+ interface SearchInContentParameterType {
929
+ /**
930
+ * Id of the script to search in.
931
+ */
932
+ scriptId: Runtime.ScriptId;
933
+ /**
934
+ * String to search for.
935
+ */
936
+ query: string;
937
+ /**
938
+ * If true, search is case sensitive.
939
+ */
940
+ caseSensitive?: boolean | undefined;
941
+ /**
942
+ * If true, treats string parameter as regex.
943
+ */
944
+ isRegex?: boolean | undefined;
945
+ }
946
+ interface SetScriptSourceParameterType {
947
+ /**
948
+ * Id of the script to edit.
949
+ */
950
+ scriptId: Runtime.ScriptId;
951
+ /**
952
+ * New content of the script.
953
+ */
954
+ scriptSource: string;
955
+ /**
956
+ * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
957
+ */
958
+ dryRun?: boolean | undefined;
959
+ }
960
+ interface RestartFrameParameterType {
961
+ /**
962
+ * Call frame identifier to evaluate on.
963
+ */
964
+ callFrameId: CallFrameId;
965
+ }
966
+ interface GetScriptSourceParameterType {
967
+ /**
968
+ * Id of the script to get source for.
969
+ */
970
+ scriptId: Runtime.ScriptId;
971
+ }
972
+ interface SetPauseOnExceptionsParameterType {
973
+ /**
974
+ * Pause on exceptions mode.
975
+ */
976
+ state: string;
977
+ }
978
+ interface EvaluateOnCallFrameParameterType {
979
+ /**
980
+ * Call frame identifier to evaluate on.
981
+ */
982
+ callFrameId: CallFrameId;
983
+ /**
984
+ * Expression to evaluate.
985
+ */
986
+ expression: string;
987
+ /**
988
+ * String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
989
+ */
990
+ objectGroup?: string | undefined;
991
+ /**
992
+ * Specifies whether command line API should be available to the evaluated expression, defaults to false.
993
+ */
994
+ includeCommandLineAPI?: boolean | undefined;
995
+ /**
996
+ * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
997
+ */
998
+ silent?: boolean | undefined;
999
+ /**
1000
+ * Whether the result is expected to be a JSON object that should be sent by value.
1001
+ */
1002
+ returnByValue?: boolean | undefined;
1003
+ /**
1004
+ * Whether preview should be generated for the result.
1005
+ * @experimental
1006
+ */
1007
+ generatePreview?: boolean | undefined;
1008
+ /**
1009
+ * Whether to throw an exception if side effect cannot be ruled out during evaluation.
1010
+ */
1011
+ throwOnSideEffect?: boolean | undefined;
1012
+ }
1013
+ interface SetVariableValueParameterType {
1014
+ /**
1015
+ * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
1016
+ */
1017
+ scopeNumber: number;
1018
+ /**
1019
+ * Variable name.
1020
+ */
1021
+ variableName: string;
1022
+ /**
1023
+ * New variable value.
1024
+ */
1025
+ newValue: Runtime.CallArgument;
1026
+ /**
1027
+ * Id of callframe that holds variable.
1028
+ */
1029
+ callFrameId: CallFrameId;
1030
+ }
1031
+ interface SetReturnValueParameterType {
1032
+ /**
1033
+ * New return value.
1034
+ */
1035
+ newValue: Runtime.CallArgument;
1036
+ }
1037
+ interface SetAsyncCallStackDepthParameterType {
1038
+ /**
1039
+ * Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
1040
+ */
1041
+ maxDepth: number;
1042
+ }
1043
+ interface SetBlackboxPatternsParameterType {
1044
+ /**
1045
+ * Array of regexps that will be used to check script url for blackbox state.
1046
+ */
1047
+ patterns: string[];
1048
+ }
1049
+ interface SetBlackboxedRangesParameterType {
1050
+ /**
1051
+ * Id of the script.
1052
+ */
1053
+ scriptId: Runtime.ScriptId;
1054
+ positions: ScriptPosition[];
1055
+ }
1056
+ interface EnableReturnType {
1057
+ /**
1058
+ * Unique identifier of the debugger.
1059
+ * @experimental
1060
+ */
1061
+ debuggerId: Runtime.UniqueDebuggerId;
1062
+ }
1063
+ interface SetBreakpointByUrlReturnType {
1064
+ /**
1065
+ * Id of the created breakpoint for further reference.
1066
+ */
1067
+ breakpointId: BreakpointId;
1068
+ /**
1069
+ * List of the locations this breakpoint resolved into upon addition.
1070
+ */
1071
+ locations: Location[];
1072
+ }
1073
+ interface SetBreakpointReturnType {
1074
+ /**
1075
+ * Id of the created breakpoint for further reference.
1076
+ */
1077
+ breakpointId: BreakpointId;
1078
+ /**
1079
+ * Location this breakpoint resolved into.
1080
+ */
1081
+ actualLocation: Location;
1082
+ }
1083
+ interface GetPossibleBreakpointsReturnType {
1084
+ /**
1085
+ * List of the possible breakpoint locations.
1086
+ */
1087
+ locations: BreakLocation[];
1088
+ }
1089
+ interface GetStackTraceReturnType {
1090
+ stackTrace: Runtime.StackTrace;
1091
+ }
1092
+ interface SearchInContentReturnType {
1093
+ /**
1094
+ * List of search matches.
1095
+ */
1096
+ result: SearchMatch[];
1097
+ }
1098
+ interface SetScriptSourceReturnType {
1099
+ /**
1100
+ * New stack trace in case editing has happened while VM was stopped.
1101
+ */
1102
+ callFrames?: CallFrame[] | undefined;
1103
+ /**
1104
+ * Whether current call stack was modified after applying the changes.
1105
+ */
1106
+ stackChanged?: boolean | undefined;
1107
+ /**
1108
+ * Async stack trace, if any.
1109
+ */
1110
+ asyncStackTrace?: Runtime.StackTrace | undefined;
1111
+ /**
1112
+ * Async stack trace, if any.
1113
+ * @experimental
1114
+ */
1115
+ asyncStackTraceId?: Runtime.StackTraceId | undefined;
1116
+ /**
1117
+ * Exception details if any.
1118
+ */
1119
+ exceptionDetails?: Runtime.ExceptionDetails | undefined;
1120
+ }
1121
+ interface RestartFrameReturnType {
1122
+ /**
1123
+ * New stack trace.
1124
+ */
1125
+ callFrames: CallFrame[];
1126
+ /**
1127
+ * Async stack trace, if any.
1128
+ */
1129
+ asyncStackTrace?: Runtime.StackTrace | undefined;
1130
+ /**
1131
+ * Async stack trace, if any.
1132
+ * @experimental
1133
+ */
1134
+ asyncStackTraceId?: Runtime.StackTraceId | undefined;
1135
+ }
1136
+ interface GetScriptSourceReturnType {
1137
+ /**
1138
+ * Script source.
1139
+ */
1140
+ scriptSource: string;
1141
+ }
1142
+ interface EvaluateOnCallFrameReturnType {
1143
+ /**
1144
+ * Object wrapper for the evaluation result.
1145
+ */
1146
+ result: Runtime.RemoteObject;
1147
+ /**
1148
+ * Exception details.
1149
+ */
1150
+ exceptionDetails?: Runtime.ExceptionDetails | undefined;
1151
+ }
1152
+ interface ScriptParsedEventDataType {
1153
+ /**
1154
+ * Identifier of the script parsed.
1155
+ */
1156
+ scriptId: Runtime.ScriptId;
1157
+ /**
1158
+ * URL or name of the script parsed (if any).
1159
+ */
1160
+ url: string;
1161
+ /**
1162
+ * Line offset of the script within the resource with given URL (for script tags).
1163
+ */
1164
+ startLine: number;
1165
+ /**
1166
+ * Column offset of the script within the resource with given URL.
1167
+ */
1168
+ startColumn: number;
1169
+ /**
1170
+ * Last line of the script.
1171
+ */
1172
+ endLine: number;
1173
+ /**
1174
+ * Length of the last line of the script.
1175
+ */
1176
+ endColumn: number;
1177
+ /**
1178
+ * Specifies script creation context.
1179
+ */
1180
+ executionContextId: Runtime.ExecutionContextId;
1181
+ /**
1182
+ * Content hash of the script.
1183
+ */
1184
+ hash: string;
1185
+ /**
1186
+ * Embedder-specific auxiliary data.
1187
+ */
1188
+ executionContextAuxData?: {} | undefined;
1189
+ /**
1190
+ * True, if this script is generated as a result of the live edit operation.
1191
+ * @experimental
1192
+ */
1193
+ isLiveEdit?: boolean | undefined;
1194
+ /**
1195
+ * URL of source map associated with script (if any).
1196
+ */
1197
+ sourceMapURL?: string | undefined;
1198
+ /**
1199
+ * True, if this script has sourceURL.
1200
+ */
1201
+ hasSourceURL?: boolean | undefined;
1202
+ /**
1203
+ * True, if this script is ES6 module.
1204
+ */
1205
+ isModule?: boolean | undefined;
1206
+ /**
1207
+ * This script length.
1208
+ */
1209
+ length?: number | undefined;
1210
+ /**
1211
+ * JavaScript top stack frame of where the script parsed event was triggered if available.
1212
+ * @experimental
1213
+ */
1214
+ stackTrace?: Runtime.StackTrace | undefined;
1215
+ }
1216
+ interface ScriptFailedToParseEventDataType {
1217
+ /**
1218
+ * Identifier of the script parsed.
1219
+ */
1220
+ scriptId: Runtime.ScriptId;
1221
+ /**
1222
+ * URL or name of the script parsed (if any).
1223
+ */
1224
+ url: string;
1225
+ /**
1226
+ * Line offset of the script within the resource with given URL (for script tags).
1227
+ */
1228
+ startLine: number;
1229
+ /**
1230
+ * Column offset of the script within the resource with given URL.
1231
+ */
1232
+ startColumn: number;
1233
+ /**
1234
+ * Last line of the script.
1235
+ */
1236
+ endLine: number;
1237
+ /**
1238
+ * Length of the last line of the script.
1239
+ */
1240
+ endColumn: number;
1241
+ /**
1242
+ * Specifies script creation context.
1243
+ */
1244
+ executionContextId: Runtime.ExecutionContextId;
1245
+ /**
1246
+ * Content hash of the script.
1247
+ */
1248
+ hash: string;
1249
+ /**
1250
+ * Embedder-specific auxiliary data.
1251
+ */
1252
+ executionContextAuxData?: {} | undefined;
1253
+ /**
1254
+ * URL of source map associated with script (if any).
1255
+ */
1256
+ sourceMapURL?: string | undefined;
1257
+ /**
1258
+ * True, if this script has sourceURL.
1259
+ */
1260
+ hasSourceURL?: boolean | undefined;
1261
+ /**
1262
+ * True, if this script is ES6 module.
1263
+ */
1264
+ isModule?: boolean | undefined;
1265
+ /**
1266
+ * This script length.
1267
+ */
1268
+ length?: number | undefined;
1269
+ /**
1270
+ * JavaScript top stack frame of where the script parsed event was triggered if available.
1271
+ * @experimental
1272
+ */
1273
+ stackTrace?: Runtime.StackTrace | undefined;
1274
+ }
1275
+ interface BreakpointResolvedEventDataType {
1276
+ /**
1277
+ * Breakpoint unique identifier.
1278
+ */
1279
+ breakpointId: BreakpointId;
1280
+ /**
1281
+ * Actual breakpoint location.
1282
+ */
1283
+ location: Location;
1284
+ }
1285
+ interface PausedEventDataType {
1286
+ /**
1287
+ * Call stack the virtual machine stopped on.
1288
+ */
1289
+ callFrames: CallFrame[];
1290
+ /**
1291
+ * Pause reason.
1292
+ */
1293
+ reason: string;
1294
+ /**
1295
+ * Object containing break-specific auxiliary properties.
1296
+ */
1297
+ data?: {} | undefined;
1298
+ /**
1299
+ * Hit breakpoints IDs
1300
+ */
1301
+ hitBreakpoints?: string[] | undefined;
1302
+ /**
1303
+ * Async stack trace, if any.
1304
+ */
1305
+ asyncStackTrace?: Runtime.StackTrace | undefined;
1306
+ /**
1307
+ * Async stack trace, if any.
1308
+ * @experimental
1309
+ */
1310
+ asyncStackTraceId?: Runtime.StackTraceId | undefined;
1311
+ /**
1312
+ * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after <code>Debugger.stepInto</code> call with <code>breakOnAsynCall</code> flag.
1313
+ * @experimental
1314
+ */
1315
+ asyncCallStackTraceId?: Runtime.StackTraceId | undefined;
1316
+ }
1317
+ }
1318
+ namespace Console {
1319
+ /**
1320
+ * Console message.
1321
+ */
1322
+ interface ConsoleMessage {
1323
+ /**
1324
+ * Message source.
1325
+ */
1326
+ source: string;
1327
+ /**
1328
+ * Message severity.
1329
+ */
1330
+ level: string;
1331
+ /**
1332
+ * Message text.
1333
+ */
1334
+ text: string;
1335
+ /**
1336
+ * URL of the message origin.
1337
+ */
1338
+ url?: string | undefined;
1339
+ /**
1340
+ * Line number in the resource that generated this message (1-based).
1341
+ */
1342
+ line?: number | undefined;
1343
+ /**
1344
+ * Column number in the resource that generated this message (1-based).
1345
+ */
1346
+ column?: number | undefined;
1347
+ }
1348
+ interface MessageAddedEventDataType {
1349
+ /**
1350
+ * Console message that has been added.
1351
+ */
1352
+ message: ConsoleMessage;
1353
+ }
1354
+ }
1355
+ namespace Profiler {
1356
+ /**
1357
+ * Profile node. Holds callsite information, execution statistics and child nodes.
1358
+ */
1359
+ interface ProfileNode {
1360
+ /**
1361
+ * Unique id of the node.
1362
+ */
1363
+ id: number;
1364
+ /**
1365
+ * Function location.
1366
+ */
1367
+ callFrame: Runtime.CallFrame;
1368
+ /**
1369
+ * Number of samples where this node was on top of the call stack.
1370
+ */
1371
+ hitCount?: number | undefined;
1372
+ /**
1373
+ * Child node ids.
1374
+ */
1375
+ children?: number[] | undefined;
1376
+ /**
1377
+ * The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
1378
+ */
1379
+ deoptReason?: string | undefined;
1380
+ /**
1381
+ * An array of source position ticks.
1382
+ */
1383
+ positionTicks?: PositionTickInfo[] | undefined;
1384
+ }
1385
+ /**
1386
+ * Profile.
1387
+ */
1388
+ interface Profile {
1389
+ /**
1390
+ * The list of profile nodes. First item is the root node.
1391
+ */
1392
+ nodes: ProfileNode[];
1393
+ /**
1394
+ * Profiling start timestamp in microseconds.
1395
+ */
1396
+ startTime: number;
1397
+ /**
1398
+ * Profiling end timestamp in microseconds.
1399
+ */
1400
+ endTime: number;
1401
+ /**
1402
+ * Ids of samples top nodes.
1403
+ */
1404
+ samples?: number[] | undefined;
1405
+ /**
1406
+ * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
1407
+ */
1408
+ timeDeltas?: number[] | undefined;
1409
+ }
1410
+ /**
1411
+ * Specifies a number of samples attributed to a certain source position.
1412
+ */
1413
+ interface PositionTickInfo {
1414
+ /**
1415
+ * Source line number (1-based).
1416
+ */
1417
+ line: number;
1418
+ /**
1419
+ * Number of samples attributed to the source line.
1420
+ */
1421
+ ticks: number;
1422
+ }
1423
+ /**
1424
+ * Coverage data for a source range.
1425
+ */
1426
+ interface CoverageRange {
1427
+ /**
1428
+ * JavaScript script source offset for the range start.
1429
+ */
1430
+ startOffset: number;
1431
+ /**
1432
+ * JavaScript script source offset for the range end.
1433
+ */
1434
+ endOffset: number;
1435
+ /**
1436
+ * Collected execution count of the source range.
1437
+ */
1438
+ count: number;
1439
+ }
1440
+ /**
1441
+ * Coverage data for a JavaScript function.
1442
+ */
1443
+ interface FunctionCoverage {
1444
+ /**
1445
+ * JavaScript function name.
1446
+ */
1447
+ functionName: string;
1448
+ /**
1449
+ * Source ranges inside the function with coverage data.
1450
+ */
1451
+ ranges: CoverageRange[];
1452
+ /**
1453
+ * Whether coverage data for this function has block granularity.
1454
+ */
1455
+ isBlockCoverage: boolean;
1456
+ }
1457
+ /**
1458
+ * Coverage data for a JavaScript script.
1459
+ */
1460
+ interface ScriptCoverage {
1461
+ /**
1462
+ * JavaScript script id.
1463
+ */
1464
+ scriptId: Runtime.ScriptId;
1465
+ /**
1466
+ * JavaScript script name or url.
1467
+ */
1468
+ url: string;
1469
+ /**
1470
+ * Functions contained in the script that has coverage data.
1471
+ */
1472
+ functions: FunctionCoverage[];
1473
+ }
1474
+ /**
1475
+ * Describes a type collected during runtime.
1476
+ * @experimental
1477
+ */
1478
+ interface TypeObject {
1479
+ /**
1480
+ * Name of a type collected with type profiling.
1481
+ */
1482
+ name: string;
1483
+ }
1484
+ /**
1485
+ * Source offset and types for a parameter or return value.
1486
+ * @experimental
1487
+ */
1488
+ interface TypeProfileEntry {
1489
+ /**
1490
+ * Source offset of the parameter or end of function for return values.
1491
+ */
1492
+ offset: number;
1493
+ /**
1494
+ * The types for this parameter or return value.
1495
+ */
1496
+ types: TypeObject[];
1497
+ }
1498
+ /**
1499
+ * Type profile data collected during runtime for a JavaScript script.
1500
+ * @experimental
1501
+ */
1502
+ interface ScriptTypeProfile {
1503
+ /**
1504
+ * JavaScript script id.
1505
+ */
1506
+ scriptId: Runtime.ScriptId;
1507
+ /**
1508
+ * JavaScript script name or url.
1509
+ */
1510
+ url: string;
1511
+ /**
1512
+ * Type profile entries for parameters and return values of the functions in the script.
1513
+ */
1514
+ entries: TypeProfileEntry[];
1515
+ }
1516
+ interface SetSamplingIntervalParameterType {
1517
+ /**
1518
+ * New sampling interval in microseconds.
1519
+ */
1520
+ interval: number;
1521
+ }
1522
+ interface StartPreciseCoverageParameterType {
1523
+ /**
1524
+ * Collect accurate call counts beyond simple 'covered' or 'not covered'.
1525
+ */
1526
+ callCount?: boolean | undefined;
1527
+ /**
1528
+ * Collect block-based coverage.
1529
+ */
1530
+ detailed?: boolean | undefined;
1531
+ }
1532
+ interface StopReturnType {
1533
+ /**
1534
+ * Recorded profile.
1535
+ */
1536
+ profile: Profile;
1537
+ }
1538
+ interface TakePreciseCoverageReturnType {
1539
+ /**
1540
+ * Coverage data for the current isolate.
1541
+ */
1542
+ result: ScriptCoverage[];
1543
+ }
1544
+ interface GetBestEffortCoverageReturnType {
1545
+ /**
1546
+ * Coverage data for the current isolate.
1547
+ */
1548
+ result: ScriptCoverage[];
1549
+ }
1550
+ interface TakeTypeProfileReturnType {
1551
+ /**
1552
+ * Type profile for all scripts since startTypeProfile() was turned on.
1553
+ */
1554
+ result: ScriptTypeProfile[];
1555
+ }
1556
+ interface ConsoleProfileStartedEventDataType {
1557
+ id: string;
1558
+ /**
1559
+ * Location of console.profile().
1560
+ */
1561
+ location: Debugger.Location;
1562
+ /**
1563
+ * Profile title passed as an argument to console.profile().
1564
+ */
1565
+ title?: string | undefined;
1566
+ }
1567
+ interface ConsoleProfileFinishedEventDataType {
1568
+ id: string;
1569
+ /**
1570
+ * Location of console.profileEnd().
1571
+ */
1572
+ location: Debugger.Location;
1573
+ profile: Profile;
1574
+ /**
1575
+ * Profile title passed as an argument to console.profile().
1576
+ */
1577
+ title?: string | undefined;
1578
+ }
1579
+ }
1580
+ namespace HeapProfiler {
1581
+ /**
1582
+ * Heap snapshot object id.
1583
+ */
1584
+ type HeapSnapshotObjectId = string;
1585
+ /**
1586
+ * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
1587
+ */
1588
+ interface SamplingHeapProfileNode {
1589
+ /**
1590
+ * Function location.
1591
+ */
1592
+ callFrame: Runtime.CallFrame;
1593
+ /**
1594
+ * Allocations size in bytes for the node excluding children.
1595
+ */
1596
+ selfSize: number;
1597
+ /**
1598
+ * Child nodes.
1599
+ */
1600
+ children: SamplingHeapProfileNode[];
1601
+ }
1602
+ /**
1603
+ * Profile.
1604
+ */
1605
+ interface SamplingHeapProfile {
1606
+ head: SamplingHeapProfileNode;
1607
+ }
1608
+ interface StartTrackingHeapObjectsParameterType {
1609
+ trackAllocations?: boolean | undefined;
1610
+ }
1611
+ interface StopTrackingHeapObjectsParameterType {
1612
+ /**
1613
+ * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
1614
+ */
1615
+ reportProgress?: boolean | undefined;
1616
+ }
1617
+ interface TakeHeapSnapshotParameterType {
1618
+ /**
1619
+ * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
1620
+ */
1621
+ reportProgress?: boolean | undefined;
1622
+ }
1623
+ interface GetObjectByHeapObjectIdParameterType {
1624
+ objectId: HeapSnapshotObjectId;
1625
+ /**
1626
+ * Symbolic group name that can be used to release multiple objects.
1627
+ */
1628
+ objectGroup?: string | undefined;
1629
+ }
1630
+ interface AddInspectedHeapObjectParameterType {
1631
+ /**
1632
+ * Heap snapshot object id to be accessible by means of $x command line API.
1633
+ */
1634
+ heapObjectId: HeapSnapshotObjectId;
1635
+ }
1636
+ interface GetHeapObjectIdParameterType {
1637
+ /**
1638
+ * Identifier of the object to get heap object id for.
1639
+ */
1640
+ objectId: Runtime.RemoteObjectId;
1641
+ }
1642
+ interface StartSamplingParameterType {
1643
+ /**
1644
+ * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
1645
+ */
1646
+ samplingInterval?: number | undefined;
1647
+ }
1648
+ interface GetObjectByHeapObjectIdReturnType {
1649
+ /**
1650
+ * Evaluation result.
1651
+ */
1652
+ result: Runtime.RemoteObject;
1653
+ }
1654
+ interface GetHeapObjectIdReturnType {
1655
+ /**
1656
+ * Id of the heap snapshot object corresponding to the passed remote object id.
1657
+ */
1658
+ heapSnapshotObjectId: HeapSnapshotObjectId;
1659
+ }
1660
+ interface StopSamplingReturnType {
1661
+ /**
1662
+ * Recorded sampling heap profile.
1663
+ */
1664
+ profile: SamplingHeapProfile;
1665
+ }
1666
+ interface GetSamplingProfileReturnType {
1667
+ /**
1668
+ * Return the sampling profile being collected.
1669
+ */
1670
+ profile: SamplingHeapProfile;
1671
+ }
1672
+ interface AddHeapSnapshotChunkEventDataType {
1673
+ chunk: string;
1674
+ }
1675
+ interface ReportHeapSnapshotProgressEventDataType {
1676
+ done: number;
1677
+ total: number;
1678
+ finished?: boolean | undefined;
1679
+ }
1680
+ interface LastSeenObjectIdEventDataType {
1681
+ lastSeenObjectId: number;
1682
+ timestamp: number;
1683
+ }
1684
+ interface HeapStatsUpdateEventDataType {
1685
+ /**
1686
+ * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
1687
+ */
1688
+ statsUpdate: number[];
1689
+ }
1690
+ }
1691
+ namespace NodeTracing {
1692
+ interface TraceConfig {
1693
+ /**
1694
+ * Controls how the trace buffer stores data.
1695
+ */
1696
+ recordMode?: string | undefined;
1697
+ /**
1698
+ * Included category filters.
1699
+ */
1700
+ includedCategories: string[];
1701
+ }
1702
+ interface StartParameterType {
1703
+ traceConfig: TraceConfig;
1704
+ }
1705
+ interface GetCategoriesReturnType {
1706
+ /**
1707
+ * A list of supported tracing categories.
1708
+ */
1709
+ categories: string[];
1710
+ }
1711
+ interface DataCollectedEventDataType {
1712
+ value: Array<{}>;
1713
+ }
1714
+ }
1715
+ namespace NodeWorker {
1716
+ type WorkerID = string;
1717
+ /**
1718
+ * Unique identifier of attached debugging session.
1719
+ */
1720
+ type SessionID = string;
1721
+ interface WorkerInfo {
1722
+ workerId: WorkerID;
1723
+ type: string;
1724
+ title: string;
1725
+ url: string;
1726
+ }
1727
+ interface SendMessageToWorkerParameterType {
1728
+ message: string;
1729
+ /**
1730
+ * Identifier of the session.
1731
+ */
1732
+ sessionId: SessionID;
1733
+ }
1734
+ interface EnableParameterType {
1735
+ /**
1736
+ * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
1737
+ * message to run them.
1738
+ */
1739
+ waitForDebuggerOnStart: boolean;
1740
+ }
1741
+ interface DetachParameterType {
1742
+ sessionId: SessionID;
1743
+ }
1744
+ interface AttachedToWorkerEventDataType {
1745
+ /**
1746
+ * Identifier assigned to the session used to send/receive messages.
1747
+ */
1748
+ sessionId: SessionID;
1749
+ workerInfo: WorkerInfo;
1750
+ waitingForDebugger: boolean;
1751
+ }
1752
+ interface DetachedFromWorkerEventDataType {
1753
+ /**
1754
+ * Detached session identifier.
1755
+ */
1756
+ sessionId: SessionID;
1757
+ }
1758
+ interface ReceivedMessageFromWorkerEventDataType {
1759
+ /**
1760
+ * Identifier of a session which sends a message.
1761
+ */
1762
+ sessionId: SessionID;
1763
+ message: string;
1764
+ }
1765
+ }
1766
+ namespace NodeRuntime {
1767
+ interface NotifyWhenWaitingForDisconnectParameterType {
1768
+ enabled: boolean;
1769
+ }
1770
+ }
1771
+ /**
1772
+ * The `inspector.Session` is used for dispatching messages to the V8 inspector
1773
+ * back-end and receiving message responses and notifications.
1774
+ */
1775
+ class Session extends EventEmitter {
1776
+ /**
1777
+ * Create a new instance of the inspector.Session class.
1778
+ * The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend.
1779
+ */
1780
+ constructor();
1781
+ /**
1782
+ * Connects a session to the inspector back-end.
1783
+ * @since v8.0.0
1784
+ */
1785
+ connect(): void;
1786
+ /**
1787
+ * Immediately close the session. All pending message callbacks will be called
1788
+ * with an error. `session.connect()` will need to be called to be able to send
1789
+ * messages again. Reconnected session will lose all inspector state, such as
1790
+ * enabled agents or configured breakpoints.
1791
+ * @since v8.0.0
1792
+ */
1793
+ disconnect(): void;
1794
+ /**
1795
+ * Posts a message to the inspector back-end. `callback` will be notified when
1796
+ * a response is received. `callback` is a function that accepts two optional
1797
+ * arguments: error and message-specific result.
1798
+ *
1799
+ * ```js
1800
+ * session.post('Runtime.evaluate', { expression: '2 + 2' },
1801
+ * (error, { result }) => console.log(result));
1802
+ * // Output: { type: 'number', value: 4, description: '4' }
1803
+ * ```
1804
+ *
1805
+ * The latest version of the V8 inspector protocol is published on the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
1806
+ *
1807
+ * Node.js inspector supports all the Chrome DevTools Protocol domains declared
1808
+ * by V8\. Chrome DevTools Protocol domain provides an interface for interacting
1809
+ * with one of the runtime agents used to inspect the application state and listen
1810
+ * to the run-time events.
1811
+ *
1812
+ * ## Example usage
1813
+ *
1814
+ * Apart from the debugger, various V8 Profilers are available through the DevTools
1815
+ * protocol.
1816
+ * @since v8.0.0
1817
+ */
1818
+ post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void;
1819
+ post(method: string, callback?: (err: Error | null, params?: {}) => void): void;
1820
+ /**
1821
+ * Returns supported domains.
1822
+ */
1823
+ post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
1824
+ /**
1825
+ * Evaluates expression on global object.
1826
+ */
1827
+ post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1828
+ post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1829
+ /**
1830
+ * Add handler to promise with given promise object id.
1831
+ */
1832
+ post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1833
+ post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1834
+ /**
1835
+ * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
1836
+ */
1837
+ post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1838
+ post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1839
+ /**
1840
+ * Returns properties of a given object. Object group of the result is inherited from the target object.
1841
+ */
1842
+ post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1843
+ post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1844
+ /**
1845
+ * Releases remote object with given id.
1846
+ */
1847
+ post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
1848
+ post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void;
1849
+ /**
1850
+ * Releases all remote objects that belong to a given group.
1851
+ */
1852
+ post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
1853
+ post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void;
1854
+ /**
1855
+ * Tells inspected instance to run if it was waiting for debugger to attach.
1856
+ */
1857
+ post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void;
1858
+ /**
1859
+ * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
1860
+ */
1861
+ post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void;
1862
+ /**
1863
+ * Disables reporting of execution contexts creation.
1864
+ */
1865
+ post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void;
1866
+ /**
1867
+ * Discards collected exceptions and console API calls.
1868
+ */
1869
+ post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void;
1870
+ /**
1871
+ * @experimental
1872
+ */
1873
+ post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
1874
+ post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void;
1875
+ /**
1876
+ * Compiles expression.
1877
+ */
1878
+ post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
1879
+ post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
1880
+ /**
1881
+ * Runs script with given id in a given context.
1882
+ */
1883
+ post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
1884
+ post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
1885
+ post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
1886
+ post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
1887
+ /**
1888
+ * Returns all let, const and class variables from global scope.
1889
+ */
1890
+ post(
1891
+ method: 'Runtime.globalLexicalScopeNames',
1892
+ params?: Runtime.GlobalLexicalScopeNamesParameterType,
1893
+ callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
1894
+ ): void;
1895
+ post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
1896
+ /**
1897
+ * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
1898
+ */
1899
+ post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
1900
+ /**
1901
+ * Disables debugger for given page.
1902
+ */
1903
+ post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void;
1904
+ /**
1905
+ * Activates / deactivates all breakpoints on the page.
1906
+ */
1907
+ post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
1908
+ post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void;
1909
+ /**
1910
+ * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
1911
+ */
1912
+ post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
1913
+ post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void;
1914
+ /**
1915
+ * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
1916
+ */
1917
+ post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
1918
+ post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
1919
+ /**
1920
+ * Sets JavaScript breakpoint at a given location.
1921
+ */
1922
+ post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
1923
+ post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
1924
+ /**
1925
+ * Removes JavaScript breakpoint.
1926
+ */
1927
+ post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
1928
+ post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void;
1929
+ /**
1930
+ * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
1931
+ */
1932
+ post(
1933
+ method: 'Debugger.getPossibleBreakpoints',
1934
+ params?: Debugger.GetPossibleBreakpointsParameterType,
1935
+ callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
1936
+ ): void;
1937
+ post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
1938
+ /**
1939
+ * Continues execution until specific location is reached.
1940
+ */
1941
+ post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
1942
+ post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void;
1943
+ /**
1944
+ * @experimental
1945
+ */
1946
+ post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
1947
+ post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void;
1948
+ /**
1949
+ * Steps over the statement.
1950
+ */
1951
+ post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void;
1952
+ /**
1953
+ * Steps into the function call.
1954
+ */
1955
+ post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
1956
+ post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void;
1957
+ /**
1958
+ * Steps out of the function call.
1959
+ */
1960
+ post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void;
1961
+ /**
1962
+ * Stops on the next JavaScript statement.
1963
+ */
1964
+ post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void;
1965
+ /**
1966
+ * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
1967
+ * @experimental
1968
+ */
1969
+ post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void;
1970
+ /**
1971
+ * Resumes JavaScript execution.
1972
+ */
1973
+ post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void;
1974
+ /**
1975
+ * Returns stack trace with given <code>stackTraceId</code>.
1976
+ * @experimental
1977
+ */
1978
+ post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
1979
+ post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
1980
+ /**
1981
+ * Searches for given string in script content.
1982
+ */
1983
+ post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
1984
+ post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
1985
+ /**
1986
+ * Edits JavaScript source live.
1987
+ */
1988
+ post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
1989
+ post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
1990
+ /**
1991
+ * Restarts particular call frame from the beginning.
1992
+ */
1993
+ post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
1994
+ post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
1995
+ /**
1996
+ * Returns source for the script with given id.
1997
+ */
1998
+ post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
1999
+ post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
2000
+ /**
2001
+ * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
2002
+ */
2003
+ post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
2004
+ post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void;
2005
+ /**
2006
+ * Evaluates expression on a given call frame.
2007
+ */
2008
+ post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2009
+ post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2010
+ /**
2011
+ * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
2012
+ */
2013
+ post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
2014
+ post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void;
2015
+ /**
2016
+ * Changes return value in top frame. Available only at return break position.
2017
+ * @experimental
2018
+ */
2019
+ post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
2020
+ post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void;
2021
+ /**
2022
+ * Enables or disables async call stacks tracking.
2023
+ */
2024
+ post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
2025
+ post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void;
2026
+ /**
2027
+ * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
2028
+ * @experimental
2029
+ */
2030
+ post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
2031
+ post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void;
2032
+ /**
2033
+ * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted.
2034
+ * @experimental
2035
+ */
2036
+ post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
2037
+ post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void;
2038
+ /**
2039
+ * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
2040
+ */
2041
+ post(method: 'Console.enable', callback?: (err: Error | null) => void): void;
2042
+ /**
2043
+ * Disables console domain, prevents further console messages from being reported to the client.
2044
+ */
2045
+ post(method: 'Console.disable', callback?: (err: Error | null) => void): void;
2046
+ /**
2047
+ * Does nothing.
2048
+ */
2049
+ post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void;
2050
+ post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void;
2051
+ post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void;
2052
+ /**
2053
+ * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
2054
+ */
2055
+ post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
2056
+ post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void;
2057
+ post(method: 'Profiler.start', callback?: (err: Error | null) => void): void;
2058
+ post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
2059
+ /**
2060
+ * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.
2061
+ */
2062
+ post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
2063
+ post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void;
2064
+ /**
2065
+ * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
2066
+ */
2067
+ post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void;
2068
+ /**
2069
+ * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
2070
+ */
2071
+ post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
2072
+ /**
2073
+ * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
2074
+ */
2075
+ post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
2076
+ /**
2077
+ * Enable type profile.
2078
+ * @experimental
2079
+ */
2080
+ post(method: 'Profiler.startTypeProfile', callback?: (err: Error | null) => void): void;
2081
+ /**
2082
+ * Disable type profile. Disabling releases type profile data collected so far.
2083
+ * @experimental
2084
+ */
2085
+ post(method: 'Profiler.stopTypeProfile', callback?: (err: Error | null) => void): void;
2086
+ /**
2087
+ * Collect type profile.
2088
+ * @experimental
2089
+ */
2090
+ post(method: 'Profiler.takeTypeProfile', callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
2091
+ post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void;
2092
+ post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void;
2093
+ post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2094
+ post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2095
+ post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2096
+ post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2097
+ post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
2098
+ post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void;
2099
+ post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void;
2100
+ post(
2101
+ method: 'HeapProfiler.getObjectByHeapObjectId',
2102
+ params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
2103
+ callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
2104
+ ): void;
2105
+ post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
2106
+ /**
2107
+ * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
2108
+ */
2109
+ post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
2110
+ post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void;
2111
+ post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2112
+ post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2113
+ post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
2114
+ post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void;
2115
+ post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2116
+ post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2117
+ /**
2118
+ * Gets supported tracing categories.
2119
+ */
2120
+ post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2121
+ /**
2122
+ * Start trace events collection.
2123
+ */
2124
+ post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2125
+ post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void;
2126
+ /**
2127
+ * Stop trace events collection. Remaining collected events will be sent as a sequence of
2128
+ * dataCollected events followed by tracingComplete event.
2129
+ */
2130
+ post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void;
2131
+ /**
2132
+ * Sends protocol message over session with given id.
2133
+ */
2134
+ post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2135
+ post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void;
2136
+ /**
2137
+ * Instructs the inspector to attach to running workers. Will also attach to new workers
2138
+ * as they start
2139
+ */
2140
+ post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2141
+ post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void;
2142
+ /**
2143
+ * Detaches from all running workers and disables attaching to new workers as they are started.
2144
+ */
2145
+ post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void;
2146
+ /**
2147
+ * Detached from the worker with given sessionId.
2148
+ */
2149
+ post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2150
+ post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void;
2151
+ /**
2152
+ * Enable the `NodeRuntime.waitingForDisconnect`.
2153
+ */
2154
+ post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2155
+ post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void;
2156
+ // Events
2157
+ addListener(event: string, listener: (...args: any[]) => void): this;
2158
+ /**
2159
+ * Emitted when any notification from the V8 Inspector is received.
2160
+ */
2161
+ addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2162
+ /**
2163
+ * Issued when new execution context is created.
2164
+ */
2165
+ addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2166
+ /**
2167
+ * Issued when execution context is destroyed.
2168
+ */
2169
+ addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2170
+ /**
2171
+ * Issued when all executionContexts were cleared in browser
2172
+ */
2173
+ addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2174
+ /**
2175
+ * Issued when exception was thrown and unhandled.
2176
+ */
2177
+ addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2178
+ /**
2179
+ * Issued when unhandled exception was revoked.
2180
+ */
2181
+ addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2182
+ /**
2183
+ * Issued when console API was called.
2184
+ */
2185
+ addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2186
+ /**
2187
+ * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2188
+ */
2189
+ addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2190
+ /**
2191
+ * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2192
+ */
2193
+ addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2194
+ /**
2195
+ * Fired when virtual machine fails to parse the script.
2196
+ */
2197
+ addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2198
+ /**
2199
+ * Fired when breakpoint is resolved to an actual script and location.
2200
+ */
2201
+ addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2202
+ /**
2203
+ * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2204
+ */
2205
+ addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2206
+ /**
2207
+ * Fired when the virtual machine resumed execution.
2208
+ */
2209
+ addListener(event: 'Debugger.resumed', listener: () => void): this;
2210
+ /**
2211
+ * Issued when new console message is added.
2212
+ */
2213
+ addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2214
+ /**
2215
+ * Sent when new profile recording is started using console.profile() call.
2216
+ */
2217
+ addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2218
+ addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2219
+ addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2220
+ addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2221
+ addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2222
+ /**
2223
+ * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2224
+ */
2225
+ addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2226
+ /**
2227
+ * If heap objects tracking has been started then backend may send update for one or more fragments
2228
+ */
2229
+ addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2230
+ /**
2231
+ * Contains an bucket of collected trace events.
2232
+ */
2233
+ addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2234
+ /**
2235
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2236
+ * delivered via dataCollected events.
2237
+ */
2238
+ addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2239
+ /**
2240
+ * Issued when attached to a worker.
2241
+ */
2242
+ addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2243
+ /**
2244
+ * Issued when detached from the worker.
2245
+ */
2246
+ addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2247
+ /**
2248
+ * Notifies about a new protocol message received from the session
2249
+ * (session ID is provided in attachedToWorker notification).
2250
+ */
2251
+ addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2252
+ /**
2253
+ * This event is fired instead of `Runtime.executionContextDestroyed` when
2254
+ * enabled.
2255
+ * It is fired when the Node process finished all code execution and is
2256
+ * waiting for all frontends to disconnect.
2257
+ */
2258
+ addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2259
+ emit(event: string | symbol, ...args: any[]): boolean;
2260
+ emit(event: 'inspectorNotification', message: InspectorNotification<{}>): boolean;
2261
+ emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
2262
+ emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
2263
+ emit(event: 'Runtime.executionContextsCleared'): boolean;
2264
+ emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
2265
+ emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
2266
+ emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
2267
+ emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
2268
+ emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
2269
+ emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
2270
+ emit(event: 'Debugger.breakpointResolved', message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
2271
+ emit(event: 'Debugger.paused', message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
2272
+ emit(event: 'Debugger.resumed'): boolean;
2273
+ emit(event: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
2274
+ emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
2275
+ emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
2276
+ emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
2277
+ emit(event: 'HeapProfiler.resetProfiles'): boolean;
2278
+ emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2279
+ emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2280
+ emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2281
+ emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2282
+ emit(event: 'NodeTracing.tracingComplete'): boolean;
2283
+ emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2284
+ emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2285
+ emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2286
+ emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
2287
+ on(event: string, listener: (...args: any[]) => void): this;
2288
+ /**
2289
+ * Emitted when any notification from the V8 Inspector is received.
2290
+ */
2291
+ on(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2292
+ /**
2293
+ * Issued when new execution context is created.
2294
+ */
2295
+ on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2296
+ /**
2297
+ * Issued when execution context is destroyed.
2298
+ */
2299
+ on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2300
+ /**
2301
+ * Issued when all executionContexts were cleared in browser
2302
+ */
2303
+ on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2304
+ /**
2305
+ * Issued when exception was thrown and unhandled.
2306
+ */
2307
+ on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2308
+ /**
2309
+ * Issued when unhandled exception was revoked.
2310
+ */
2311
+ on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2312
+ /**
2313
+ * Issued when console API was called.
2314
+ */
2315
+ on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2316
+ /**
2317
+ * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2318
+ */
2319
+ on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2320
+ /**
2321
+ * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2322
+ */
2323
+ on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2324
+ /**
2325
+ * Fired when virtual machine fails to parse the script.
2326
+ */
2327
+ on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2328
+ /**
2329
+ * Fired when breakpoint is resolved to an actual script and location.
2330
+ */
2331
+ on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2332
+ /**
2333
+ * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2334
+ */
2335
+ on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2336
+ /**
2337
+ * Fired when the virtual machine resumed execution.
2338
+ */
2339
+ on(event: 'Debugger.resumed', listener: () => void): this;
2340
+ /**
2341
+ * Issued when new console message is added.
2342
+ */
2343
+ on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2344
+ /**
2345
+ * Sent when new profile recording is started using console.profile() call.
2346
+ */
2347
+ on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2348
+ on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2349
+ on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2350
+ on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2351
+ on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2352
+ /**
2353
+ * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2354
+ */
2355
+ on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2356
+ /**
2357
+ * If heap objects tracking has been started then backend may send update for one or more fragments
2358
+ */
2359
+ on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2360
+ /**
2361
+ * Contains an bucket of collected trace events.
2362
+ */
2363
+ on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2364
+ /**
2365
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2366
+ * delivered via dataCollected events.
2367
+ */
2368
+ on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2369
+ /**
2370
+ * Issued when attached to a worker.
2371
+ */
2372
+ on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2373
+ /**
2374
+ * Issued when detached from the worker.
2375
+ */
2376
+ on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2377
+ /**
2378
+ * Notifies about a new protocol message received from the session
2379
+ * (session ID is provided in attachedToWorker notification).
2380
+ */
2381
+ on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2382
+ /**
2383
+ * This event is fired instead of `Runtime.executionContextDestroyed` when
2384
+ * enabled.
2385
+ * It is fired when the Node process finished all code execution and is
2386
+ * waiting for all frontends to disconnect.
2387
+ */
2388
+ on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2389
+ once(event: string, listener: (...args: any[]) => void): this;
2390
+ /**
2391
+ * Emitted when any notification from the V8 Inspector is received.
2392
+ */
2393
+ once(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2394
+ /**
2395
+ * Issued when new execution context is created.
2396
+ */
2397
+ once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2398
+ /**
2399
+ * Issued when execution context is destroyed.
2400
+ */
2401
+ once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2402
+ /**
2403
+ * Issued when all executionContexts were cleared in browser
2404
+ */
2405
+ once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2406
+ /**
2407
+ * Issued when exception was thrown and unhandled.
2408
+ */
2409
+ once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2410
+ /**
2411
+ * Issued when unhandled exception was revoked.
2412
+ */
2413
+ once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2414
+ /**
2415
+ * Issued when console API was called.
2416
+ */
2417
+ once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2418
+ /**
2419
+ * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2420
+ */
2421
+ once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2422
+ /**
2423
+ * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2424
+ */
2425
+ once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2426
+ /**
2427
+ * Fired when virtual machine fails to parse the script.
2428
+ */
2429
+ once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2430
+ /**
2431
+ * Fired when breakpoint is resolved to an actual script and location.
2432
+ */
2433
+ once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2434
+ /**
2435
+ * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2436
+ */
2437
+ once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2438
+ /**
2439
+ * Fired when the virtual machine resumed execution.
2440
+ */
2441
+ once(event: 'Debugger.resumed', listener: () => void): this;
2442
+ /**
2443
+ * Issued when new console message is added.
2444
+ */
2445
+ once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2446
+ /**
2447
+ * Sent when new profile recording is started using console.profile() call.
2448
+ */
2449
+ once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2450
+ once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2451
+ once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2452
+ once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2453
+ once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2454
+ /**
2455
+ * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2456
+ */
2457
+ once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2458
+ /**
2459
+ * If heap objects tracking has been started then backend may send update for one or more fragments
2460
+ */
2461
+ once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2462
+ /**
2463
+ * Contains an bucket of collected trace events.
2464
+ */
2465
+ once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2466
+ /**
2467
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2468
+ * delivered via dataCollected events.
2469
+ */
2470
+ once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2471
+ /**
2472
+ * Issued when attached to a worker.
2473
+ */
2474
+ once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2475
+ /**
2476
+ * Issued when detached from the worker.
2477
+ */
2478
+ once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2479
+ /**
2480
+ * Notifies about a new protocol message received from the session
2481
+ * (session ID is provided in attachedToWorker notification).
2482
+ */
2483
+ once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2484
+ /**
2485
+ * This event is fired instead of `Runtime.executionContextDestroyed` when
2486
+ * enabled.
2487
+ * It is fired when the Node process finished all code execution and is
2488
+ * waiting for all frontends to disconnect.
2489
+ */
2490
+ once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2491
+ prependListener(event: string, listener: (...args: any[]) => void): this;
2492
+ /**
2493
+ * Emitted when any notification from the V8 Inspector is received.
2494
+ */
2495
+ prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2496
+ /**
2497
+ * Issued when new execution context is created.
2498
+ */
2499
+ prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2500
+ /**
2501
+ * Issued when execution context is destroyed.
2502
+ */
2503
+ prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2504
+ /**
2505
+ * Issued when all executionContexts were cleared in browser
2506
+ */
2507
+ prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2508
+ /**
2509
+ * Issued when exception was thrown and unhandled.
2510
+ */
2511
+ prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2512
+ /**
2513
+ * Issued when unhandled exception was revoked.
2514
+ */
2515
+ prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2516
+ /**
2517
+ * Issued when console API was called.
2518
+ */
2519
+ prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2520
+ /**
2521
+ * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2522
+ */
2523
+ prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2524
+ /**
2525
+ * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2526
+ */
2527
+ prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2528
+ /**
2529
+ * Fired when virtual machine fails to parse the script.
2530
+ */
2531
+ prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2532
+ /**
2533
+ * Fired when breakpoint is resolved to an actual script and location.
2534
+ */
2535
+ prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2536
+ /**
2537
+ * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2538
+ */
2539
+ prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2540
+ /**
2541
+ * Fired when the virtual machine resumed execution.
2542
+ */
2543
+ prependListener(event: 'Debugger.resumed', listener: () => void): this;
2544
+ /**
2545
+ * Issued when new console message is added.
2546
+ */
2547
+ prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2548
+ /**
2549
+ * Sent when new profile recording is started using console.profile() call.
2550
+ */
2551
+ prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2552
+ prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2553
+ prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2554
+ prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2555
+ prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2556
+ /**
2557
+ * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2558
+ */
2559
+ prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2560
+ /**
2561
+ * If heap objects tracking has been started then backend may send update for one or more fragments
2562
+ */
2563
+ prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2564
+ /**
2565
+ * Contains an bucket of collected trace events.
2566
+ */
2567
+ prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2568
+ /**
2569
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2570
+ * delivered via dataCollected events.
2571
+ */
2572
+ prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2573
+ /**
2574
+ * Issued when attached to a worker.
2575
+ */
2576
+ prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2577
+ /**
2578
+ * Issued when detached from the worker.
2579
+ */
2580
+ prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2581
+ /**
2582
+ * Notifies about a new protocol message received from the session
2583
+ * (session ID is provided in attachedToWorker notification).
2584
+ */
2585
+ prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2586
+ /**
2587
+ * This event is fired instead of `Runtime.executionContextDestroyed` when
2588
+ * enabled.
2589
+ * It is fired when the Node process finished all code execution and is
2590
+ * waiting for all frontends to disconnect.
2591
+ */
2592
+ prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2593
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
2594
+ /**
2595
+ * Emitted when any notification from the V8 Inspector is received.
2596
+ */
2597
+ prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2598
+ /**
2599
+ * Issued when new execution context is created.
2600
+ */
2601
+ prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2602
+ /**
2603
+ * Issued when execution context is destroyed.
2604
+ */
2605
+ prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2606
+ /**
2607
+ * Issued when all executionContexts were cleared in browser
2608
+ */
2609
+ prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2610
+ /**
2611
+ * Issued when exception was thrown and unhandled.
2612
+ */
2613
+ prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2614
+ /**
2615
+ * Issued when unhandled exception was revoked.
2616
+ */
2617
+ prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2618
+ /**
2619
+ * Issued when console API was called.
2620
+ */
2621
+ prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2622
+ /**
2623
+ * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2624
+ */
2625
+ prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2626
+ /**
2627
+ * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2628
+ */
2629
+ prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2630
+ /**
2631
+ * Fired when virtual machine fails to parse the script.
2632
+ */
2633
+ prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2634
+ /**
2635
+ * Fired when breakpoint is resolved to an actual script and location.
2636
+ */
2637
+ prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2638
+ /**
2639
+ * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2640
+ */
2641
+ prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2642
+ /**
2643
+ * Fired when the virtual machine resumed execution.
2644
+ */
2645
+ prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
2646
+ /**
2647
+ * Issued when new console message is added.
2648
+ */
2649
+ prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2650
+ /**
2651
+ * Sent when new profile recording is started using console.profile() call.
2652
+ */
2653
+ prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2654
+ prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2655
+ prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2656
+ prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2657
+ prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2658
+ /**
2659
+ * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
2660
+ */
2661
+ prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2662
+ /**
2663
+ * If heap objects tracking has been started then backend may send update for one or more fragments
2664
+ */
2665
+ prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2666
+ /**
2667
+ * Contains an bucket of collected trace events.
2668
+ */
2669
+ prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2670
+ /**
2671
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2672
+ * delivered via dataCollected events.
2673
+ */
2674
+ prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2675
+ /**
2676
+ * Issued when attached to a worker.
2677
+ */
2678
+ prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2679
+ /**
2680
+ * Issued when detached from the worker.
2681
+ */
2682
+ prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2683
+ /**
2684
+ * Notifies about a new protocol message received from the session
2685
+ * (session ID is provided in attachedToWorker notification).
2686
+ */
2687
+ prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2688
+ /**
2689
+ * This event is fired instead of `Runtime.executionContextDestroyed` when
2690
+ * enabled.
2691
+ * It is fired when the Node process finished all code execution and is
2692
+ * waiting for all frontends to disconnect.
2693
+ */
2694
+ prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2695
+ }
2696
+ /**
2697
+ * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
2698
+ * started.
2699
+ *
2700
+ * If wait is `true`, will block until a client has connected to the inspect port
2701
+ * and flow control has been passed to the debugger client.
2702
+ *
2703
+ * See the `security warning` regarding the `host` parameter usage.
2704
+ * @param [port='what was specified on the CLI'] Port to listen on for inspector connections. Optional.
2705
+ * @param [host='what was specified on the CLI'] Host to listen on for inspector connections. Optional.
2706
+ * @param [wait=false] Block until a client has connected. Optional.
2707
+ * @returns Disposable that calls `inspector.close()`.
2708
+ */
2709
+ function open(port?: number, host?: string, wait?: boolean): Disposable;
2710
+ /**
2711
+ * Deactivate the inspector. Blocks until there are no active connections.
2712
+ */
2713
+ function close(): void;
2714
+ /**
2715
+ * Return the URL of the active inspector, or `undefined` if there is none.
2716
+ *
2717
+ * ```console
2718
+ * $ node --inspect -p 'inspector.url()'
2719
+ * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2720
+ * For help, see: https://nodejs.org/en/docs/inspector
2721
+ * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2722
+ *
2723
+ * $ node --inspect=localhost:3000 -p 'inspector.url()'
2724
+ * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2725
+ * For help, see: https://nodejs.org/en/docs/inspector
2726
+ * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2727
+ *
2728
+ * $ node -p 'inspector.url()'
2729
+ * undefined
2730
+ * ```
2731
+ */
2732
+ function url(): string | undefined;
2733
+ /**
2734
+ * Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command.
2735
+ *
2736
+ * An exception will be thrown if there is no active inspector.
2737
+ * @since v12.7.0
2738
+ */
2739
+ function waitForDebugger(): void;
2740
+ }
2741
+ /**
2742
+ * The inspector module provides an API for interacting with the V8 inspector.
2743
+ */
2744
+ declare module 'node:inspector' {
2745
+ export * from 'inspector';
2746
+ }