import { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, ReattemptPlatformAutomergeConfig, RepoParams, RepoResult, UpdatePrConfig } from "../types.js"; import { BranchStatus } from "../../../types/branch-status.js"; import { GitlabIssue, GitlabPr } from "./types.js"; import { extractRulesFromCodeOwnersLines } from "./code-owners.js"; //#region lib/modules/platform/gitlab/index.d.ts declare function resetPlatform(): void; declare const id = "gitlab"; declare function initPlatform({ endpoint, username, token, gitAuthor }: PlatformParams): Promise; declare function getRepos(config?: AutodiscoverConfig): Promise; declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise; declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise; declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise; declare function getBranchForceRebase(): Promise; declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise; declare function getPrList(): Promise; declare function createPr({ sourceBranch, targetBranch, prTitle, prBody: rawDescription, draftPR, labels, platformPrOptions }: CreatePRConfig): Promise; declare function getPr(iid: number): Promise; declare function updatePr({ number: iid, prTitle, prBody: description, addLabels, removeLabels, state, platformPrOptions, targetBranch }: UpdatePrConfig): Promise; declare function reattemptPlatformAutomerge({ number: iid, platformPrOptions }: ReattemptPlatformAutomergeConfig): Promise; declare function mergePr({ id }: MergePRConfig): Promise; declare function massageMarkdown(input: string): string; declare function maxBodyLength(): number; declare function labelCharLimit(): number; declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise; declare function getBranchPr(branchName: string): Promise; declare function getBranchStatusCheck(branchName: string, context: string): Promise; declare function setBranchStatus({ branchName, context, description, state: renovateState, url: targetUrl }: BranchStatusConfig): Promise; declare function getIssueList(): Promise; declare function getIssue(number: number, useCache?: boolean): Promise; declare function findIssue(title: string): Promise; declare function ensureIssue({ title, reuseTitle, body, labels, confidential }: EnsureIssueConfig): Promise<'updated' | 'created' | null>; declare function ensureIssueClosing(title: string): Promise; declare function addAssignees(iid: number, assignees: string[]): Promise; declare function addReviewers(iid: number, reviewers: string[]): Promise; declare function deleteLabel(issueNo: number, label: string): Promise; declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise; declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise; declare function filterUnavailableUsers(users: string[]): Promise; declare function expandGroupMembers(reviewersOrAssignees: string[]): Promise; //#endregion export { addAssignees, addReviewers, createPr, deleteLabel, ensureComment, ensureCommentRemoval, ensureIssue, ensureIssueClosing, expandGroupMembers, extractRulesFromCodeOwnersLines, filterUnavailableUsers, findIssue, findPr, getBranchForceRebase, getBranchPr, getBranchStatus, getBranchStatusCheck, getIssue, getIssueList, getJsonFile, getPr, getPrList, getRawFile, getRepos, id, initPlatform, initRepo, labelCharLimit, massageMarkdown, maxBodyLength, mergePr, reattemptPlatformAutomerge, resetPlatform, setBranchStatus, updatePr }; //# sourceMappingURL=index.d.ts.map