import { TaskReview, ReviewFinding } from '../types.js'; /** * Validate that verdict and findings are consistent. * Shared by review-task tool handler and TaskReviewRunner. */ export declare function validateVerdictConsistency(verdict: string, findings: ReviewFinding[]): { valid: boolean; error?: string; }; /** * Manager for task review storage using markdown files with YAML frontmatter. * Each review is stored as an individual markdown file in the spec's "reviews" directory. */ export declare class TaskReviewManager { private specPath; private reviewsDir; constructor(specPath: string); private ensureReviewsDir; /** * Determine the next version number for a task's review */ getNextVersion(taskId: string): Promise; /** * Write a prepare marker file to gate the record action */ writePrepareMarker(taskId: string): Promise; /** * Check if a prepare marker exists for this task */ hasPrepareMarker(taskId: string): Promise; /** * Remove the prepare marker after recording a review */ removePrepareMarker(taskId: string): Promise; /** * Save a review to disk as a markdown file with YAML frontmatter */ saveReview(review: Omit): Promise; /** * Get all reviews for a specific task, sorted by version ascending */ getReviewsForTask(taskId: string): Promise; /** * Get the latest review for a task (highest version) */ getLatestReview(taskId: string): Promise; /** * Load all reviews from the reviews directory */ loadAllReviews(): Promise; private generateFileName; private reviewToMarkdown; private parseReviewMarkdown; getReviewsDir(): string; } //# sourceMappingURL=task-review-manager.d.ts.map