import { IDashboardAPIClient } from "@empiricalrun/shared-types/api/base"; export interface GitHubRepoInfo { owner: string; repo: string; } export declare function parseGitHubUrl(url: string): GitHubRepoInfo; export interface PullRequestInfo { number: number; html_url: string; head: { ref: string; sha: string; }; base: { ref: string; sha: string; }; state: string; title: string; body: string; created_at: string; updated_at: string; closed_at: string; merged_at: string; merge_commit_sha: string; commits: number; additions: number; deletions: number; changed_files: number; user: { login: string; }; mergeable_state: "clean" | "dirty" | "unstable" | "unknown"; } export declare function getExistingPR({ owner, repo, branchName, apiClient, }: { owner: string; repo: string; branchName: string; apiClient: IDashboardAPIClient; }): Promise; export declare function getMergeableState({ owner, repo, pullRequest, apiClient, }: { owner: string; repo: string; pullRequest: PullRequestInfo; apiClient: IDashboardAPIClient; }): Promise<"clean" | "dirty" | "unstable" | "unknown">; export declare function getMergeableStateDescription(state: "clean" | "dirty" | "unstable" | "unknown" | string): string; export declare function createPullRequest({ owner, repo, title, head, base, body, labels, apiClient, }: { owner: string; repo: string; title: string; head: string; base: string; body: string; labels?: string[]; apiClient: IDashboardAPIClient; }): Promise; export declare function updatePullRequest({ owner, repo, prNumber, body, apiClient, }: { owner: string; repo: string; prNumber: number; body?: string; apiClient: IDashboardAPIClient; }): Promise; export declare function findOrCreatePullRequest({ owner, repo, branchName, title, body, base, labels, apiClient, }: { owner: string; repo: string; branchName: string; title: string; body: string; base: string; labels?: string[]; apiClient: IDashboardAPIClient; }): Promise<{ pr: PullRequestInfo; isNew: boolean; }>; //# sourceMappingURL=index.d.ts.map