import type { CleanupPolicy } from './config'; export declare const TEAMSHARE_DIR: string; export declare const DEFAULT_CLEANUP_POLICY: { readonly enabled: true; readonly intervalHours: 6; readonly sessionMaxAgeDays: 14; readonly sessionMaxSizeMb: 200; readonly logMaxSizeMb: 10; readonly tempMaxAgeDays: 7; readonly reposMaxAgeDays: 30; readonly reposMaxSizeMb: 2048; }; export type ResolvedCleanupPolicy = { enabled: boolean; intervalHours: number; sessionMaxAgeMs: number; sessionMaxSizeBytes: number; logMaxSizeBytes: number; tempMaxAgeMs: number; reposMaxAgeMs: number; reposMaxSizeBytes: number; }; export declare function resolveCleanupPolicy(raw?: CleanupPolicy): ResolvedCleanupPolicy; export interface CleanupTargetReport { target: string; filesDeleted: number; bytesFreed: number; errors: string[]; } export interface CleanupReport { dryRun: boolean; totalFiles: number; totalBytes: number; targets: CleanupTargetReport[]; /** Report-only observations (worktrees) - nothing was deleted. */ notes: string[]; } export interface RunCleanupOptions { dryRun?: boolean; /** Linked project folders (for worktree reporting). */ projectPaths?: string[]; /** Agent registry: config.agents ([{ agentId }] is enough). */ agents?: Array<{ agentId: string; }>; log?: (text: string) => void; } /** * Runs every cleanup rule. Never throws. */ export declare function runCleanup(policyRaw: CleanupPolicy | undefined, opts?: RunCleanupOptions): Promise;