/** * PR and Issue utilities for enhanced run summary. */ export interface PrInfo { number: number; url: string; state: string; title: string; } export interface IssueInfo { number: number; url: string; state: string; title: string; } /** * Get PR information for a branch. * * @param projectRoot - Root directory of the git repository * @param branchName - Branch name to look up * @returns PR info object, or null if no PR exists for this branch * @throws When gh CLI is unavailable or the command fails */ export declare function getPrForBranch(projectRoot: string, branchName: string): PrInfo | null; /** * Get linked issue for a branch by parsing the PR body for closing keywords * (Closes/Fixes/Resolves #N), with fallbacks for spec file and feature name search. * * @param projectRoot - Root directory of the git repository * @param branchName - Branch name to look up * @param prInfo - Optional pre-fetched PR info to avoid redundant gh call * @param featureName - Optional feature name for fallback issue detection * @returns Issue info object, or null if not found or gh not available */ export declare function getLinkedIssue(projectRoot: string, branchName: string, prInfo?: PrInfo | null, featureName?: string): IssueInfo | null;