import { Browser, BrowserContext, ConnectOverCDPOptions, Page } from 'playwright';
import { Configuration } from '../../config.js';
import { Logger } from '../../logger.js';
export declare class PlaywrightService {
    protected logger: Logger;
    protected config: Configuration;
    protected browser?: Browser;
    protected context?: BrowserContext;
    protected targetId?: string;
    protected currentPage?: Page;
    protected cachedPages: Map<string, Page>;
    protected endpointUrl: string;
    constructor(logger: Logger, config: Configuration);
    connectOverCDP(options?: ConnectOverCDPOptions): Promise<void>;
    disconnect(): Promise<void>;
    protected fillCacheForAllPages(pages: Page[]): Promise<void>;
    setCurrentPage(targetId: string): Promise<void>;
    protected getPageTargetId(page: Page): Promise<string | null>;
    getCurrentPage(): Page | undefined;
}
//# sourceMappingURL=playwright.d.ts.map