import type { AnalysisFinding, OperationPlan, SprintFile, TaskVerdictFinding, TaskVerdictResult, WaivedCriterion } from '../types'; export interface ReviewArgs { taskId: string; scope: string | null; verdict: TaskVerdictResult; checkedCriteria: string[]; waivedCriteria: WaivedCriterion[]; findings: TaskVerdictFinding[]; by: string; yes: boolean; dryRun: boolean; help: boolean; requestDigest: string | null; } export interface ReviewPreparation { sprint: SprintFile; plan: OperationPlan[]; findings: AnalysisFinding[]; requestDigest: string; reviewedMaterialDigest: string; noop: boolean; } export interface ReviewTransactionResult { phase: 'preview' | 'applied' | 'noop'; scope: string; taskId: string; verdict: TaskVerdictResult; requestDigest: string; reviewedMaterialDigest: string; resumed: boolean; affectedFiles: string[]; requiresConfirmation: boolean; nextAction: string; } interface ReviewExecutionOptions { surface: 'cli' | 'mcp'; apply: boolean; confirmed: boolean; onPrepared?: (preparation: ReviewPreparation) => void; } export declare function runReviewCommand(rawArgs: string[]): void; export declare function executeReview(scope: string, args: ReviewArgs, options: ReviewExecutionOptions): ReviewTransactionResult; export declare function buildReviewPlan(scope: string, args: ReviewArgs): ReviewPreparation; export declare function parseWaiver(value: string): WaivedCriterion; export declare function parseVerdict(value: string): TaskVerdictResult; export declare function parseFinding(value: string): TaskVerdictFinding; /** * Keep only checker findings that reference the task under review. Every collectCheckerFindings entry * is per-task and its `detail` starts with `task ` (the trailing space prevents T1.1 matching * T1.10). This is what makes accumulated review debt recoverable one task at a time. */ export declare function scopeFindingsToTask(findings: AnalysisFinding[], taskId: string): AnalysisFinding[]; export declare function checkerErrorCode(findings: AnalysisFinding[]): 'CHECKER_FAILED' | 'SELF_REVIEW_BLOCKED'; export {}; //# sourceMappingURL=review.d.ts.map