import { CSSProperties } from 'react'; /** * Review status from the API */ export type ReviewStatus = 'processing' | 'completed' | 'failed'; /** * Risk finding in a review */ export interface RiskFinding { id: string; category: string; description: string; location?: string; severity?: 'low' | 'medium' | 'high'; } /** * Review result data - matches web-app-risk-reviews ReviewResult type */ export interface ReviewResultData { reviewId: string; status: ReviewStatus; type: 'file' | 'text' | 'weburl'; fileName?: string; pageUrl?: string; inputText?: string; timestamp: string; risks?: RiskFinding[]; } /** * Props for ReviewResults component * * EXACT match of ResultsSummary + ResultActions props from web-app-risk-reviews */ export interface ReviewResultsProps { /** The review results data */ results: ReviewResultData; /** Type of review - determines which buttons to show */ reviewType: 'file' | 'text'; /** Handler for Send to IntelligenceBank action (file reviews only) */ onSendToIB?: () => void; /** Whether Send to IB is available (file exists) */ canSendToIB?: boolean; /** Loading state to disable buttons */ isLoading?: boolean; /** Whether to show action buttons */ showActions?: boolean; /** Additional CSS class */ className?: string; /** Data test ID for testing */ dataTestId?: string; /** Data ID for analytics */ dataId?: string; /** Inline styles */ style?: CSSProperties; } //# sourceMappingURL=ReviewResults.types.d.ts.map