/** * Local git helpers for the deploy flow. * * The CLI pushes generated code to GitHub with the user's own local git (their * credentials / credential helper) — not through apso.ai. The platform only * needs the repo *connected* to the service so the provisioner can clone it at * deploy time. */ export declare function gitAvailable(): boolean; export declare function isGitRepo(cwd: string): boolean; export declare function initRepo(cwd: string): void; export declare function getOriginUrl(cwd: string): string | null; /** Parse `owner/repo` from an https or ssh GitHub remote URL. */ export declare function parseRepoFullName(url: string | null): string | null; /** The repo the local project is already wired to, if any (owner/repo). */ export declare function localRepoFullName(cwd: string): string | null; export declare function setOrigin(cwd: string, repoUrl: string): void; export declare function hasUncommittedChanges(cwd: string): boolean; /** Stage everything and commit, unless there is nothing to commit. */ export declare function commitAll(cwd: string, message: string): boolean; /** Attribution trailer appended to every commit the CLI creates. */ export declare const APSO_COMMIT_TRAILER = "Generated with Apso (https://apso.ai)"; /** Push the current HEAD to origin/, setting upstream. */ export declare function pushHead(cwd: string, branch: string): void; export declare function httpsUrlFor(repoFullName: string): string;