UNPKG

histoire

Version:

A fast story book powered by Vite

20 lines • 1.31 kB
import type { BrowserPresence, BrowserSetupCandidate, BrowserSetupDriver, BrowserSetupPolicy } from './types.js'; /** Filesystem/platform boundary used for bounded candidate inventory. */ export interface BrowserCandidateDiscoveryOptions { /** Operating system whose finite known paths are inspected. */ platform?: NodeJS.Platform; /** Environment used only to expand known per-user installation roots. */ env?: NodeJS.ProcessEnv; /** Checks one known executable path; it must not launch the file. */ fileStatus?: (path: string) => Promise<BrowserPresence>; } /** * Enumerates finite candidates in policy order using public driver APIs and known paths. * It never launches a browser, scans caches, resolves PATH, or starts a process. */ export declare function discoverBrowserCandidates(policy: BrowserSetupPolicy, driver: BrowserSetupDriver, options?: BrowserCandidateDiscoveryOptions): Promise<BrowserSetupCandidate[]>; /** Returns whether this driver supports Playwright's full Chromium channel. */ export declare function supportsFullChromiumChannel(version: string): boolean; /** Returns whether the driver uses a separate headless-shell binary by default. */ export declare function supportsSeparatedHeadlessShell(version: string): boolean; //# sourceMappingURL=candidates.d.ts.map