import type { GitLabClient } from "../client.js"; import type { ListMergeRequestsParams, GetMergeRequestParams, CreateMergeRequestParams, UpdateMergeRequestParams, GetMergeRequestDiffsParams, ListMergeRequestDiffsParams, GetBranchDiffsParams, ListMRNotesParams, ListMRDiscussionsParams, CreateMRNoteParams, CreateMRDiscussionParams, ReplyToMRDiscussionParams, ResolveMRDiscussionParams, UpdateMRDiscussionNoteParams, CreateMRDiscussionNoteParams, DeleteMRDiscussionNoteParams, MarkMRAsDraftParams, MarkMRAsReadyParams, ListMRTemplatesParams, GetMRTemplateParams, DeleteMRNoteParams, UpdateMRNoteParams, UpdateMRLabelsParams, GetMRApprovalsParams, ApproveMRParams, UnapproveMRParams } from "../types.js"; export declare class MergeRequestHandlers { private client; constructor(client: GitLabClient); /** * Helper method to process attachments in body text. * Uploads each file and replaces {{placeholderName}} with the GitLab markdown. * @param projectId - The project ID or path * @param body - The body text containing {{placeholder}} references * @param attachments - Map of placeholder names to file paths * @returns The body with placeholders replaced by uploaded file markdown */ private processAttachments; /** * Helper method to resolve merge request IID from source branch name */ private resolveMergeRequestIid; listMergeRequests(args: ListMergeRequestsParams): Promise<{ content: { type: string; text: string; }[]; }>; getMergeRequest(args: GetMergeRequestParams): Promise<{ content: { type: string; text: string; }[]; }>; getMergeRequestDiffs(args: GetMergeRequestDiffsParams): Promise<{ content: { type: string; text: string; }[]; }>; listMergeRequestDiffs(args: ListMergeRequestDiffsParams): Promise<{ content: { type: string; text: string; }[]; }>; getBranchDiffs(args: GetBranchDiffsParams): Promise<{ content: { type: string; text: string; }[]; }>; createMergeRequest(args: CreateMergeRequestParams): Promise<{ content: { type: string; text: string; }[]; }>; updateMergeRequest(args: UpdateMergeRequestParams): Promise<{ content: { type: string; text: string; }[]; }>; listMRNotes(args: ListMRNotesParams): Promise<{ content: { type: string; text: string; }[]; }>; listMRDiscussions(args: ListMRDiscussionsParams): Promise<{ content: { type: string; text: string; }[]; }>; createMRNote(args: CreateMRNoteParams): Promise<{ content: { type: string; text: string; }[]; }>; createMRDiscussion(args: CreateMRDiscussionParams): Promise<{ content: { type: string; text: string; }[]; }>; replyToMRDiscussion(args: ReplyToMRDiscussionParams): Promise<{ content: { type: string; text: string; }[]; }>; resolveMRDiscussion(args: ResolveMRDiscussionParams): Promise<{ content: { type: string; text: string; }[]; }>; unresolveMRDiscussion(args: ResolveMRDiscussionParams): Promise<{ content: { type: string; text: string; }[]; }>; updateMRDiscussionNote(args: UpdateMRDiscussionNoteParams): Promise<{ content: { type: string; text: string; }[]; }>; createMRDiscussionNote(args: CreateMRDiscussionNoteParams): Promise<{ content: { type: string; text: string; }[]; }>; deleteMRDiscussionNote(args: DeleteMRDiscussionNoteParams): Promise<{ content: { type: string; text: string; }[]; }>; markMRAsDraft(args: MarkMRAsDraftParams): Promise<{ content: { type: string; text: string; }[]; }>; markMRAsReady(args: MarkMRAsReadyParams): Promise<{ content: { type: string; text: string; }[]; }>; listMRTemplates(args: ListMRTemplatesParams): Promise<{ content: { type: string; text: string; }[]; }>; getMRTemplate(args: GetMRTemplateParams): Promise<{ content: { type: string; text: string; }[]; }>; deleteMRNote(args: DeleteMRNoteParams): Promise<{ content: { type: string; text: string; }[]; }>; updateMRNote(args: UpdateMRNoteParams): Promise<{ content: { type: string; text: string; }[]; }>; updateMRLabels(args: UpdateMRLabelsParams): Promise<{ content: { type: string; text: string; }[]; }>; getMRApprovals(args: GetMRApprovalsParams): Promise<{ content: { type: string; text: string; }[]; }>; approveMR(args: ApproveMRParams): Promise<{ content: { type: string; text: string; }[]; }>; unapproveMR(args: UnapproveMRParams): Promise<{ content: { type: string; text: string; }[]; }>; } //# sourceMappingURL=merge-requests.d.ts.map