import type { BranchStatus } from '../../../types'; import type { BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, EnsureIssueResult, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, RepoParams, RepoResult, UpdatePrConfig } from '../types'; export interface CodeCommitPr extends Pr { body: string; destinationCommit: string; sourceCommit: string; } interface Config { repository?: string; defaultBranch?: string; region?: string; prList?: CodeCommitPr[]; } export declare const id = "codecommit"; export declare const config: Config; export declare function initPlatform({ endpoint, username, password, token: awsToken, }: PlatformParams): Promise; export declare function initRepo({ repository, endpoint, }: RepoParams): Promise; export declare function getPrList(): Promise; export declare function findPr({ branchName, prTitle, state, }: FindPRConfig): Promise; export declare function getBranchPr(branchName: string): Promise; export declare function getPr(pullRequestId: number): Promise; export declare function getRepos(): Promise; export declare function massageMarkdown(input: string): string; export declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise; export declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise; export declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: body, }: CreatePRConfig): Promise; export declare function updatePr({ number: prNo, prTitle: title, prBody: body, state, }: UpdatePrConfig): Promise; export declare function mergePr({ branchName, id: prNo, strategy, }: MergePRConfig): Promise; export declare function addReviewers(prNo: number, reviewers: string[]): Promise; export declare function addAssignees(iid: number, assignees: string[]): 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 deleteLabel(prNumber: number, label: string): 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, }: BranchStatusConfig): Promise; export declare function ensureComment({ number, topic, content, }: EnsureCommentConfig): Promise; export declare function ensureCommentRemoval(removeConfig: EnsureCommentRemovalConfig): Promise; export {};