/** Absolute path to `bin` on PATH, or null if not found. */ export declare function findExecutable(bin: string): string | null; export declare function hasExecutable(bin: string): boolean; /** Test hook — forget cached lookups. */ export declare function clearExecutableCache(): void; /** A directly-spawnable target: a command plus fixed leading args (e.g. node + a .js). */ export interface SpawnTarget { command: string; prefixArgs: string[]; } /** * Resolve `bin` (or an explicit `override` path) to a directly-spawnable target. * Non-Windows and real `.exe`/`.com` hits pass through untouched; Windows npm * shims are unwrapped to the executable they delegate to. Returns null when * nothing is found. */ export declare function resolveSpawnTarget(bin: string, override?: string): SpawnTarget | null;