import type { Browser as PlayWrightBrowser } from 'playwright'; import type { Decorator, PluginConfig } from './types/main.js'; /** * Decorates the browser by re-writing "newContext" and "newPage" * methods and making them pass through custom decorators. * * This ensures that all pages and contexts created from the browser * instance are automatically decorated with custom methods. * * @param browser - The Playwright browser instance to decorate * @param decorators - Array of decorators to apply * @param config - Plugin configuration options * * @example * ```ts * const decoratedBrowser = decorateBrowser( * browser, * [addAssertions, addPauseMethods], * { assertions: { timeout: 10000 } } * ) * ``` */ export declare function decorateBrowser(browser: PlayWrightBrowser, decorators: Decorator[], config?: PluginConfig): PlayWrightBrowser;