import { NovaWindowsDriver } from '../driver'; export declare function getCurrentContext(this: NovaWindowsDriver): Promise; export declare function setContext(this: NovaWindowsDriver, name?: string | null): Promise; export declare function getContexts(this: NovaWindowsDriver): Promise; export interface WebViewDetails { /** * Web view details as returned by /json/version CDP endpoint * @example * { * "Browser": "Edg/145.0.3800.97", * "Protocol-Version": "1.3", * "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0", * "V8-Version": "14.5.40.9", * "WebKit-Version": "537.36 (@f4c49d5241f148220b99eb7f045ac370a1694a15)", * "webSocketDebuggerUrl": "ws://localhost:10900/devtools/browser/7039e1b9-f75d-44eb-8583-7279c107bb18" * } */ info?: CDPVersionResponse; /** * Web view details as returned by /json/list CDP endpoint * @example // TODO: change example to not include Spotify / use mock data * [ { * "description": "", * "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@80be69ef794ba862ff256b0b23f051cbbc32e1ed/inspector.html?ws=localhost:9222/devtools/page/21C6035BC3E0A67D0BB6AE10F4A66D4A", * "faviconUrl": "https://xpui.app.spotify.com/favicon.ico", * "id": "21C6035BC3E0A67D0BB6AE10F4A66D4A", * "title": "Spotify - Web Player: Music for everyone", * "type": "page", * "url": "https://xpui.app.spotify.com/index.html", * "webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/21C6035BC3E0A67D0BB6AE10F4A66D4A" * }, { * "description": "", * "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@80be69ef794ba862ff256b0b23f051cbbc32e1ed/inspector.html?ws=localhost:9222/devtools/page/7E7008B3C464CD91224ADF976115101F", * "id": "7E7008B3C464CD91224ADF976115101F", * "title": "", * "type": "worker", * "url": "", * "webSocketDebuggerUrl": "ws://localhost:10900/devtools/page/7E7008B3C464CD91224ADF976115101F" * } ] */ pages?: CDPListResponse; } interface CDPVersionResponse { 'Browser': string; 'Protocol-Version': string; 'User-Agent': string; 'V8-Version': string; 'WebKit-Version': string; 'webSocketDebuggerUrl': string; } interface CDPListResponseEntry { 'description': string; 'devtoolsFrontendUrl': string; 'faviconUrl': string; 'id': string; 'title': string; 'type': string; 'url': string; 'webSocketDebuggerUrl': string; } type CDPListResponse = CDPListResponseEntry[]; export declare function getWebViewDetails(this: NovaWindowsDriver, waitForWebviewMs?: number): Promise; export {}; //# sourceMappingURL=contexts.d.ts.map