import type { FreshBaseClassification } from './classify.mts'; export interface GitResult { readonly status: number; readonly stdout: string; } export type GitRunner = (args: readonly string[], cwd?: string, timeoutMs?: number) => GitResult; export interface FreshBaseOptions { readonly remote?: string; readonly branch?: string; readonly cwd?: string; /** Skip the refresh and compare against the cached remote-tracking ref. */ readonly skipFetch?: boolean; readonly fetchTimeoutMs?: number; readonly git?: GitRunner; } export interface FreshBaseReport extends FreshBaseClassification { readonly base: string; /** Current branch name, or `detached HEAD`. */ readonly branch: string; } /** * Refreshes the base, then classifies the worktree against it. Returns null outside a Git * repository. Git failures never throw; they surface as `fetch-failed` or `unknown`. */ export declare function checkFreshBase(options?: FreshBaseOptions): FreshBaseReport | null;