/**
 * Disk space monitor — heartbeat-driven disk monitoring and autonomous cleanup.
 *
 * Called after each heartbeat. Uses fs.statfs() to probe available space,
 * runs two tiers of cleanup when low, and reports results via health events.
 *
 * Tier 1: Deterministic whitelist cleanup (caches, logs, temp files).
 * Tier 2: LLM-guided smart cleanup — the agent analyses du results and
 *         decides which non-protected paths to remove.
 *
 * No owner notifications — all reporting goes through health events to
 * the onboarding service for monitoring and audit.
 */
import type { HeartbeatHealthEvent } from "../onboarding/onboarding-service-client.js";
import type { VisionClawConfig } from "../config/types.js";
export interface DiskProbe {
    totalBytes: number;
    freeBytes: number;
    availableBytes: number;
}
export interface CleanupResult {
    target: string;
    freedBytes: number;
    error?: string;
}
export interface DiskAnalysisEntry {
    path: string;
    sizeBytes: number;
    suggestion: string | null;
}
export interface DiskCheckResult {
    probe: DiskProbe;
    cleanupResults: CleanupResult[];
    totalFreed: number;
    postCleanupAvailable: number;
    analysis: DiskAnalysisEntry[];
    healthEvents: HeartbeatHealthEvent[];
}
export declare function isUnderAllowedRoot(targetPath: string): boolean;
export declare function hasGitAncestor(targetPath: string): boolean;
export declare function resolveSafeDeletionTarget(targetPath: string): Promise<string | null>;
export declare function probeDisk(mountPoint?: string): Promise<DiskProbe>;
export declare function checkDisk(config?: VisionClawConfig): Promise<DiskCheckResult | null>;
//# sourceMappingURL=disk-monitor.d.ts.map