import { type CacheDirContext } from "./cacheDir.js"; import type { Logger } from "./loader.js"; import type { InstallReport } from "./installer.js"; export { getGitBashDir, getCachedBashPath, resolveWindowsBash, installBash, }; export type { WindowsBashDeps }; export declare const MINGIT_VERSION = "2.55.0.2"; interface WindowsBashDeps { platform?: string; arch?: string; env?: Record; fileExists?: (p: string) => boolean; verifyBash?: (bashPath: string) => Promise; whereGit?: () => Promise; installMinGit?: (destDir: string, deps: WindowsBashDeps) => Promise; logger?: Logger; } declare function getGitBashDir(ctx?: CacheDirContext): string; declare function getCachedBashPath(ctx?: CacheDirContext): string; /** * Resolve a runnable Git Bash on Windows: cache copy, existing Git for * Windows, or a JIT MinGit install (when `autoInstall`, the default). * Rejects with an actionable error when bash can't be resolved or installed. */ declare function resolveWindowsBash(options?: { cacheDir?: string; autoInstall?: boolean; deps?: WindowsBashDeps; }): Promise; /** * `doc-detective install bash` — provision Git Bash on Windows hosts. * Returns one structured InstallReport, mirroring installRuntime / * installBrowsers. Off Windows the report is `skipped` (POSIX systems use * the system bash). */ declare function installBash(options?: { force?: boolean; dryRun?: boolean; ctx?: CacheDirContext; deps?: WindowsBashDeps; }): Promise; //# sourceMappingURL=windowsBash.d.ts.map