/** * Pull-request creation over the GitHub/Gitea REST APIs (no gh CLI). * Shared by the orchestrator WS receiver and the task-run git pipeline. */ export interface CreatePullRequestInput { /** https clone URL, e.g. https://github.com/owner/repo.git */ repoUrl: string; headBranch: string; baseBranch: string; title: string; body?: string; /** PAT with repo scope (GitHub) / token with write scope (Gitea). */ token: string; } export interface CreatedPullRequest { url: string; number: number; } /** True when the URL points at github.com (else treated as Gitea-compatible). */ export declare function isGitHubUrl(repoUrl: string): boolean; /** owner/repo parsed from an https clone URL (null when unparseable). */ export declare function parseRepoSlug(repoUrl: string): { owner: string; repo: string; } | null; /** * POST the pull request. Throws on any failure - callers treat PR * creation as best-effort and surface the error text in their reports. */ export declare function createPullRequest(input: CreatePullRequestInput): Promise;