import type { SeverityThreshold, ConfidenceThreshold, Finding } from '../types/index.js'; /** GitHub PR review states that Warden tracks */ export type ReviewState = 'CHANGES_REQUESTED' | 'APPROVED' | 'COMMENTED'; export interface GitHubComment { body: string; path?: string; line?: number; side?: 'LEFT' | 'RIGHT'; start_line?: number; start_side?: 'LEFT' | 'RIGHT'; } export interface GitHubReview { event: 'APPROVE' | 'REQUEST_CHANGES' | 'COMMENT'; body: string; comments: GitHubComment[]; } export interface RenderResult { review?: GitHubReview; summaryComment: string; } export interface RenderOptions { maxFindings?: number; groupByFile?: boolean; extraLabels?: string[]; /** Only include findings at or above this severity level in rendered output. Use 'off' to disable reporting. */ reportOn?: SeverityThreshold; /** Only include findings at or above this confidence level. Use 'off' to disable filtering. */ minConfidence?: ConfidenceThreshold; /** Fail threshold - determines REQUEST_CHANGES vs COMMENT for PR reviews */ failOn?: SeverityThreshold; /** Whether to use REQUEST_CHANGES when failOn threshold is met. Default: false */ requestChanges?: boolean; /** URL to the GitHub Check run containing the full report (used when findings are filtered) */ checkRunUrl?: string; /** Total number of findings before filtering (used to show "X more findings" link) */ totalFindings?: number; /** * Original findings for failOn evaluation. Use when report.findings has been * modified (e.g., for deduplication) but failOn should evaluate against all findings. */ allFindings?: Finding[]; } //# sourceMappingURL=types.d.ts.map