@types/node 25.3.5 → 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.
@@ -1620,79 +1620,38 @@ declare module "node:inspector" {
1620
1620
  statsUpdate: number[];
1621
1621
  }
1622
1622
  }
1623
- namespace NodeTracing {
1624
- interface TraceConfig {
1625
- /**
1626
- * Controls how the trace buffer stores data.
1627
- */
1628
- recordMode?: string | undefined;
1629
- /**
1630
- * Included category filters.
1631
- */
1632
- includedCategories: string[];
1633
- }
1634
- interface StartParameterType {
1635
- traceConfig: TraceConfig;
1636
- }
1637
- interface GetCategoriesReturnType {
1623
+ namespace IO {
1624
+ type StreamHandle = string;
1625
+ interface ReadParameterType {
1638
1626
  /**
1639
- * A list of supported tracing categories.
1627
+ * Handle of the stream to read.
1640
1628
  */
1641
- categories: string[];
1642
- }
1643
- interface DataCollectedEventDataType {
1644
- value: object[];
1645
- }
1646
- }
1647
- namespace NodeWorker {
1648
- type WorkerID = string;
1649
- /**
1650
- * Unique identifier of attached debugging session.
1651
- */
1652
- type SessionID = string;
1653
- interface WorkerInfo {
1654
- workerId: WorkerID;
1655
- type: string;
1656
- title: string;
1657
- url: string;
1658
- }
1659
- interface SendMessageToWorkerParameterType {
1660
- message: string;
1629
+ handle: StreamHandle;
1661
1630
  /**
1662
- * 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.
1663
1633
  */
1664
- sessionId: SessionID;
1665
- }
1666
- interface EnableParameterType {
1634
+ offset?: number | undefined;
1667
1635
  /**
1668
- * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
1669
- * message to run them.
1636
+ * Maximum number of bytes to read (left upon the agent discretion if not specified).
1670
1637
  */
1671
- waitForDebuggerOnStart: boolean;
1672
- }
1673
- interface DetachParameterType {
1674
- sessionId: SessionID;
1638
+ size?: number | undefined;
1675
1639
  }
1676
- interface AttachedToWorkerEventDataType {
1640
+ interface CloseParameterType {
1677
1641
  /**
1678
- * Identifier assigned to the session used to send/receive messages.
1642
+ * Handle of the stream to close.
1679
1643
  */
1680
- sessionId: SessionID;
1681
- workerInfo: WorkerInfo;
1682
- waitingForDebugger: boolean;
1644
+ handle: StreamHandle;
1683
1645
  }
1684
- interface DetachedFromWorkerEventDataType {
1646
+ interface ReadReturnType {
1685
1647
  /**
1686
- * Detached session identifier.
1648
+ * Data that were read.
1687
1649
  */
1688
- sessionId: SessionID;
1689
- }
1690
- interface ReceivedMessageFromWorkerEventDataType {
1650
+ data: string;
1691
1651
  /**
1692
- * Identifier of a session which sends a message.
1652
+ * Set if the end-of-file condition occurred while reading.
1693
1653
  */
1694
- sessionId: SessionID;
1695
- message: string;
1654
+ eof: boolean;
1696
1655
  }
1697
1656
  }
1698
1657
  namespace Network {
@@ -1790,6 +1749,18 @@ declare module "node:inspector" {
1790
1749
  */
1791
1750
  headers: Headers;
1792
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
+ }
1793
1764
  interface GetRequestPostDataParameterType {
1794
1765
  /**
1795
1766
  * Identifier of the network request to get content for.
@@ -1974,6 +1945,81 @@ declare module "node:inspector" {
1974
1945
  enabled: boolean;
1975
1946
  }
1976
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
+ }
1977
2023
  namespace Target {
1978
2024
  type SessionID = string;
1979
2025
  type TargetID = string;
@@ -1998,38 +2044,73 @@ declare module "node:inspector" {
1998
2044
  waitingForDebugger: boolean;
1999
2045
  }
2000
2046
  }
2001
- namespace IO {
2002
- type StreamHandle = string;
2003
- interface ReadParameterType {
2047
+ namespace DOMStorage {
2048
+ type SerializedStorageKey = string;
2049
+ /**
2050
+ * DOM Storage identifier.
2051
+ */
2052
+ interface StorageId {
2004
2053
  /**
2005
- * Handle of the stream to read.
2054
+ * Security origin for the storage.
2006
2055
  */
2007
- handle: StreamHandle;
2056
+ securityOrigin?: string | undefined;
2008
2057
  /**
2009
- * Seek to the specified offset before reading (if not specified, proceed with offset
2010
- * following the last read). Some types of streams may only support sequential reads.
2058
+ * Represents a key by which DOM Storage keys its CachedStorageAreas
2011
2059
  */
2012
- offset?: number | undefined;
2060
+ storageKey?: SerializedStorageKey | undefined;
2013
2061
  /**
2014
- * Maximum number of bytes to read (left upon the agent discretion if not specified).
2062
+ * Whether the storage is local storage (not session storage).
2015
2063
  */
2016
- size?: number | undefined;
2064
+ isLocalStorage: boolean;
2017
2065
  }
2018
- interface CloseParameterType {
2019
- /**
2020
- * Handle of the stream to close.
2021
- */
2022
- handle: StreamHandle;
2066
+ /**
2067
+ * DOM Storage item.
2068
+ */
2069
+ type Item = string[];
2070
+ interface ClearParameterType {
2071
+ storageId: StorageId;
2023
2072
  }
2024
- interface ReadReturnType {
2025
- /**
2026
- * Data that were read.
2027
- */
2028
- data: string;
2029
- /**
2030
- * Set if the end-of-file condition occurred while reading.
2031
- */
2032
- 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;
2033
2114
  }
2034
2115
  }
2035
2116
  interface Session {
@@ -2337,39 +2418,12 @@ declare module "node:inspector" {
2337
2418
  post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2338
2419
  post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2339
2420
  /**
2340
- * Gets supported tracing categories.
2341
- */
2342
- post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2343
- /**
2344
- * Start trace events collection.
2345
- */
2346
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2347
- post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
2348
- /**
2349
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
2350
- * dataCollected events followed by tracingComplete event.
2351
- */
2352
- post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
2353
- /**
2354
- * Sends protocol message over session with given id.
2355
- */
2356
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2357
- post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
2358
- /**
2359
- * Instructs the inspector to attach to running workers. Will also attach to new workers
2360
- * as they start
2361
- */
2362
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2363
- post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
2364
- /**
2365
- * Detaches from all running workers and disables attaching to new workers as they are started.
2366
- */
2367
- post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
2368
- /**
2369
- * Detached from the worker with given sessionId.
2421
+ * Read a chunk of the stream
2370
2422
  */
2371
- post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2372
- 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;
2373
2427
  /**
2374
2428
  * Disables network tracking, prevents network events from being sent to the client.
2375
2429
  */
@@ -2377,6 +2431,7 @@ declare module "node:inspector" {
2377
2431
  /**
2378
2432
  * Enables network tracking, network events will now be delivered to the client.
2379
2433
  */
2434
+ post(method: "Network.enable", params?: Network.EnableParameterType, callback?: (err: Error | null) => void): void;
2380
2435
  post(method: "Network.enable", callback?: (err: Error | null) => void): void;
2381
2436
  /**
2382
2437
  * Returns post data sent with the request. Returns an error when no data was sent with the request.
@@ -2417,26 +2472,78 @@ declare module "node:inspector" {
2417
2472
  */
2418
2473
  post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2419
2474
  post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void;
2420
- post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType, callback?: (err: Error | null) => void): void;
2421
- post(method: "Target.setAutoAttach", callback?: (err: Error | null) => void): void;
2422
2475
  /**
2423
- * Read a chunk of the stream
2476
+ * Gets supported tracing categories.
2424
2477
  */
2425
- post(method: "IO.read", params?: IO.ReadParameterType, callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
2426
- post(method: "IO.read", callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
2427
- post(method: "IO.close", params?: IO.CloseParameterType, callback?: (err: Error | null) => void): void;
2428
- post(method: "IO.close", callback?: (err: Error | null) => void): void;
2429
- addListener(event: string, listener: (...args: any[]) => void): this;
2478
+ post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2430
2479
  /**
2431
- * Emitted when any notification from the V8 Inspector is received.
2480
+ * Start trace events collection.
2432
2481
  */
2433
- 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;
2434
2484
  /**
2435
- * 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.
2436
2487
  */
2437
- addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2488
+ post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
2438
2489
  /**
2439
- * Issued when execution context is destroyed.
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
+ 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.
2440
2547
  */
2441
2548
  addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2442
2549
  /**
@@ -2499,28 +2606,6 @@ declare module "node:inspector" {
2499
2606
  * If heap objects tracking has been started then backend may send update for one or more fragments
2500
2607
  */
2501
2608
  addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2502
- /**
2503
- * Contains an bucket of collected trace events.
2504
- */
2505
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2506
- /**
2507
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2508
- * delivered via dataCollected events.
2509
- */
2510
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2511
- /**
2512
- * Issued when attached to a worker.
2513
- */
2514
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2515
- /**
2516
- * Issued when detached from the worker.
2517
- */
2518
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2519
- /**
2520
- * Notifies about a new protocol message received from the session
2521
- * (session ID is provided in attachedToWorker notification).
2522
- */
2523
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2524
2609
  /**
2525
2610
  * Fired when page is about to send HTTP request.
2526
2611
  */
@@ -2559,8 +2644,34 @@ declare module "node:inspector" {
2559
2644
  * example, when inspector.waitingForDebugger is called
2560
2645
  */
2561
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;
2562
2669
  addListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2563
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;
2564
2675
  emit(event: string | symbol, ...args: any[]): boolean;
2565
2676
  emit(event: "inspectorNotification", message: InspectorNotification<object>): boolean;
2566
2677
  emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
@@ -2583,11 +2694,6 @@ declare module "node:inspector" {
2583
2694
  emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2584
2695
  emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2585
2696
  emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2586
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2587
- emit(event: "NodeTracing.tracingComplete"): boolean;
2588
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2589
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2590
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2591
2697
  emit(event: "Network.requestWillBeSent", message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
2592
2698
  emit(event: "Network.responseReceived", message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
2593
2699
  emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
@@ -2598,8 +2704,17 @@ declare module "node:inspector" {
2598
2704
  emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
2599
2705
  emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
2600
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;
2601
2712
  emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
2602
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;
2603
2718
  on(event: string, listener: (...args: any[]) => void): this;
2604
2719
  /**
2605
2720
  * Emitted when any notification from the V8 Inspector is received.
@@ -2673,28 +2788,6 @@ declare module "node:inspector" {
2673
2788
  * If heap objects tracking has been started then backend may send update for one or more fragments
2674
2789
  */
2675
2790
  on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2676
- /**
2677
- * Contains an bucket of collected trace events.
2678
- */
2679
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2680
- /**
2681
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2682
- * delivered via dataCollected events.
2683
- */
2684
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
2685
- /**
2686
- * Issued when attached to a worker.
2687
- */
2688
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2689
- /**
2690
- * Issued when detached from the worker.
2691
- */
2692
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2693
- /**
2694
- * Notifies about a new protocol message received from the session
2695
- * (session ID is provided in attachedToWorker notification).
2696
- */
2697
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2698
2791
  /**
2699
2792
  * Fired when page is about to send HTTP request.
2700
2793
  */
@@ -2733,8 +2826,34 @@ declare module "node:inspector" {
2733
2826
  * example, when inspector.waitingForDebugger is called
2734
2827
  */
2735
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;
2736
2851
  on(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2737
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;
2738
2857
  once(event: string, listener: (...args: any[]) => void): this;
2739
2858
  /**
2740
2859
  * Emitted when any notification from the V8 Inspector is received.
@@ -2808,28 +2927,6 @@ declare module "node:inspector" {
2808
2927
  * If heap objects tracking has been started then backend may send update for one or more fragments
2809
2928
  */
2810
2929
  once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2811
- /**
2812
- * Contains an bucket of collected trace events.
2813
- */
2814
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2815
- /**
2816
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2817
- * delivered via dataCollected events.
2818
- */
2819
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
2820
- /**
2821
- * Issued when attached to a worker.
2822
- */
2823
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2824
- /**
2825
- * Issued when detached from the worker.
2826
- */
2827
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2828
- /**
2829
- * Notifies about a new protocol message received from the session
2830
- * (session ID is provided in attachedToWorker notification).
2831
- */
2832
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2833
2930
  /**
2834
2931
  * Fired when page is about to send HTTP request.
2835
2932
  */
@@ -2868,8 +2965,34 @@ declare module "node:inspector" {
2868
2965
  * example, when inspector.waitingForDebugger is called
2869
2966
  */
2870
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;
2871
2990
  once(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
2872
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;
2873
2996
  prependListener(event: string, listener: (...args: any[]) => void): this;
2874
2997
  /**
2875
2998
  * Emitted when any notification from the V8 Inspector is received.
@@ -2943,28 +3066,6 @@ declare module "node:inspector" {
2943
3066
  * If heap objects tracking has been started then backend may send update for one or more fragments
2944
3067
  */
2945
3068
  prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2946
- /**
2947
- * Contains an bucket of collected trace events.
2948
- */
2949
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2950
- /**
2951
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2952
- * delivered via dataCollected events.
2953
- */
2954
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
2955
- /**
2956
- * Issued when attached to a worker.
2957
- */
2958
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2959
- /**
2960
- * Issued when detached from the worker.
2961
- */
2962
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2963
- /**
2964
- * Notifies about a new protocol message received from the session
2965
- * (session ID is provided in attachedToWorker notification).
2966
- */
2967
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2968
3069
  /**
2969
3070
  * Fired when page is about to send HTTP request.
2970
3071
  */
@@ -3003,8 +3104,34 @@ declare module "node:inspector" {
3003
3104
  * example, when inspector.waitingForDebugger is called
3004
3105
  */
3005
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;
3006
3129
  prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3007
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;
3008
3135
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
3009
3136
  /**
3010
3137
  * Emitted when any notification from the V8 Inspector is received.
@@ -3078,28 +3205,6 @@ declare module "node:inspector" {
3078
3205
  * If heap objects tracking has been started then backend may send update for one or more fragments
3079
3206
  */
3080
3207
  prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3081
- /**
3082
- * Contains an bucket of collected trace events.
3083
- */
3084
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3085
- /**
3086
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3087
- * delivered via dataCollected events.
3088
- */
3089
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3090
- /**
3091
- * Issued when attached to a worker.
3092
- */
3093
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3094
- /**
3095
- * Issued when detached from the worker.
3096
- */
3097
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3098
- /**
3099
- * Notifies about a new protocol message received from the session
3100
- * (session ID is provided in attachedToWorker notification).
3101
- */
3102
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3103
3208
  /**
3104
3209
  * Fired when page is about to send HTTP request.
3105
3210
  */
@@ -3138,8 +3243,34 @@ declare module "node:inspector" {
3138
3243
  * example, when inspector.waitingForDebugger is called
3139
3244
  */
3140
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;
3141
3268
  prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3142
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;
3143
3274
  }
3144
3275
  }
3145
3276
  declare module "node:inspector/promises" {
@@ -3150,12 +3281,14 @@ declare module "node:inspector/promises" {
3150
3281
  Console,
3151
3282
  Profiler,
3152
3283
  HeapProfiler,
3153
- NodeTracing,
3154
- NodeWorker,
3284
+ IO,
3155
3285
  Network,
3156
3286
  NodeRuntime,
3287
+ NodeTracing,
3288
+ NodeWorker,
3157
3289
  Target,
3158
- IO,
3290
+ DOMStorage,
3291
+ Storage,
3159
3292
  } from 'inspector';
3160
3293
  }
3161
3294
  declare module "node:inspector/promises" {
@@ -3167,12 +3300,14 @@ declare module "node:inspector/promises" {
3167
3300
  Console,
3168
3301
  Profiler,
3169
3302
  HeapProfiler,
3170
- NodeTracing,
3171
- NodeWorker,
3303
+ IO,
3172
3304
  Network,
3173
3305
  NodeRuntime,
3306
+ NodeTracing,
3307
+ NodeWorker,
3174
3308
  Target,
3175
- IO,
3309
+ DOMStorage,
3310
+ Storage,
3176
3311
  } from "inspector";
3177
3312
  /**
3178
3313
  * The `inspector.Session` is used for dispatching messages to the V8 inspector
@@ -3435,79 +3570,95 @@ declare module "node:inspector/promises" {
3435
3570
  post(method: "HeapProfiler.stopSampling"): Promise<HeapProfiler.StopSamplingReturnType>;
3436
3571
  post(method: "HeapProfiler.getSamplingProfile"): Promise<HeapProfiler.GetSamplingProfileReturnType>;
3437
3572
  /**
3438
- * Gets supported tracing categories.
3573
+ * Read a chunk of the stream
3439
3574
  */
3440
- 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>;
3441
3577
  /**
3442
- * Start trace events collection.
3578
+ * Disables network tracking, prevents network events from being sent to the client.
3443
3579
  */
3444
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType): Promise<void>;
3580
+ post(method: "Network.disable"): Promise<void>;
3445
3581
  /**
3446
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
3447
- * dataCollected events followed by tracingComplete event.
3582
+ * Enables network tracking, network events will now be delivered to the client.
3448
3583
  */
3449
- post(method: "NodeTracing.stop"): Promise<void>;
3584
+ post(method: "Network.enable", params?: Network.EnableParameterType): Promise<void>;
3450
3585
  /**
3451
- * 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.
3452
3587
  */
3453
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType): Promise<void>;
3588
+ post(method: "Network.getRequestPostData", params?: Network.GetRequestPostDataParameterType): Promise<Network.GetRequestPostDataReturnType>;
3454
3589
  /**
3455
- * Instructs the inspector to attach to running workers. Will also attach to new workers
3456
- * as they start
3590
+ * Returns content served for the given request.
3457
3591
  */
3458
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType): Promise<void>;
3592
+ post(method: "Network.getResponseBody", params?: Network.GetResponseBodyParameterType): Promise<Network.GetResponseBodyReturnType>;
3459
3593
  /**
3460
- * 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
3461
3597
  */
3462
- post(method: "NodeWorker.disable"): Promise<void>;
3598
+ post(method: "Network.streamResourceContent", params?: Network.StreamResourceContentParameterType): Promise<Network.StreamResourceContentReturnType>;
3463
3599
  /**
3464
- * Detached from the worker with given sessionId.
3600
+ * Fetches the resource and returns the content.
3465
3601
  */
3466
- post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType): Promise<void>;
3602
+ post(method: "Network.loadNetworkResource", params?: Network.LoadNetworkResourceParameterType): Promise<Network.LoadNetworkResourceReturnType>;
3467
3603
  /**
3468
- * Disables network tracking, prevents network events from being sent to the client.
3604
+ * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
3469
3605
  */
3470
- post(method: "Network.disable"): Promise<void>;
3606
+ post(method: "NodeRuntime.enable"): Promise<void>;
3471
3607
  /**
3472
- * Enables network tracking, network events will now be delivered to the client.
3608
+ * Disable NodeRuntime events
3473
3609
  */
3474
- post(method: "Network.enable"): Promise<void>;
3610
+ post(method: "NodeRuntime.disable"): Promise<void>;
3475
3611
  /**
3476
- * Returns post data sent with the request. Returns an error when no data was sent with the request.
3612
+ * Enable the `NodeRuntime.waitingForDisconnect`.
3477
3613
  */
3478
- post(method: "Network.getRequestPostData", params?: Network.GetRequestPostDataParameterType): Promise<Network.GetRequestPostDataReturnType>;
3614
+ post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
3479
3615
  /**
3480
- * Returns content served for the given request.
3616
+ * Gets supported tracing categories.
3481
3617
  */
3482
- 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>;
3483
3632
  /**
3484
- * Enables streaming of the response for the given requestId.
3485
- * If enabled, the dataReceived event contains the data that was received during streaming.
3486
- * @experimental
3633
+ * Instructs the inspector to attach to running workers. Will also attach to new workers
3634
+ * as they start
3487
3635
  */
3488
- post(method: "Network.streamResourceContent", params?: Network.StreamResourceContentParameterType): Promise<Network.StreamResourceContentReturnType>;
3636
+ post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType): Promise<void>;
3489
3637
  /**
3490
- * Fetches the resource and returns the content.
3638
+ * Detaches from all running workers and disables attaching to new workers as they are started.
3491
3639
  */
3492
- post(method: "Network.loadNetworkResource", params?: Network.LoadNetworkResourceParameterType): Promise<Network.LoadNetworkResourceReturnType>;
3640
+ post(method: "NodeWorker.disable"): Promise<void>;
3493
3641
  /**
3494
- * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
3642
+ * Detached from the worker with given sessionId.
3495
3643
  */
3496
- 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>;
3497
3647
  /**
3498
- * Disable NodeRuntime events
3648
+ * Disables storage tracking, prevents storage events from being sent to the client.
3499
3649
  */
3500
- post(method: "NodeRuntime.disable"): Promise<void>;
3650
+ post(method: "DOMStorage.disable"): Promise<void>;
3501
3651
  /**
3502
- * Enable the `NodeRuntime.waitingForDisconnect`.
3652
+ * Enables storage tracking, storage events will now be delivered to the client.
3503
3653
  */
3504
- post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise<void>;
3505
- 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>;
3506
3658
  /**
3507
- * Read a chunk of the stream
3659
+ * @experimental
3508
3660
  */
3509
- post(method: "IO.read", params?: IO.ReadParameterType): Promise<IO.ReadReturnType>;
3510
- post(method: "IO.close", params?: IO.CloseParameterType): Promise<void>;
3661
+ post(method: "Storage.getStorageKey", params?: Storage.GetStorageKeyParameterType): Promise<Storage.GetStorageKeyReturnType>;
3511
3662
  addListener(event: string, listener: (...args: any[]) => void): this;
3512
3663
  /**
3513
3664
  * Emitted when any notification from the V8 Inspector is received.
@@ -3581,28 +3732,6 @@ declare module "node:inspector/promises" {
3581
3732
  * If heap objects tracking has been started then backend may send update for one or more fragments
3582
3733
  */
3583
3734
  addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3584
- /**
3585
- * Contains an bucket of collected trace events.
3586
- */
3587
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3588
- /**
3589
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3590
- * delivered via dataCollected events.
3591
- */
3592
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
3593
- /**
3594
- * Issued when attached to a worker.
3595
- */
3596
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3597
- /**
3598
- * Issued when detached from the worker.
3599
- */
3600
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3601
- /**
3602
- * Notifies about a new protocol message received from the session
3603
- * (session ID is provided in attachedToWorker notification).
3604
- */
3605
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3606
3735
  /**
3607
3736
  * Fired when page is about to send HTTP request.
3608
3737
  */
@@ -3641,8 +3770,34 @@ declare module "node:inspector/promises" {
3641
3770
  * example, when inspector.waitingForDebugger is called
3642
3771
  */
3643
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;
3644
3795
  addListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3645
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;
3646
3801
  emit(event: string | symbol, ...args: any[]): boolean;
3647
3802
  emit(event: "inspectorNotification", message: InspectorNotification<object>): boolean;
3648
3803
  emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
@@ -3665,11 +3820,6 @@ declare module "node:inspector/promises" {
3665
3820
  emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
3666
3821
  emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
3667
3822
  emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
3668
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
3669
- emit(event: "NodeTracing.tracingComplete"): boolean;
3670
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
3671
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
3672
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
3673
3823
  emit(event: "Network.requestWillBeSent", message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
3674
3824
  emit(event: "Network.responseReceived", message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
3675
3825
  emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
@@ -3680,8 +3830,17 @@ declare module "node:inspector/promises" {
3680
3830
  emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
3681
3831
  emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
3682
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;
3683
3838
  emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
3684
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;
3685
3844
  on(event: string, listener: (...args: any[]) => void): this;
3686
3845
  /**
3687
3846
  * Emitted when any notification from the V8 Inspector is received.
@@ -3755,28 +3914,6 @@ declare module "node:inspector/promises" {
3755
3914
  * If heap objects tracking has been started then backend may send update for one or more fragments
3756
3915
  */
3757
3916
  on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3758
- /**
3759
- * Contains an bucket of collected trace events.
3760
- */
3761
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3762
- /**
3763
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3764
- * delivered via dataCollected events.
3765
- */
3766
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
3767
- /**
3768
- * Issued when attached to a worker.
3769
- */
3770
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3771
- /**
3772
- * Issued when detached from the worker.
3773
- */
3774
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3775
- /**
3776
- * Notifies about a new protocol message received from the session
3777
- * (session ID is provided in attachedToWorker notification).
3778
- */
3779
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3780
3917
  /**
3781
3918
  * Fired when page is about to send HTTP request.
3782
3919
  */
@@ -3815,8 +3952,34 @@ declare module "node:inspector/promises" {
3815
3952
  * example, when inspector.waitingForDebugger is called
3816
3953
  */
3817
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;
3818
3977
  on(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3819
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;
3820
3983
  once(event: string, listener: (...args: any[]) => void): this;
3821
3984
  /**
3822
3985
  * Emitted when any notification from the V8 Inspector is received.
@@ -3890,28 +4053,6 @@ declare module "node:inspector/promises" {
3890
4053
  * If heap objects tracking has been started then backend may send update for one or more fragments
3891
4054
  */
3892
4055
  once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
3893
- /**
3894
- * Contains an bucket of collected trace events.
3895
- */
3896
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
3897
- /**
3898
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
3899
- * delivered via dataCollected events.
3900
- */
3901
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
3902
- /**
3903
- * Issued when attached to a worker.
3904
- */
3905
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
3906
- /**
3907
- * Issued when detached from the worker.
3908
- */
3909
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
3910
- /**
3911
- * Notifies about a new protocol message received from the session
3912
- * (session ID is provided in attachedToWorker notification).
3913
- */
3914
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3915
4056
  /**
3916
4057
  * Fired when page is about to send HTTP request.
3917
4058
  */
@@ -3950,8 +4091,34 @@ declare module "node:inspector/promises" {
3950
4091
  * example, when inspector.waitingForDebugger is called
3951
4092
  */
3952
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;
3953
4116
  once(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
3954
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;
3955
4122
  prependListener(event: string, listener: (...args: any[]) => void): this;
3956
4123
  /**
3957
4124
  * Emitted when any notification from the V8 Inspector is received.
@@ -4025,28 +4192,6 @@ declare module "node:inspector/promises" {
4025
4192
  * If heap objects tracking has been started then backend may send update for one or more fragments
4026
4193
  */
4027
4194
  prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
4028
- /**
4029
- * Contains an bucket of collected trace events.
4030
- */
4031
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
4032
- /**
4033
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
4034
- * delivered via dataCollected events.
4035
- */
4036
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
4037
- /**
4038
- * Issued when attached to a worker.
4039
- */
4040
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
4041
- /**
4042
- * Issued when detached from the worker.
4043
- */
4044
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
4045
- /**
4046
- * Notifies about a new protocol message received from the session
4047
- * (session ID is provided in attachedToWorker notification).
4048
- */
4049
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4050
4195
  /**
4051
4196
  * Fired when page is about to send HTTP request.
4052
4197
  */
@@ -4085,8 +4230,34 @@ declare module "node:inspector/promises" {
4085
4230
  * example, when inspector.waitingForDebugger is called
4086
4231
  */
4087
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;
4088
4255
  prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
4089
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;
4090
4261
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
4091
4262
  /**
4092
4263
  * Emitted when any notification from the V8 Inspector is received.
@@ -4160,28 +4331,6 @@ declare module "node:inspector/promises" {
4160
4331
  * If heap objects tracking has been started then backend may send update for one or more fragments
4161
4332
  */
4162
4333
  prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
4163
- /**
4164
- * Contains an bucket of collected trace events.
4165
- */
4166
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
4167
- /**
4168
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
4169
- * delivered via dataCollected events.
4170
- */
4171
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
4172
- /**
4173
- * Issued when attached to a worker.
4174
- */
4175
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
4176
- /**
4177
- * Issued when detached from the worker.
4178
- */
4179
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
4180
- /**
4181
- * Notifies about a new protocol message received from the session
4182
- * (session ID is provided in attachedToWorker notification).
4183
- */
4184
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
4185
4334
  /**
4186
4335
  * Fired when page is about to send HTTP request.
4187
4336
  */
@@ -4220,7 +4369,33 @@ declare module "node:inspector/promises" {
4220
4369
  * example, when inspector.waitingForDebugger is called
4221
4370
  */
4222
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;
4223
4394
  prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification<Target.TargetCreatedEventDataType>) => void): this;
4224
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;
4225
4400
  }
4226
4401
  }