import { spawn, execSync } from "node:child_process"; import { type Platform } from "./platform.js"; import { parseFlags, printUsage, DEFAULT_VERSION, DEFAULT_ENDPOINT, type InstallerFlags } from "./flags.js"; export { parseFlags, printUsage, DEFAULT_VERSION, DEFAULT_ENDPOINT }; export type { InstallerFlags }; /** * Main installer entry point. Returns the exit code (0 = success, non-zero = * error). Designed to be callable from both the bin script and tests. */ export declare function runInstaller(flags: InstallerFlags, opts?: { platform?: Platform; homeDir?: string; fetchImpl?: typeof fetch; spawnImpl?: typeof spawn; /** Override for child_process.execSync (testing). */ execSyncImpl?: typeof execSync; publicKeyHex?: string; }): Promise;