import { BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, EnsureIssueResult, FileOwnerRule, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, ReattemptPlatformAutomergeConfig, RepoParams, RepoResult, UpdatePrConfig } from "../types.js"; import { BranchStatus } from "../../../types/branch-status.js"; import { BbsPr } from "./types.js"; //#region lib/modules/platform/bitbucket-server/index.d.ts declare const id = "bitbucket-server"; declare function initPlatform({ endpoint, token, username, password, gitAuthor }: PlatformParams): Promise; declare function getRepos(): Promise; declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise; declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise; declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise; declare function getBranchForceRebase(_branchName: string): Promise; declare function getPr(prNo: number, refreshCache?: boolean): Promise; declare function getPrList(): Promise; declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise; declare function getBranchPr(branchName: string): Promise; declare function refreshPr(number: number): Promise; declare function getBranchStatus(branchName: string): Promise; declare function getBranchStatusCheck(branchName: string, context: string): Promise; declare function setBranchStatus({ branchName, context, description, state, url: targetUrl }: BranchStatusConfig): Promise; declare function findIssue(title: string): Promise; declare function ensureIssue({ title }: EnsureIssueConfig): Promise; declare function getIssueList(): Promise; declare function ensureIssueClosing(title: string): Promise; declare function addAssignees(iid: number, assignees: string[]): Promise; declare function addReviewers(prNo: number, reviewers: string[]): Promise; /** * Resolves Bitbucket users by email address, * restricted to users who have REPO_READ permission on the target repository. * * @param emailAddress - A string that could be the user's email address. * @returns List of usernames for active, matched users. */ declare function getUsernamesByEmail(emailAddress: string): Promise; declare function deleteLabel(issueNo: number, label: string): Promise; declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise; declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise; declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: rawDescription, platformPrOptions }: CreatePRConfig): Promise; declare function reattemptPlatformAutomerge({ number, platformPrOptions }: ReattemptPlatformAutomergeConfig): Promise; declare function updatePr({ number: prNo, prTitle: title, prBody: rawDescription, state, bitbucketInvalidReviewers, targetBranch }: UpdatePrConfig & { bitbucketInvalidReviewers?: string[] | undefined; }): Promise; declare function mergePr({ branchName, id: prNo }: MergePRConfig): Promise; declare function expandGroupMembers(reviewers: string[]): Promise; declare function extractRulesFromCodeOwnersLines(cleanedLines: string[]): FileOwnerRule[]; declare function massageMarkdown(input: string): string; declare function maxBodyLength(): number; //#endregion export { addAssignees, addReviewers, createPr, deleteLabel, ensureComment, ensureCommentRemoval, ensureIssue, ensureIssueClosing, expandGroupMembers, extractRulesFromCodeOwnersLines, findIssue, findPr, getBranchForceRebase, getBranchPr, getBranchStatus, getBranchStatusCheck, getIssueList, getJsonFile, getPr, getPrList, getRawFile, getRepos, getUsernamesByEmail, id, initPlatform, initRepo, massageMarkdown, maxBodyLength, mergePr, reattemptPlatformAutomerge, refreshPr, setBranchStatus, updatePr }; //# sourceMappingURL=index.d.ts.map