export type HygieneMode = 'stale' | 'fresh';
export interface HygieneReport {
    mode: HygieneMode;
    cleanedRuntimeRegistryEntries: number;
    cleanedSessionLocks: number;
    cleanedTmpEntries: number;
    clearedBootstrapReceipt: boolean;
    worktreeDoctorOverall?: 'healthy' | 'degraded';
    /** Worktrees swept due to TTL / count / bytes budgets. */
    boundedWorktreeSweeps: number;
    /** Worktrees removed because git no longer tracks them. */
    orphanWorktreesRemoved: number;
    /** Runs dirs swept due to budgets. */
    boundedRunsSweeps: number;
    /** Orphan ngram-index sidecar files removed (-wal/-shm without .db). */
    ngramSidecarOrphansRemoved: number;
    /** ngram-index oversize archives pruned beyond keep=1. */
    ngramArchivesPruned: number;
}
export declare function runStartupHygiene(input: {
    repoRoot: string;
    workspaceStateRoot: string;
    mode?: HygieneMode;
}): Promise<HygieneReport>;
