import type { SystemStepExistingPr, SystemStepGitProvider, SystemStepIssue, SystemStepIssueListItem, SystemStepPrListItem, SystemStepPrReviewData } from '../../../core/workflow/system/system-step-services.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, gitProvider?: SystemStepGitProvider): SystemStepExistingPr | undefined; export declare function fetchPrContext(cwd: string, prNumber: number, gitProvider?: SystemStepGitProvider): SystemStepPrReviewData; export declare function fetchIssueContext(cwd: string, issueNumber: number, gitProvider?: SystemStepGitProvider): SystemStepIssue; export declare function fetchOpenIssueList(cwd: string, gitProvider?: SystemStepGitProvider): SystemStepIssueListItem[]; export declare function fetchOpenPrList(cwd: string, gitProvider?: SystemStepGitProvider): SystemStepPrListItem[]; //# sourceMappingURL=system-git-context.d.ts.map