import { type PluginFn } from '@japa/runner/types'; import type { PluginConfig } from '../types/main.js'; /** * Browser client plugin configures the lifecycle hooks to create * Playwright browser instances and browser contexts when running * tests or suites. * * This is the main entry point for the @japa/browser-client plugin. * * @param config - Plugin configuration options * * @example * ```ts * import { browserClient } from '@japa/browser-client' * * export const plugins: Config['plugins'] = [ * browserClient({ * runInSuites: ['browser'], * tracing: { * enabled: true, * event: 'onError', * cleanOutputDirectory: true, * outputDirectory: './traces' * }, * contextOptions: { * viewport: { width: 1280, height: 720 } * } * }) * ] * ``` */ export declare function browserClient(config: PluginConfig): PluginFn;