import { type HomeReleaseState } from "./home-release-store.js"; import { SharedReleaseStore } from "./shared-release-store.js"; export interface CleanupCandidate { kind: "shared-release" | "shared-trash" | "staging" | "package-cache" | "legacy-release" | "legacy-trash"; sourcePath: string; targetPath?: string; reason: string; } export interface SharedCleanupOptions { now?: number; releaseGraceMs?: number; trashGraceMs?: number; keepRecent?: number; stagingGraceMs?: number; keepPackages?: number; apply?: boolean; knownHomes?: string[]; } export declare function cleanupSharedReleases(store: SharedReleaseStore, options?: SharedCleanupOptions): CleanupCandidate[]; export interface LegacyCleanupOptions { now?: number; graceMs?: number; apply?: boolean; runningRuntimePath?: string; trashGraceMs?: number; } export declare function cleanupLegacyReleases(niubotHome: string, state: HomeReleaseState, options?: LegacyCleanupOptions): CleanupCandidate[];