///
import { EventEmitter } from 'events';
import { ExecutionContext } from './execution-context.js';
import { Page } from './page.js';
import { RemoteElement } from './remote-element.js';
import { RemoteObject } from './remote-object.js';
import { CdpFrame, RemoteExpression } from './types.js';
export declare class Frame extends EventEmitter {
page: Page;
frameId: string;
parentFrame?: Frame | undefined;
childFrames: Set;
loaded: boolean;
ready: boolean;
failed: boolean;
url: string;
securityOrigin: string;
mimeType: string;
protected _isolatedWorld: ExecutionContext | null;
protected _defaultExecCtx: ExecutionContext | null;
protected _isolatedWorldPromise: Promise | null;
constructor(page: Page, frameId: string, parentFrame?: Frame | undefined);
get logger(): import("../logger.js").Logger;
isMainFrame(): boolean;
getCurrentExecutionContext(): Promise;
protected initIsolatedWorld(): Promise;
getDefaultExecutionContext(): Promise;
clearExecutionContexts(): void;
private verifyToolkitLoaded;
evaluate(pageFn: RemoteExpression, ...args: any[]): Promise;
evaluateElement(pageFn: RemoteExpression, ...args: any[]): Promise;
evaluateJson(pageFn: RemoteExpression, ...args: any[]): Promise;
document(): Promise;
querySelectorAll(selector: string): Promise;
querySelector(selector: string): Promise;
onNavigated(cdpFrame: CdpFrame): void;
onStoppedLoading(): void;
captureHtmlSnapshot(): Promise;
private htmlSnapshotPopulateFrameIds;
private htmlSnapshotEvalWithFrameRefs;
private htmlSnapshotResolveFrameRefs;
private withRetryOnContextLoss;
}
//# sourceMappingURL=frame.d.ts.map