import { firefox, type BrowserContext } from 'playwright-core'; import type { CamoucliPaths, SessionPaths } from '../state/paths.js'; import type { Logger } from '../util/log.js'; import { type LaunchInput, type ResolvedLaunchConfig } from './config.js'; export interface LaunchedSession { context: BrowserContext; browserVersion: string; installPath: string; sessionPaths: SessionPaths; resolvedConfig: ResolvedLaunchConfig; } export interface PreparedPersistentCamoufoxLaunch { browserVersion: string; installPath: string; sessionPaths: SessionPaths; resolvedConfig: ResolvedLaunchConfig; userDataDir: string; launchOptions: Parameters[1]; } export interface BrowserLaunchProbe { attempted: boolean; success: boolean; version?: string | undefined; executablePath?: string | undefined; error?: { message: string; } | undefined; } export declare function launchPersistentCamoufox(paths: CamoucliPaths, sessionName: string, input: LaunchInput, logger?: Logger): Promise; export declare function preparePersistentCamoufoxLaunch(paths: CamoucliPaths, sessionName: string, input: LaunchInput, _logger?: Logger): Promise; export declare function probeCamoufoxLaunch(paths: CamoucliPaths, version?: string, logger?: Logger): Promise;