omegon 0.8.4 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/extensions/cleave/dispatcher.ts +213 -20
  2. package/extensions/cleave/rpc-child.ts +269 -0
  3. package/extensions/cleave/types.ts +52 -0
  4. package/node_modules/@types/node/README.md +3 -3
  5. package/node_modules/@types/node/assert/strict.d.ts +11 -5
  6. package/node_modules/@types/node/assert.d.ts +173 -50
  7. package/node_modules/@types/node/async_hooks.d.ts +8 -28
  8. package/node_modules/@types/node/buffer.buffer.d.ts +7 -1
  9. package/node_modules/@types/node/buffer.d.ts +168 -44
  10. package/node_modules/@types/node/child_process.d.ts +70 -27
  11. package/node_modules/@types/node/cluster.d.ts +332 -240
  12. package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  13. package/node_modules/@types/node/compatibility/index.d.ts +9 -0
  14. package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  15. package/node_modules/@types/node/compatibility/iterators.d.ts +0 -1
  16. package/node_modules/@types/node/console.d.ts +350 -49
  17. package/node_modules/@types/node/constants.d.ts +4 -3
  18. package/node_modules/@types/node/crypto.d.ts +1110 -630
  19. package/node_modules/@types/node/dgram.d.ts +51 -15
  20. package/node_modules/@types/node/diagnostics_channel.d.ts +6 -4
  21. package/node_modules/@types/node/dns/promises.d.ts +4 -4
  22. package/node_modules/@types/node/dns.d.ts +133 -132
  23. package/node_modules/@types/node/domain.d.ts +17 -13
  24. package/node_modules/@types/node/events.d.ts +663 -734
  25. package/node_modules/@types/node/fs/promises.d.ts +9 -43
  26. package/node_modules/@types/node/fs.d.ts +411 -628
  27. package/node_modules/@types/node/globals.d.ts +30 -8
  28. package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
  29. package/node_modules/@types/node/http.d.ts +265 -364
  30. package/node_modules/@types/node/http2.d.ts +715 -551
  31. package/node_modules/@types/node/https.d.ts +239 -65
  32. package/node_modules/@types/node/index.d.ts +6 -24
  33. package/node_modules/@types/node/inspector.d.ts +53 -69
  34. package/node_modules/@types/node/inspector.generated.d.ts +410 -759
  35. package/node_modules/@types/node/module.d.ts +186 -52
  36. package/node_modules/@types/node/net.d.ts +194 -70
  37. package/node_modules/@types/node/os.d.ts +11 -12
  38. package/node_modules/@types/node/package.json +3 -13
  39. package/node_modules/@types/node/path.d.ts +133 -120
  40. package/node_modules/@types/node/perf_hooks.d.ts +643 -318
  41. package/node_modules/@types/node/process.d.ts +132 -223
  42. package/node_modules/@types/node/punycode.d.ts +5 -5
  43. package/node_modules/@types/node/querystring.d.ts +4 -4
  44. package/node_modules/@types/node/readline/promises.d.ts +3 -3
  45. package/node_modules/@types/node/readline.d.ts +120 -68
  46. package/node_modules/@types/node/repl.d.ts +100 -87
  47. package/node_modules/@types/node/sea.d.ts +1 -10
  48. package/node_modules/@types/node/sqlite.d.ts +19 -363
  49. package/node_modules/@types/node/stream/consumers.d.ts +10 -10
  50. package/node_modules/@types/node/stream/promises.d.ts +15 -136
  51. package/node_modules/@types/node/stream/web.d.ts +502 -176
  52. package/node_modules/@types/node/stream.d.ts +475 -581
  53. package/node_modules/@types/node/string_decoder.d.ts +4 -4
  54. package/node_modules/@types/node/test.d.ts +196 -308
  55. package/node_modules/@types/node/timers/promises.d.ts +4 -4
  56. package/node_modules/@types/node/timers.d.ts +132 -4
  57. package/node_modules/@types/node/tls.d.ts +226 -110
  58. package/node_modules/@types/node/trace_events.d.ts +9 -9
  59. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +7 -1
  60. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
  61. package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
  62. package/node_modules/@types/node/tty.d.ts +16 -58
  63. package/node_modules/@types/node/url.d.ts +573 -130
  64. package/node_modules/@types/node/util.d.ts +1100 -181
  65. package/node_modules/@types/node/v8.d.ts +8 -76
  66. package/node_modules/@types/node/vm.d.ts +72 -280
  67. package/node_modules/@types/node/wasi.d.ts +4 -25
  68. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
  69. package/node_modules/@types/node/web-globals/events.d.ts +0 -9
  70. package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
  71. package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
  72. package/node_modules/@types/node/worker_threads.d.ts +335 -268
  73. package/node_modules/@types/node/zlib.d.ts +74 -9
  74. package/node_modules/undici-types/agent.d.ts +12 -13
  75. package/node_modules/undici-types/api.d.ts +26 -26
  76. package/node_modules/undici-types/balanced-pool.d.ts +12 -13
  77. package/node_modules/undici-types/client.d.ts +19 -19
  78. package/node_modules/undici-types/connector.d.ts +2 -2
  79. package/node_modules/undici-types/cookies.d.ts +0 -2
  80. package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
  81. package/node_modules/undici-types/dispatcher.d.ts +103 -123
  82. package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
  83. package/node_modules/undici-types/errors.d.ts +54 -66
  84. package/node_modules/undici-types/eventsource.d.ts +4 -9
  85. package/node_modules/undici-types/fetch.d.ts +20 -22
  86. package/node_modules/undici-types/file.d.ts +39 -0
  87. package/node_modules/undici-types/filereader.d.ts +54 -0
  88. package/node_modules/undici-types/formdata.d.ts +7 -7
  89. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  90. package/node_modules/undici-types/global-origin.d.ts +5 -5
  91. package/node_modules/undici-types/handlers.d.ts +8 -8
  92. package/node_modules/undici-types/header.d.ts +1 -157
  93. package/node_modules/undici-types/index.d.ts +47 -64
  94. package/node_modules/undici-types/interceptors.d.ts +8 -64
  95. package/node_modules/undici-types/mock-agent.d.ts +18 -36
  96. package/node_modules/undici-types/mock-client.d.ts +4 -6
  97. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  98. package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
  99. package/node_modules/undici-types/mock-pool.d.ts +4 -6
  100. package/node_modules/undici-types/package.json +1 -1
  101. package/node_modules/undici-types/patch.d.ts +4 -0
  102. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  103. package/node_modules/undici-types/pool.d.ts +13 -15
  104. package/node_modules/undici-types/proxy-agent.d.ts +4 -5
  105. package/node_modules/undici-types/readable.d.ts +16 -19
  106. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  107. package/node_modules/undici-types/retry-handler.d.ts +10 -19
  108. package/node_modules/undici-types/util.d.ts +3 -3
  109. package/node_modules/undici-types/webidl.d.ts +29 -142
  110. package/node_modules/undici-types/websocket.d.ts +10 -46
  111. package/package.json +2 -1
  112. package/scripts/check-vendor-dist.mjs +56 -0
  113. package/skills/cleave/SKILL.md +62 -2
  114. package/node_modules/@types/node/inspector/promises.d.ts +0 -41
  115. package/node_modules/@types/node/path/posix.d.ts +0 -8
  116. package/node_modules/@types/node/path/win32.d.ts +0 -8
  117. package/node_modules/@types/node/quic.d.ts +0 -910
  118. package/node_modules/@types/node/test/reporters.d.ts +0 -96
  119. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  120. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  121. package/node_modules/@types/node/ts5.7/index.d.ts +0 -117
  122. package/node_modules/@types/node/util/types.d.ts +0 -558
  123. package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  124. package/node_modules/@types/node/web-globals/console.d.ts +0 -9
  125. package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  126. package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  127. package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  128. package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  129. package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  130. package/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  131. package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  132. package/node_modules/@types/node/web-globals/url.d.ts +0 -24
  133. package/node_modules/undici-types/cache-interceptor.d.ts +0 -173
  134. package/node_modules/undici-types/client-stats.d.ts +0 -15
  135. package/node_modules/undici-types/h2c-client.d.ts +0 -73
  136. package/node_modules/undici-types/mock-call-history.d.ts +0 -111
  137. package/node_modules/undici-types/round-robin-pool.d.ts +0 -41
  138. package/node_modules/undici-types/snapshot-agent.d.ts +0 -109
  139. package/node_modules/undici-types/utility.d.ts +0 -7
