import { type ExistingPr, type Issue, type IssueListItem, type PrListItem, type PrReviewData } from '../../git/index.js';
export interface CurrentBranchResolution {
    readonly branch?: string;
    readonly error?: string;
}
export declare function getCommandErrorDetail(error: unknown): string;
export declare function isMergeConflictError(error: unknown): boolean;
export declare function appendSecondaryError(primary: string, label: string, secondary: unknown): string;
export declare function resolveCurrentBranch(cwd: string): CurrentBranchResolution;
export declare function fetchExistingPr(cwd: string, branch: string): ExistingPr | undefined;
export declare function fetchPrContext(cwd: string, prNumber: number): PrReviewData;
export declare function fetchIssueContext(cwd: string, issueNumber: number): Issue;
export declare function fetchOpenIssueList(cwd: string): IssueListItem[];
export declare function fetchOpenPrList(cwd: string): PrListItem[];
//# sourceMappingURL=system-git-context.d.ts.map