/** Result from running the installed binary and parsing its reported version. */ export interface InstalledVersionVerification { ok: boolean; actual?: string; path?: string; } /** Paths and verifier used while replacing a downloaded binary update. */ export interface BinaryReplacementOptions { targetPath: string; tempPath: string; backupPath: string; expectedVersion: string; verifyInstalledVersion: (expectedVersion: string) => Promise; } /** * Parse update subcommand arguments. * Returns undefined if not an update command. */ export declare function parseUpdateArgs(args: string[]): { force: boolean; check: boolean; } | undefined; export declare function resolveUpdateMethodForTest(ompPath: string, bunBinDir: string | undefined): "bun" | "binary"; /** * Atomically replace the installed binary and roll back if version verification fails. */ export declare function replaceBinaryForUpdate(options: BinaryReplacementOptions): Promise; /** * Run the update command. */ export declare function runUpdateCommand(opts: { force: boolean; check: boolean; }): Promise; /** * Print update command help. */ export declare function printUpdateHelp(): void;