export interface Position {
  x: number;
  y: number;
}

export interface Rect {
  x1: number;
  y1: number;
  x2: number;
  y2: number;
  width: number;
  height: number;
}

export interface Highlight {
  id: string;
  type: 'text' | 'area';
  pageNumber: number;
  positions: Rect[];
  content?: string;
  color: string;
}

export interface Comment {
  id: string;
  highlightId: string;
  text: string;
  createdAt: number;
}

export interface AnnotationData {
  highlights: Highlight[];
  comments: Comment[];
  version: string;
  createdAt: number;
}

export interface AdvancedPDFReaderProps {
  file: File | string;
  initialAnnotations?: AnnotationData;
  onAnnotationsChange?: (data: AnnotationData) => void;
  readOnly?: boolean;
  className?: string;
}
