export interface LaunchBrowserInstance { close: () => Promise; } /** * Supported browser types */ export declare enum LaunchBrowserTypes { CHROME = 0, EDGE = 1 } /** * Internal browser implementation constraints */ export interface LaunchBrowserImpl { /** * Return whether the given `browserType` is supported */ isSupportedBrowser: (browserType: LaunchBrowserTypes) => Promise; /** * Create temp directory for browser profile * * @param baseDirName The base directory name for the created directory */ createTempBrowserDir: (baseDirName: string) => Promise; /** * Launch the browser */ launchAsync: (browserType: LaunchBrowserTypes, args: string[]) => Promise; /** * Close current browser instance */ close: () => Promise; }