import type { CamoucliPaths } from '../state/paths.js'; import { type PlatformArch, type PlatformOs } from '../util/platform.js'; export interface BrowserInstallRecord { version: string; tag: string; sourceRepo: string; assetName: string; assetUrl: string; rootDir: string; executablePath: string; installedAt: string; platform: PlatformOs; arch: PlatformArch; } export interface BrowserRegistry { currentVersion?: string | undefined; installs: Record; } export interface BrowserInstallListing { currentVersion?: string | undefined; installs: BrowserInstallRecord[]; } export declare function loadBrowserRegistry(paths: CamoucliPaths): Promise; export declare function saveBrowserRegistry(paths: CamoucliPaths, registry: BrowserRegistry): Promise; export declare function setInstalledBrowser(paths: CamoucliPaths, record: BrowserInstallRecord, makeCurrent?: boolean): Promise; export declare function setCurrentBrowser(paths: CamoucliPaths, version: string): Promise; export declare function removeInstalledBrowser(paths: CamoucliPaths, version: string): Promise; export declare function resolveInstalledBrowser(paths: CamoucliPaths, version?: string): Promise; export declare function listInstalledBrowsers(paths: CamoucliPaths): Promise; export declare function requireInstalledBrowser(paths: CamoucliPaths, version?: string): Promise;