import { type AgentId } from './registry.js'; export interface AgentDetection { installed: boolean; via: 'bin' | 'config-dir' | 'forced' | 'none'; binPath?: string; } export type DetectionMap = Record; export interface PathEnv { path?: string; pathext?: string; platform?: NodeJS.Platform; exists?: (file: string) => boolean; } /** Resolves a binary on PATH without shelling out; honors PATHEXT on win32. */ export declare function findOnPath(bin: string, env?: PathEnv): string | undefined; export declare function detectAgents(forced?: AgentId[]): DetectionMap; //# sourceMappingURL=detect.d.ts.map