export type WorktreeHealthIssueKind = 'prunable' | 'missing-commondir' | 'missing-gitdir' | 'missing-head' | 'broken-gitdir' | 'stale-temp-worktree' | 'prune-failed' | 'repair-failed';
export interface WorktreeHealthIssue {
    kind: WorktreeHealthIssueKind;
    target: string;
    detail: string;
    repaired: boolean;
}
export interface WorktreeHealthSnapshot {
    generatedAt: number;
    repoRoot: string;
    overall: 'healthy' | 'degraded';
    activeEntries: number;
    prunableEntries: number;
    brokenEntries: number;
    repairedEntries: number;
    issues: WorktreeHealthIssue[];
    actions: string[];
}
export declare class WorktreeDoctorError extends Error {
    readonly snapshot: WorktreeHealthSnapshot;
    readonly remediation: string[];
    constructor(message: string, snapshot: WorktreeHealthSnapshot, remediation: string[]);
}
export declare function doctorGitWorktrees(repoRoot: string): Promise<WorktreeHealthSnapshot>;
export declare function summarizeWorktreeHealth(snapshot: WorktreeHealthSnapshot | undefined): string;
export declare function toWorktreeRemediation(error: unknown, worktreeDir?: string): string[];
