/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { CommandLogger } from "../logging.js"; /** * Check if a pull request exists. * * @param token - GitHub authentication token * @returns Returns true if pull request exists */ export declare function pullRequestExists(token: string, title: string, owner: string, repo: string, log: CommandLogger): Promise<{ found: boolean; url?: string; number?: number; }>; /** * Get commit info for a commit from GitHub. * * @param token - GitHub authentication token * @param commit_sha - Commit id for which we need pull request information */ export declare function getCommitInfo(token: string, owner: string, repo: string, commit_sha: string, log: CommandLogger): Promise; /** * Create a pull request. * * @param auth - GitHub authentication token * @param source - Source branch name * @param target - Target branch name * @param author - Assignee name * @returns Pull request number */ export declare function createPullRequest(pr: { token: string; owner: string; repo: string; source: string; target: string; assignee: string; title: string; description: string; reviewers: string[]; labels: string[]; }, log: CommandLogger): Promise; //# sourceMappingURL=github.d.ts.map