import { StatusResult } from '../git/storage'; import { PlatformConfig, RepoParams, RepoConfig, Pr, Issue, VulnerabilityAlert, CreatePRConfig, EnsureIssueConfig, BranchStatusConfig, FindPRConfig, EnsureCommentConfig, CommitFilesConfig } from '../common'; import { BranchStatus } from '../../types'; export declare function initPlatform({ endpoint, token, }: { token: string; endpoint: string; }): Promise; export declare function getRepos(): Promise; export declare function cleanRepo(): Promise; export declare function initRepo({ repository, gitPrivateKey, localDir, optimizeForDisabled, }: RepoParams): Promise; export declare function getRepoForceRebase(): Promise; export declare function setBaseBranch(branchName?: string): Promise; export declare function setBranchPrefix(branchPrefix: string): Promise; export declare function getFileList(branchName?: string): Promise; export declare function branchExists(branchName: string): Promise; export declare function getBranchStatus(branchName: string, requiredStatusChecks?: string[] | null): Promise; export declare function createPr({ branchName, prTitle: title, prBody: rawDescription, labels, useDefaultBranch, platformOptions, }: CreatePRConfig): Promise; export declare function getPr(iid: number): Promise; export declare function getPrFiles(mrNo: number): Promise; export declare function updatePr(iid: number, title: string, description: string): Promise; export declare function mergePr(iid: number): Promise; export declare function getPrBody(input: string): string; export declare function getBranchPr(branchName: string): Promise; export declare function getAllRenovateBranches(branchPrefix: string): Promise; export declare function isBranchStale(branchName: string): Promise; export declare function commitFilesToBranch({ branchName, files, message, parentBranch, }: CommitFilesConfig): Promise; export declare function getFile(filePath: string, branchName?: string): Promise; export declare function deleteBranch(branchName: string, shouldClosePr?: boolean): Promise; export declare function mergeBranch(branchName: string): Promise; export declare function getBranchLastCommitTime(branchName: string): Promise; export declare function getRepoStatus(): Promise; export declare function getBranchStatusCheck(branchName: string, context: string): Promise; export declare function setBranchStatus({ branchName, context, description, state: renovateState, url: targetUrl, }: BranchStatusConfig): Promise; export declare function getIssueList(): Promise; export declare function findIssue(title: string): Promise; export declare function ensureIssue({ title, body, }: EnsureIssueConfig): Promise<'updated' | 'created' | null>; export declare function ensureIssueClosing(title: string): Promise; export declare function addAssignees(iid: number, assignees: string[]): Promise; export declare function addReviewers(iid: number, reviewers: string[]): Promise; export declare function deleteLabel(issueNo: number, label: string): Promise; export declare function ensureComment({ number, topic, content, }: EnsureCommentConfig): Promise; export declare function ensureCommentRemoval(issueNo: number, topic: string): Promise; export declare function getPrList(): Promise; export declare function findPr({ branchName, prTitle, state, }: FindPRConfig): Promise; export declare function getCommitMessages(): Promise; export declare function getVulnerabilityAlerts(): Promise;