export declare function commandExists(command: string, cwd?: string, pathValue?: string): boolean; /** Force the next commandExists() probes to re-resolve (used by tests/installs). */ export declare function resetCommandExistsCache(): void; export declare function commandPathValue(env: Record | undefined, platform?: NodeJS.Platform): string; export declare function extraToolDirectories(): string[]; /** Force the next extraToolDirectories() call to rescan (used by tests). */ export declare function resetExtraToolDirectories(): void; export declare function augmentedPathValue(platform?: NodeJS.Platform): string; export declare function mergeEnvironment(overrides: Record | undefined, platform?: NodeJS.Platform): NodeJS.ProcessEnv; export declare function resolveCommandPath(command: string, cwd?: string, platform?: NodeJS.Platform, pathValue?: string): string | undefined; /** * Resolve a command the way a process spawn will need it: on Windows an * extension-less PATH shim (e.g. nvm's sh-script wrappers) resolves first but * cannot be spawned, so prefer .cmd/.bat/.exe variants when they exist. */ export declare function resolveSpawnableCommandPath(command: string, cwd?: string, platform?: NodeJS.Platform, pathValue?: string): string | undefined; /** * Windows cannot spawn .cmd/.bat files directly (Node raises EINVAL without a * shell), so route them through cmd.exe. Shared by the LSP client and the CLI * runner spawn helper. */ export declare function cmdShellSpawnSpec(command: string, args: string[], platform?: NodeJS.Platform, comSpec?: string | undefined): { command: string; args: string[]; }; //# sourceMappingURL=command.d.ts.map