import type { DoctorDeps, LocalInstallMode, StateSummary } from './types.js'; /** * Detect the running CLI's install mode locally. Used as a fallback * when `GET /api/status#installMode` is unreachable (daemon down). * On a healthy daemon the API value supersedes this, since the * daemon's own entry-point resolution is the authoritative signal. * * Heuristic order: * 1. `isMonorepo` flag from deps — set by the orchestrator before * calling this — wins. Monorepo work is unambiguous. * 2. `cli.globalPath` (if resolved) inside `/usr/local/lib/node_modules/`, * `/opt/homebrew/lib/node_modules/` (Apple Silicon Homebrew), * `~/.nvm/`, or `~/.volta/` → `npm-global`. * 3. CLI path inside an arbitrary `node_modules/` (not one of the * global patterns above) → `npm-local`. * 4. Otherwise: `unknown`. */ export declare function detectLocalInstallMode(isMonorepo: boolean, cliGlobalPath: string | null): LocalInstallMode; /** * Collect the §4.7.0 state summary. Each sub-step is independent * and swallows its own failures — partial collection is preferred * over no collection at all. The doctor's checks below operate on * whatever fields landed. */ export declare function collectStateSummary(deps: DoctorDeps): Promise; //# sourceMappingURL=state-summary.d.ts.map