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 "../../../types/index.js"; import { GitlabIssue, GitlabPr } from "./types.js"; import { extractRulesFromCodeOwnersLines } from "./code-owners.js"; //#region lib/modules/platform/gitlab/index.d.ts export declare function resetPlatform(): void; export declare const id = "gitlab"; export declare function initPlatform({ endpoint, username, token, 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 initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise; export declare function getBranchForceRebase(): Promise; /** * Merge trains are GitLab's equivalent of a merge queue. They are enabled per * project, so the branch name is not needed. * https://docs.gitlab.com/ci/pipelines/merge_trains/ */ export declare function isBranchMergeQueueEnabled(_branchName: string): Promise; /** * GitLab answers with 404 if the MR is not on a merge train. A car that has * already been merged is not waiting any more. * https://docs.gitlab.com/api/merge_trains/#get-the-status-of-a-merge-request-on-a-merge-train */ export declare function isPrInMergeQueue(id: number): Promise; export declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise; export declare function getPrList(): Promise; export declare function createPr({ sourceBranch, targetBranch, prTitle, prBody: rawDescription, draftPR, labels, platformPrOptions }: CreatePRConfig): Promise; export declare function getPr(iid: number): Promise; export declare function updatePr({ number: iid, prTitle, prBody: description, addLabels, removeLabels, state, platformPrOptions, targetBranch }: UpdatePrConfig): Promise; export declare function reattemptPlatformAutomerge({ number: iid, platformPrOptions }: ReattemptPlatformAutomergeConfig): Promise; export declare function mergePr({ id }: MergePRConfig): Promise; export declare function massageMarkdown(input: string): string; export declare function maxBodyLength(): number; export declare function labelCharLimit(): number; export declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise; export declare function getBranchPr(branchName: string): 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 getIssue(number: number, useCache?: boolean): Promise; export declare function findIssue(title: string): Promise; export declare function ensureIssue({ title, reuseTitle, body, labels, confidential }: 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(deleteConfig: EnsureCommentRemovalConfig): Promise; export declare function filterUnavailableUsers(users: string[]): Promise; export declare function expandGroupMembers(reviewersOrAssignees: string[]): Promise; //#endregion export { extractRulesFromCodeOwnersLines }; //# sourceMappingURL=index.d.ts.map