export type ReviewType = 'code-review' | 'security-review' | 'pr-review' | 'general'; export type FindingType = 'bug' | 'security' | 'performance' | 'style' | 'architecture' | 'testing' | 'documentation'; export type FindingSeverity = 'critical' | 'high' | 'medium' | 'low' | 'info'; export interface CodeReviewFinding { type: FindingType; severity: FindingSeverity; title: string; description: string; file_path?: string; line_range?: { start: number; end: number; }; suggestion?: string; } export interface IngestInput { projectId?: string; review_type: ReviewType; raw_output: string; source?: { pr_number?: string; branch?: string; commit?: string; }; dry_run?: boolean; } export interface IngestOutput { findings_parsed: number; issues_created: Array<{ id: string; title: string; path: string; }>; friction_logged: Array<{ id: string; context: string; path: string; }>; learnings_added: Array<{ title: string; path: string; }>; skipped: Array<{ title: string; reason: string; }>; } export interface CodeReviewError { error: string; message: string; hint?: string; } export declare function isCodeReviewError(result: unknown): result is CodeReviewError; export declare function parseReviewOutput(raw: string, reviewType: ReviewType): CodeReviewFinding[]; export declare function ingestCodeReview(input: IngestInput): Promise; //# sourceMappingURL=codereview.d.ts.map