import { type ReviewComment } from './types.js'; /** Why the reviewer's JSON could not be recovered. Surfaced for diagnostics. */ export type ParseFailureReason = /** A ```json fence was present but its contents could not be parsed or repaired. */ 'fence_unparseable' /** An unfenced reviewer-shaped object was present but could not be parsed or repaired. */ | 'object_unparseable'; export interface ParseFailure { reason: ParseFailureReason; /** Whitespace-collapsed first ~200 chars of the offending block, for logs/OTel. */ preview: string; } export interface ParseResult { comments: ReviewComment[]; summary: string | null; warnings: string[]; /** * Set when the reviewer clearly intended to emit the `{ summary, comments }` * JSON object but it could not be parsed (even after a best-effort repair), * and nothing usable was recovered; `null` otherwise. The CLI fails loudly on * a non-null value rather than marking the job successful with an empty review. */ malformed: ParseFailure | null; } export declare function parseReviewMarkdownWithWarnings(markdown: string): ParseResult; export declare function parseReviewMarkdown(markdown: string): ReviewComment[]; //# sourceMappingURL=parser.d.ts.map