import type { ProjectStatus } from '../../types/index.js';
import type { StatusValidateResult, QuarantineResult } from '../../types/workspace-overview.js';
/**
 * Validate a status.json file. Returns `ok: true` when the file is valid JSON
 * with the expected shape. Returns `ok: false` with corruptKind on corruption.
 */
export declare function validateStatusJson(filePath: string): Promise<StatusValidateResult>;
/**
 * Move a corrupt status.json to planu/.broken/status-<ts>.json.
 * Returns the quarantine path and timestamp.
 */
export declare function quarantineCorruptStatus(statusPath: string, projectPath: string): Promise<QuarantineResult>;
/**
 * Rebuild a fresh status.json by reading all spec.md frontmatters.
 * Returns the new ProjectStatus object (not written to disk — caller decides).
 */
export declare function rebuildStatusFromFrontmatters(params: {
    projectPath: string;
}): Promise<ProjectStatus>;
/**
 * Write a fresh status.json atomically.
 * Use this after `rebuildStatusFromFrontmatters` to persist the rebuild.
 */
export declare function writeRebuiltStatus(statusPath: string, status: ProjectStatus): Promise<void>;
//# sourceMappingURL=self-healing.d.ts.map