import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import type { SpecStatus } from '../types/index.js';
export interface RepairEntry {
    specId: string;
    oldStatus: SpecStatus | null;
    newStatus: SpecStatus;
    specPath: string;
}
export interface RepairErrorEntry {
    specId: string;
    reason: string;
}
export interface CorruptEntry {
    specId: string;
    reason: string;
    expectedSha: string;
    actualSha: string;
}
export interface RepairFrontmatterDriftReport {
    repairedCount: number;
    repairs: RepairEntry[];
    errors: RepairErrorEntry[];
    corrupt: CorruptEntry[];
}
/**
 * Repair spec.md frontmatter drift for a single project.
 *
 * For every spec in the data store with a non-empty `specPath`, read the
 * on-disk file, compare its `status:` frontmatter field to the data-store
 * status, and rewrite the file if they diverge. The data store is NEVER
 * modified — it is the source of truth.
 */
export declare function repairFrontmatterDrift(args: {
    projectPath?: string;
    projectId?: string;
}): Promise<RepairFrontmatterDriftReport>;
export declare function registerRepairFrontmatterDriftTool(server: McpServer): void;
//# sourceMappingURL=repair-frontmatter-drift.d.ts.map