import { StatusResult } from '../git/storage'; import { PlatformConfig, RepoParams, RepoConfig, Issue, VulnerabilityAlert, CreatePRConfig, EnsureIssueConfig, BranchStatusConfig, FindPRConfig, EnsureCommentConfig, EnsureIssueResult, CommitFilesConfig } from '../common'; import { BranchStatus } from '../../types'; interface Comment { id: number; body: string; } interface Pr { displayNumber: string; state: string; title: string; branchName: string; number: number; comments: Comment[]; createdAt: string; sha: string; sourceRepo: string; isModified: boolean; } export declare function initPlatform({ endpoint, token, }: { endpoint: string; token: string; }): Promise; export declare function getRepos(): Promise; export declare function cleanRepo(): Promise; export declare function initRepo({ endpoint, repository, forkMode, forkToken, gitPrivateKey, localDir, includeForks, renovateUsername, 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 getAllRenovateBranches(branchPrefix: string): Promise; export declare function isBranchStale(branchName: string): Promise; export declare function getFile(filePath: string, branchName?: string): Promise; export declare function deleteBranch(branchName: string, closePr?: boolean): Promise; export declare function getBranchLastCommitTime(branchName: string): Promise; export declare function getRepoStatus(): Promise; export declare function mergeBranch(branchName: string): Promise; export declare function commitFilesToBranch({ branchName, files, message, parentBranch, }: CommitFilesConfig): Promise; export declare function getCommitMessages(): Promise; export declare function getPr(prNo: number): 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 getBranchStatus(branchName: string, requiredStatusChecks: any): 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 getIssueList(): Promise; export declare function findIssue(title: string): Promise; export declare function ensureIssue({ title, body: rawBody, once, shouldReOpen, }: EnsureIssueConfig): Promise; export declare function ensureIssueClosing(title: string): Promise; export declare function addAssignees(issueNo: number, assignees: string[]): Promise; export declare function addReviewers(prNo: 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 createPr({ branchName, prTitle: title, prBody: rawBody, labels, useDefaultBranch, platformOptions, }: CreatePRConfig): Promise; export declare function getPrFiles(prNo: number): Promise; export declare function updatePr(prNo: number, title: string, rawBody?: string): Promise; export declare function mergePr(prNo: number, branchName: string): Promise; export declare function getPrBody(input: string): string; export declare function getVulnerabilityAlerts(): Promise; export {};