import type { BrowserCapabilities } from '@serenity-js/web'; import { BrowsingSession, type Cookie, type CookieData } from '@serenity-js/web'; import type * as playwright from 'playwright-core'; import { type ExtraBrowserContextOptions } from '../../ExtraBrowserContextOptions.js'; import { SerenitySelectorEngines } from '../../selector-engines/index.js'; import { PlaywrightPage } from './PlaywrightPage.js'; /** * Playwright-specific implementation of [`BrowsingSession`](https://serenity-js.org/api/web/class/BrowsingSession/). * * @group Models */ export declare abstract class PlaywrightBrowsingSession extends BrowsingSession { protected readonly extraBrowserContextOptions: Partial; protected readonly selectors: playwright.Selectors; protected readonly serenitySelectorEngines: SerenitySelectorEngines; private currentPlaywrightBrowserContext; protected constructor(extraBrowserContextOptions: Partial, selectors: playwright.Selectors); /** * Returns [basic meta-data](https://serenity-js.org/api/web/interface/BrowserCapabilities/) about the browser associated with this ability. * * **Please note** that since Playwright does not expose information about the operating system * the tests are running on, **Serenity/JS assumes that the tests are running locally** * and therefore returns the value of Node.js `process.platform` for `platformName`. */ abstract browserCapabilities(): Promise; cookie(name: string): Promise; setCookie(cookie: CookieData): Promise; deleteAllCookies(): Promise; protected browserContext(): Promise; protected abstract createBrowserContext(): Promise; } //# sourceMappingURL=PlaywrightBrowsingSession.d.ts.map