import type { RunStoreGit } from "./store-merge.js";
/** A failed switch is retried at most this often. */
export declare const AUTH_HEAL_RETRY_MS: number;
export interface AuthHealResult {
    healed: boolean;
    detail: string;
}
/** The HTTPS URL of a GitHub SSH remote (`git@github.com:o/r.git`, `ssh://git@github.com/o/r`), else undefined. */
export declare function githubHttpsUrl(remote: string): string | undefined;
/**
 * Called after a transport command failed authentication. Switches the named
 * remote to HTTPS through gh when that answers, and otherwise says what to do.
 * `git` is the unguarded runner, so the probe never re-enters the backoff.
 */
export declare function healStoreAuth(cwd: string, remoteName: string, remote: string, git: RunStoreGit, now?: number): Promise<AuthHealResult>;
