/** * Pure function to determine the adversarial review display state. * Extracted from ApprovalsPage.tsx so it can be tested with vitest * (the vitest config excludes dashboard_frontend). */ export interface AdversarialDisplayState { status: string; error?: string; specName: string; phase: string; version?: number; } export interface AnnotationData { trigger: string; specName?: string; phase?: string; analysisVersion?: number; [key: string]: any; } /** * Determines what adversarial review state to display for an approval. * * @param job - The live adversarial job (if any) * @param approval - The approval object (needs at minimum: status, categoryName, annotations) * @param annotationData - Parsed annotation data (or null if no adversarial annotations) * @param analysisVerified - Whether the analysis file exists on disk (true/false/null for still checking) * @returns Display state, or null if nothing should be shown */ export declare function getAdversarialDisplayState(job: { status: string; error?: string; specName: string; phase: string; } | undefined | null, approval: { status: string; categoryName?: string; }, annotationData: AnnotationData | null, analysisVerified: boolean | null): AdversarialDisplayState | null; //# sourceMappingURL=adversarial-display-state.d.ts.map