import type { AccessibilityNode, BrowserBackend, BrowserContextInfo, BrowserCookie, BrowserPage, ConsoleEvent, DownloadBehavior, FrameInfo, LoadState, NetworkEvent, PageInfo, StorageEntry, StorageType, UrlMatcher, WaitForSelectorOptions } from "./types.js"; export declare class PlaywrightBackend implements BrowserBackend { private readonly endpoint; private browser?; private defaultContext?; private readonly pages; private readonly contexts; private readonly pageContexts; private readonly requestIds; private readonly responses; private readonly networkLog; private readonly consoleLog; private nextPageId; private nextContextId; private nextRequestId; private tracingContextId?; constructor(endpoint: string); 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<{ contextId: string; isDefault: boolean; }[]>; 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 ensureBrowser; private ensureContext; private getContext; private getPage; private rememberContext; private contextIdFor; private rememberPage; private describePage; private recordRequest; private recordResponse; private recordRequestFailed; private recordConsole; private pushNetwork; private pushConsole; }