/** * Preflight System Dependency Checker * Issue #96: npm install CLI support * Migrated from scripts/preflight-check.sh */ import { DependencyCheck, DependencyStatus, PreflightResult } from '../types'; type EnvLike = Readonly>; /** * Issue #4480: where the usage declaration (`CM_ANTIGRAVITY_USAGE`) is read for the * preflight. The shell first, else the server's `.env` (the declaration is * documented as the server's setting, and `init --force` / `quickstart` run where * that `.env` already exists). An unreadable `.env` is no declaration. */ export declare function preflightDeclarationEnv(env?: EnvLike): EnvLike; /** * Whether `command` is an executable file in one of `PATH`'s directories. Reads * the file system only: no child process is started (Issue #4480). */ export declare function isCommandOnPath(command: string, pathValue?: string | undefined): boolean; /** * Preflight checker for system dependencies */ export declare class PreflightChecker { /** * Check a single dependency * MF-SEC-1: Uses spawnSync with array args (no shell injection) */ checkDependency(dep: DependencyCheck, declarationEnv?: EnvLike): Promise; /** * Check all dependencies */ checkAll(): Promise; /** * Extract version number from command output */ private extractVersion; /** * Get installation hint for a dependency */ static getInstallHint(name: string): string; } export {}; //# sourceMappingURL=preflight.d.ts.map