export type HostExecutableCandidate = { path: string; mtimeMs: number; }; export declare function statExecutableFile(candidate: string): { mtimeMs: number; } | undefined; export declare function isHostExecutableFile(candidate: string): boolean; /** * Common host CLI installation directories outside launchd/GUI default PATH * (Homebrew, npm/pnpm/volta/bun/cargo globals, nvm/fnm/mise shims, Windows user bins). */ export declare function collectFallbackSearchDirs(env?: NodeJS.ProcessEnv, platform?: NodeJS.Platform, home?: string): string[]; export type FindHostExecutableOptions = { names: ReadonlyArray; configuredPath?: string; envVar?: string; extraSearchDirs?: ReadonlyArray; extraExecutablePaths?: ReadonlyArray; includeFallbackDirs?: boolean; env?: NodeJS.ProcessEnv; platform?: NodeJS.Platform; home?: string; }; /** * Collect all matching executable candidates on the host, preserving search order: * explicit path/env override (exclusive) -> env.PATH -> extraSearchDirs -> fallback dirs -> extraExecutablePaths. */ export declare function collectHostExecutableCandidates(options: FindHostExecutableOptions): HostExecutableCandidate[]; export declare function findHostExecutable(options: FindHostExecutableOptions): string | undefined;