export type CleanupTargetValidation = { ok: true; } | { ok: false; reason: string; }; /** * Validate the cleanup TARGET itself — a purely structural check, independent * of audit state, flags, and eligibility (CP-NODE-16). `--force` overrides the * interactive/status confirmation inside cleanupStaleArtifactsDir; it must * never override this: a mistyped or overly broad `--artifacts-dir` (`.`, a * checkout root, a filesystem root) reaching a recursive rm is exactly the * accident this verb has to make impossible. * * Two rules: * 1. the path must BE an artifacts dir — `/.audit-tools/audit`, never a * filesystem root — decided from the path shape alone, so it holds even * when the directory does not exist yet; * 2. `--force` additionally requires the `audit_state.json` marker on disk: * force waives the STATUS evidence, never the IDENTITY evidence. Without * `--force` a missing marker changes nothing — the eligibility gate in * cleanupStaleArtifactsDir already refuses to delete, so the verb's * skipped / crashed-audit contract is untouched. */ export declare function validateCleanupTarget(artifactsDir: string): CleanupTargetValidation; export declare function cmdCleanup(argv: string[]): Promise; //# sourceMappingURL=cleanupCommand.d.ts.map