export type WhichFn = (bin: string) => string | null; /** * mise installs cradle's managed tools (nono, pi, …) as shims under * `~/.local/share/mise/shims`. Under the default `mise activate` (hook-env) * setup that directory isn't on PATH, and a freshly installed tool isn't on the * running process's PATH until the next prompt — so right after a `mise install` * a plain PATH lookup misses it. Resolve the shim directly so `run`/`doctor` * see tools mise just installed. Returns the shim path or `null` when absent. */ export declare function miseShimPath(bin: string, home?: string): string | null; /** A `WhichFn` backed by a static table — the shared PATH-lookup double for in-process tests. */ export declare function createWhichStub(table: Record): WhichFn; /** Resolve an executable on PATH (or in mise's shims), returning its path or `null` when absent. */ export declare function lookupBin(bin: string, which?: WhichFn): string | null; /** * Resolve an executable on PATH or throw a friendly error pointing the user at * `cradle doctor`. Returns the resolved path on success. */ export declare function requireBin(bin: string, which?: WhichFn): string;