@@ -3,11 +3,12 @@
3
3
  // See scripts/generate-inspector/README.md for information on how to update the protocol definitions.
4
4
  // Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template).
5
5
 
6
- declare module "node:inspector" {
6
+ declare module "inspector" {
7
7
  interface InspectorNotification<T> {
8
8
  method: string;
9
9
  params: T;
10
10
  }
11
+
11
12
  namespace Schema {
12
13
  /**
13
14
  * Description of the protocol domain.
@@ -1620,38 +1621,79 @@ declare module "node:inspector" {
1620
1621
  statsUpdate: number[];
1621
1622
  }
1622
1623
  }
1623
- namespace IO {
1624
- type StreamHandle = string;
1625
- interface ReadParameterType {
1624
+ namespace NodeTracing {
1625
+ interface TraceConfig {
1626
1626
  /**
1627
- * Handle of the stream to read.
1627
+ * Controls how the trace buffer stores data.
1628
1628
  */
1629
- handle: StreamHandle;
1629
+ recordMode?: string | undefined;
1630
1630
  /**
1631
- * Seek to the specified offset before reading (if not specified, proceed with offset
1632
- * following the last read). Some types of streams may only support sequential reads.
1631
+ * Included category filters.
1633
1632
  */
1634
- offset?: number | undefined;
1633
+ includedCategories: string[];
1634
+ }
1635
+ interface StartParameterType {
1636
+ traceConfig: TraceConfig;
1637
+ }
1638
+ interface GetCategoriesReturnType {
1635
1639
  /**
1636
- * Maximum number of bytes to read (left upon the agent discretion if not specified).
1640
+ * A list of supported tracing categories.
1637
1641
  */
1638
- size?: number | undefined;
1642
+ categories: string[];
1639
1643
  }
1640
- interface CloseParameterType {
1644
+ interface DataCollectedEventDataType {
1645
+ value: object[];
1646
+ }
1647
+ }
1648
+ namespace NodeWorker {
1649
+ type WorkerID = string;
1650
+ /**
1651
+ * Unique identifier of attached debugging session.
1652
+ */
1653
+ type SessionID = string;
1654
+ interface WorkerInfo {
1655
+ workerId: WorkerID;
1656
+ type: string;
1657
+ title: string;
1658
+ url: string;
1659
+ }
1660
+ interface SendMessageToWorkerParameterType {
1661
+ message: string;
1641
1662
  /**
1642
- * Handle of the stream to close.
1663
+ * Identifier of the session.
1643
1664
  */
1644
- handle: StreamHandle;
1665
+ sessionId: SessionID;
1645
1666
  }
1646
- interface ReadReturnType {
1667
+ interface EnableParameterType {
1647
1668
  /**
1648
- * Data that were read.
1669
+ * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
1670
+ * message to run them.
1649
1671
  */
1650
- data: string;
1672
+ waitForDebuggerOnStart: boolean;
1673
+ }
1674
+ interface DetachParameterType {
1675
+ sessionId: SessionID;
1676
+ }
1677
+ interface AttachedToWorkerEventDataType {
1651
1678
  /**
1652
- * Set if the end-of-file condition occurred while reading.
1679
+ * Identifier assigned to the session used to send/receive messages.
1653
1680
  */
1654
- eof: boolean;
1681
+ sessionId: SessionID;
1682
+ workerInfo: WorkerInfo;
1683
+ waitingForDebugger: boolean;
1684
+ }
1685
+ interface DetachedFromWorkerEventDataType {
1686
+ /**
1687
+ * Detached session identifier.
1688
+ */
1689
+ sessionId: SessionID;
1690
+ }
1691
+ interface ReceivedMessageFromWorkerEventDataType {
1692
+ /**
1693
+ * Identifier of a session which sends a message.
1694
+ */
1695
+ sessionId: SessionID;
1696
+ message: string;
1655
1697
  }
1656
1698
  }
1657
1699
  namespace Network {
@@ -1732,35 +1774,6 @@ declare module "node:inspector" {
1732
1774
  success: boolean;
1733
1775
  stream?: IO.StreamHandle | undefined;
1734
1776
  }
1735
- /**
1736
- * WebSocket response data.
1737
- */
1738
- interface WebSocketResponse {
1739
- /**
1740
- * HTTP response status code.
1741
- */
1742
- status: number;
1743
- /**
1744
- * HTTP response status text.
1745
- */
1746
- statusText: string;
1747
- /**
1748
- * HTTP response headers.
1749
- */
1750
- headers: Headers;
1751
- }
1752
- interface EnableParameterType {
1753
- /**
1754
- * Buffer size in bytes to use when preserving network payloads (XHRs, etc).
1755
- * @experimental
1756
- */
1757
- maxTotalBufferSize?: number | undefined;
1758
- /**
1759
- * Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
1760
- * @experimental
1761
- */
1762
- maxResourceBufferSize?: number | undefined;
1763
- }
1764
1777
  interface GetRequestPostDataParameterType {
1765
1778
  /**
1766
1779
  * Identifier of the network request to get content for.
@@ -1901,125 +1914,12 @@ declare module "node:inspector" {
1901
1914
  */
1902
1915
  data?: string | undefined;
1903
1916
  }
1904
- interface WebSocketCreatedEventDataType {
1905
- /**
1906
- * Request identifier.
1907
- */
1908
- requestId: RequestId;
1909
- /**
1910
- * WebSocket request URL.
1911
- */
1912
- url: string;
1913
- /**
1914
- * Request initiator.
1915
- */
1916
- initiator: Initiator;
1917
- }
1918
- interface WebSocketClosedEventDataType {
1919
- /**
1920
- * Request identifier.
1921
- */
1922
- requestId: RequestId;
1923
- /**
1924
- * Timestamp.
1925
- */
1926
- timestamp: MonotonicTime;
1927
- }
1928
- interface WebSocketHandshakeResponseReceivedEventDataType {
1929
- /**
1930
- * Request identifier.
1931
- */
1932
- requestId: RequestId;
1933
- /**
1934
- * Timestamp.
1935
- */
1936
- timestamp: MonotonicTime;
1937
- /**
1938
- * WebSocket response data.
1939
- */
1940
- response: WebSocketResponse;
1941
- }
1942
1917
  }
1943
1918
  namespace NodeRuntime {
1944
1919
  interface NotifyWhenWaitingForDisconnectParameterType {
1945
1920
  enabled: boolean;
1946
1921
  }
1947
1922
  }
1948
- namespace NodeTracing {
1949
- interface TraceConfig {
1950
- /**
1951
- * Controls how the trace buffer stores data.
1952
- */
1953
- recordMode?: string | undefined;
1954
- /**
1955
- * Included category filters.
1956
- */
1957
- includedCategories: string[];
1958
- }
1959
- interface StartParameterType {
1960
- traceConfig: TraceConfig;
1961
- }
1962
- interface GetCategoriesReturnType {
1963
- /**
1964
- * A list of supported tracing categories.
1965
- */
1966
- categories: string[];
1967
- }
1968
- interface DataCollectedEventDataType {
1969
- value: object[];
1970
- }
1971
- }
1972
- namespace NodeWorker {
1973
- type WorkerID = string;
1974
- /**
1975
- * Unique identifier of attached debugging session.
1976
- */
1977
- type SessionID = string;
1978
- interface WorkerInfo {
1979
- workerId: WorkerID;
1980
- type: string;
1981
- title: string;
1982
- url: string;
1983
- }
1984
- interface SendMessageToWorkerParameterType {
1985
- message: string;
1986
- /**
1987
- * Identifier of the session.
1988
- */
1989
- sessionId: SessionID;
1990
- }
1991
- interface EnableParameterType {
1992
- /**
1993
- * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
1994
- * message to run them.
1995
- */
1996
- waitForDebuggerOnStart: boolean;
1997
- }
1998
- interface DetachParameterType {
1999
- sessionId: SessionID;
2000
- }
2001
- interface AttachedToWorkerEventDataType {
2002
- /**
2003
- * Identifier assigned to the session used to send/receive messages.
2004
- */
2005
- sessionId: SessionID;
2006
- workerInfo: WorkerInfo;
2007
- waitingForDebugger: boolean;
2008
- }
2009
- interface DetachedFromWorkerEventDataType {
2010
- /**
2011
- * Detached session identifier.
2012
- */
2013
- sessionId: SessionID;
2014
- }
2015
- interface ReceivedMessageFromWorkerEventDataType {
2016
- /**
2017
- * Identifier of a session which sends a message.
2018
- */
2019
- sessionId: SessionID;
2020
- message: string;
2021
- }
2022
- }
2023
1923
  namespace Target {
2024
1924
  type SessionID = string;
2025
1925
  type TargetID = string;
@@ -2044,75 +1944,41 @@ declare module "node:inspector" {
2044
1944
  waitingForDebugger: boolean;
2045
1945
  }
2046
1946
  }
2047
- namespace DOMStorage {
2048
- type SerializedStorageKey = string;
2049
- /**
2050
- * DOM Storage identifier.
2051
- */
2052
- interface StorageId {
1947
+ namespace IO {
1948
+ type StreamHandle = string;
1949
+ interface ReadParameterType {
2053
1950
  /**
2054
- * Security origin for the storage.
1951
+ * Handle of the stream to read.
2055
1952
  */
2056
- securityOrigin?: string | undefined;
1953
+ handle: StreamHandle;
2057
1954
  /**
2058
- * Represents a key by which DOM Storage keys its CachedStorageAreas
1955
+ * Seek to the specified offset before reading (if not specified, proceed with offset
1956
+ * following the last read). Some types of streams may only support sequential reads.
2059
1957
  */
2060
- storageKey?: SerializedStorageKey | undefined;
1958
+ offset?: number | undefined;
2061
1959
  /**
2062
- * Whether the storage is local storage (not session storage).
1960
+ * Maximum number of bytes to read (left upon the agent discretion if not specified).
2063
1961
  */
2064
- isLocalStorage: boolean;
2065
- }
2066
- /**
2067
- * DOM Storage item.
2068
- */
2069
- type Item = string[];
2070
- interface ClearParameterType {
2071
- storageId: StorageId;
2072
- }
2073
- interface GetDOMStorageItemsParameterType {
2074
- storageId: StorageId;
2075
- }
2076
- interface RemoveDOMStorageItemParameterType {
2077
- storageId: StorageId;
2078
- key: string;
2079
- }
2080
- interface SetDOMStorageItemParameterType {
2081
- storageId: StorageId;
2082
- key: string;
2083
- value: string;
2084
- }
2085
- interface GetDOMStorageItemsReturnType {
2086
- entries: Item[];
2087
- }
2088
- interface DomStorageItemAddedEventDataType {
2089
- storageId: StorageId;
2090
- key: string;
2091
- newValue: string;
2092
- }
2093
- interface DomStorageItemRemovedEventDataType {
2094
- storageId: StorageId;
2095
- key: string;
2096
- }
2097
- interface DomStorageItemUpdatedEventDataType {
2098
- storageId: StorageId;
2099
- key: string;
2100
- oldValue: string;
2101
- newValue: string;
2102
- }
2103
- interface DomStorageItemsClearedEventDataType {
2104
- storageId: StorageId;
1962
+ size?: number | undefined;
2105
1963
  }
2106
- }
2107
- namespace Storage {
2108
- type SerializedStorageKey = string;
2109
- interface GetStorageKeyParameterType {
2110
- frameId?: string | undefined;
1964
+ interface CloseParameterType {
1965
+ /**
1966
+ * Handle of the stream to close.
1967
+ */
1968
+ handle: StreamHandle;
2111
1969
  }
2112
- interface GetStorageKeyReturnType {
2113
- storageKey: SerializedStorageKey;
1970
+ interface ReadReturnType {
1971
+ /**
1972
+ * Data that were read.
1973
+ */
1974
+ data: string;
1975
+ /**
1976
+ * Set if the end-of-file condition occurred while reading.
1977
+ */
1978
+ eof: boolean;
2114
1979
  }
2115
1980
  }
1981
+
2116
1982
  interface Session {
2117
1983
  /**
2118
1984
  * Posts a message to the inspector back-end. `callback` will be notified when
@@ -2418,20 +2284,46 @@ declare module "node:inspector" {
2418
2284
  post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2419
2285
  post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2420
2286
  /**
2421
- * Read a chunk of the stream
2287
+ * Gets supported tracing categories.
2422
2288
  */
2423
- post(method: "IO.read", params?: IO.ReadParameterType, callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
2424
- post(method: "IO.read", callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
2425
- post(method: "IO.close", params?: IO.CloseParameterType, callback?: (err: Error | null) => void): void;
2426
- post(method: "IO.close", callback?: (err: Error | null) => void): void;
2289
+ post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2427
2290
  /**
2428
- * Disables network tracking, prevents network events from being sent to the client.
2291
+ * Start trace events collection.
2429
2292
  */
2430
- post(method: "Network.disable", callback?: (err: Error | null) => void): void;
2293
+ post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2294
+ post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
2295
+ /**
2296
+ * Stop trace events collection. Remaining collected events will be sent as a sequence of
2297
+ * dataCollected events followed by tracingComplete event.
2298
+ */
2299
+ post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
2300
+ /**
2301
+ * Sends protocol message over session with given id.
2302
+ */
2303
+ post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2304
+ post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
2305
+ /**
2306
+ * Instructs the inspector to attach to running workers. Will also attach to new workers
2307
+ * as they start
2308
+ */
2309
+ post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2310
+ post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
2311
+ /**
2312
+ * Detaches from all running workers and disables attaching to new workers as they are started.
2313
+ */
2314
+ post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
2315
+ /**
2316
+ * Detached from the worker with given sessionId.
2317
+ */
2318
+ post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2319
+ post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
2320
+ /**
2321
+ * Disables network tracking, prevents network events from being sent to the client.
2322
+ */
2323
+ post(method: "Network.disable", callback?: (err: Error | null) => void): void;
2431
2324
  /**
2432
2325
  * Enables network tracking, network events will now be delivered to the client.
2433
2326
  */
2434
- post(method: "Network.enable", params?: Network.EnableParameterType, callback?: (err: Error | null) => void): void;
2435
2327
  post(method: "Network.enable", callback?: (err: Error | null) => void): void;
2436
2328
  /**
2437
2329
  * Returns post data sent with the request. Returns an error when no data was sent with the request.
@@ -2472,67 +2364,16 @@ declare module "node:inspector" {
2472
2364
  */
2473
2365
  post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2474
2366
  post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void;
2475
- /**
2476
- * Gets supported tracing categories.
2477
- */
2478
- post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2479
- /**
2480
- * Start trace events collection.
2481
- */
2482
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2483
- post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
2484
- /**
2485
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
2486
- * dataCollected events followed by tracingComplete event.
2487
- */
2488
- post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
2489
- /**
2490
- * Sends protocol message over session with given id.
2491
- */
2492
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2493
- post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
2494
- /**
2495
- * Instructs the inspector to attach to running workers. Will also attach to new workers
2496
- * as they start
2497
- */
2498
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2499
- post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
2500
- /**
2501
- * Detaches from all running workers and disables attaching to new workers as they are started.
2502
- */
2503
- post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
2504
- /**
2505
- * Detached from the worker with given sessionId.
2506
- */
2507
- post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2508
- post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
2509
2367
  post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType, callback?: (err: Error | null) => void): void;
2510
2368
  post(method: "Target.setAutoAttach", callback?: (err: Error | null) => void): void;
2511
- post(method: "DOMStorage.clear", params?: DOMStorage.ClearParameterType, callback?: (err: Error | null) => void): void;
2512
- post(method: "DOMStorage.clear", callback?: (err: Error | null) => void): void;
2513
2369
  /**
2514
- * Disables storage tracking, prevents storage events from being sent to the client.
2515
- */
2516
- post(method: "DOMStorage.disable", callback?: (err: Error | null) => void): void;
2517
- /**
2518
- * Enables storage tracking, storage events will now be delivered to the client.
2519
- */
2520
- post(method: "DOMStorage.enable", callback?: (err: Error | null) => void): void;
2521
- post(
2522
- method: "DOMStorage.getDOMStorageItems",
2523
- params?: DOMStorage.GetDOMStorageItemsParameterType,
2524
- callback?: (err: Error | null, params: DOMStorage.GetDOMStorageItemsReturnType) => void
2525
- ): void;
2526
- post(method: "DOMStorage.getDOMStorageItems", callback?: (err: Error | null, params: DOMStorage.GetDOMStorageItemsReturnType) => void): void;
2527
- post(method: "DOMStorage.removeDOMStorageItem", params?: DOMStorage.RemoveDOMStorageItemParameterType, callback?: (err: Error | null) => void): void;
2528
- post(method: "DOMStorage.removeDOMStorageItem", callback?: (err: Error | null) => void): void;
2529
- post(method: "DOMStorage.setDOMStorageItem", params?: DOMStorage.SetDOMStorageItemParameterType, callback?: (err: Error | null) => void): void;
2530
- post(method: "DOMStorage.setDOMStorageItem", callback?: (err: Error | null) => void): void;
2531
- /**
2532
- * @experimental
2370
+ * Read a chunk of the stream
2533
2371
  */
2534
- post(method: "Storage.getStorageKey", params?: Storage.GetStorageKeyParameterType, callback?: (err: Error | null, params: Storage.GetStorageKeyReturnType) => void): void;
2535
- post(method: "Storage.getStorageKey", callback?: (err: Error | null, params: Storage.GetStorageKeyReturnType) => void): void;
2372
+ post(method: "IO.read", params?: IO.ReadParameterType, callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
2373
+ post(method: "IO.read", callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
2374
+ post(method: "IO.close", params?: IO.CloseParameterType, callback?: (err: Error | null) => void): void;
2375
+ post(method: "IO.close", callback?: (err: Error | null) => void): void;
2376
+
2536
2377
  addListener(event: string, listener: (...args: any[]) => void): this;
2537
2378
  /**
2538
2379
  * Emitted when any notification from the V8 Inspector is received.
@@ -2606,6 +2447,28 @@ declare module "node:inspector" {
2606
2447
  * If heap objects tracking has been started then backend may send update for one or more fragments
2607
2448
  */
2608
2449
  addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2450
+ /**
2451
+ * Contains an bucket of collected trace events.
2452
+ */
2453
+ addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2454
+ /**
2455
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2456
+ * delivered via dataCollected events.
2457
+ */
2458
+ addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2459
+ /**
2460
+ * Issued when attached to a worker.
2461
+ */
2462
+ addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2463
+ /**
2464
+ * Issued when detached from the worker.
2465
+ */
2466
+ addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2467
+ /**
2468
+ * Notifies about a new protocol message received from the session
2469
+ * (session ID is provided in attachedToWorker notification).
2470
+ */
2471
+ addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2609
2472
  /**
2610
2473
  * Fired when page is about to send HTTP request.
2611
2474
  */
@@ -2620,18 +2483,6 @@ declare module "node:inspector" {
2620
2483
  * Fired when data chunk was received over the network.
2621
2484
  */
2622
2485
  addListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
2623
- /**
2624
- * Fired upon WebSocket creation.
2625
- */
2626
- addListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
2627
- /**
2628
- * Fired when WebSocket is closed.
2629
- */
2630
- addListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
2631
- /**
2632
- * Fired when WebSocket handshake response becomes available.
2633
- */
2634
- addListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
2635
2486
  /**
2636
2487
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2637
2488
  * enabled.
@@ -2644,34 +2495,8 @@ declare module "node:inspector" {
2644
2495
  * example, when inspector.waitingForDebugger is called
2645
2496
  */
2646
2497
  addListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
2647
- /**
2648
- * Contains an bucket of collected trace events.
2649
- */
2650
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2651
- /**
2652
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2653
- * delivered via dataCollected events.
2654
- */
2655
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2656
- /**
2657
- * Issued when attached to a worker.
2658
- */
2659
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2660
- /**
2661
- * Issued when detached from the worker.
2662
- */
2663
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2664
- /**
2665
- * Notifies about a new protocol message received from the session
2666
- * (session ID is provided in attachedToWorker notification).
2667
- */
2668
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2669
2498
  addListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2670
2499
  addListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
2671
- addListener(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
2672
- addListener(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
2673
- addListener(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
2674
- addListener(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
2675
2500
  emit(event: string | symbol, ...args: any[]): boolean;
2676
2501
  emit(event: "inspectorNotification", message: InspectorNotification<object>): boolean;
2677
2502
  emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
@@ -2694,27 +2519,20 @@ declare module "node:inspector" {
2694
2519
  emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2695
2520
  emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2696
2521
  emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2522
+ emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2523
+ emit(event: "NodeTracing.tracingComplete"): boolean;
2524
+ emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2525
+ emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2526
+ emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2697
2527
  emit(event: "Network.requestWillBeSent", message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
2698
2528
  emit(event: "Network.responseReceived", message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
2699
2529
  emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
2700
2530
  emit(event: "Network.loadingFinished", message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
2701
2531
  emit(event: "Network.dataReceived", message: InspectorNotification<Network.DataReceivedEventDataType>): boolean;
2702
- emit(event: "Network.webSocketCreated", message: InspectorNotification<Network.WebSocketCreatedEventDataType>): boolean;
2703
- emit(event: "Network.webSocketClosed", message: InspectorNotification<Network.WebSocketClosedEventDataType>): boolean;
2704
- emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
2705
2532
  emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
2706
2533
  emit(event: "NodeRuntime.waitingForDebugger"): boolean;
2707
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2708
- emit(event: "NodeTracing.tracingComplete"): boolean;
2709
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2710
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2711
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2712
2534
  emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
2713
2535
  emit(event: "Target.attachedToTarget", message: InspectorNotification<Target.AttachedToTargetEventDataType>): boolean;
2714
- emit(event: "DOMStorage.domStorageItemAdded", message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>): boolean;
2715
- emit(event: "DOMStorage.domStorageItemRemoved", message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>): boolean;
2716
- emit(event: "DOMStorage.domStorageItemUpdated", message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>): boolean;
2717
- emit(event: "DOMStorage.domStorageItemsCleared", message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>): boolean;
2718
2536
  on(event: string, listener: (...args: any[]) => void): this;
2719
2537
  /**
2720
2538
  * Emitted when any notification from the V8 Inspector is received.
@@ -2788,6 +2606,28 @@ declare module "node:inspector" {
2788
2606
  * If heap objects tracking has been started then backend may send update for one or more fragments
2789
2607
  */
2790
2608
  on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2609
+ /**
2610
+ * Contains an bucket of collected trace events.
2611
+ */
2612
+ on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2613
+ /**
2614
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2615
+ * delivered via dataCollected events.
2616
+ */
2617
+ on(event: "NodeTracing.tracingComplete", listener: () => void): this;
2618
+ /**
2619
+ * Issued when attached to a worker.
2620
+ */
2621
+ on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2622
+ /**
2623
+ * Issued when detached from the worker.
2624
+ */
2625
+ on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2626
+ /**
2627
+ * Notifies about a new protocol message received from the session
2628
+ * (session ID is provided in attachedToWorker notification).
2629
+ */
2630
+ on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2791
2631
  /**
2792
2632
  * Fired when page is about to send HTTP request.
2793
2633
  */
@@ -2802,18 +2642,6 @@ declare module "node:inspector" {
2802
2642
  * Fired when data chunk was received over the network.
2803
2643
  */
2804
2644
  on(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
2805
- /**
2806
- * Fired upon WebSocket creation.
2807
- */
2808
- on(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
2809
- /**
2810
- * Fired when WebSocket is closed.
2811
- */
2812
- on(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
2813
- /**
2814
- * Fired when WebSocket handshake response becomes available.
2815
- */
2816
- on(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
2817
2645
  /**
2818
2646
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2819
2647
  * enabled.
@@ -2826,34 +2654,8 @@ declare module "node:inspector" {
2826
2654
  * example, when inspector.waitingForDebugger is called
2827
2655
  */
2828
2656
  on(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
2829
- /**
2830
- * Contains an bucket of collected trace events.
2831
- */
2832
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2833
- /**
2834
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2835
- * delivered via dataCollected events.
2836
- */
2837
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
2838
- /**
2839
- * Issued when attached to a worker.
2840
- */
2841
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2842
- /**
2843
- * Issued when detached from the worker.
2844
- */
2845
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2846
- /**
2847
- * Notifies about a new protocol message received from the session
2848
- * (session ID is provided in attachedToWorker notification).
2849
- */
2850
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2851
2657
  on(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2852
2658
  on(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
2853
- on(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
2854
- on(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
2855
- on(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
2856
- on(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
2857
2659
  once(event: string, listener: (...args: any[]) => void): this;
2858
2660
  /**
2859
2661
  * Emitted when any notification from the V8 Inspector is received.
@@ -2927,6 +2729,28 @@ declare module "node:inspector" {
2927
2729
  * If heap objects tracking has been started then backend may send update for one or more fragments
2928
2730
  */
2929
2731
  once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2732
+ /**
2733
+ * Contains an bucket of collected trace events.
2734
+ */
2735
+ once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2736
+ /**
2737
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2738
+ * delivered via dataCollected events.
2739
+ */
2740
+ once(event: "NodeTracing.tracingComplete", listener: () => void): this;
2741
+ /**
2742
+ * Issued when attached to a worker.
2743
+ */
2744
+ once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2745
+ /**
2746
+ * Issued when detached from the worker.
2747
+ */
2748
+ once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2749
+ /**
2750
+ * Notifies about a new protocol message received from the session
2751
+ * (session ID is provided in attachedToWorker notification).
2752
+ */
2753
+ once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2930
2754
  /**
2931
2755
  * Fired when page is about to send HTTP request.
2932
2756
  */
@@ -2941,18 +2765,6 @@ declare module "node:inspector" {
2941
2765
  * Fired when data chunk was received over the network.
2942
2766
  */
2943
2767
  once(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
2944
- /**
2945
- * Fired upon WebSocket creation.
2946
- */
2947
- once(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
2948
- /**
2949
- * Fired when WebSocket is closed.
2950
- */
2951
- once(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
2952
- /**
2953
- * Fired when WebSocket handshake response becomes available.
2954
- */
2955
- once(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
2956
2768
  /**
2957
2769
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2958
2770
  * enabled.
@@ -2965,34 +2777,8 @@ declare module "node:inspector" {
2965
2777
  * example, when inspector.waitingForDebugger is called
2966
2778
  */
2967
2779
  once(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
2968
- /**
2969
- * Contains an bucket of collected trace events.
2970
- */
2971
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2972
- /**
2973
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2974
- * delivered via dataCollected events.
2975
- */
2976
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
2977
- /**
2978
- * Issued when attached to a worker.
2979
- */
2980
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2981
- /**
2982
- * Issued when detached from the worker.
2983
- */
2984
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2985
- /**
2986
- * Notifies about a new protocol message received from the session
2987
- * (session ID is provided in attachedToWorker notification).
2988
- */
2989
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2990
2780
  once(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2991
2781
  once(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
2992
- once(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
2993
- once(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
2994
- once(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
2995
- once(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
2996
2782
  prependListener(event: string, listener: (...args: any[]) => void): this;
2997
2783
  /**
2998
2784
  * Emitted when any notification from the V8 Inspector is received.
@@ -3066,6 +2852,28 @@ declare module "node:inspector" {
3066
2852
  * If heap objects tracking has been started then backend may send update for one or more fragments
3067
2853
  */
3068
2854
  prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2855
+ /**
2856
+ * Contains an bucket of collected trace events.
2857
+ */
2858
+ prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2859
+ /**
2860
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2861
+ * delivered via dataCollected events.
2862
+ */
2863
+ prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2864
+ /**
2865
+ * Issued when attached to a worker.
2866
+ */
2867
+ prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2868
+ /**
2869
+ * Issued when detached from the worker.
2870
+ */
2871
+ prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2872
+ /**
2873
+ * Notifies about a new protocol message received from the session
2874
+ * (session ID is provided in attachedToWorker notification).
2875
+ */
2876
+ prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3069
2877
  /**
3070
2878
  * Fired when page is about to send HTTP request.
3071
2879
  */
@@ -3080,18 +2888,6 @@ declare module "node:inspector" {
3080
2888
  * Fired when data chunk was received over the network.
3081
2889
  */
3082
2890
  prependListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
3083
- /**
3084
- * Fired upon WebSocket creation.
3085
- */
3086
- prependListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
3087
- /**
3088
- * Fired when WebSocket is closed.
3089
- */
3090
- prependListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
3091
- /**
3092
- * Fired when WebSocket handshake response becomes available.
3093
- */
3094
- prependListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
3095
2891
  /**
3096
2892
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3097
2893
  * enabled.
@@ -3104,34 +2900,8 @@ declare module "node:inspector" {
3104
2900
  * example, when inspector.waitingForDebugger is called
3105
2901
  */
3106
2902
  prependListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
3107
- /**
3108
- * Contains an bucket of collected trace events.
3109
- */
3110
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3111
- /**
3112
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3113
- * delivered via dataCollected events.
3114
- */
3115
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3116
- /**
3117
- * Issued when attached to a worker.
3118
- */
3119
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3120
- /**
3121
- * Issued when detached from the worker.
3122
- */
3123
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3124
- /**
3125
- * Notifies about a new protocol message received from the session
3126
- * (session ID is provided in attachedToWorker notification).
3127
- */
3128
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3129
2903
  prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3130
2904
  prependListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
3131
- prependListener(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
3132
- prependListener(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
3133
- prependListener(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
3134
- prependListener(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
3135
2905
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3136
2906
  /**
3137
2907
  * Emitted when any notification from the V8 Inspector is received.
@@ -3205,6 +2975,28 @@ declare module "node:inspector" {
3205
2975
  * If heap objects tracking has been started then backend may send update for one or more fragments
3206
2976
  */
3207
2977
  prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2978
+ /**
2979
+ * Contains an bucket of collected trace events.
2980
+ */
2981
+ prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2982
+ /**
2983
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2984
+ * delivered via dataCollected events.
2985
+ */
2986
+ prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2987
+ /**
2988
+ * Issued when attached to a worker.
2989
+ */
2990
+ prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2991
+ /**
2992
+ * Issued when detached from the worker.
2993
+ */
2994
+ prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2995
+ /**
2996
+ * Notifies about a new protocol message received from the session
2997
+ * (session ID is provided in attachedToWorker notification).
2998
+ */
2999
+ prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3208
3000
  /**
3209
3001
  * Fired when page is about to send HTTP request.
3210
3002
  */
@@ -3219,18 +3011,6 @@ declare module "node:inspector" {
3219
3011
  * Fired when data chunk was received over the network.
3220
3012
  */
3221
3013
  prependOnceListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
3222
- /**
3223
- * Fired upon WebSocket creation.
3224
- */
3225
- prependOnceListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
3226
- /**
3227
- * Fired when WebSocket is closed.
3228
- */
3229
- prependOnceListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
3230
- /**
3231
- * Fired when WebSocket handshake response becomes available.
3232
- */
3233
- prependOnceListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
3234
3014
  /**
3235
3015
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3236
3016
  * enabled.
@@ -3243,37 +3023,12 @@ declare module "node:inspector" {
3243
3023
  * example, when inspector.waitingForDebugger is called
3244
3024
  */
3245
3025
  prependOnceListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
3246
- /**
3247
- * Contains an bucket of collected trace events.
3248
- */
3249
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3250
- /**
3251
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3252
- * delivered via dataCollected events.
3253
- */
3254
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3255
- /**
3256
- * Issued when attached to a worker.
3257
- */
3258
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3259
- /**
3260
- * Issued when detached from the worker.
3261
- */
3262
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3263
- /**
3264
- * Notifies about a new protocol message received from the session
3265
- * (session ID is provided in attachedToWorker notification).
3266
- */
3267
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3268
3026
  prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3269
3027
  prependOnceListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
3270
- prependOnceListener(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
3271
- prependOnceListener(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
3272
- prependOnceListener(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
3273
- prependOnceListener(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
3274
3028
  }
3275
3029
  }
3276
- declare module "node:inspector/promises" {
3030
+
3031
+ declare module "inspector/promises" {
3277
3032
  export {
3278
3033
  Schema,
3279
3034
  Runtime,
@@ -3281,17 +3036,16 @@ declare module "node:inspector/promises" {
3281
3036
  Console,
3282
3037
  Profiler,
3283
3038
  HeapProfiler,
3284
- IO,
3285
- Network,
3286
- NodeRuntime,
3287
3039
  NodeTracing,
3288
3040
  NodeWorker,
3041
+ Network,
3042
+ NodeRuntime,
3289
3043
  Target,
3290
- DOMStorage,
3291
- Storage,
3044
+ IO,
3292
3045
  } from 'inspector';
3293
3046
  }
3294
- declare module "node:inspector/promises" {
3047
+
3048
+ declare module "inspector/promises" {
3295
3049
  import {
3296
3050
  InspectorNotification,
3297
3051
  Schema,
@@ -3300,15 +3054,14 @@ declare module "node:inspector/promises" {
3300
3054
  Console,
3301
3055
  Profiler,
3302
3056
  HeapProfiler,
3303
- IO,
3304
- Network,
3305
- NodeRuntime,
3306
3057
  NodeTracing,
3307
3058
  NodeWorker,
3059
+ Network,
3060
+ NodeRuntime,
3308
3061
  Target,
3309
- DOMStorage,
3310
- Storage,
3062
+ IO,
3311
3063
  } from "inspector";
3064
+
3312
3065
  /**
3313
3066
  * The `inspector.Session` is used for dispatching messages to the V8 inspector
3314
3067
  * back-end and receiving message responses and notifications.
@@ -3570,10 +3323,35 @@ declare module "node:inspector/promises" {
3570
3323
  post(method: "HeapProfiler.stopSampling"): Promise<HeapProfiler.StopSamplingReturnType>;
3571
3324
  post(method: "HeapProfiler.getSamplingProfile"): Promise<HeapProfiler.GetSamplingProfileReturnType>;
3572
3325
  /**
3573
- * Read a chunk of the stream
3326
+ * Gets supported tracing categories.
3574
3327
  */
3575
- post(method: "IO.read", params?: IO.ReadParameterType): Promise<IO.ReadReturnType>;
3576
- post(method: "IO.close", params?: IO.CloseParameterType): Promise<void>;
3328
+ post(method: "NodeTracing.getCategories"): Promise<NodeTracing.GetCategoriesReturnType>;
3329
+ /**
3330
+ * Start trace events collection.
3331
+ */
3332
+ post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType): Promise<void>;
3333
+ /**
3334
+ * Stop trace events collection. Remaining collected events will be sent as a sequence of
3335
+ * dataCollected events followed by tracingComplete event.
3336
+ */
3337
+ post(method: "NodeTracing.stop"): Promise<void>;
3338
+ /**
3339
+ * Sends protocol message over session with given id.
3340
+ */
3341
+ post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType): Promise<void>;
3342
+ /**
3343
+ * Instructs the inspector to attach to running workers. Will also attach to new workers
3344
+ * as they start
3345
+ */
3346
+ post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType): Promise<void>;
3347
+ /**
3348
+ * Detaches from all running workers and disables attaching to new workers as they are started.
3349
+ */
3350
+ post(method: "NodeWorker.disable"): Promise<void>;
3351
+ /**
3352
+ * Detached from the worker with given sessionId.
3353
+ */
3354
+ post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType): Promise<void>;
3577
3355
  /**
3578
3356
  * Disables network tracking, prevents network events from being sent to the client.
3579
3357
  */
@@ -3581,7 +3359,7 @@ declare module "node:inspector/promises" {
3581
3359
  /**
3582
3360
  * Enables network tracking, network events will now be delivered to the client.
3583
3361
  */
3584
- post(method: "Network.enable", params?: Network.EnableParameterType): Promise<void>;
3362
+ post(method: "Network.enable"): Promise<void>;
3585
3363
  /**
3586
3364
  * Returns post data sent with the request. Returns an error when no data was sent with the request.
3587
3365
  */
@@ -3612,53 +3390,13 @@ declare module "node:inspector/promises" {
3612
3390
  * Enable the `NodeRuntime.waitingForDisconnect`.
3613
3391
  */
3614
3392
  post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
3615
- /**
3616
- * Gets supported tracing categories.
3617
- */
3618
- post(method: "NodeTracing.getCategories"): Promise<NodeTracing.GetCategoriesReturnType>;
3619
- /**
3620
- * Start trace events collection.
3621
- */
3622
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType): Promise<void>;
3623
- /**
3624
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
3625
- * dataCollected events followed by tracingComplete event.
3626
- */
3627
- post(method: "NodeTracing.stop"): Promise<void>;
3628
- /**
3629
- * Sends protocol message over session with given id.
3630
- */
3631
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType): Promise<void>;
3632
- /**
3633
- * Instructs the inspector to attach to running workers. Will also attach to new workers
3634
- * as they start
3635
- */
3636
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType): Promise<void>;
3637
- /**
3638
- * Detaches from all running workers and disables attaching to new workers as they are started.
3639
- */
3640
- post(method: "NodeWorker.disable"): Promise<void>;
3641
- /**
3642
- * Detached from the worker with given sessionId.
3643
- */
3644
- post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType): Promise<void>;
3645
3393
  post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType): Promise<void>;
3646
- post(method: "DOMStorage.clear", params?: DOMStorage.ClearParameterType): Promise<void>;
3647
- /**
3648
- * Disables storage tracking, prevents storage events from being sent to the client.
3649
- */
3650
- post(method: "DOMStorage.disable"): Promise<void>;
3651
3394
  /**
3652
- * Enables storage tracking, storage events will now be delivered to the client.
3653
- */
3654
- post(method: "DOMStorage.enable"): Promise<void>;
3655
- post(method: "DOMStorage.getDOMStorageItems", params?: DOMStorage.GetDOMStorageItemsParameterType): Promise<DOMStorage.GetDOMStorageItemsReturnType>;
3656
- post(method: "DOMStorage.removeDOMStorageItem", params?: DOMStorage.RemoveDOMStorageItemParameterType): Promise<void>;
3657
- post(method: "DOMStorage.setDOMStorageItem", params?: DOMStorage.SetDOMStorageItemParameterType): Promise<void>;
3658
- /**
3659
- * @experimental
3395
+ * Read a chunk of the stream
3660
3396
  */
3661
- post(method: "Storage.getStorageKey", params?: Storage.GetStorageKeyParameterType): Promise<Storage.GetStorageKeyReturnType>;
3397
+ post(method: "IO.read", params?: IO.ReadParameterType): Promise<IO.ReadReturnType>;
3398
+ post(method: "IO.close", params?: IO.CloseParameterType): Promise<void>;
3399
+
3662
3400
  addListener(event: string, listener: (...args: any[]) => void): this;
3663
3401
  /**
3664
3402
  * Emitted when any notification from the V8 Inspector is received.
@@ -3717,21 +3455,43 @@ declare module "node:inspector/promises" {
3717
3455
  */
3718
3456
  addListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
3719
3457
  /**
3720
- * Sent when new profile recording is started using console.profile() call.
3458
+ * Sent when new profile recording is started using console.profile() call.
3459
+ */
3460
+ addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
3461
+ addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
3462
+ addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
3463
+ addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
3464
+ addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
3465
+ /**
3466
+ * 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.
3467
+ */
3468
+ addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
3469
+ /**
3470
+ * If heap objects tracking has been started then backend may send update for one or more fragments
3471
+ */
3472
+ addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3473
+ /**
3474
+ * Contains an bucket of collected trace events.
3475
+ */
3476
+ addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3477
+ /**
3478
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3479
+ * delivered via dataCollected events.
3480
+ */
3481
+ addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3482
+ /**
3483
+ * Issued when attached to a worker.
3721
3484
  */
3722
- addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
3723
- addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
3724
- addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
3725
- addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
3726
- addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
3485
+ addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3727
3486
  /**
3728
- * 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.
3487
+ * Issued when detached from the worker.
3729
3488
  */
3730
- addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
3489
+ addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3731
3490
  /**
3732
- * If heap objects tracking has been started then backend may send update for one or more fragments
3491
+ * Notifies about a new protocol message received from the session
3492
+ * (session ID is provided in attachedToWorker notification).
3733
3493
  */
3734
- addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3494
+ addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3735
3495
  /**
3736
3496
  * Fired when page is about to send HTTP request.
3737
3497
  */
@@ -3746,18 +3506,6 @@ declare module "node:inspector/promises" {
3746
3506
  * Fired when data chunk was received over the network.
3747
3507
  */
3748
3508
  addListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
3749
- /**
3750
- * Fired upon WebSocket creation.
3751
- */
3752
- addListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
3753
- /**
3754
- * Fired when WebSocket is closed.
3755
- */
3756
- addListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
3757
- /**
3758
- * Fired when WebSocket handshake response becomes available.
3759
- */
3760
- addListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
3761
3509
  /**
3762
3510
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3763
3511
  * enabled.
@@ -3770,34 +3518,8 @@ declare module "node:inspector/promises" {
3770
3518
  * example, when inspector.waitingForDebugger is called
3771
3519
  */
3772
3520
  addListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
3773
- /**
3774
- * Contains an bucket of collected trace events.
3775
- */
3776
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3777
- /**
3778
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3779
- * delivered via dataCollected events.
3780
- */
3781
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3782
- /**
3783
- * Issued when attached to a worker.
3784
- */
3785
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3786
- /**
3787
- * Issued when detached from the worker.
3788
- */
3789
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3790
- /**
3791
- * Notifies about a new protocol message received from the session
3792
- * (session ID is provided in attachedToWorker notification).
3793
- */
3794
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3795
3521
  addListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3796
3522
  addListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
3797
- addListener(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
3798
- addListener(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
3799
- addListener(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
3800
- addListener(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
3801
3523
  emit(event: string | symbol, ...args: any[]): boolean;
3802
3524
  emit(event: "inspectorNotification", message: InspectorNotification<object>): boolean;
3803
3525
  emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
@@ -3820,27 +3542,20 @@ declare module "node:inspector/promises" {
3820
3542
  emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
3821
3543
  emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
3822
3544
  emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
3545
+ emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
3546
+ emit(event: "NodeTracing.tracingComplete"): boolean;
3547
+ emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
3548
+ emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
3549
+ emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
3823
3550
  emit(event: "Network.requestWillBeSent", message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
3824
3551
  emit(event: "Network.responseReceived", message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
3825
3552
  emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
3826
3553
  emit(event: "Network.loadingFinished", message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
3827
3554
  emit(event: "Network.dataReceived", message: InspectorNotification<Network.DataReceivedEventDataType>): boolean;
3828
- emit(event: "Network.webSocketCreated", message: InspectorNotification<Network.WebSocketCreatedEventDataType>): boolean;
3829
- emit(event: "Network.webSocketClosed", message: InspectorNotification<Network.WebSocketClosedEventDataType>): boolean;
3830
- emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
3831
3555
  emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
3832
3556
  emit(event: "NodeRuntime.waitingForDebugger"): boolean;
3833
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
3834
- emit(event: "NodeTracing.tracingComplete"): boolean;
3835
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
3836
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
3837
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
3838
3557
  emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
3839
3558
  emit(event: "Target.attachedToTarget", message: InspectorNotification<Target.AttachedToTargetEventDataType>): boolean;
3840
- emit(event: "DOMStorage.domStorageItemAdded", message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>): boolean;
3841
- emit(event: "DOMStorage.domStorageItemRemoved", message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>): boolean;
3842
- emit(event: "DOMStorage.domStorageItemUpdated", message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>): boolean;
3843
- emit(event: "DOMStorage.domStorageItemsCleared", message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>): boolean;
3844
3559
  on(event: string, listener: (...args: any[]) => void): this;
3845
3560
  /**
3846
3561
  * Emitted when any notification from the V8 Inspector is received.
@@ -3914,6 +3629,28 @@ declare module "node:inspector/promises" {
3914
3629
  * If heap objects tracking has been started then backend may send update for one or more fragments
3915
3630
  */
3916
3631
  on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3632
+ /**
3633
+ * Contains an bucket of collected trace events.
3634
+ */
3635
+ on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3636
+ /**
3637
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3638
+ * delivered via dataCollected events.
3639
+ */
3640
+ on(event: "NodeTracing.tracingComplete", listener: () => void): this;
3641
+ /**
3642
+ * Issued when attached to a worker.
3643
+ */
3644
+ on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3645
+ /**
3646
+ * Issued when detached from the worker.
3647
+ */
3648
+ on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3649
+ /**
3650
+ * Notifies about a new protocol message received from the session
3651
+ * (session ID is provided in attachedToWorker notification).
3652
+ */
3653
+ on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3917
3654
  /**
3918
3655
  * Fired when page is about to send HTTP request.
3919
3656
  */
@@ -3928,18 +3665,6 @@ declare module "node:inspector/promises" {
3928
3665
  * Fired when data chunk was received over the network.
3929
3666
  */
3930
3667
  on(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
3931
- /**
3932
- * Fired upon WebSocket creation.
3933
- */
3934
- on(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
3935
- /**
3936
- * Fired when WebSocket is closed.
3937
- */
3938
- on(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
3939
- /**
3940
- * Fired when WebSocket handshake response becomes available.
3941
- */
3942
- on(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
3943
3668
  /**
3944
3669
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3945
3670
  * enabled.
@@ -3952,34 +3677,8 @@ declare module "node:inspector/promises" {
3952
3677
  * example, when inspector.waitingForDebugger is called
3953
3678
  */
3954
3679
  on(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
3955
- /**
3956
- * Contains an bucket of collected trace events.
3957
- */
3958
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3959
- /**
3960
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3961
- * delivered via dataCollected events.
3962
- */
3963
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
3964
- /**
3965
- * Issued when attached to a worker.
3966
- */
3967
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3968
- /**
3969
- * Issued when detached from the worker.
3970
- */
3971
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3972
- /**
3973
- * Notifies about a new protocol message received from the session
3974
- * (session ID is provided in attachedToWorker notification).
3975
- */
3976
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3977
3680
  on(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3978
3681
  on(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
3979
- on(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
3980
- on(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
3981
- on(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
3982
- on(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
3983
3682
  once(event: string, listener: (...args: any[]) => void): this;
3984
3683
  /**
3985
3684
  * Emitted when any notification from the V8 Inspector is received.
@@ -4053,6 +3752,28 @@ declare module "node:inspector/promises" {
4053
3752
  * If heap objects tracking has been started then backend may send update for one or more fragments
4054
3753
  */
4055
3754
  once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3755
+ /**
3756
+ * Contains an bucket of collected trace events.
3757
+ */
3758
+ once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3759
+ /**
3760
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3761
+ * delivered via dataCollected events.
3762
+ */
3763
+ once(event: "NodeTracing.tracingComplete", listener: () => void): this;
3764
+ /**
3765
+ * Issued when attached to a worker.
3766
+ */
3767
+ once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3768
+ /**
3769
+ * Issued when detached from the worker.
3770
+ */
3771
+ once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3772
+ /**
3773
+ * Notifies about a new protocol message received from the session
3774
+ * (session ID is provided in attachedToWorker notification).
3775
+ */
3776
+ once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4056
3777
  /**
4057
3778
  * Fired when page is about to send HTTP request.
4058
3779
  */
@@ -4067,18 +3788,6 @@ declare module "node:inspector/promises" {
4067
3788
  * Fired when data chunk was received over the network.
4068
3789
  */
4069
3790
  once(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
4070
- /**
4071
- * Fired upon WebSocket creation.
4072
- */
4073
- once(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
4074
- /**
4075
- * Fired when WebSocket is closed.
4076
- */
4077
- once(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
4078
- /**
4079
- * Fired when WebSocket handshake response becomes available.
4080
- */
4081
- once(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
4082
3791
  /**
4083
3792
  * This event is fired instead of `Runtime.executionContextDestroyed` when
4084
3793
  * enabled.
@@ -4091,34 +3800,8 @@ declare module "node:inspector/promises" {
4091
3800
  * example, when inspector.waitingForDebugger is called
4092
3801
  */
4093
3802
  once(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
4094
- /**
4095
- * Contains an bucket of collected trace events.
4096
- */
4097
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
4098
- /**
4099
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
4100
- * delivered via dataCollected events.
4101
- */
4102
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
4103
- /**
4104
- * Issued when attached to a worker.
4105
- */
4106
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
4107
- /**
4108
- * Issued when detached from the worker.
4109
- */
4110
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
4111
- /**
4112
- * Notifies about a new protocol message received from the session
4113
- * (session ID is provided in attachedToWorker notification).
4114
- */
4115
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4116
3803
  once(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
4117
3804
  once(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
4118
- once(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
4119
- once(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
4120
- once(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
4121
- once(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
4122
3805
  prependListener(event: string, listener: (...args: any[]) => void): this;
4123
3806
  /**
4124
3807
  * Emitted when any notification from the V8 Inspector is received.
@@ -4192,6 +3875,28 @@ declare module "node:inspector/promises" {
4192
3875
  * If heap objects tracking has been started then backend may send update for one or more fragments
4193
3876
  */
4194
3877
  prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3878
+ /**
3879
+ * Contains an bucket of collected trace events.
3880
+ */
3881
+ prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3882
+ /**
3883
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3884
+ * delivered via dataCollected events.
3885
+ */
3886
+ prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3887
+ /**
3888
+ * Issued when attached to a worker.
3889
+ */
3890
+ prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3891
+ /**
3892
+ * Issued when detached from the worker.
3893
+ */
3894
+ prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3895
+ /**
3896
+ * Notifies about a new protocol message received from the session
3897
+ * (session ID is provided in attachedToWorker notification).
3898
+ */
3899
+ prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4195
3900
  /**
4196
3901
  * Fired when page is about to send HTTP request.
4197
3902
  */
@@ -4206,18 +3911,6 @@ declare module "node:inspector/promises" {
4206
3911
  * Fired when data chunk was received over the network.
4207
3912
  */
4208
3913
  prependListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
4209
- /**
4210
- * Fired upon WebSocket creation.
4211
- */
4212
- prependListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
4213
- /**
4214
- * Fired when WebSocket is closed.
4215
- */
4216
- prependListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
4217
- /**
4218
- * Fired when WebSocket handshake response becomes available.
4219
- */
4220
- prependListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
4221
3914
  /**
4222
3915
  * This event is fired instead of `Runtime.executionContextDestroyed` when
4223
3916
  * enabled.
@@ -4230,34 +3923,8 @@ declare module "node:inspector/promises" {
4230
3923
  * example, when inspector.waitingForDebugger is called
4231
3924
  */
4232
3925
  prependListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
4233
- /**
4234
- * Contains an bucket of collected trace events.
4235
- */
4236
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
4237
- /**
4238
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
4239
- * delivered via dataCollected events.
4240
- */
4241
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
4242
- /**
4243
- * Issued when attached to a worker.
4244
- */
4245
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
4246
- /**
4247
- * Issued when detached from the worker.
4248
- */
4249
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
4250
- /**
4251
- * Notifies about a new protocol message received from the session
4252
- * (session ID is provided in attachedToWorker notification).
4253
- */
4254
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4255
3926
  prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
4256
3927
  prependListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
4257
- prependListener(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
4258
- prependListener(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
4259
- prependListener(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
4260
- prependListener(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
4261
3928
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
4262
3929
  /**
4263
3930
  * Emitted when any notification from the V8 Inspector is received.
@@ -4331,6 +3998,28 @@ declare module "node:inspector/promises" {
4331
3998
  * If heap objects tracking has been started then backend may send update for one or more fragments
4332
3999
  */
4333
4000
  prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
4001
+ /**
4002
+ * Contains an bucket of collected trace events.
4003
+ */
4004
+ prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
4005
+ /**
4006
+ * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
4007
+ * delivered via dataCollected events.
4008
+ */
4009
+ prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
4010
+ /**
4011
+ * Issued when attached to a worker.
4012
+ */
4013
+ prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
4014
+ /**
4015
+ * Issued when detached from the worker.
4016
+ */
4017
+ prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
4018
+ /**
4019
+ * Notifies about a new protocol message received from the session
4020
+ * (session ID is provided in attachedToWorker notification).
4021
+ */
4022
+ prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4334
4023
  /**
4335
4024
  * Fired when page is about to send HTTP request.
4336
4025
  */
@@ -4345,18 +4034,6 @@ declare module "node:inspector/promises" {
4345
4034
  * Fired when data chunk was received over the network.
4346
4035
  */
4347
4036
  prependOnceListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
4348
- /**
4349
- * Fired upon WebSocket creation.
4350
- */
4351
- prependOnceListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
4352
- /**
4353
- * Fired when WebSocket is closed.
4354
- */
4355
- prependOnceListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
4356
- /**
4357
- * Fired when WebSocket handshake response becomes available.
4358
- */
4359
- prependOnceListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
4360
4037
  /**
4361
4038
  * This event is fired instead of `Runtime.executionContextDestroyed` when
4362
4039
  * enabled.
@@ -4369,33 +4046,7 @@ declare module "node:inspector/promises" {
4369
4046
  * example, when inspector.waitingForDebugger is called
4370
4047
  */
4371
4048
  prependOnceListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this;
4372
- /**
4373
- * Contains an bucket of collected trace events.
4374
- */
4375
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
4376
- /**
4377
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
4378
- * delivered via dataCollected events.
4379
- */
4380
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
4381
- /**
4382
- * Issued when attached to a worker.
4383
- */
4384
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
4385
- /**
4386
- * Issued when detached from the worker.
4387
- */
4388
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
4389
- /**
4390
- * Notifies about a new protocol message received from the session
4391
- * (session ID is provided in attachedToWorker notification).
4392
- */
4393
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4394
4049
  prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
4395
4050
  prependOnceListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
4396
- prependOnceListener(event: "DOMStorage.domStorageItemAdded", listener: (message: InspectorNotification<DOMStorage.DomStorageItemAddedEventDataType>) => void): this;
4397
- prependOnceListener(event: "DOMStorage.domStorageItemRemoved", listener: (message: InspectorNotification<DOMStorage.DomStorageItemRemovedEventDataType>) => void): this;
4398
- prependOnceListener(event: "DOMStorage.domStorageItemUpdated", listener: (message: InspectorNotification<DOMStorage.DomStorageItemUpdatedEventDataType>) => void): this;
4399
- prependOnceListener(event: "DOMStorage.domStorageItemsCleared", listener: (message: InspectorNotification<DOMStorage.DomStorageItemsClearedEventDataType>) => void): this;
4400
4051
  }
4401
4052
  }