import { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, EnsureIssueResult, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, RepoParams, RepoResult, UpdatePrConfig } from "../types.js"; import { BranchStatus } from "../../../types/branch-status.js"; //#region lib/modules/platform/bitbucket/index.d.ts declare const id = "bitbucket"; declare function resetPlatform(): void; declare function initPlatform({ endpoint, username, password, token }: PlatformParams): Promise; declare function getRepos(config: AutodiscoverConfig): 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 }: RepoParams): Promise; declare function getPrList(): Promise; declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise; declare function getPr(prNo: number): Promise; declare function getBranchPr(branchName: string): Promise; declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): 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; /** * Remove or transform markdown into Bitbucket supported syntax. * * See https://bitbucket.org/tutorials/markdowndemo/src for supported markdown syntax */ /** * Remove or transform markdown into Bitbucket supported syntax. * * See https://bitbucket.org/tutorials/markdowndemo/src for supported markdown syntax */ declare function massageMarkdown(input: string): string; declare function maxBodyLength(): number; declare function ensureIssue({ title, reuseTitle, body }: EnsureIssueConfig): Promise; declare function getIssueList(): Promise; declare function ensureIssueClosing(title: string): Promise; declare function addAssignees(_prNr: number, _assignees: string[]): Promise; declare function addReviewers(prId: number, reviewers: string[]): Promise; declare function deleteLabel(): never; declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise; declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise; declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: description, platformPrOptions }: CreatePRConfig): Promise; declare function updatePr({ number: prNo, prTitle: title, prBody: description, state, targetBranch }: UpdatePrConfig): Promise; declare function mergePr({ branchName, id: prNo, strategy: mergeStrategy }: MergePRConfig): Promise; //#endregion export { addAssignees, addReviewers, createPr, deleteLabel, ensureComment, ensureCommentRemoval, ensureIssue, ensureIssueClosing, findIssue, findPr, getBranchPr, getBranchStatus, getBranchStatusCheck, getIssueList, getJsonFile, getPr, getPrList, getRawFile, getRepos, id, initPlatform, initRepo, massageMarkdown, maxBodyLength, mergePr, resetPlatform, setBranchStatus, updatePr }; //# sourceMappingURL=index.d.ts.map