import type { BranchStatus, VulnerabilityAlert } from '../../../types'; import type { CommitFilesConfig, LongCommitSha } from '../../../util/git/types'; import type { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, EnsureIssueResult, FindPRConfig, MergePRConfig, PlatformParams, PlatformResult, ReattemptPlatformAutomergeConfig, RepoParams, RepoResult, UpdatePrConfig } from '../types'; import { GithubIssue as Issue } from './issue'; import type { GhPr, GhRestRepo } from './types'; export declare const id = "github"; export declare const GitHubMaxPrBodyLen = 60000; export declare function resetConfigs(): void; export declare function detectGhe(token: string): Promise; export declare function initPlatform({ endpoint, token: originalToken, username, gitAuthor, }: 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 listForks(token: string, repository: string): Promise; export declare function findFork(token: string, repository: string, forkOrg?: string): Promise; export declare function createFork(token: string, repository: string, forkOrg?: string): Promise; export declare function initRepo({ endpoint, repository, forkCreation, forkOrg, forkToken, renovateUsername, cloneSubmodules, ignorePrAuthor, }: RepoParams): Promise; export declare function getBranchForceRebase(branchName: string): Promise; export declare function getPr(prNo: number): Promise; export declare function getPrList(): Promise; export declare function findPr({ branchName, prTitle, state, includeOtherAuthors, }: FindPRConfig): 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; export declare function getIssueList(): Promise; export declare function getIssue(number: number): Promise; export declare function findIssue(title: string): Promise; export declare function ensureIssue({ title, reuseTitle, body: rawBody, labels, 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(deleteConfig: EnsureCommentRemovalConfig): Promise; export declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: rawBody, labels, draftPR, platformOptions, milestone, }: CreatePRConfig): Promise; export declare function updatePr({ number: prNo, prTitle: title, prBody: rawBody, addLabels: labelsToAdd, removeLabels, state, targetBranch, }: UpdatePrConfig): Promise; export declare function reattemptPlatformAutomerge({ number, platformOptions, }: ReattemptPlatformAutomergeConfig): Promise; export declare function mergePr({ branchName, id: prNo, }: MergePRConfig): Promise; export declare function massageMarkdown(input: string): string; export declare function getVulnerabilityAlerts(): Promise; export declare function commitFiles(config: CommitFilesConfig): Promise;