/** * GitHub repository reference. */ export interface GitHubRepo { owner: string; repo: string; } /** * Get the origin remote URL from git, if available. * @param cwd Working directory (defaults to process.cwd()) */ export declare function getGitRemoteUrl(cwd?: string): string | null; /** * Parse a GitHub repository from a git remote URL. * Returns null for non-GitHub remotes. * * Supported formats: * https://github.com/owner/repo.git → { owner, repo } * git@github.com:owner/repo.git → { owner, repo } * https://github.com/owner/repo → { owner, repo } * * @param url Git remote URL */ export declare function parseGitHubUrl(url: string): GitHubRepo | null; /** * Get the GitHub repository from the current git remote. * Returns null if not in a git repo or remote is not GitHub. * * @param cwd Working directory (defaults to process.cwd()) */ export declare function getGitHubRepo(cwd?: string): GitHubRepo | null; /** * Parse a GitHub issue reference into owner, repo, and issue number. * * Supported formats: * #123 → { number: 123 } (owner/repo must be provided separately) * https://github.com/owner/repo/issues/123 → { owner, repo, number: 123 } * owner/repo#123 → { owner, repo, number: 123 } */ export declare function parseGitHubIssueRef(ref: string, defaultRepo?: GitHubRepo): { owner: string; repo: string; number: number; } | null; //# sourceMappingURL=remote.d.ts.map