export interface GitInitResult { initialized: boolean; committed: boolean; error?: string; } export declare function initGit(dir: string): Promise; export declare function hasGit(): boolean; export declare function hasGitUser(): { name: string | null; email: string | null; }; export declare function configureGitUser(name: string, email: string): Promise; /** * Placeholder identity used for the initial commit when the machine has no git * identity and we cannot ask for one (stdin closed / non-TTY). Applied with * `git -c` so it stays scoped to this one commit — never written to the user's * global config, and never written to the repo config either. */ export declare const PLACEHOLDER_GIT_NAME = "HQ"; export declare const PLACEHOLDER_GIT_EMAIL = "hq@localhost"; /** * Commit with an explicit identity passed per-invocation. Used for the * non-interactive initial commit so a truly clean box still gets a complete, * committed scaffold instead of a half-initialized repo. */ export declare function gitCommitWithIdentity(dir: string, message: string, name: string, email: string): Promise; export declare function gitCommit(dir: string, message: string): Promise; //# sourceMappingURL=git.d.ts.map