export interface Prediction { probability: number; className: string; } export interface DetectionResults { modelClass: string; modelScore: number; modelProbability: number; allPredictions: Prediction[]; laplaceVariance: number; laplaceMax: number; rejected?: boolean; rejectionReason?: string; cardSimilarity?: number; isSameCard?: boolean; hasReference?: boolean; /** Whether the image is considered sharp (true) or blurry (false) */ isSharp?: boolean; /** Blur score from 0.0 (very sharp) to 1.0 (very blurry) */ blurScore?: number; confidenceGap: number; entropy: number; isFlippedSession?: boolean; hasFlipped?: boolean; }