export type FreshBaseFetch = 'fresh' | 'skipped' | 'failed'; export type FreshBaseTree = 'clean' | 'dirty' | 'unknown'; export type FreshBaseRelation = 'matches' | 'behind' | 'ahead' | 'diverged' | 'unknown'; export type FreshBaseStatus = 'up-to-date' | 'ahead' | 'behind' | 'diverged' | 'dirty' | 'fetch-failed' | 'unknown'; export interface FreshBaseInput { /** Commits on HEAD that the base lacks; null when the comparison was unavailable. */ readonly ahead: number | null; /** Commits on the base that HEAD lacks; null when the comparison was unavailable. */ readonly behind: number | null; readonly tree: FreshBaseTree; readonly fetch: FreshBaseFetch; } export interface FreshBaseClassification extends FreshBaseInput { readonly status: FreshBaseStatus; readonly relation: FreshBaseRelation; /** True for every status except `up-to-date`. */ readonly needsAttention: boolean; } export declare function relationOf(ahead: number | null, behind: number | null): FreshBaseRelation; /** Pure classification of a worktree against its base from already-gathered facts. */ export declare function classifyFreshBase(input: FreshBaseInput): FreshBaseClassification;