/**
 * GitHub Pull Request utilities
 *
 * Creates PRs via `gh` CLI for CI/CD integration.
 */
import type { CreatePrOptions, CreatePrResult, ExistingPr, CommentResult, MergeResult, PrListItem, PrReviewData } from '../git/types.js';
/**
 * Find an open PR for the given branch.
 * Returns undefined if no PR exists.
 */
export declare function findExistingPr(branch: string, cwd: string): ExistingPr | undefined;
export declare function listOpenPrs(cwd: string): PrListItem[];
export declare function commentOnPr(prNumber: number, body: string, cwd: string): CommentResult;
/**
 * Fetch PR review comments and metadata via `gh pr view`.
 * Throws on failure (PR not found, network error, etc.).
 */
export declare function fetchPrReviewComments(prNumber: number, cwd: string): PrReviewData;
export declare function createPullRequest(options: CreatePrOptions, cwd: string): CreatePrResult;
export declare function mergePr(prNumber: number, cwd: string): MergeResult;
export declare function closePr(prNumber: number, cwd: string): MergeResult;
//# sourceMappingURL=pr.d.ts.map