/** * Remint a short-lived GitHub App installation token and apply it for git/gh. * Never prints the token. Safe for ChimpHands agents and GHA runners. */ export type RefreshGitAuthResult = { ok: true; repositoryFullName: string; expiresAtMillis: number; }; /** * Mint a ~1h GitHub App installation token and apply it for subsequent git/gh * in this process (and this GHA job when GITHUB_ENV is set). * * Does **not** print the token. Applies via: * - process.env GH_TOKEN / GITHUB_TOKEN * - $GITHUB_ENV when present (GitHub Actions) * - origin remote URL rewrite (https github.com) when possible * - `gh auth login --with-token` + `gh auth setup-git` when `gh` exists */ export declare function refreshGitAuth(): Promise; /** True when stderr/stdout looks like expired / rejected GitHub credentials. */ export declare function looksLikeGitAuthFailure(text: string): boolean;