/** * Dynamic Playwright loader. * Playwright is an optional dependency — this module handles its absence gracefully. */ import type { BrowserType } from 'playwright'; /** * Minimal interface for the dynamically-loaded Playwright module. * Using a structural interface instead of `any` provides type safety at call sites. */ export interface PlaywrightModule { chromium: BrowserType; firefox: BrowserType; webkit: BrowserType; } /** * Check if Playwright is available (installed). */ export declare function isPlaywrightAvailable(): boolean; /** * Dynamically load the Playwright module. * Throws a user-friendly error if not installed. */ export declare function loadPlaywright(): PlaywrightModule; /** * Reset internal cache (for testing). */ export declare function resetPlaywrightCache(): void; //# sourceMappingURL=playwright-loader.d.ts.map