@types/node 24.12.0 → 25.5.0

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 (98) hide show
  1. node v24.12/README.md → node/README.md +2 -2
  2. node v24.12/assert/strict.d.ts → node/assert/strict.d.ts +5 -11
  3. node v24.12/assert.d.ts → node/assert.d.ts +11 -171
  4. node v24.12/async_hooks.d.ts → node/async_hooks.d.ts +8 -8
  5. node v24.12/buffer.buffer.d.ts → node/buffer.buffer.d.ts +1 -7
  6. node v24.12/buffer.d.ts → node/buffer.d.ts +44 -168
  7. node v24.12/child_process.d.ts → node/child_process.d.ts +21 -64
  8. node/cluster.d.ts +486 -0
  9. node/console.d.ts +151 -0
  10. node v24.12/constants.d.ts → node/constants.d.ts +3 -4
  11. node v24.12/crypto.d.ts → node/crypto.d.ts +287 -1639
  12. node v24.12/dgram.d.ts → node/dgram.d.ts +15 -51
  13. node v24.12/diagnostics_channel.d.ts → node/diagnostics_channel.d.ts +4 -4
  14. node v24.12/dns/promises.d.ts → node/dns/promises.d.ts +3 -3
  15. node v24.12/dns.d.ts → node/dns.d.ts +131 -132
  16. node v24.12/domain.d.ts → node/domain.d.ts +13 -17
  17. node v24.12/events.d.ts → node/events.d.ts +866 -795
  18. node v24.12/fs/promises.d.ts → node/fs/promises.d.ts +7 -8
  19. node v24.12/fs.d.ts → node/fs.d.ts +419 -455
  20. node v24.12/globals.d.ts → node/globals.d.ts +6 -26
  21. node/globals.typedarray.d.ts +101 -0
  22. node v24.12/http.d.ts → node/http.d.ts +310 -276
  23. node v24.12/http2.d.ts → node/http2.d.ts +528 -804
  24. node v24.12/https.d.ts → node/https.d.ts +63 -243
  25. node v24.12/index.d.ts → node/index.d.ts +15 -1
  26. node/inspector/promises.d.ts +41 -0
  27. node v24.12/inspector.d.ts → node/inspector.d.ts +42 -50
  28. node v24.12/inspector.generated.d.ts → node/inspector.generated.d.ts +572 -417
  29. node v24.12/module.d.ts → node/module.d.ts +47 -195
  30. node v24.12/net.d.ts → node/net.d.ts +68 -189
  31. node v24.12/os.d.ts → node/os.d.ts +6 -6
  32. node v24.12/package.json → node/package.json +3 -3
  33. node/path/posix.d.ts +8 -0
  34. node/path/win32.d.ts +8 -0
  35. node/path.d.ts +187 -0
  36. node/perf_hooks.d.ts +643 -0
  37. node v24.12/process.d.ts → node/process.d.ts +219 -127
  38. node v24.12/punycode.d.ts → node/punycode.d.ts +5 -5
  39. node v24.12/querystring.d.ts → node/querystring.d.ts +4 -4
  40. node/quic.d.ts +910 -0
  41. node v24.12/readline/promises.d.ts → node/readline/promises.d.ts +3 -3
  42. node v24.12/readline.d.ts → node/readline.d.ts +68 -120
  43. node v24.12/repl.d.ts → node/repl.d.ts +75 -98
  44. node v24.12/sea.d.ts → node/sea.d.ts +1 -1
  45. node v24.12/sqlite.d.ts → node/sqlite.d.ts +137 -30
  46. node v24.12/stream/consumers.d.ts → node/stream/consumers.d.ts +10 -10
  47. node/stream/promises.d.ts +211 -0
  48. node/stream/web.d.ts +296 -0
  49. node v24.12/stream.d.ts → node/stream.d.ts +565 -478
  50. node v24.12/string_decoder.d.ts → node/string_decoder.d.ts +4 -4
  51. node/test/reporters.d.ts +96 -0
  52. node v24.12/test.d.ts → node/test.d.ts +134 -199
  53. node v24.12/timers/promises.d.ts → node/timers/promises.d.ts +4 -4
  54. node v24.12/timers.d.ts → node/timers.d.ts +4 -130
  55. node v24.12/tls.d.ts → node/tls.d.ts +109 -179
  56. node v24.12/trace_events.d.ts → node/trace_events.d.ts +9 -9
  57. node v24.12/ts5.6/buffer.buffer.d.ts → node/ts5.6/buffer.buffer.d.ts +1 -7
  58. node v24.12/ts5.6/index.d.ts → node/ts5.6/index.d.ts +15 -1
  59. node v24.12/ts5.7/index.d.ts → node/ts5.7/index.d.ts +15 -1
  60. node v24.12/tty.d.ts → node/tty.d.ts +58 -16
  61. node/url.d.ts +541 -0
  62. node/util/types.d.ts +558 -0
  63. node v24.12/util.d.ts → node/util.d.ts +150 -796
  64. node v24.12/v8.d.ts → node/v8.d.ts +31 -21
  65. node v24.12/vm.d.ts → node/vm.d.ts +43 -30
  66. node v24.12/wasi.d.ts → node/wasi.d.ts +4 -4
  67. node v24.12/web-globals/abortcontroller.d.ts → node/web-globals/abortcontroller.d.ts +27 -2
  68. node/web-globals/blob.d.ts +23 -0
  69. node/web-globals/console.d.ts +9 -0
  70. node v24.12/web-globals/crypto.d.ts → node/web-globals/crypto.d.ts +7 -0
  71. node/web-globals/encoding.d.ts +11 -0
  72. node v24.12/web-globals/events.d.ts → node/web-globals/events.d.ts +9 -0
  73. node v24.12/web-globals/fetch.d.ts → node/web-globals/fetch.d.ts +7 -0
  74. node/web-globals/importmeta.d.ts +13 -0
  75. node/web-globals/messaging.d.ts +23 -0
  76. node/web-globals/performance.d.ts +45 -0
  77. node/web-globals/streams.d.ts +115 -0
  78. node/web-globals/timers.d.ts +44 -0
  79. node/web-globals/url.d.ts +24 -0
  80. node v24.12/worker_threads.d.ts → node/worker_threads.d.ts +186 -363
  81. node v24.12/zlib.d.ts → node/zlib.d.ts +8 -71
  82. node v24.12/cluster.d.ts +0 -578
  83. node v24.12/console.d.ts +0 -453
  84. node v24.12/globals.typedarray.d.ts +0 -41
  85. node v24.12/path.d.ts +0 -200
  86. node v24.12/perf_hooks.d.ts +0 -1042
  87. node v24.12/stream/promises.d.ts +0 -90
  88. node v24.12/stream/web.d.ts +0 -573
  89. node v24.12/url.d.ts +0 -1057
  90. node v24.12/web-globals/streams.d.ts +0 -22
  91. {node v24.12 → node}/LICENSE +0 -0
  92. {node v24.12 → node}/compatibility/iterators.d.ts +0 -0
  93. {node v24.12 → node}/ts5.6/compatibility/float16array.d.ts +0 -0
  94. {node v24.12 → node}/ts5.6/globals.typedarray.d.ts +0 -0
  95. {node v24.12 → node}/ts5.7/compatibility/float16array.d.ts +0 -0
  96. {node v24.12 → node}/web-globals/domexception.d.ts +0 -0
  97. {node v24.12 → node}/web-globals/navigator.d.ts +0 -0
  98. {node v24.12 → node}/web-globals/storage.d.ts +0 -0
