// Compliance types
export type RiskLevel = 'high' | 'medium' | 'low';
export type ComplianceStatus = 'pass' | 'warning' | 'fail';
export type RegulationCategory = 'high' | 'medium' | 'low';

export interface Regulation {
  id: number;
  name: string;
  clause: string;
  score: number;
  matchKeyword: string;
  category: RegulationCategory;
  fullContent: string;
}

export interface ComplianceChunk {
  id: number;
  index: number;
  intent: string;
  startPos: number;
  endPos: number;
  content: string;
  regulations: Regulation[];
}

export interface SegmentRisk {
  chunkId: number;
  level: RiskLevel;
  score: number;
  highRegsCount: number;
  riskRegs: number;
}

export interface RiskDashboardData {
  score: number;
  highRiskCount: number;
  mediumRiskCount: number;
  lowRiskCount: number;
  needFixSegments: number;
  status: ComplianceStatus;
  statusLabel: string;
  segmentRisks: SegmentRisk[];
}

export interface PriorityAction {
  id: number;
  regulation: string;
  issue: string;
  suggestion: string;
  chunkId: number;
  severity: 'high' | 'medium';
}

// Upload document type
export interface UploadedDoc {
  name: string;
  size: string;
}