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 "../../../types/index.js"; import { BbsPr } from "./types.js"; //#region lib/modules/platform/bitbucket-server/index.d.ts export declare const id = "bitbucket-server"; export declare function initPlatform({ endpoint, token, username, password, gitAuthor }: 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, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise; export declare function getBranchForceRebase(_branchName: string): Promise; export declare function getPr(prNo: number, refreshCache?: boolean): Promise; export declare function getPrList(): Promise; export declare function findPr({ branchName, prTitle, state, 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; /** * 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. */ export declare function getUsernamesByEmail(emailAddress: 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, platformPrOptions }: CreatePRConfig): Promise; export declare function reattemptPlatformAutomerge({ number, platformPrOptions }: ReattemptPlatformAutomergeConfig): 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 expandGroupMembers(reviewers: string[]): Promise; export declare function extractRulesFromCodeOwnersLines(cleanedLines: string[]): FileOwnerRule[]; export declare function massageMarkdown(input: string): string; export declare function maxBodyLength(): number; //#endregion //# sourceMappingURL=index.d.ts.map