/** * Browser Pool * Reuses browser instances for better performance in journey testing */ type Browser = any; type BrowserContext = any; import type { PlaywrightConfig } from '../types/journey-types'; export declare class BrowserPool { private static instance; private static contexts; /** * Get or create browser instance */ static getBrowser(config: PlaywrightConfig): Promise; /** * Create new browser context * Contexts provide isolation between test runs */ static createContext(browser: Browser, config: PlaywrightConfig, contextId: string): Promise; /** * Get existing context */ static getContext(contextId: string): BrowserContext | undefined; /** * Close specific context */ static closeContext(contextId: string): Promise; /** * Close all contexts */ static closeAllContexts(): Promise; /** * Cleanup browser and all contexts */ static cleanup(): Promise; /** * Check if browser is active */ static isActive(): boolean; /** * Get number of active contexts */ static getActiveContextCount(): number; /** * Force cleanup on process exit */ static setupCleanupHandlers(): void; } export {}; //# sourceMappingURL=browser-pool.d.ts.map