import { type RuntimeState } from './config.js'; import { type RuntimeReleaseManifest } from './runtime-release.js'; import { type VersionPointer } from './version-store.js'; export interface AdoptionResult { status: 'already-adopted' | 'completed'; selection: VersionPointer; oldPid?: number; newPid?: number; } export declare function adoptVersionStore(options: { currentVersion: string; manifestUrl?: string; fetchImpl?: typeof fetch; platform?: NodeJS.Platform; arch?: string; prepare?: (manifest: RuntimeReleaseManifest, manifestUrl: string) => Promise; bootstrapCliPath?: string; runLauncher?: (launchSpecPath: string, launcherPath: string) => void | Promise; restartBootstrap?: (launchSpecPath: string, bootstrapCliPath: string) => void | Promise; verifyReplacement?: (oldPid: number, version: string, selection: VersionPointer) => Promise; }): Promise;