import type { AccessibilityNode, BrowserBackend, BrowserContextInfo, BrowserCookie, BrowserPage, ConsoleEvent, DownloadBehavior, FrameInfo, LoadState, NetworkEvent, PageInfo, StorageEntry, StorageType, UrlMatcher, WaitForSelectorOptions } from "./types.js"; import { type CdpConnectionOptions } from "./raw-cdp-connection.js"; export declare class RawCdpBackend implements BrowserBackend { private readonly connection; private readonly pages; private readonly networkLog; private readonly consoleLog; private tracingPageId?; private tracingFallbackStartedAt?; private unsubscribeEvents?; private readonly automaticLoadTimeoutMs; constructor(options: CdpConnectionOptions); connect(): Promise; close(): Promise; newPage(url?: string, contextId?: string): Promise; listPages(): Promise; navigate(pageId: string, url: string): Promise; reload(pageId: string): Promise; goBack(pageId: string): Promise; goForward(pageId: string): Promise; pageInfo(pageId: string): Promise; title(pageId: string): Promise; textContent(pageId: string, selector: string): Promise; content(pageId: string): Promise; evaluate(pageId: string, expression: string): Promise; waitForSelector(pageId: string, selector: string, options?: WaitForSelectorOptions): Promise; waitForUrl(pageId: string, matcher: UrlMatcher, timeoutMs?: number): Promise; waitForLoadState(pageId: string, state: LoadState, timeoutMs?: number): Promise; waitForExpression(pageId: string, expression: string, timeoutMs?: number, pollMs?: number): Promise; click(pageId: string, selector: string): Promise; fill(pageId: string, selector: string, value: string): Promise; press(pageId: string, key: string): Promise; hover(pageId: string, selector: string): Promise; selectOption(pageId: string, selector: string, values: string[]): Promise; dragAndDrop(pageId: string, sourceSelector: string, targetSelector: string): Promise; uploadFile(pageId: string, selector: string, paths: string[]): Promise; focus(pageId: string, selector: string): Promise; blur(pageId: string, selector: string): Promise; screenshot(pageId: string, fullPage?: boolean): Promise<{ data: string; mimeType: string; }>; networkEvents(pageId: string, limit?: number): Promise; responseBody(pageId: string, requestId: string): Promise<{ body: string; base64Encoded: boolean; }>; consoleEvents(pageId: string, limit?: number): Promise; cookies(pageId: string): Promise; setCookie(pageId: string, cookie: BrowserCookie): Promise; clearCookies(_pageId: string): Promise; storage(pageId: string, type: StorageType): Promise; setStorage(pageId: string, type: StorageType, key: string, value: string): Promise; clearStorage(pageId: string, type: StorageType): Promise; grantPermissions(pageId: string, permissions: string[]): Promise; resetPermissions(_pageId: string): Promise; setGeolocation(pageId: string, latitude: number, longitude: number, accuracy?: number): Promise; listFrames(pageId: string): Promise; frameEvaluate(pageId: string, frameSelector: string, expression: string): Promise; createContext(): Promise; listContexts(): Promise; closeContext(contextId: string): Promise; printPdf(pageId: string): Promise<{ data: string; mimeType: "application/pdf"; }>; setDownloadBehavior(behavior: DownloadBehavior, downloadPath?: string): Promise; startTracing(pageId: string): Promise; stopTracing(pageId: string): Promise<{ data: string; mimeType: "application/json"; }>; accessibilitySnapshot(pageId: string): Promise; setBlockedUrls(pageId: string, patterns: string[]): Promise; closePage(pageId: string): Promise; private navigateHistory; private evaluateInPage; private ensureAttached; private waitForPageLoad; private isDocumentComplete; private waitForPageLoadEvent; private createTargetOrReuseExisting; private attach; private recordEvent; private pushNetwork; private pushConsole; private elementCenter; private injectFileInputFiles; private fileInputFileCount; private waitForNetworkIdle; private readStream; }