@@ -3,12 +3,11 @@
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 "inspector" {
6
+ declare module "node:inspector" {
7
7
  interface InspectorNotification<T> {
8
8
  method: string;
9
9
  params: T;
10
10
  }
11
-
12
11
  namespace Schema {
13
12
  /**
14
13
  * Description of the protocol domain.
@@ -1621,79 +1620,38 @@ declare module "inspector" {
1621
1620
  statsUpdate: number[];
1622
1621
  }
1623
1622
  }
1624
- namespace NodeTracing {
1625
- interface TraceConfig {
1626
- /**
1627
- * Controls how the trace buffer stores data.
1628
- */
1629
- recordMode?: string | undefined;
1630
- /**
1631
- * Included category filters.
1632
- */
1633
- includedCategories: string[];
1634
- }
1635
- interface StartParameterType {
1636
- traceConfig: TraceConfig;
1637
- }
1638
- interface GetCategoriesReturnType {
1623
+ namespace IO {
1624
+ type StreamHandle = string;
1625
+ interface ReadParameterType {
1639
1626
  /**
1640
- * A list of supported tracing categories.
1627
+ * Handle of the stream to read.
1641
1628
  */
1642
- categories: string[];
1643
- }
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;
1629
+ handle: StreamHandle;
1662
1630
  /**
1663
- * Identifier of the session.
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.
1664
1633
  */
1665
- sessionId: SessionID;
1666
- }
1667
- interface EnableParameterType {
1634
+ offset?: number | undefined;
1668
1635
  /**
1669
- * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
1670
- * message to run them.
1636
+ * Maximum number of bytes to read (left upon the agent discretion if not specified).
1671
1637
  */
1672
- waitForDebuggerOnStart: boolean;
1673
- }
1674
- interface DetachParameterType {
1675
- sessionId: SessionID;
1638
+ size?: number | undefined;
1676
1639
  }
1677
- interface AttachedToWorkerEventDataType {
1640
+ interface CloseParameterType {
1678
1641
  /**
1679
- * Identifier assigned to the session used to send/receive messages.
1642
+ * Handle of the stream to close.
1680
1643
  */
1681
- sessionId: SessionID;
1682
- workerInfo: WorkerInfo;
1683
- waitingForDebugger: boolean;
1644
+ handle: StreamHandle;
1684
1645
  }
1685
- interface DetachedFromWorkerEventDataType {
1646
+ interface ReadReturnType {
1686
1647
  /**
1687
- * Detached session identifier.
1648
+ * Data that were read.
1688
1649
  */
1689
- sessionId: SessionID;
1690
- }
1691
- interface ReceivedMessageFromWorkerEventDataType {
1650
+ data: string;
1692
1651
  /**
1693
- * Identifier of a session which sends a message.
1652
+ * Set if the end-of-file condition occurred while reading.
1694
1653
  */
1695
- sessionId: SessionID;
1696
- message: string;
1654
+ eof: boolean;
1697
1655
  }
1698
1656
  }
1699
1657
  namespace Network {
@@ -1801,8 +1759,8 @@ declare module "inspector" {
1801
1759
  * Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
1802
1760
  * @experimental
1803
1761
  */
1804
- maxResourceBufferSize?: number | undefined;
1805
- }
1762
+ maxResourceBufferSize?: number | undefined;
1763
+ }
1806
1764
  interface GetRequestPostDataParameterType {
1807
1765
  /**
1808
1766
  * Identifier of the network request to get content for.
@@ -1987,6 +1945,81 @@ declare module "inspector" {
1987
1945
  enabled: boolean;
1988
1946
  }
1989
1947
  }
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
+ }
1990
2023
  namespace Target {
1991
2024
  type SessionID = string;
1992
2025
  type TargetID = string;
@@ -2011,41 +2044,75 @@ declare module "inspector" {
2011
2044
  waitingForDebugger: boolean;
2012
2045
  }
2013
2046
  }
2014
- namespace IO {
2015
- type StreamHandle = string;
2016
- interface ReadParameterType {
2047
+ namespace DOMStorage {
2048
+ type SerializedStorageKey = string;
2049
+ /**
2050
+ * DOM Storage identifier.
2051
+ */
2052
+ interface StorageId {
2017
2053
  /**
2018
- * Handle of the stream to read.
2054
+ * Security origin for the storage.
2019
2055
  */
2020
- handle: StreamHandle;
2056
+ securityOrigin?: string | undefined;
2021
2057
  /**
2022
- * Seek to the specified offset before reading (if not specified, proceed with offset
2023
- * following the last read). Some types of streams may only support sequential reads.
2058
+ * Represents a key by which DOM Storage keys its CachedStorageAreas
2024
2059
  */
2025
- offset?: number | undefined;
2060
+ storageKey?: SerializedStorageKey | undefined;
2026
2061
  /**
2027
- * Maximum number of bytes to read (left upon the agent discretion if not specified).
2062
+ * Whether the storage is local storage (not session storage).
2028
2063
  */
2029
- size?: number | undefined;
2064
+ isLocalStorage: boolean;
2030
2065
  }
2031
- interface CloseParameterType {
2032
- /**
2033
- * Handle of the stream to close.
2034
- */
2035
- handle: StreamHandle;
2066
+ /**
2067
+ * DOM Storage item.
2068
+ */
2069
+ type Item = string[];
2070
+ interface ClearParameterType {
2071
+ storageId: StorageId;
2036
2072
  }
2037
- interface ReadReturnType {
2038
- /**
2039
- * Data that were read.
2040
- */
2041
- data: string;
2042
- /**
2043
- * Set if the end-of-file condition occurred while reading.
2044
- */
2045
- eof: boolean;
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;
2105
+ }
2106
+ }
2107
+ namespace Storage {
2108
+ type SerializedStorageKey = string;
2109
+ interface GetStorageKeyParameterType {
2110
+ frameId?: string | undefined;
2111
+ }
2112
+ interface GetStorageKeyReturnType {
2113
+ storageKey: SerializedStorageKey;
2046
2114
  }
2047
2115
  }
2048
-
2049
2116
  interface Session {
2050
2117
  /**
2051
2118
  * Posts a message to the inspector back-end. `callback` will be notified when
@@ -2351,39 +2418,12 @@ declare module "inspector" {
2351
2418
  post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2352
2419
  post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2353
2420
  /**
2354
- * Gets supported tracing categories.
2355
- */
2356
- post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2357
- /**
2358
- * Start trace events collection.
2359
- */
2360
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2361
- post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
2362
- /**
2363
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
2364
- * dataCollected events followed by tracingComplete event.
2365
- */
2366
- post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
2367
- /**
2368
- * Sends protocol message over session with given id.
2369
- */
2370
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2371
- post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
2372
- /**
2373
- * Instructs the inspector to attach to running workers. Will also attach to new workers
2374
- * as they start
2375
- */
2376
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2377
- post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
2378
- /**
2379
- * Detaches from all running workers and disables attaching to new workers as they are started.
2380
- */
2381
- post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
2382
- /**
2383
- * Detached from the worker with given sessionId.
2421
+ * Read a chunk of the stream
2384
2422
  */
2385
- post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2386
- post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void;
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;
2387
2427
  /**
2388
2428
  * Disables network tracking, prevents network events from being sent to the client.
2389
2429
  */
@@ -2432,29 +2472,80 @@ declare module "inspector" {
2432
2472
  */
2433
2473
  post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2434
2474
  post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void;
2435
- post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType, callback?: (err: Error | null) => void): void;
2436
- post(method: "Target.setAutoAttach", callback?: (err: Error | null) => void): void;
2437
2475
  /**
2438
- * Read a chunk of the stream
2476
+ * Gets supported tracing categories.
2439
2477
  */
2440
- post(method: "IO.read", params?: IO.ReadParameterType, callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
2441
- post(method: "IO.read", callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
2442
- post(method: "IO.close", params?: IO.CloseParameterType, callback?: (err: Error | null) => void): void;
2443
- post(method: "IO.close", callback?: (err: Error | null) => void): void;
2444
-
2445
- addListener(event: string, listener: (...args: any[]) => void): this;
2478
+ post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2446
2479
  /**
2447
- * Emitted when any notification from the V8 Inspector is received.
2480
+ * Start trace events collection.
2448
2481
  */
2449
- addListener(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
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;
2450
2484
  /**
2451
- * Issued when new execution context is created.
2485
+ * Stop trace events collection. Remaining collected events will be sent as a sequence of
2486
+ * dataCollected events followed by tracingComplete event.
2452
2487
  */
2453
- addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2488
+ post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
2454
2489
  /**
2455
- * Issued when execution context is destroyed.
2490
+ * Sends protocol message over session with given id.
2456
2491
  */
2457
- addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
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
+ post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType, callback?: (err: Error | null) => void): void;
2510
+ 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
+ /**
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
2533
+ */
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;
2536
+ addListener(event: string, listener: (...args: any[]) => void): this;
2537
+ /**
2538
+ * Emitted when any notification from the V8 Inspector is received.
2539
+ */
2540
+ addListener(event: "inspectorNotification", listener: (message: InspectorNotification<object>) => void): this;
2541
+ /**
2542
+ * Issued when new execution context is created.
2543
+ */
2544
+ addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2545
+ /**
2546
+ * Issued when execution context is destroyed.
2547
+ */
2548
+ addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2458
2549
  /**
2459
2550
  * Issued when all executionContexts were cleared in browser
2460
2551
  */
@@ -2515,28 +2606,6 @@ declare module "inspector" {
2515
2606
  * If heap objects tracking has been started then backend may send update for one or more fragments
2516
2607
  */
2517
2608
  addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2518
- /**
2519
- * Contains an bucket of collected trace events.
2520
- */
2521
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2522
- /**
2523
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2524
- * delivered via dataCollected events.
2525
- */
2526
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2527
- /**
2528
- * Issued when attached to a worker.
2529
- */
2530
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2531
- /**
2532
- * Issued when detached from the worker.
2533
- */
2534
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2535
- /**
2536
- * Notifies about a new protocol message received from the session
2537
- * (session ID is provided in attachedToWorker notification).
2538
- */
2539
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2540
2609
  /**
2541
2610
  * Fired when page is about to send HTTP request.
2542
2611
  */
@@ -2575,8 +2644,34 @@ declare module "inspector" {
2575
2644
  * example, when inspector.waitingForDebugger is called
2576
2645
  */
2577
2646
  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;
2578
2669
  addListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2579
2670
  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;
2580
2675
  emit(event: string | symbol, ...args: any[]): boolean;
2581
2676
  emit(event: "inspectorNotification", message: InspectorNotification<object>): boolean;
2582
2677
  emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
@@ -2599,11 +2694,6 @@ declare module "inspector" {
2599
2694
  emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2600
2695
  emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2601
2696
  emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2602
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2603
- emit(event: "NodeTracing.tracingComplete"): boolean;
2604
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2605
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2606
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2607
2697
  emit(event: "Network.requestWillBeSent", message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
2608
2698
  emit(event: "Network.responseReceived", message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
2609
2699
  emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
@@ -2614,8 +2704,17 @@ declare module "inspector" {
2614
2704
  emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
2615
2705
  emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
2616
2706
  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;
2617
2712
  emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
2618
2713
  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;
2619
2718
  on(event: string, listener: (...args: any[]) => void): this;
2620
2719
  /**
2621
2720
  * Emitted when any notification from the V8 Inspector is received.
@@ -2689,28 +2788,6 @@ declare module "inspector" {
2689
2788
  * If heap objects tracking has been started then backend may send update for one or more fragments
2690
2789
  */
2691
2790
  on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2692
- /**
2693
- * Contains an bucket of collected trace events.
2694
- */
2695
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2696
- /**
2697
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2698
- * delivered via dataCollected events.
2699
- */
2700
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
2701
- /**
2702
- * Issued when attached to a worker.
2703
- */
2704
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2705
- /**
2706
- * Issued when detached from the worker.
2707
- */
2708
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2709
- /**
2710
- * Notifies about a new protocol message received from the session
2711
- * (session ID is provided in attachedToWorker notification).
2712
- */
2713
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2714
2791
  /**
2715
2792
  * Fired when page is about to send HTTP request.
2716
2793
  */
@@ -2749,8 +2826,34 @@ declare module "inspector" {
2749
2826
  * example, when inspector.waitingForDebugger is called
2750
2827
  */
2751
2828
  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;
2752
2851
  on(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2753
2852
  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;
2754
2857
  once(event: string, listener: (...args: any[]) => void): this;
2755
2858
  /**
2756
2859
  * Emitted when any notification from the V8 Inspector is received.
@@ -2824,28 +2927,6 @@ declare module "inspector" {
2824
2927
  * If heap objects tracking has been started then backend may send update for one or more fragments
2825
2928
  */
2826
2929
  once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2827
- /**
2828
- * Contains an bucket of collected trace events.
2829
- */
2830
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2831
- /**
2832
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2833
- * delivered via dataCollected events.
2834
- */
2835
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
2836
- /**
2837
- * Issued when attached to a worker.
2838
- */
2839
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2840
- /**
2841
- * Issued when detached from the worker.
2842
- */
2843
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2844
- /**
2845
- * Notifies about a new protocol message received from the session
2846
- * (session ID is provided in attachedToWorker notification).
2847
- */
2848
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2849
2930
  /**
2850
2931
  * Fired when page is about to send HTTP request.
2851
2932
  */
@@ -2884,8 +2965,34 @@ declare module "inspector" {
2884
2965
  * example, when inspector.waitingForDebugger is called
2885
2966
  */
2886
2967
  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;
2887
2990
  once(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2888
2991
  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;
2889
2996
  prependListener(event: string, listener: (...args: any[]) => void): this;
2890
2997
  /**
2891
2998
  * Emitted when any notification from the V8 Inspector is received.
@@ -2959,28 +3066,6 @@ declare module "inspector" {
2959
3066
  * If heap objects tracking has been started then backend may send update for one or more fragments
2960
3067
  */
2961
3068
  prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2962
- /**
2963
- * Contains an bucket of collected trace events.
2964
- */
2965
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2966
- /**
2967
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2968
- * delivered via dataCollected events.
2969
- */
2970
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2971
- /**
2972
- * Issued when attached to a worker.
2973
- */
2974
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2975
- /**
2976
- * Issued when detached from the worker.
2977
- */
2978
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2979
- /**
2980
- * Notifies about a new protocol message received from the session
2981
- * (session ID is provided in attachedToWorker notification).
2982
- */
2983
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2984
3069
  /**
2985
3070
  * Fired when page is about to send HTTP request.
2986
3071
  */
@@ -3019,8 +3104,34 @@ declare module "inspector" {
3019
3104
  * example, when inspector.waitingForDebugger is called
3020
3105
  */
3021
3106
  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;
3022
3129
  prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3023
3130
  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;
3024
3135
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3025
3136
  /**
3026
3137
  * Emitted when any notification from the V8 Inspector is received.
@@ -3094,28 +3205,6 @@ declare module "inspector" {
3094
3205
  * If heap objects tracking has been started then backend may send update for one or more fragments
3095
3206
  */
3096
3207
  prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3097
- /**
3098
- * Contains an bucket of collected trace events.
3099
- */
3100
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3101
- /**
3102
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3103
- * delivered via dataCollected events.
3104
- */
3105
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3106
- /**
3107
- * Issued when attached to a worker.
3108
- */
3109
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3110
- /**
3111
- * Issued when detached from the worker.
3112
- */
3113
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3114
- /**
3115
- * Notifies about a new protocol message received from the session
3116
- * (session ID is provided in attachedToWorker notification).
3117
- */
3118
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3119
3208
  /**
3120
3209
  * Fired when page is about to send HTTP request.
3121
3210
  */
@@ -3154,12 +3243,37 @@ declare module "inspector" {
3154
3243
  * example, when inspector.waitingForDebugger is called
3155
3244
  */
3156
3245
  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;
3157
3268
  prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3158
3269
  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;
3159
3274
  }
3160
3275
  }
3161
-
3162
- declare module "inspector/promises" {
3276
+ declare module "node:inspector/promises" {
3163
3277
  export {
3164
3278
  Schema,
3165
3279
  Runtime,
@@ -3167,16 +3281,17 @@ declare module "inspector/promises" {
3167
3281
  Console,
3168
3282
  Profiler,
3169
3283
  HeapProfiler,
3170
- NodeTracing,
3171
- NodeWorker,
3284
+ IO,
3172
3285
  Network,
3173
3286
  NodeRuntime,
3287
+ NodeTracing,
3288
+ NodeWorker,
3174
3289
  Target,
3175
- IO,
3290
+ DOMStorage,
3291
+ Storage,
3176
3292
  } from 'inspector';
3177
3293
  }
3178
-
3179
- declare module "inspector/promises" {
3294
+ declare module "node:inspector/promises" {
3180
3295
  import {
3181
3296
  InspectorNotification,
3182
3297
  Schema,
@@ -3185,14 +3300,15 @@ declare module "inspector/promises" {
3185
3300
  Console,
3186
3301
  Profiler,
3187
3302
  HeapProfiler,
3188
- NodeTracing,
3189
- NodeWorker,
3303
+ IO,
3190
3304
  Network,
3191
3305
  NodeRuntime,
3306
+ NodeTracing,
3307
+ NodeWorker,
3192
3308
  Target,
3193
- IO,
3309
+ DOMStorage,
3310
+ Storage,
3194
3311
  } from "inspector";
3195
-
3196
3312
  /**
3197
3313
  * The `inspector.Session` is used for dispatching messages to the V8 inspector
3198
3314
  * back-end and receiving message responses and notifications.
@@ -3454,80 +3570,95 @@ declare module "inspector/promises" {
3454
3570
  post(method: "HeapProfiler.stopSampling"): Promise<HeapProfiler.StopSamplingReturnType>;
3455
3571
  post(method: "HeapProfiler.getSamplingProfile"): Promise<HeapProfiler.GetSamplingProfileReturnType>;
3456
3572
  /**
3457
- * Gets supported tracing categories.
3573
+ * Read a chunk of the stream
3458
3574
  */
3459
- post(method: "NodeTracing.getCategories"): Promise<NodeTracing.GetCategoriesReturnType>;
3575
+ post(method: "IO.read", params?: IO.ReadParameterType): Promise<IO.ReadReturnType>;
3576
+ post(method: "IO.close", params?: IO.CloseParameterType): Promise<void>;
3460
3577
  /**
3461
- * Start trace events collection.
3578
+ * Disables network tracking, prevents network events from being sent to the client.
3462
3579
  */
3463
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType): Promise<void>;
3580
+ post(method: "Network.disable"): Promise<void>;
3464
3581
  /**
3465
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
3466
- * dataCollected events followed by tracingComplete event.
3582
+ * Enables network tracking, network events will now be delivered to the client.
3467
3583
  */
3468
- post(method: "NodeTracing.stop"): Promise<void>;
3584
+ post(method: "Network.enable", params?: Network.EnableParameterType): Promise<void>;
3469
3585
  /**
3470
- * Sends protocol message over session with given id.
3586
+ * Returns post data sent with the request. Returns an error when no data was sent with the request.
3471
3587
  */
3472
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType): Promise<void>;
3588
+ post(method: "Network.getRequestPostData", params?: Network.GetRequestPostDataParameterType): Promise<Network.GetRequestPostDataReturnType>;
3473
3589
  /**
3474
- * Instructs the inspector to attach to running workers. Will also attach to new workers
3475
- * as they start
3590
+ * Returns content served for the given request.
3476
3591
  */
3477
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType): Promise<void>;
3592
+ post(method: "Network.getResponseBody", params?: Network.GetResponseBodyParameterType): Promise<Network.GetResponseBodyReturnType>;
3478
3593
  /**
3479
- * Detaches from all running workers and disables attaching to new workers as they are started.
3594
+ * Enables streaming of the response for the given requestId.
3595
+ * If enabled, the dataReceived event contains the data that was received during streaming.
3596
+ * @experimental
3480
3597
  */
3481
- post(method: "NodeWorker.disable"): Promise<void>;
3598
+ post(method: "Network.streamResourceContent", params?: Network.StreamResourceContentParameterType): Promise<Network.StreamResourceContentReturnType>;
3482
3599
  /**
3483
- * Detached from the worker with given sessionId.
3600
+ * Fetches the resource and returns the content.
3484
3601
  */
3485
- post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType): Promise<void>;
3602
+ post(method: "Network.loadNetworkResource", params?: Network.LoadNetworkResourceParameterType): Promise<Network.LoadNetworkResourceReturnType>;
3486
3603
  /**
3487
- * Disables network tracking, prevents network events from being sent to the client.
3604
+ * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
3488
3605
  */
3489
- post(method: "Network.disable"): Promise<void>;
3606
+ post(method: "NodeRuntime.enable"): Promise<void>;
3490
3607
  /**
3491
- * Enables network tracking, network events will now be delivered to the client.
3608
+ * Disable NodeRuntime events
3492
3609
  */
3493
- post(method: "Network.enable", params?: Network.EnableParameterType): Promise<void>;
3610
+ post(method: "NodeRuntime.disable"): Promise<void>;
3494
3611
  /**
3495
- * Returns post data sent with the request. Returns an error when no data was sent with the request.
3612
+ * Enable the `NodeRuntime.waitingForDisconnect`.
3496
3613
  */
3497
- post(method: "Network.getRequestPostData", params?: Network.GetRequestPostDataParameterType): Promise<Network.GetRequestPostDataReturnType>;
3614
+ post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
3498
3615
  /**
3499
- * Returns content served for the given request.
3616
+ * Gets supported tracing categories.
3500
3617
  */
3501
- post(method: "Network.getResponseBody", params?: Network.GetResponseBodyParameterType): Promise<Network.GetResponseBodyReturnType>;
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>;
3502
3632
  /**
3503
- * Enables streaming of the response for the given requestId.
3504
- * If enabled, the dataReceived event contains the data that was received during streaming.
3505
- * @experimental
3633
+ * Instructs the inspector to attach to running workers. Will also attach to new workers
3634
+ * as they start
3506
3635
  */
3507
- post(method: "Network.streamResourceContent", params?: Network.StreamResourceContentParameterType): Promise<Network.StreamResourceContentReturnType>;
3636
+ post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType): Promise<void>;
3508
3637
  /**
3509
- * Fetches the resource and returns the content.
3638
+ * Detaches from all running workers and disables attaching to new workers as they are started.
3510
3639
  */
3511
- post(method: "Network.loadNetworkResource", params?: Network.LoadNetworkResourceParameterType): Promise<Network.LoadNetworkResourceReturnType>;
3640
+ post(method: "NodeWorker.disable"): Promise<void>;
3512
3641
  /**
3513
- * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
3642
+ * Detached from the worker with given sessionId.
3514
3643
  */
3515
- post(method: "NodeRuntime.enable"): Promise<void>;
3644
+ post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType): Promise<void>;
3645
+ post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType): Promise<void>;
3646
+ post(method: "DOMStorage.clear", params?: DOMStorage.ClearParameterType): Promise<void>;
3516
3647
  /**
3517
- * Disable NodeRuntime events
3648
+ * Disables storage tracking, prevents storage events from being sent to the client.
3518
3649
  */
3519
- post(method: "NodeRuntime.disable"): Promise<void>;
3650
+ post(method: "DOMStorage.disable"): Promise<void>;
3520
3651
  /**
3521
- * Enable the `NodeRuntime.waitingForDisconnect`.
3652
+ * Enables storage tracking, storage events will now be delivered to the client.
3522
3653
  */
3523
- post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
3524
- post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType): Promise<void>;
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>;
3525
3658
  /**
3526
- * Read a chunk of the stream
3659
+ * @experimental
3527
3660
  */
3528
- post(method: "IO.read", params?: IO.ReadParameterType): Promise<IO.ReadReturnType>;
3529
- post(method: "IO.close", params?: IO.CloseParameterType): Promise<void>;
3530
-
3661
+ post(method: "Storage.getStorageKey", params?: Storage.GetStorageKeyParameterType): Promise<Storage.GetStorageKeyReturnType>;
3531
3662
  addListener(event: string, listener: (...args: any[]) => void): this;
3532
3663
  /**
3533
3664
  * Emitted when any notification from the V8 Inspector is received.
@@ -3601,28 +3732,6 @@ declare module "inspector/promises" {
3601
3732
  * If heap objects tracking has been started then backend may send update for one or more fragments
3602
3733
  */
3603
3734
  addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3604
- /**
3605
- * Contains an bucket of collected trace events.
3606
- */
3607
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3608
- /**
3609
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3610
- * delivered via dataCollected events.
3611
- */
3612
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3613
- /**
3614
- * Issued when attached to a worker.
3615
- */
3616
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3617
- /**
3618
- * Issued when detached from the worker.
3619
- */
3620
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3621
- /**
3622
- * Notifies about a new protocol message received from the session
3623
- * (session ID is provided in attachedToWorker notification).
3624
- */
3625
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3626
3735
  /**
3627
3736
  * Fired when page is about to send HTTP request.
3628
3737
  */
@@ -3661,8 +3770,34 @@ declare module "inspector/promises" {
3661
3770
  * example, when inspector.waitingForDebugger is called
3662
3771
  */
3663
3772
  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;
3664
3795
  addListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3665
3796
  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;
3666
3801
  emit(event: string | symbol, ...args: any[]): boolean;
3667
3802
  emit(event: "inspectorNotification", message: InspectorNotification<object>): boolean;
3668
3803
  emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
@@ -3685,11 +3820,6 @@ declare module "inspector/promises" {
3685
3820
  emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
3686
3821
  emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
3687
3822
  emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
3688
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
3689
- emit(event: "NodeTracing.tracingComplete"): boolean;
3690
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
3691
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
3692
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
3693
3823
  emit(event: "Network.requestWillBeSent", message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
3694
3824
  emit(event: "Network.responseReceived", message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
3695
3825
  emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
@@ -3700,8 +3830,17 @@ declare module "inspector/promises" {
3700
3830
  emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
3701
3831
  emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
3702
3832
  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;
3703
3838
  emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
3704
3839
  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;
3705
3844
  on(event: string, listener: (...args: any[]) => void): this;
3706
3845
  /**
3707
3846
  * Emitted when any notification from the V8 Inspector is received.
@@ -3775,28 +3914,6 @@ declare module "inspector/promises" {
3775
3914
  * If heap objects tracking has been started then backend may send update for one or more fragments
3776
3915
  */
3777
3916
  on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3778
- /**
3779
- * Contains an bucket of collected trace events.
3780
- */
3781
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3782
- /**
3783
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3784
- * delivered via dataCollected events.
3785
- */
3786
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
3787
- /**
3788
- * Issued when attached to a worker.
3789
- */
3790
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3791
- /**
3792
- * Issued when detached from the worker.
3793
- */
3794
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3795
- /**
3796
- * Notifies about a new protocol message received from the session
3797
- * (session ID is provided in attachedToWorker notification).
3798
- */
3799
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3800
3917
  /**
3801
3918
  * Fired when page is about to send HTTP request.
3802
3919
  */
@@ -3835,8 +3952,34 @@ declare module "inspector/promises" {
3835
3952
  * example, when inspector.waitingForDebugger is called
3836
3953
  */
3837
3954
  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;
3838
3977
  on(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3839
3978
  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;
3840
3983
  once(event: string, listener: (...args: any[]) => void): this;
3841
3984
  /**
3842
3985
  * Emitted when any notification from the V8 Inspector is received.
@@ -3910,28 +4053,6 @@ declare module "inspector/promises" {
3910
4053
  * If heap objects tracking has been started then backend may send update for one or more fragments
3911
4054
  */
3912
4055
  once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3913
- /**
3914
- * Contains an bucket of collected trace events.
3915
- */
3916
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3917
- /**
3918
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3919
- * delivered via dataCollected events.
3920
- */
3921
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
3922
- /**
3923
- * Issued when attached to a worker.
3924
- */
3925
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3926
- /**
3927
- * Issued when detached from the worker.
3928
- */
3929
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3930
- /**
3931
- * Notifies about a new protocol message received from the session
3932
- * (session ID is provided in attachedToWorker notification).
3933
- */
3934
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3935
4056
  /**
3936
4057
  * Fired when page is about to send HTTP request.
3937
4058
  */
@@ -3970,8 +4091,34 @@ declare module "inspector/promises" {
3970
4091
  * example, when inspector.waitingForDebugger is called
3971
4092
  */
3972
4093
  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;
3973
4116
  once(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3974
4117
  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;
3975
4122
  prependListener(event: string, listener: (...args: any[]) => void): this;
3976
4123
  /**
3977
4124
  * Emitted when any notification from the V8 Inspector is received.
@@ -4045,28 +4192,6 @@ declare module "inspector/promises" {
4045
4192
  * If heap objects tracking has been started then backend may send update for one or more fragments
4046
4193
  */
4047
4194
  prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
4048
- /**
4049
- * Contains an bucket of collected trace events.
4050
- */
4051
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
4052
- /**
4053
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
4054
- * delivered via dataCollected events.
4055
- */
4056
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
4057
- /**
4058
- * Issued when attached to a worker.
4059
- */
4060
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
4061
- /**
4062
- * Issued when detached from the worker.
4063
- */
4064
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
4065
- /**
4066
- * Notifies about a new protocol message received from the session
4067
- * (session ID is provided in attachedToWorker notification).
4068
- */
4069
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4070
4195
  /**
4071
4196
  * Fired when page is about to send HTTP request.
4072
4197
  */
@@ -4105,8 +4230,34 @@ declare module "inspector/promises" {
4105
4230
  * example, when inspector.waitingForDebugger is called
4106
4231
  */
4107
4232
  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;
4108
4255
  prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
4109
4256
  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;
4110
4261
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
4111
4262
  /**
4112
4263
  * Emitted when any notification from the V8 Inspector is received.
@@ -4180,28 +4331,6 @@ declare module "inspector/promises" {
4180
4331
  * If heap objects tracking has been started then backend may send update for one or more fragments
4181
4332
  */
4182
4333
  prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
4183
- /**
4184
- * Contains an bucket of collected trace events.
4185
- */
4186
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
4187
- /**
4188
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
4189
- * delivered via dataCollected events.
4190
- */
4191
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
4192
- /**
4193
- * Issued when attached to a worker.
4194
- */
4195
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
4196
- /**
4197
- * Issued when detached from the worker.
4198
- */
4199
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
4200
- /**
4201
- * Notifies about a new protocol message received from the session
4202
- * (session ID is provided in attachedToWorker notification).
4203
- */
4204
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4205
4334
  /**
4206
4335
  * Fired when page is about to send HTTP request.
4207
4336
  */
@@ -4240,7 +4369,33 @@ declare module "inspector/promises" {
4240
4369
  * example, when inspector.waitingForDebugger is called
4241
4370
  */
4242
4371
  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;
4243
4394
  prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
4244
4395
  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;
4245
4400
  }
4246
4401
  }