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"; import "../../../types/index.js"; //#region lib/modules/platform/bitbucket/index.d.ts export declare const id = "bitbucket"; export declare function resetPlatform(): void; export declare function initPlatform({ endpoint, username, password, token }: PlatformParams): Promise; export declare function getRepos(config: AutodiscoverConfig): 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 }: RepoParams): Promise; export declare function getPrList(): Promise; export declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise; export declare function getPr(prNo: number): Promise; export declare function getBranchPr(branchName: string): Promise; export declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise; export declare function getBranchStatusCheck(branchName: string, context: string): Promise; export declare function setBranchStatus({ branchName, context, description, state, url: targetUrl }: BranchStatusConfig): Promise; /** * Remove or transform markdown into Bitbucket supported syntax. * * See https://bitbucket.org/tutorials/markdowndemo/src for supported markdown syntax */ export declare function massageMarkdown(input: string): string; export declare function maxBodyLength(): number; 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(_prNr: number, _assignees: string[]): Promise; export declare function addReviewers(prId: number, reviewers: string[]): Promise; export declare function deleteLabel(): never; 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: description, draftPR, platformPrOptions }: CreatePRConfig): Promise; export declare function updatePr({ number: prNo, prTitle: title, prBody: description, state, targetBranch }: UpdatePrConfig): Promise; export declare function mergePr({ branchName, id: prNo, strategy: mergeStrategy }: MergePRConfig): Promise; //#endregion //# sourceMappingURL=index.d.ts.map