import fs from "node:fs"; export declare const SCRATCH_OWNER_FILE = ".fabric-scratch.json"; export declare const SCRATCH_MAX_AGE_MS: number; export declare const SCRATCH_RECENT_MS: number; export declare const SCRATCH_ORPHAN_GRACE_MS: number; export declare const SCRATCH_MAX_BYTES: number; export declare const SCRATCH_MAX_ITEMS = 256; type ScratchKind = "output" | "shell" | "checkpoint"; export declare const processAlive: (pid: number) => boolean; export declare const ownedStat: (file: string) => fs.Stats | undefined; export declare const createScratch: (kind: ScratchKind, tempRoot?: string) => string; /** Only used on directories this process allocated, never on caller-owned roots. */ export declare const closeScratch: (directory: string) => void; export interface ScratchSweepOptions { tempRoot: string; now?: number; dryRun?: boolean; maxAgeMs?: number; recentMs?: number; orphanGraceMs?: number; maxBytes?: number; maxItems?: number; } export interface ScratchSweepResult { eligible: string[]; removed: string[]; orphaned: string[]; } /** No legacy prefix-only deletion. Unknown files, symlinks and malformed markers veto cleanup. */ export declare const sweepScratch: (options: ScratchSweepOptions) => Promise; export declare const scheduleScratchSweep: (tempRoot?: string) => void; export {}; //# sourceMappingURL=scratch.d.ts.map