/** * Central dependency registry for CLEO runtime dependency verification. * * This is the SSoT for all external dependency checks. Every CLEO subsystem * that needs to gate a feature on tool availability MUST use functions from * this module rather than implementing ad-hoc `which` / `commandExists` calls. * * Relationship to other modules: * - `platform.ts` — provides `commandExists()` and `PLATFORM` utilities. * - `health.ts` — calls `checkAllDependencies()` inside `coreDoctorReport()`. * - `code/parser.ts` — `isTreeSitterAvailable()` is delegated here for the * `tree-sitter` dependency check. * * @task T507 */ import type { DependencyCategory, DependencyCheckResult, DependencyReport, DependencySpec } from '@cleocode/contracts'; /** * Return all registered dependency specifications. * * Useful for generating documentation, help text, or install guides without * running any system checks. * * @returns Immutable array of {@link DependencySpec} objects. */ export declare function getDependencySpecs(): DependencySpec[]; /** * Check a single dependency by name and return its runtime result. * * @param name - Canonical dependency identifier (must match a registered spec). * @returns The check result, or an error result if the name is unknown. */ export declare function checkDependency(name: string): Promise; /** * Check all registered CLEO dependencies and return a consolidated report. * * Skips platform-specific dependencies that do not apply to the current OS. * For example, `unzip` and `zip` are only checked on Linux and macOS. * * @returns A {@link DependencyReport} with results for every applicable dependency. */ export declare function checkAllDependencies(): Promise; export type { DependencyCategory, DependencyCheckResult, DependencyReport, DependencySpec }; //# sourceMappingURL=dependencies.d.ts.map