/** * OpenKernel — Browser Plugin * * Playwright-backed browser automation. Provides a shared BrowserController * that the browser worker handler uses. Emits NOTIFICATION events on * significant browser actions (configurable). * * If Playwright is not installed, the controller degrades to fetch-based * read-only mode automatically. */ import type { Plugin } from '../types.js'; import { BrowserController } from '../browser/browser-controller.js'; import type { BrowserControllerOptions } from '../browser/browser-controller.js'; export interface BrowserPluginOptions extends BrowserControllerOptions { /** Emit a NOTIFICATION event on these action types. */ notifyOn?: string[]; /** Keep the browser open between actions (default: true). */ persistent?: boolean; } export declare function createBrowserPlugin(options?: BrowserPluginOptions): Plugin; export { BrowserController }; export type { BrowserControllerOptions, BrowserAction, BrowserActionResult } from '../browser/browser-controller.js';