export interface BranchStatus { name: string; isOnExpectedBranch: boolean; expectedBranch?: string; ahead: number; behind: number; hasUnpushedCommits: boolean; needsSync: boolean; remoteExists: boolean; hasMergeConflicts?: boolean; conflictsWith?: string; hasOpenPR?: boolean; prUrl?: string; prNumber?: number; } export interface VersionStatus { version: string; isValid: boolean; issue?: string; fix?: string; } export interface TargetBranchSyncStatus { targetBranch: string; localExists: boolean; remoteExists: boolean; localSha?: string; remoteSha?: string; exactMatch: boolean; canFastForward: boolean; needsReset: boolean; error?: string; } export interface PackageBranchAudit { packageName: string; path: string; status: BranchStatus; versionStatus?: VersionStatus; targetBranchSync?: TargetBranchSyncStatus; issues: string[]; fixes: string[]; } export interface BranchAuditResult { totalPackages: number; goodPackages: number; issuesFound: number; versionIssues: number; targetBranchSyncIssues: number; audits: PackageBranchAudit[]; } /** * Check the branch status for a package */ export declare function checkBranchStatus(packagePath: string, expectedBranch?: string, targetBranch?: string, checkPR?: boolean, options?: { skipFetch?: boolean; }): Promise; /** * Check if target branch (e.g., main) is exactly in sync with remote */ export declare function checkTargetBranchSync(packagePath: string, targetBranch?: string, options?: { skipFetch?: boolean; }): Promise; /** * Audit branch state across multiple packages */ export declare function auditBranchState(packages: Array<{ name: string; path: string; }>, expectedBranch?: string, options?: { targetBranch?: string; checkPR?: boolean; checkConflicts?: boolean; checkVersions?: boolean; concurrency?: number; }): Promise; /** * Format audit results for display with detailed fix instructions */ export declare function formatAuditResults(result: BranchAuditResult): string; /** * Auto-sync a package's branch with remote */ export declare function autoSyncBranch(packagePath: string, options?: { push?: boolean; pull?: boolean; checkout?: string; }): Promise<{ success: boolean; actions: string[]; error?: string; }>; //# sourceMappingURL=branchState.d.ts.map