/**
 * GitLab Merge Request utilities
 *
 * Creates and manages MRs via `glab` CLI.
 */
import type { CreatePrOptions, CreatePrResult, ExistingPr, CommentResult, MergeResult, PrListItem, PrReviewData } from '../git/types.js';
/**
 * Find an open MR for the given branch.
 * Returns undefined if no MR exists.
 */
export declare function findExistingMr(branch: string, cwd: string): ExistingPr | undefined;
export declare function listOpenMrs(cwd: string): PrListItem[];
/**
 * Create a GitLab Merge Request via `glab mr create`.
 */
export declare function createMergeRequest(options: CreatePrOptions, cwd: string): CreatePrResult;
/**
 * Add a comment (note) to a GitLab Merge Request.
 */
export declare function commentOnMr(mrNumber: number, body: string, cwd: string): CommentResult;
/**
 * Fetch MR review comments and metadata.
 * Uses `glab mr view` for metadata and `glab api` (paginated) for diffs, notes, and discussions.
 *
 * Throws on failure (MR not found, network error, etc.).
 */
export declare function fetchMrReviewComments(mrNumber: number, cwd: string): PrReviewData;
export declare function mergeMr(mrNumber: number, cwd: string): MergeResult;
export declare function closeMr(mrNumber: number, cwd: string): MergeResult;
//# sourceMappingURL=pr.d.ts.map