/** * API generated from Protocol commands and events. */ declare namespace ProtocolIOS134ProxyApi { interface ProtocolApi { Animation: AnimationApi; ApplicationCache: ApplicationCacheApi; Audit: AuditApi; CPUProfiler: CPUProfilerApi; CSS: CSSApi; Canvas: CanvasApi; Console: ConsoleApi; DOM: DOMApi; DOMDebugger: DOMDebuggerApi; DOMStorage: DOMStorageApi; Database: DatabaseApi; Debugger: DebuggerApi; GenericTypes: GenericTypesApi; Heap: HeapApi; IndexedDB: IndexedDBApi; Inspector: InspectorApi; LayerTree: LayerTreeApi; Memory: MemoryApi; Network: NetworkApi; Page: PageApi; Recording: RecordingApi; Runtime: RuntimeApi; ScriptProfiler: ScriptProfilerApi; Security: SecurityApi; ServiceWorker: ServiceWorkerApi; Target: TargetApi; Timeline: TimelineApi; Worker: WorkerApi; } interface AnimationApi { /** * Start tracking animations. This will produce a `trackingStart` event. */ startTracking(): Promise; /** * Stop tracking animations. This will produce a `trackingComplete` event. */ stopTracking(): Promise; /** * Dispatched after `startTracking` command. */ on(event: 'trackingStart', listener: (params: ProtocolIOS134.Animation.TrackingStartEvent) => void): void; /** * Fired for each phase of Web Animation. */ on(event: 'trackingUpdate', listener: (params: ProtocolIOS134.Animation.TrackingUpdateEvent) => void): void; /** * Dispatched after `stopTracking` command. */ on(event: 'trackingComplete', listener: (params: ProtocolIOS134.Animation.TrackingCompleteEvent) => void): void; } interface ApplicationCacheApi { /** * Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache. */ getFramesWithManifests(): Promise; /** * Enables application cache domain notifications. */ enable(): Promise; /** * Disable application cache domain notifications. */ disable(): Promise; /** * Returns manifest URL for document in the given frame. */ getManifestForFrame(params: ProtocolIOS134.ApplicationCache.GetManifestForFrameRequest): Promise; /** * Returns relevant application cache data for the document in given frame. */ getApplicationCacheForFrame(params: ProtocolIOS134.ApplicationCache.GetApplicationCacheForFrameRequest): Promise; on(event: 'applicationCacheStatusUpdated', listener: (params: ProtocolIOS134.ApplicationCache.ApplicationCacheStatusUpdatedEvent) => void): void; on(event: 'networkStateUpdated', listener: (params: ProtocolIOS134.ApplicationCache.NetworkStateUpdatedEvent) => void): void; } interface AuditApi { /** * Creates the `WebInspectorAudit` object that is passed to run. Must call teardown before calling setup more than once. */ setup(params: ProtocolIOS134.Audit.SetupRequest): Promise; /** * Parses and evaluates the given test string and sends back the result. Returned values are saved to the "audit" object group. Call setup before and teardown after if the `WebInspectorAudit` object should be passed into the test. */ run(params: ProtocolIOS134.Audit.RunRequest): Promise; /** * Destroys the `WebInspectorAudit` object that is passed to run. Must call setup before calling teardown. */ teardown(): Promise; } interface CPUProfilerApi { /** * Start tracking cpu usage. */ startTracking(): Promise; /** * Stop tracking cpu usage. This will produce a `trackingComplete` event. */ stopTracking(): Promise; /** * Tracking started. */ on(event: 'trackingStart', listener: (params: ProtocolIOS134.CPUProfiler.TrackingStartEvent) => void): void; /** * Periodic tracking updates with event data. */ on(event: 'trackingUpdate', listener: (params: ProtocolIOS134.CPUProfiler.TrackingUpdateEvent) => void): void; /** * Tracking stopped. */ on(event: 'trackingComplete', listener: (params: ProtocolIOS134.CPUProfiler.TrackingCompleteEvent) => void): void; } interface CSSApi { /** * Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received. */ enable(): Promise; /** * Disables the CSS agent for the given page. */ disable(): Promise; /** * Returns requested styles for a DOM node identified by nodeId. */ getMatchedStylesForNode(params: ProtocolIOS134.CSS.GetMatchedStylesForNodeRequest): Promise; /** * Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId. */ getInlineStylesForNode(params: ProtocolIOS134.CSS.GetInlineStylesForNodeRequest): Promise; /** * Returns the computed style for a DOM node identified by nodeId. */ getComputedStyleForNode(params: ProtocolIOS134.CSS.GetComputedStyleForNodeRequest): Promise; /** * Returns metainfo entries for all known stylesheets. */ getAllStyleSheets(): Promise; /** * Returns stylesheet data for the specified styleSheetId. */ getStyleSheet(params: ProtocolIOS134.CSS.GetStyleSheetRequest): Promise; /** * Returns the current textual content and the URL for a stylesheet. */ getStyleSheetText(params: ProtocolIOS134.CSS.GetStyleSheetTextRequest): Promise; /** * Sets the new stylesheet text, thereby invalidating all existing CSSStyleId's and CSSRuleId's contained by this stylesheet. */ setStyleSheetText(params: ProtocolIOS134.CSS.SetStyleSheetTextRequest): Promise; /** * Sets the new text for the respective style. */ setStyleText(params: ProtocolIOS134.CSS.SetStyleTextRequest): Promise; /** * Modifies the rule selector. */ setRuleSelector(params: ProtocolIOS134.CSS.SetRuleSelectorRequest): Promise; /** * Creates a new special "inspector" stylesheet in the frame with given frameId. */ createStyleSheet(params: ProtocolIOS134.CSS.CreateStyleSheetRequest): Promise; /** * Creates a new empty rule with the given selector in a stylesheet with given styleSheetId. */ addRule(params: ProtocolIOS134.CSS.AddRuleRequest): Promise; /** * Returns all supported CSS property names. */ getSupportedCSSProperties(): Promise; /** * Returns all supported system font family names. */ getSupportedSystemFontFamilyNames(): Promise; /** * Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser. */ forcePseudoState(params: ProtocolIOS134.CSS.ForcePseudoStateRequest): Promise; /** * Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features. */ on(event: 'mediaQueryResultChanged', listener: () => void): void; /** * Fired whenever a stylesheet is changed as a result of the client operation. */ on(event: 'styleSheetChanged', listener: (params: ProtocolIOS134.CSS.StyleSheetChangedEvent) => void): void; /** * Fired whenever an active document stylesheet is added. */ on(event: 'styleSheetAdded', listener: (params: ProtocolIOS134.CSS.StyleSheetAddedEvent) => void): void; /** * Fired whenever an active document stylesheet is removed. */ on(event: 'styleSheetRemoved', listener: (params: ProtocolIOS134.CSS.StyleSheetRemovedEvent) => void): void; } interface CanvasApi { /** * Enables Canvas domain events. */ enable(): Promise; /** * Disables Canvas domain events. */ disable(): Promise; /** * Gets the NodeId for the canvas node with the given CanvasId. */ requestNode(params: ProtocolIOS134.Canvas.RequestNodeRequest): Promise; /** * Gets the data for the canvas node with the given CanvasId. */ requestContent(params: ProtocolIOS134.Canvas.RequestContentRequest): Promise; /** * Gets all -webkit-canvas nodes or active HTMLCanvasElement for a WebGPUDevice. */ requestClientNodes(params: ProtocolIOS134.Canvas.RequestClientNodesRequest): Promise; /** * Resolves JavaScript canvas/device context object for given canvasId. */ resolveContext(params: ProtocolIOS134.Canvas.ResolveContextRequest): Promise; /** * Tells the backend to record `count` frames whenever a new context is created. */ setRecordingAutoCaptureFrameCount(params: ProtocolIOS134.Canvas.SetRecordingAutoCaptureFrameCountRequest): Promise; /** * Record the next frame, or up to the given number of bytes of data, for the given canvas. */ startRecording(params: ProtocolIOS134.Canvas.StartRecordingRequest): Promise; /** * Stop recording the given canvas. */ stopRecording(params: ProtocolIOS134.Canvas.StopRecordingRequest): Promise; /** * Requests the source of the shader of the given type from the program with the given id. */ requestShaderSource(params: ProtocolIOS134.Canvas.RequestShaderSourceRequest): Promise; /** * Compiles and links the shader with identifier and type with the given source code. */ updateShader(params: ProtocolIOS134.Canvas.UpdateShaderRequest): Promise; /** * Enable/disable the visibility of the given shader program. */ setShaderProgramDisabled(params: ProtocolIOS134.Canvas.SetShaderProgramDisabledRequest): Promise; /** * Enable/disable highlighting of the given shader program. */ setShaderProgramHighlighted(params: ProtocolIOS134.Canvas.SetShaderProgramHighlightedRequest): Promise; on(event: 'canvasAdded', listener: (params: ProtocolIOS134.Canvas.CanvasAddedEvent) => void): void; on(event: 'canvasRemoved', listener: (params: ProtocolIOS134.Canvas.CanvasRemovedEvent) => void): void; on(event: 'canvasMemoryChanged', listener: (params: ProtocolIOS134.Canvas.CanvasMemoryChangedEvent) => void): void; on(event: 'extensionEnabled', listener: (params: ProtocolIOS134.Canvas.ExtensionEnabledEvent) => void): void; on(event: 'clientNodesChanged', listener: (params: ProtocolIOS134.Canvas.ClientNodesChangedEvent) => void): void; on(event: 'recordingStarted', listener: (params: ProtocolIOS134.Canvas.RecordingStartedEvent) => void): void; on(event: 'recordingProgress', listener: (params: ProtocolIOS134.Canvas.RecordingProgressEvent) => void): void; on(event: 'recordingFinished', listener: (params: ProtocolIOS134.Canvas.RecordingFinishedEvent) => void): void; on(event: 'programCreated', listener: (params: ProtocolIOS134.Canvas.ProgramCreatedEvent) => void): void; on(event: 'programDeleted', listener: (params: ProtocolIOS134.Canvas.ProgramDeletedEvent) => void): void; } interface ConsoleApi { /** * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. */ enable(): Promise; /** * Disables console domain, prevents further console messages from being reported to the client. */ disable(): Promise; /** * Clears console messages collected in the browser. */ clearMessages(): Promise; /** * List of the different message sources that are non-default logging channels. */ getLoggingChannels(): Promise; /** * Modify the level of a channel. */ setLoggingChannelLevel(params: ProtocolIOS134.Console.SetLoggingChannelLevelRequest): Promise; /** * Issued when new console message is added. */ on(event: 'messageAdded', listener: (params: ProtocolIOS134.Console.MessageAddedEvent) => void): void; /** * Issued when subsequent message(s) are equal to the previous one(s). */ on(event: 'messageRepeatCountUpdated', listener: (params: ProtocolIOS134.Console.MessageRepeatCountUpdatedEvent) => void): void; /** * Issued when console is cleared. This happens either upon clearMessages command or after page navigation. */ on(event: 'messagesCleared', listener: () => void): void; /** * Issued from console.takeHeapSnapshot. */ on(event: 'heapSnapshot', listener: (params: ProtocolIOS134.Console.HeapSnapshotEvent) => void): void; } interface DOMApi { /** * Returns the root DOM node to the caller. */ getDocument(): Promise; /** * Requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth. */ requestChildNodes(params: ProtocolIOS134.DOM.RequestChildNodesRequest): Promise; /** * Executes querySelector on a given node. */ querySelector(params: ProtocolIOS134.DOM.QuerySelectorRequest): Promise; /** * Executes querySelectorAll on a given node. */ querySelectorAll(params: ProtocolIOS134.DOM.QuerySelectorAllRequest): Promise; /** * Sets node name for a node with given id. */ setNodeName(params: ProtocolIOS134.DOM.SetNodeNameRequest): Promise; /** * Sets node value for a node with given id. */ setNodeValue(params: ProtocolIOS134.DOM.SetNodeValueRequest): Promise; /** * Removes node with given id. */ removeNode(params: ProtocolIOS134.DOM.RemoveNodeRequest): Promise; /** * Sets attribute for an element with given id. */ setAttributeValue(params: ProtocolIOS134.DOM.SetAttributeValueRequest): Promise; /** * Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs. */ setAttributesAsText(params: ProtocolIOS134.DOM.SetAttributesAsTextRequest): Promise; /** * Removes attribute with given name from an element with given id. */ removeAttribute(params: ProtocolIOS134.DOM.RemoveAttributeRequest): Promise; /** * Gets the list of builtin DOM event names. */ getSupportedEventNames(): Promise; /** * Returns all data binding relationships between data that is associated with the node and the node itself. */ getDataBindingsForNode(params: ProtocolIOS134.DOM.GetDataBindingsForNodeRequest): Promise; /** * Returns all data that has been associated with the node and is available for data binding. */ getAssociatedDataForNode(params: ProtocolIOS134.DOM.GetAssociatedDataForNodeRequest): Promise; /** * Returns event listeners relevant to the node. */ getEventListenersForNode(params: ProtocolIOS134.DOM.GetEventListenersForNodeRequest): Promise; /** * Enable/disable the given event listener. A disabled event listener will not fire. */ setEventListenerDisabled(params: ProtocolIOS134.DOM.SetEventListenerDisabledRequest): Promise; /** * Set a breakpoint on the given event listener. */ setBreakpointForEventListener(params: ProtocolIOS134.DOM.SetBreakpointForEventListenerRequest): Promise; /** * Remove any breakpoints on the given event listener. */ removeBreakpointForEventListener(params: ProtocolIOS134.DOM.RemoveBreakpointForEventListenerRequest): Promise; /** * Returns a dictionary of accessibility properties for the node. */ getAccessibilityPropertiesForNode(params: ProtocolIOS134.DOM.GetAccessibilityPropertiesForNodeRequest): Promise; /** * Returns node's HTML markup. */ getOuterHTML(params: ProtocolIOS134.DOM.GetOuterHTMLRequest): Promise; /** * Sets node HTML markup, returns new node id. */ setOuterHTML(params: ProtocolIOS134.DOM.SetOuterHTMLRequest): Promise; insertAdjacentHTML(params: ProtocolIOS134.DOM.InsertAdjacentHTMLRequest): Promise; /** * Searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session. */ performSearch(params: ProtocolIOS134.DOM.PerformSearchRequest): Promise; /** * Returns search results from given fromIndex to given toIndex from the sarch with the given identifier. */ getSearchResults(params: ProtocolIOS134.DOM.GetSearchResultsRequest): Promise; /** * Discards search results from the session with the given id. getSearchResults should no longer be called for that search. */ discardSearchResults(params: ProtocolIOS134.DOM.DiscardSearchResultsRequest): Promise; /** * Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of setChildNodes notifications. */ requestNode(params: ProtocolIOS134.DOM.RequestNodeRequest): Promise; /** * Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection. */ setInspectModeEnabled(params: ProtocolIOS134.DOM.SetInspectModeEnabledRequest): Promise; /** * Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. */ highlightRect(params: ProtocolIOS134.DOM.HighlightRectRequest): Promise; /** * Highlights given quad. Coordinates are absolute with respect to the main frame viewport. */ highlightQuad(params: ProtocolIOS134.DOM.HighlightQuadRequest): Promise; /** * Highlights all DOM nodes that match a given selector. A string containing a CSS selector must be specified. */ highlightSelector(params: ProtocolIOS134.DOM.HighlightSelectorRequest): Promise; /** * Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified. */ highlightNode(params: ProtocolIOS134.DOM.HighlightNodeRequest): Promise; /** * Highlights each DOM node in the given list. */ highlightNodeList(params: ProtocolIOS134.DOM.HighlightNodeListRequest): Promise; /** * Hides DOM node highlight. */ hideHighlight(): Promise; /** * Highlights owner element of the frame with given id. */ highlightFrame(params: ProtocolIOS134.DOM.HighlightFrameRequest): Promise; /** * Requests that the node is sent to the caller given its path. */ pushNodeByPathToFrontend(params: ProtocolIOS134.DOM.PushNodeByPathToFrontendRequest): Promise; /** * Resolves JavaScript node object for given node id. */ resolveNode(params: ProtocolIOS134.DOM.ResolveNodeRequest): Promise; /** * Returns attributes for the specified node. */ getAttributes(params: ProtocolIOS134.DOM.GetAttributesRequest): Promise; /** * Moves node into the new container, places it before the given anchor. */ moveTo(params: ProtocolIOS134.DOM.MoveToRequest): Promise; /** * Undoes the last performed action. */ undo(): Promise; /** * Re-does the last undone action. */ redo(): Promise; /** * Marks last undoable state. */ markUndoableState(): Promise; /** * Focuses the given element. */ focus(params: ProtocolIOS134.DOM.FocusRequest): Promise; /** * Enables console to refer to the node with given id via $0 (see Command Line API for more details). */ setInspectedNode(params: ProtocolIOS134.DOM.SetInspectedNodeRequest): Promise; /** * Controls whether any DOM commands work for nodes inside a UserAgent shadow tree. */ setAllowEditingUserAgentShadowTrees(params: ProtocolIOS134.DOM.SetAllowEditingUserAgentShadowTreesRequest): Promise; /** * Fired when Document has been totally updated. Node ids are no longer valid. */ on(event: 'documentUpdated', listener: () => void): void; /** * Inspect a particular node. */ on(event: 'inspect', listener: (params: ProtocolIOS134.DOM.InspectEvent) => void): void; /** * Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids. */ on(event: 'setChildNodes', listener: (params: ProtocolIOS134.DOM.SetChildNodesEvent) => void): void; /** * Fired when Element's attribute is modified. */ on(event: 'attributeModified', listener: (params: ProtocolIOS134.DOM.AttributeModifiedEvent) => void): void; /** * Fired when Element's attribute is removed. */ on(event: 'attributeRemoved', listener: (params: ProtocolIOS134.DOM.AttributeRemovedEvent) => void): void; /** * Fired when Element's inline style is modified via a CSS property modification. */ on(event: 'inlineStyleInvalidated', listener: (params: ProtocolIOS134.DOM.InlineStyleInvalidatedEvent) => void): void; /** * Mirrors DOMCharacterDataModified event. */ on(event: 'characterDataModified', listener: (params: ProtocolIOS134.DOM.CharacterDataModifiedEvent) => void): void; /** * Fired when Container's child node count has changed. */ on(event: 'childNodeCountUpdated', listener: (params: ProtocolIOS134.DOM.ChildNodeCountUpdatedEvent) => void): void; /** * Mirrors DOMNodeInserted event. */ on(event: 'childNodeInserted', listener: (params: ProtocolIOS134.DOM.ChildNodeInsertedEvent) => void): void; /** * Mirrors DOMNodeRemoved event. */ on(event: 'childNodeRemoved', listener: (params: ProtocolIOS134.DOM.ChildNodeRemovedEvent) => void): void; /** * Called when shadow root is pushed into the element. */ on(event: 'shadowRootPushed', listener: (params: ProtocolIOS134.DOM.ShadowRootPushedEvent) => void): void; /** * Called when shadow root is popped from the element. */ on(event: 'shadowRootPopped', listener: (params: ProtocolIOS134.DOM.ShadowRootPoppedEvent) => void): void; /** * Called when the custom element state is changed. */ on(event: 'customElementStateChanged', listener: (params: ProtocolIOS134.DOM.CustomElementStateChangedEvent) => void): void; /** * Called when a pseudo element is added to an element. */ on(event: 'pseudoElementAdded', listener: (params: ProtocolIOS134.DOM.PseudoElementAddedEvent) => void): void; /** * Called when a pseudo element is removed from an element. */ on(event: 'pseudoElementRemoved', listener: (params: ProtocolIOS134.DOM.PseudoElementRemovedEvent) => void): void; /** * Called when an event listener is added to a node. */ on(event: 'didAddEventListener', listener: (params: ProtocolIOS134.DOM.DidAddEventListenerEvent) => void): void; /** * Called after a request has been made to remove an event listener from a node. */ on(event: 'willRemoveEventListener', listener: (params: ProtocolIOS134.DOM.WillRemoveEventListenerEvent) => void): void; /** * Called when an event is fired on a node. */ on(event: 'didFireEvent', listener: (params: ProtocolIOS134.DOM.DidFireEventEvent) => void): void; /** * Called when an element enters/exits a power efficient playback state. */ on(event: 'powerEfficientPlaybackStateChanged', listener: (params: ProtocolIOS134.DOM.PowerEfficientPlaybackStateChangedEvent) => void): void; } interface DOMDebuggerApi { /** * Sets breakpoint on particular operation with DOM. */ setDOMBreakpoint(params: ProtocolIOS134.DOMDebugger.SetDOMBreakpointRequest): Promise; /** * Removes DOM breakpoint that was set using setDOMBreakpoint. */ removeDOMBreakpoint(params: ProtocolIOS134.DOMDebugger.RemoveDOMBreakpointRequest): Promise; /** * Sets breakpoint on particular event of given type. */ setEventBreakpoint(params: ProtocolIOS134.DOMDebugger.SetEventBreakpointRequest): Promise; /** * Removes breakpoint on particular event of given type. */ removeEventBreakpoint(params: ProtocolIOS134.DOMDebugger.RemoveEventBreakpointRequest): Promise; /** * Sets breakpoint on network activity for the given URL. */ setURLBreakpoint(params: ProtocolIOS134.DOMDebugger.SetURLBreakpointRequest): Promise; /** * Removes breakpoint from network activity for the given URL. */ removeURLBreakpoint(params: ProtocolIOS134.DOMDebugger.RemoveURLBreakpointRequest): Promise; } interface DOMStorageApi { /** * Enables storage tracking, storage events will now be delivered to the client. */ enable(): Promise; /** * Disables storage tracking, prevents storage events from being sent to the client. */ disable(): Promise; getDOMStorageItems(params: ProtocolIOS134.DOMStorage.GetDOMStorageItemsRequest): Promise; setDOMStorageItem(params: ProtocolIOS134.DOMStorage.SetDOMStorageItemRequest): Promise; removeDOMStorageItem(params: ProtocolIOS134.DOMStorage.RemoveDOMStorageItemRequest): Promise; on(event: 'domStorageItemsCleared', listener: (params: ProtocolIOS134.DOMStorage.DomStorageItemsClearedEvent) => void): void; on(event: 'domStorageItemRemoved', listener: (params: ProtocolIOS134.DOMStorage.DomStorageItemRemovedEvent) => void): void; on(event: 'domStorageItemAdded', listener: (params: ProtocolIOS134.DOMStorage.DomStorageItemAddedEvent) => void): void; on(event: 'domStorageItemUpdated', listener: (params: ProtocolIOS134.DOMStorage.DomStorageItemUpdatedEvent) => void): void; } interface DatabaseApi { /** * Enables database tracking, database events will now be delivered to the client. */ enable(): Promise; /** * Disables database tracking, prevents database events from being sent to the client. */ disable(): Promise; getDatabaseTableNames(params: ProtocolIOS134.Database.GetDatabaseTableNamesRequest): Promise; executeSQL(params: ProtocolIOS134.Database.ExecuteSQLRequest): Promise; on(event: 'addDatabase', listener: (params: ProtocolIOS134.Database.AddDatabaseEvent) => void): void; } interface DebuggerApi { /** * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. */ enable(): Promise; /** * Disables debugger for given page. */ disable(): Promise; /** * Set the async stack trace depth for the page. A value of zero disables recording of async stack traces. */ setAsyncStackTraceDepth(params: ProtocolIOS134.Debugger.SetAsyncStackTraceDepthRequest): Promise; /** * Activates / deactivates all breakpoints on the page. */ setBreakpointsActive(params: ProtocolIOS134.Debugger.SetBreakpointsActiveRequest): Promise; /** * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. */ setBreakpointByUrl(params: ProtocolIOS134.Debugger.SetBreakpointByUrlRequest): Promise; /** * Sets JavaScript breakpoint at a given location. */ setBreakpoint(params: ProtocolIOS134.Debugger.SetBreakpointRequest): Promise; /** * Removes JavaScript breakpoint. */ removeBreakpoint(params: ProtocolIOS134.Debugger.RemoveBreakpointRequest): Promise; /** * Continues execution until the current evaluation completes. This will trigger either a Debugger.paused or Debugger.resumed event. */ continueUntilNextRunLoop(): Promise; /** * Continues execution until specific location is reached. This will trigger either a Debugger.paused or Debugger.resumed event. */ continueToLocation(params: ProtocolIOS134.Debugger.ContinueToLocationRequest): Promise; /** * Steps over the statement. This will trigger either a Debugger.paused or Debugger.resumed event. */ stepOver(): Promise; /** * Steps into the function call. This will trigger either a Debugger.paused or Debugger.resumed event. */ stepInto(): Promise; /** * Steps out of the function call. This will trigger either a Debugger.paused or Debugger.resumed event. */ stepOut(): Promise; /** * Stops on the next JavaScript statement. */ pause(): Promise; /** * Resumes JavaScript execution. This will trigger a Debugger.resumed event. */ resume(): Promise; /** * Searches for given string in script content. */ searchInContent(params: ProtocolIOS134.Debugger.SearchInContentRequest): Promise; /** * Returns source for the script with given id. */ getScriptSource(params: ProtocolIOS134.Debugger.GetScriptSourceRequest): Promise; /** * Returns detailed information on given function. */ getFunctionDetails(params: ProtocolIOS134.Debugger.GetFunctionDetailsRequest): Promise; /** * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. */ setPauseOnExceptions(params: ProtocolIOS134.Debugger.SetPauseOnExceptionsRequest): Promise; /** * Set pause on assertions state. Assertions are console.assert assertions. */ setPauseOnAssertions(params: ProtocolIOS134.Debugger.SetPauseOnAssertionsRequest): Promise; /** * Pause when running the next JavaScript microtask. */ setPauseOnMicrotasks(params: ProtocolIOS134.Debugger.SetPauseOnMicrotasksRequest): Promise; /** * Change whether to pause in the debugger for internal scripts. The default value is false. */ setPauseForInternalScripts(params: ProtocolIOS134.Debugger.SetPauseForInternalScriptsRequest): Promise; /** * Evaluates expression on a given call frame. */ evaluateOnCallFrame(params: ProtocolIOS134.Debugger.EvaluateOnCallFrameRequest): Promise; /** * Sets whether the given URL should be in the list of blackboxed scripts, which are ignored when pausing/stepping/debugging. */ setShouldBlackboxURL(params: ProtocolIOS134.Debugger.SetShouldBlackboxURLRequest): Promise; /** * Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload. */ on(event: 'globalObjectCleared', listener: () => void): void; /** * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. */ on(event: 'scriptParsed', listener: (params: ProtocolIOS134.Debugger.ScriptParsedEvent) => void): void; /** * Fired when virtual machine fails to parse the script. */ on(event: 'scriptFailedToParse', listener: (params: ProtocolIOS134.Debugger.ScriptFailedToParseEvent) => void): void; /** * Fired when breakpoint is resolved to an actual script and location. */ on(event: 'breakpointResolved', listener: (params: ProtocolIOS134.Debugger.BreakpointResolvedEvent) => void): void; /** * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. */ on(event: 'paused', listener: (params: ProtocolIOS134.Debugger.PausedEvent) => void): void; /** * Fired when the virtual machine resumed execution. */ on(event: 'resumed', listener: () => void): void; /** * Fires when a new probe sample is collected. */ on(event: 'didSampleProbe', listener: (params: ProtocolIOS134.Debugger.DidSampleProbeEvent) => void): void; /** * Fired when a "sound" breakpoint action is triggered on a breakpoint. */ on(event: 'playBreakpointActionSound', listener: (params: ProtocolIOS134.Debugger.PlayBreakpointActionSoundEvent) => void): void; } interface GenericTypesApi { } interface HeapApi { /** * Enables Heap domain events. */ enable(): Promise; /** * Disables Heap domain events. */ disable(): Promise; /** * Trigger a full garbage collection. */ gc(): Promise; /** * Take a heap snapshot. */ snapshot(): Promise; /** * Start tracking heap changes. This will produce a `trackingStart` event. */ startTracking(): Promise; /** * Stop tracking heap changes. This will produce a `trackingComplete` event. */ stopTracking(): Promise; /** * Returns a preview (string, Debugger.FunctionDetails, or Runtime.ObjectPreview) for a Heap.HeapObjectId. */ getPreview(params: ProtocolIOS134.Heap.GetPreviewRequest): Promise; /** * Returns the strongly referenced Runtime.RemoteObject for a Heap.HeapObjectId. */ getRemoteObject(params: ProtocolIOS134.Heap.GetRemoteObjectRequest): Promise; /** * Information about the garbage collection. */ on(event: 'garbageCollected', listener: (params: ProtocolIOS134.Heap.GarbageCollectedEvent) => void): void; /** * Tracking started. */ on(event: 'trackingStart', listener: (params: ProtocolIOS134.Heap.TrackingStartEvent) => void): void; /** * Tracking stopped. */ on(event: 'trackingComplete', listener: (params: ProtocolIOS134.Heap.TrackingCompleteEvent) => void): void; } interface IndexedDBApi { /** * Enables events from backend. */ enable(): Promise; /** * Disables events from backend. */ disable(): Promise; /** * Requests database names for given security origin. */ requestDatabaseNames(params: ProtocolIOS134.IndexedDB.RequestDatabaseNamesRequest): Promise; /** * Requests database with given name in given frame. */ requestDatabase(params: ProtocolIOS134.IndexedDB.RequestDatabaseRequest): Promise; /** * Requests data from object store or index. */ requestData(params: ProtocolIOS134.IndexedDB.RequestDataRequest): Promise; /** * Clears all entries from an object store. */ clearObjectStore(params: ProtocolIOS134.IndexedDB.ClearObjectStoreRequest): Promise; } interface InspectorApi { /** * Enables inspector domain notifications. */ enable(): Promise; /** * Disables inspector domain notifications. */ disable(): Promise; /** * Sent by the frontend after all initialization messages have been sent. */ initialized(): Promise; on(event: 'evaluateForTestInFrontend', listener: (params: ProtocolIOS134.Inspector.EvaluateForTestInFrontendEvent) => void): void; on(event: 'inspect', listener: (params: ProtocolIOS134.Inspector.InspectEvent) => void): void; /** * Fired when the backend has alternate domains that need to be activated. */ on(event: 'activateExtraDomains', listener: (params: ProtocolIOS134.Inspector.ActivateExtraDomainsEvent) => void): void; } interface LayerTreeApi { /** * Enables compositing tree inspection. */ enable(): Promise; /** * Disables compositing tree inspection. */ disable(): Promise; /** * Returns the layer tree structure of the current page. */ layersForNode(params: ProtocolIOS134.LayerTree.LayersForNodeRequest): Promise; /** * Provides the reasons why the given layer was composited. */ reasonsForCompositingLayer(params: ProtocolIOS134.LayerTree.ReasonsForCompositingLayerRequest): Promise; on(event: 'layerTreeDidChange', listener: () => void): void; } interface MemoryApi { /** * Enables Memory domain events. */ enable(): Promise; /** * Disables Memory domain events. */ disable(): Promise; /** * Start tracking memory. This will produce a `trackingStart` event. */ startTracking(): Promise; /** * Stop tracking memory. This will produce a `trackingComplete` event. */ stopTracking(): Promise; /** * Memory pressure was encountered. */ on(event: 'memoryPressure', listener: (params: ProtocolIOS134.Memory.MemoryPressureEvent) => void): void; /** * Tracking started. */ on(event: 'trackingStart', listener: (params: ProtocolIOS134.Memory.TrackingStartEvent) => void): void; /** * Periodic tracking updates with event data. */ on(event: 'trackingUpdate', listener: (params: ProtocolIOS134.Memory.TrackingUpdateEvent) => void): void; /** * Tracking stopped. */ on(event: 'trackingComplete', listener: (params: ProtocolIOS134.Memory.TrackingCompleteEvent) => void): void; } interface NetworkApi { /** * Enables network tracking, network events will now be delivered to the client. */ enable(): Promise; /** * Disables network tracking, prevents network events from being sent to the client. */ disable(): Promise; /** * Specifies whether to always send extra HTTP headers with the requests from this page. */ setExtraHTTPHeaders(params: ProtocolIOS134.Network.SetExtraHTTPHeadersRequest): Promise; /** * Returns content served for the given request. */ getResponseBody(params: ProtocolIOS134.Network.GetResponseBodyRequest): Promise; /** * Toggles whether the resource cache may be used when loading resources in the inspected page. If true, the resource cache will not be used when loading resources. */ setResourceCachingDisabled(params: ProtocolIOS134.Network.SetResourceCachingDisabledRequest): Promise; /** * Loads a resource in the context of a frame on the inspected page without cross origin checks. */ loadResource(params: ProtocolIOS134.Network.LoadResourceRequest): Promise; /** * Fetches a serialized secure certificate for the given requestId to be displayed via InspectorFrontendHost.showCertificate. */ getSerializedCertificate(params: ProtocolIOS134.Network.GetSerializedCertificateRequest): Promise; /** * Resolves JavaScript WebSocket object for given request id. */ resolveWebSocket(params: ProtocolIOS134.Network.ResolveWebSocketRequest): Promise; /** * Enable interception of network requests. */ setInterceptionEnabled(params: ProtocolIOS134.Network.SetInterceptionEnabledRequest): Promise; /** * Add an interception. */ addInterception(params: ProtocolIOS134.Network.AddInterceptionRequest): Promise; /** * Remove an interception. */ removeInterception(params: ProtocolIOS134.Network.RemoveInterceptionRequest): Promise; /** * Continue an interception with no modifications. */ interceptContinue(params: ProtocolIOS134.Network.InterceptContinueRequest): Promise; /** * Provide response content for an intercepted response. */ interceptWithResponse(params: ProtocolIOS134.Network.InterceptWithResponseRequest): Promise; /** * Fired when page is about to send HTTP request. */ on(event: 'requestWillBeSent', listener: (params: ProtocolIOS134.Network.RequestWillBeSentEvent) => void): void; /** * Fired when HTTP response is available. */ on(event: 'responseReceived', listener: (params: ProtocolIOS134.Network.ResponseReceivedEvent) => void): void; /** * Fired when data chunk was received over the network. */ on(event: 'dataReceived', listener: (params: ProtocolIOS134.Network.DataReceivedEvent) => void): void; /** * Fired when HTTP request has finished loading. */ on(event: 'loadingFinished', listener: (params: ProtocolIOS134.Network.LoadingFinishedEvent) => void): void; /** * Fired when HTTP request has failed to load. */ on(event: 'loadingFailed', listener: (params: ProtocolIOS134.Network.LoadingFailedEvent) => void): void; /** * Fired when HTTP request has been served from memory cache. */ on(event: 'requestServedFromMemoryCache', listener: (params: ProtocolIOS134.Network.RequestServedFromMemoryCacheEvent) => void): void; /** * Fired when HTTP response has been intercepted. The frontend must response with Network.interceptContinue or Network.interceptWithRespons` to continue this response. */ on(event: 'responseIntercepted', listener: (params: ProtocolIOS134.Network.ResponseInterceptedEvent) => void): void; /** * Fired when WebSocket is about to initiate handshake. */ on(event: 'webSocketWillSendHandshakeRequest', listener: (params: ProtocolIOS134.Network.WebSocketWillSendHandshakeRequestEvent) => void): void; /** * Fired when WebSocket handshake response becomes available. */ on(event: 'webSocketHandshakeResponseReceived', listener: (params: ProtocolIOS134.Network.WebSocketHandshakeResponseReceivedEvent) => void): void; /** * Fired upon WebSocket creation. */ on(event: 'webSocketCreated', listener: (params: ProtocolIOS134.Network.WebSocketCreatedEvent) => void): void; /** * Fired when WebSocket is closed. */ on(event: 'webSocketClosed', listener: (params: ProtocolIOS134.Network.WebSocketClosedEvent) => void): void; /** * Fired when WebSocket frame is received. */ on(event: 'webSocketFrameReceived', listener: (params: ProtocolIOS134.Network.WebSocketFrameReceivedEvent) => void): void; /** * Fired when WebSocket frame error occurs. */ on(event: 'webSocketFrameError', listener: (params: ProtocolIOS134.Network.WebSocketFrameErrorEvent) => void): void; /** * Fired when WebSocket frame is sent. */ on(event: 'webSocketFrameSent', listener: (params: ProtocolIOS134.Network.WebSocketFrameSentEvent) => void): void; } interface PageApi { /** * Enables page domain notifications. */ enable(): Promise; /** * Disables page domain notifications. */ disable(): Promise; /** * Reloads the main frame of the inspected page. */ reload(params: ProtocolIOS134.Page.ReloadRequest): Promise; /** * Navigates current page to the given URL. */ navigate(params: ProtocolIOS134.Page.NavigateRequest): Promise; /** * Override's the user agent of the inspected page */ overrideUserAgent(params: ProtocolIOS134.Page.OverrideUserAgentRequest): Promise; /** * Allows the frontend to override the inspected page's settings. */ overrideSetting(params: ProtocolIOS134.Page.OverrideSettingRequest): Promise; /** * Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. */ getCookies(): Promise; /** * Deletes browser cookie with given name, domain and path. */ deleteCookie(params: ProtocolIOS134.Page.DeleteCookieRequest): Promise; /** * Returns present frame / resource tree structure. */ getResourceTree(): Promise; /** * Returns content of the given resource. */ getResourceContent(params: ProtocolIOS134.Page.GetResourceContentRequest): Promise; setBootstrapScript(params: ProtocolIOS134.Page.SetBootstrapScriptRequest): Promise; /** * Searches for given string in resource content. */ searchInResource(params: ProtocolIOS134.Page.SearchInResourceRequest): Promise; /** * Searches for given string in frame / resource tree structure. */ searchInResources(params: ProtocolIOS134.Page.SearchInResourcesRequest): Promise; /** * Requests that backend draw rulers in the inspector overlay */ setShowRulers(params: ProtocolIOS134.Page.SetShowRulersRequest): Promise; /** * Requests that backend shows paint rectangles */ setShowPaintRects(params: ProtocolIOS134.Page.SetShowPaintRectsRequest): Promise; /** * Emulates the given media for CSS media queries. */ setEmulatedMedia(params: ProtocolIOS134.Page.SetEmulatedMediaRequest): Promise; /** * Forces the given appearance for the page. */ setForcedAppearance(params: ProtocolIOS134.Page.SetForcedAppearanceRequest): Promise; /** * Capture a snapshot of the specified node that does not include unrelated layers. */ snapshotNode(params: ProtocolIOS134.Page.SnapshotNodeRequest): Promise; /** * Capture a snapshot of the page within the specified rectangle and coordinate system. */ snapshotRect(params: ProtocolIOS134.Page.SnapshotRectRequest): Promise; /** * Grab an archive of the page. */ archive(): Promise; on(event: 'domContentEventFired', listener: (params: ProtocolIOS134.Page.DomContentEventFiredEvent) => void): void; on(event: 'loadEventFired', listener: (params: ProtocolIOS134.Page.LoadEventFiredEvent) => void): void; /** * Fired once navigation of the frame has completed. Frame is now associated with the new loader. */ on(event: 'frameNavigated', listener: (params: ProtocolIOS134.Page.FrameNavigatedEvent) => void): void; /** * Fired when frame has been detached from its parent. */ on(event: 'frameDetached', listener: (params: ProtocolIOS134.Page.FrameDetachedEvent) => void): void; /** * Fired when frame has started loading. */ on(event: 'frameStartedLoading', listener: (params: ProtocolIOS134.Page.FrameStartedLoadingEvent) => void): void; /** * Fired when frame has stopped loading. */ on(event: 'frameStoppedLoading', listener: (params: ProtocolIOS134.Page.FrameStoppedLoadingEvent) => void): void; /** * Fired when frame schedules a potential navigation. */ on(event: 'frameScheduledNavigation', listener: (params: ProtocolIOS134.Page.FrameScheduledNavigationEvent) => void): void; /** * Fired when frame no longer has a scheduled navigation. */ on(event: 'frameClearedScheduledNavigation', listener: (params: ProtocolIOS134.Page.FrameClearedScheduledNavigationEvent) => void): void; /** * Fired when page's default appearance changes, even if there is a forced appearance. */ on(event: 'defaultAppearanceDidChange', listener: (params: ProtocolIOS134.Page.DefaultAppearanceDidChangeEvent) => void): void; } interface RecordingApi { } interface RuntimeApi { /** * Parses JavaScript source code for errors. */ parse(params: ProtocolIOS134.Runtime.ParseRequest): Promise; /** * Evaluates expression on global object. */ evaluate(params: ProtocolIOS134.Runtime.EvaluateRequest): Promise; /** * Calls the async callback when the promise with the given ID gets settled. */ awaitPromise(params: ProtocolIOS134.Runtime.AwaitPromiseRequest): Promise; /** * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. */ callFunctionOn(params: ProtocolIOS134.Runtime.CallFunctionOnRequest): Promise; /** * Returns a preview for the given object. */ getPreview(params: ProtocolIOS134.Runtime.GetPreviewRequest): Promise; /** * Returns properties of a given object. Object group of the result is inherited from the target object. */ getProperties(params: ProtocolIOS134.Runtime.GetPropertiesRequest): Promise; /** * Returns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend). */ getDisplayableProperties(params: ProtocolIOS134.Runtime.GetDisplayablePropertiesRequest): Promise; /** * Returns entries of given Map / Set collection. */ getCollectionEntries(params: ProtocolIOS134.Runtime.GetCollectionEntriesRequest): Promise; /** * Assign a saved result index to this value. */ saveResult(params: ProtocolIOS134.Runtime.SaveResultRequest): Promise; /** * Creates an additional reference to all saved values in the Console using the the given string as a prefix instead of $. */ setSavedResultAlias(params: ProtocolIOS134.Runtime.SetSavedResultAliasRequest): Promise; /** * Releases remote object with given id. */ releaseObject(params: ProtocolIOS134.Runtime.ReleaseObjectRequest): Promise; /** * Releases all remote objects that belong to a given group. */ releaseObjectGroup(params: ProtocolIOS134.Runtime.ReleaseObjectGroupRequest): Promise; /** * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. */ enable(): Promise; /** * Disables reporting of execution contexts creation. */ disable(): Promise; /** * Returns detailed information on the given function. */ getRuntimeTypesForVariablesAtOffsets(params: ProtocolIOS134.Runtime.GetRuntimeTypesForVariablesAtOffsetsRequest): Promise; /** * Enables type profiling on the VM. */ enableTypeProfiler(): Promise; /** * Disables type profiling on the VM. */ disableTypeProfiler(): Promise; /** * Enables control flow profiling on the VM. */ enableControlFlowProfiler(): Promise; /** * Disables control flow profiling on the VM. */ disableControlFlowProfiler(): Promise; /** * Returns a list of basic blocks for the given sourceID with information about their text ranges and whether or not they have executed. */ getBasicBlocks(params: ProtocolIOS134.Runtime.GetBasicBlocksRequest): Promise; /** * Issued when new execution context is created. */ on(event: 'executionContextCreated', listener: (params: ProtocolIOS134.Runtime.ExecutionContextCreatedEvent) => void): void; } interface ScriptProfilerApi { /** * Start tracking script evaluations. */ startTracking(params: ProtocolIOS134.ScriptProfiler.StartTrackingRequest): Promise; /** * Stop tracking script evaluations. This will produce a `trackingComplete` event. */ stopTracking(): Promise; /** * Tracking started. */ on(event: 'trackingStart', listener: (params: ProtocolIOS134.ScriptProfiler.TrackingStartEvent) => void): void; /** * Periodic tracking updates with event data. */ on(event: 'trackingUpdate', listener: (params: ProtocolIOS134.ScriptProfiler.TrackingUpdateEvent) => void): void; /** * Tracking stopped. Includes any buffered data during tracking, such as profiling information. */ on(event: 'trackingComplete', listener: (params: ProtocolIOS134.ScriptProfiler.TrackingCompleteEvent) => void): void; } interface SecurityApi { } interface ServiceWorkerApi { /** * Returns the initialization information for this target. */ getInitializationInfo(): Promise; } interface TargetApi { /** * If set to true, new targets will be paused on start waiting for resume command. Other commands can be dispatched on the target before it is resumed. */ setPauseOnStart(params: ProtocolIOS134.Target.SetPauseOnStartRequest): Promise; /** * Will resume target if it was paused on start. */ resume(params: ProtocolIOS134.Target.ResumeRequest): Promise; /** * Send an Inspector Protocol message to be dispatched to a Target's agents. */ sendMessageToTarget(params: ProtocolIOS134.Target.SendMessageToTargetRequest): Promise; on(event: 'targetCreated', listener: (params: ProtocolIOS134.Target.TargetCreatedEvent) => void): void; on(event: 'targetDestroyed', listener: (params: ProtocolIOS134.Target.TargetDestroyedEvent) => void): void; /** * This event is fired when provisional load is committed. Provisional target swaps with the current target. */ on(event: 'didCommitProvisionalTarget', listener: (params: ProtocolIOS134.Target.DidCommitProvisionalTargetEvent) => void): void; on(event: 'dispatchMessageFromTarget', listener: (params: ProtocolIOS134.Target.DispatchMessageFromTargetEvent) => void): void; } interface TimelineApi { /** * Enables Timeline domain events. */ enable(): Promise; /** * Disables Timeline domain events. */ disable(): Promise; /** * Starts capturing instrumentation events. */ start(params: ProtocolIOS134.Timeline.StartRequest): Promise; /** * Stops capturing instrumentation events. */ stop(): Promise; /** * Toggle auto capture state. If true the backend will disable breakpoints and start capturing on navigation. The backend will fire the autoCaptureStarted event when an auto capture starts. The frontend should stop the auto capture when appropriate and re-enable breakpoints. */ setAutoCaptureEnabled(params: ProtocolIOS134.Timeline.SetAutoCaptureEnabledRequest): Promise; /** * Instruments to enable when capture starts on the backend (e.g. auto capture or programmatic capture). */ setInstruments(params: ProtocolIOS134.Timeline.SetInstrumentsRequest): Promise; /** * Fired for every instrumentation event while timeline is started. */ on(event: 'eventRecorded', listener: (params: ProtocolIOS134.Timeline.EventRecordedEvent) => void): void; /** * Fired when recording has started. */ on(event: 'recordingStarted', listener: (params: ProtocolIOS134.Timeline.RecordingStartedEvent) => void): void; /** * Fired when recording has stopped. */ on(event: 'recordingStopped', listener: (params: ProtocolIOS134.Timeline.RecordingStoppedEvent) => void): void; /** * Fired when auto capture started. */ on(event: 'autoCaptureStarted', listener: () => void): void; } interface WorkerApi { /** * Enable Worker domain events. */ enable(): Promise; /** * Disable Worker domain events. */ disable(): Promise; /** * Sent after the frontend has sent all initialization messages and can resume this worker. This command is required to allow execution in the worker. */ initialized(params: ProtocolIOS134.Worker.InitializedRequest): Promise; /** * Send an Inspector Protocol message to be dispatched to a Worker's agents. */ sendMessageToWorker(params: ProtocolIOS134.Worker.SendMessageToWorkerRequest): Promise; on(event: 'workerCreated', listener: (params: ProtocolIOS134.Worker.WorkerCreatedEvent) => void): void; on(event: 'workerTerminated', listener: (params: ProtocolIOS134.Worker.WorkerTerminatedEvent) => void): void; on(event: 'dispatchMessageFromWorker', listener: (params: ProtocolIOS134.Worker.DispatchMessageFromWorkerEvent) => void): void; } }