export type InitializeGitResult = { outcome: "initialized"; } | { outcome: "alreadyARepository"; } | { outcome: "notInitialized"; reason: "gitNotInstalled" | "failed"; }; export type CommitScaffoldResult = { outcome: "committed"; } | { outcome: "nothingToCommit"; } | { outcome: "notCommitted"; reason: "failed"; }; export declare const INITIAL_COMMIT_MESSAGE = "Initial commit"; export declare function initializeGitRepository(dir: string): InitializeGitResult; /** * Stage everything under `dir` and create the first commit. Called only when * `initializeGitRepository` just made the repo — never inside someone else's * work tree. Soft from the caller's side: a missing git identity or an empty * tree returns `notCommitted` rather than throwing. */ export declare function commitScaffoldedRepository(dir: string): CommitScaffoldResult; export declare function gitAvailable(): boolean; export declare function isInsideGitWorkTree(dir: string): boolean; //# sourceMappingURL=localGit.d.ts.map