import type Protocol from 'devtools-protocol'; import type { ICdpClient } from '../../../cdp/CdpClient.js'; import { Deferred } from '../../../utils/Deferred.js'; import type { Result } from '../../../utils/result.js'; import type { EventManager } from '../events/EventManager.js'; import type { NetworkStorage } from '../network/NetworkStorage.js'; import type { ChannelProxy } from '../script/ChannelProxy.js'; import type { PreloadScriptStorage } from '../script/PreloadScriptStorage.js'; import type { RealmStorage } from '../script/RealmStorage.js'; export declare class CdpTarget { #private; static create(targetId: Protocol.Target.TargetID, cdpClient: ICdpClient, cdpSessionId: Protocol.Target.SessionID, realmStorage: RealmStorage, eventManager: EventManager, preloadScriptStorage: PreloadScriptStorage, networkStorage: NetworkStorage): CdpTarget; private constructor(); /** Returns a promise that resolves when the target is unblocked. */ get targetUnblocked(): Deferred>; get targetId(): Protocol.Target.TargetID; get cdpClient(): ICdpClient; /** Needed for CDP escape path. */ get cdpSessionId(): Protocol.Target.SessionID; /** Calls `Fetch.enable` with the added network intercepts. */ fetchEnable(): Promise; /** Calls `Fetch.disable`. */ fetchDisable(): Promise; /** * All the ProxyChannels from all the preload scripts of the given * BrowsingContext. */ getChannels(): ChannelProxy[]; }