import type { BranchStatus } from '../../../types'; import type { BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueResult, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, RepoParams, RepoResult, UpdatePrConfig } from '../types'; import { AzurePr } from './types'; export declare const id = "azure"; export declare function initPlatform({ endpoint, token, username, password, }: PlatformParams): Promise; export declare function getRepos(): Promise; export declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise; export declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise; export declare function initRepo({ repository, cloneSubmodules, }: RepoParams): Promise; export declare function getPrList(): Promise; export declare function getPr(pullRequestId: number): Promise; export declare function findPr({ branchName, prTitle, state, targetBranch, }: FindPRConfig): Promise; export declare function getBranchPr(branchName: string, targetBranch?: string): Promise; export declare function getBranchStatusCheck(branchName: string, context: string): Promise; export declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise; export declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: body, labels, draftPR, platformOptions, }: CreatePRConfig): Promise; export declare function updatePr({ number: prNo, prTitle: title, prBody: body, state, platformOptions, targetBranch, }: UpdatePrConfig): Promise; export declare function ensureComment({ number, topic, content, }: EnsureCommentConfig): Promise; export declare function ensureCommentRemoval(removeConfig: EnsureCommentRemovalConfig): Promise; export declare function setBranchStatus({ branchName, context, description, state, url: targetUrl, }: BranchStatusConfig): Promise; export declare function mergePr({ branchName, id: pullRequestId, strategy, }: MergePRConfig): Promise; export declare function massageMarkdown(input: string): string; export declare function findIssue(): Promise; export declare function ensureIssue(): Promise; export declare function ensureIssueClosing(): Promise; export declare function getIssueList(): Promise; /** * * @param {number} issueNo * @param {string[]} assignees */ export declare function addAssignees(issueNo: number, assignees: string[]): Promise; /** * * @param {number} prNo * @param {string[]} reviewers */ export declare function addReviewers(prNo: number, reviewers: string[]): Promise; export declare function deleteLabel(prNumber: number, label: string): Promise;