import type { BrowserPlatform } from "@puppeteer/browsers"; import { type SupportedBrowser, type SupportedDriver, type DownloadProgressCallback } from "../utils"; type VersionToPathMap = Record>; type BinaryName = Exclude; type BinaryKey = `${BinaryName}_${BrowserPlatform}`; type OsName = string; type OsVersion = string; type OsPackagesKey = `${OsName}_${OsVersion}`; export type RegistryFileContents = { binaries: Record; osPackages: Record>; meta: { version: number; }; }; declare class Registry { private registryPath; private registry; getBinaryPath(name: BinaryName, platform: BrowserPlatform, version: string): Promise; getOsPackagesPath(name: OsName, version: OsVersion): Promise; hasOsPackages(name: OsName, version: OsVersion): boolean; getMatchedDriverVersion(driverName: SupportedDriver, platform: BrowserPlatform, browserVersion: string): string | null; getMatchedBrowserVersion(browserName: SupportedBrowser, platform: BrowserPlatform, browserVersion?: string): string | null; installBinary(name: BinaryName, platform: BrowserPlatform, version: string, installFn: (downloadProgressCallback: DownloadProgressCallback) => Promise): Promise; installOsPackages(osName: OsName, version: OsVersion, installFn: (downloadProgressCallback: DownloadProgressCallback) => Promise): Promise; private readRegistry; private writeRegistry; private addBinaryToRegistry; private addOsPackageToRegistry; private getBinaryVersions; private hasBinaryVersion; } declare const _default: Registry; export default _default;