import { type GitRunner } from '../project.js';
/**
 * Normalize a git remote URL to an `https://github.com/<owner>/<repo>` URL, or undefined when
 * it is not a GitHub remote. Handles the scp-style (`git@github.com:o/r.git`), ssh
 * (`ssh://git@github.com/o/r.git`), and https (`https://github.com/o/r.git`) forms, dropping
 * a `.git` suffix, an embedded credential, and a trailing slash.
 */
export declare function githubUrlFromRemote(remote: string): string | undefined;
/** The repo's GitHub URL from its `origin` remote, or undefined (no remote / not GitHub). */
export declare function githubUrlFor(cwd: string, git?: GitRunner): Promise<string | undefined>;
/** The `{ owner, repo }` a GitHub remote names, or undefined when it is not a GitHub remote (#1050). */
export declare function githubSlugFromRemote(remote: string): {
    owner: string;
    repo: string;
} | undefined;
/** The repo's `{ owner, repo }` from its `origin` remote, or undefined (no remote / not GitHub) (#1050). */
export declare function githubSlugFor(cwd: string, git?: GitRunner): Promise<{
    owner: string;
    repo: string;
} | undefined>;
//# sourceMappingURL=github.d.ts.map