/** * `bin/esiur`'s implementation: a thin launcher for `Esiur.CLI` (the .NET * global tool that generates TypeScript/JS resource stubs from C# resource * definitions). This package has no CLI logic of its own — it locates the * installed dotnet tool and forwards straight through to it, or explains how * to install it. */ declare const TOOL_PACKAGE_ID = "Esiur.CLI"; interface ProcessRunResult { status: number | null; stdout?: string; error?: Error; } /** Injected in tests so the detection/forwarding logic never needs a real dotnet install to exercise. */ interface ProcessRunner { run(command: string, args: string[], stdio: "inherit" | "ignore" | "pipe"): ProcessRunResult; fileExists(path: string): boolean; } declare const defaultRunner: ProcessRunner; /** Default install location of a `dotnet tool install -g` global tool's launcher shim. */ declare function defaultDotnetToolShimPath(platform?: NodeJS.Platform): string; declare function isDotnetInstalled(runner?: ProcessRunner): boolean; type EsiurCliLocation = { path: string; } | { installedElsewhere: true; } | undefined; /** * Locate the installed `Esiur.CLI` global tool. Checks the default global-tool * shim path first (covers the overwhelming majority of installs); if that's * absent but `dotnet tool list -g` still reports the package, it's installed * at a non-default location (e.g. via `--tool-path`) this wrapper can't * reliably resolve — reported distinctly so `main` can explain rather than * silently fail, and so a bare `esiur` PATH lookup (which could resolve back * to *this* wrapper if it's ever installed under the same name) is never needed. */ declare function findEsiurCli(runner?: ProcessRunner): EsiurCliLocation; declare function installGuidance(runner?: ProcessRunner): string; declare function customPathGuidance(): string; /** Runs the wrapper end to end; returns the process exit code. */ declare function main(argv: string[], runner?: ProcessRunner): number; export { type EsiurCliLocation, type ProcessRunResult, type ProcessRunner, TOOL_PACKAGE_ID, customPathGuidance, defaultDotnetToolShimPath, defaultRunner, findEsiurCli, installGuidance, isDotnetInstalled, main };