/** Maximum serialized review payload accepted at the credential boundary. */ export declare const MAX_REVIEW_PAYLOAD_BYTES: number; /** Maximum inline comments emitted in one review request. */ export declare const MAX_REVIEW_COMMENTS = 15; export declare class ReviewPayloadError extends Error { constructor(message: string); } export type ReviewSide = 'LEFT' | 'RIGHT'; export type ReviewComment = { path: string; line: number; side: ReviewSide; body: string; start_line?: number; start_side?: ReviewSide; }; export type SanitizedReview = { event: 'COMMENT'; commit_id: string; body: string; comments: ReviewComment[]; }; export declare function reviewCommentSubject(comment: ReviewComment): string; /** * Parses untrusted JSON into the exact review wire shape accepted by the caller's poster. * Unknown fields are ignored, malformed findings fail closed, and the supplied commit id wins. */ export declare function parseReviewPayload(bytes: Buffer, commitId: string): SanitizedReview;