/** * Git utility functions for the Soleri CLI scaffold flow. * * Uses child_process.execFile (not exec) for security — no shell interpolation. * Never throws — all functions return { ok, error? } for graceful handling. */ export interface GitResult { ok: boolean; error?: string; } /** Check if the `git` binary is available on PATH. */ export declare function isGitInstalled(): Promise; /** Check if the `gh` (GitHub CLI) binary is available on PATH. */ export declare function isGhInstalled(): Promise; /** Run `git init` in the given directory. */ export declare function gitInit(dir: string): Promise; /** Stage all files and create an initial commit. */ export declare function gitInitialCommit(dir: string, message: string): Promise; /** Add a remote origin URL. */ export declare function gitAddRemote(dir: string, url: string): Promise; /** Push to origin main with the -u flag. */ export declare function gitPush(dir: string): Promise; /** Create a GitHub repo using the `gh` CLI. */ export declare function ghCreateRepo(name: string, options: { visibility: 'public' | 'private'; dir: string; }): Promise;