/** * Detects whether the npm global bin directory is on PATH, so we can warn * the user when `npm install -g` succeeds but the `zeroshot` binary is * unreachable (e.g. non-standard Node installs whose global bin dir isn't * exported). */ interface PathCheckOptions { readonly installPrefix?: string; readonly pathEnv?: string; } type PathCheckResult = { readonly onPath: true; readonly binDir: null; } | { readonly onPath: boolean; readonly binDir: string; }; declare function getGlobalBinDir(installPrefix: string): string; declare function isDirOnPath(dir: string, pathEnv?: string): boolean; declare function getPathExportLine(dir: string): string; declare function checkBinDirOnPath(options?: PathCheckOptions): PathCheckResult; declare function printPathWarning(binDir: string): void; declare const _default: { getGlobalBinDir: typeof getGlobalBinDir; isDirOnPath: typeof isDirOnPath; getPathExportLine: typeof getPathExportLine; checkBinDirOnPath: typeof checkBinDirOnPath; printPathWarning: typeof printPathWarning; }; export = _default;