import type { BranchStatus } from '../../../types'; import type { BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, EnsureIssueResult, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, RepoParams, RepoResult, UpdatePrConfig } from '../types'; import type { BbsPr } from './types'; export declare const id = "bitbucket-server"; 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, ignorePrAuthor, gitUrl, }: RepoParams): Promise; export declare function getBranchForceRebase(_branchName: string): Promise; export declare function getPr(prNo: number, refreshCache?: boolean): Promise; export declare function getPrList(refreshCache?: boolean): Promise; export declare function findPr({ branchName, prTitle, state, refreshCache, includeOtherAuthors, }: FindPRConfig): Promise; export declare function getBranchPr(branchName: string): Promise; export declare function refreshPr(number: number): Promise; export declare function getBranchStatus(branchName: string): Promise; export declare function getBranchStatusCheck(branchName: string, context: string): Promise; export declare function setBranchStatus({ branchName, context, description, state, url: targetUrl, }: BranchStatusConfig): Promise; export declare function findIssue(title: string): Promise; export declare function ensureIssue({ title, }: EnsureIssueConfig): Promise; export declare function getIssueList(): Promise; export declare function ensureIssueClosing(title: string): Promise; export declare function addAssignees(iid: number, assignees: string[]): Promise; export declare function addReviewers(prNo: number, reviewers: string[]): Promise; export declare function deleteLabel(issueNo: number, label: string): Promise; export declare function ensureComment({ number, topic, content, }: EnsureCommentConfig): Promise; export declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise; export declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: rawDescription, platformOptions, }: CreatePRConfig): Promise; export declare function updatePr({ number: prNo, prTitle: title, prBody: rawDescription, state, bitbucketInvalidReviewers, targetBranch, }: UpdatePrConfig & { bitbucketInvalidReviewers: string[] | undefined; }): Promise; export declare function mergePr({ branchName, id: prNo, }: MergePRConfig): Promise; export declare function massageMarkdown(input: string): string;