export interface VerifyTerminalOk {
    ok: true;
}
export interface VerifyTerminalFail {
    ok: false;
    expectedSha: string;
    actualSha: string;
    divergedFields: string[];
}
export type VerifyTerminalResult = VerifyTerminalOk | VerifyTerminalFail;
/**
 * Verify that the frontmatter of a terminal spec has not been tampered with
 * since it was sealed (transitioned to done/discarded).
 *
 * Reads the last `transitioned_to_terminal` or `frontmatter_resealed` entry from
 * the transition log and compares its SHA to the current metadata SHA.
 *
 * Returns {ok: true} if:
 *   - No transition log entry exists for this spec (spec was never sealed — not terminal yet).
 *   - The SHA matches.
 *
 * Returns {ok: false, expectedSha, actualSha, divergedFields} if there is a mismatch.
 */
export declare function verifyTerminalFrontmatter(args: {
    projectId: string;
    specId: string;
    currentMetadata: Record<string, unknown>;
}): Promise<VerifyTerminalResult>;
//# sourceMappingURL=verify-terminal.d.ts.map