import { ExpertOutput, ExpertType } from '../types/workflow'; /** * Represents a cross-reference between expert documents */ export interface CrossReference { id: string; sourceExpert: ExpertType; targetExpert: ExpertType; sourceSection: string; targetSection: string; relationship: CrossReferenceType; description: string; confidence: number; } /** * Types of cross-reference relationships between expert outputs */ export type CrossReferenceType = 'builds_on' | 'implements' | 'supports' | 'conflicts' | 'elaborates' | 'depends_on'; /** * Document relationship mapping between expert outputs */ export interface DocumentRelationship { workflowId: string; relationships: Map; lastUpdated: Date; } /** * Cross-reference annotation for injection into documents */ export interface CrossReferenceAnnotation { position: 'inline' | 'footnote' | 'sidebar'; content: string; references: CrossReference[]; } /** * Manages cross-references and document relationships in multi-expert workflows */ export declare class CrossReferenceManager { private documentRelationships; /** * Analyze expert outputs and generate cross-references */ generateCrossReferences(workflowId: string, expertOutputs: ExpertOutput[]): Promise; /** * Get cross-references for a specific workflow */ getCrossReferences(workflowId: string): CrossReference[]; /** * Get cross-references between two specific experts */ getCrossReferencesBetweenExperts(workflowId: string, expertA: ExpertType, expertB: ExpertType): CrossReference[]; /** * Generate cross-reference annotations for document injection */ generateCrossReferenceAnnotations(workflowId: string, targetExpert: ExpertType, content: string): CrossReferenceAnnotation[]; /** * Inject cross-reference annotations into document content */ injectCrossReferences(content: string, annotations: CrossReferenceAnnotation[]): string; /** * Validate cross-reference accuracy */ validateCrossReferences(workflowId: string): Promise<{ valid: CrossReference[]; invalid: CrossReference[]; }>; /** * Analyze cross-references between two expert outputs */ private _analyzeCrossReferences; /** * Build prompt for cross-reference analysis */ private _buildCrossReferenceAnalysisPrompt; /** * Parse cross-reference analysis response */ private _parseCrossReferenceAnalysis; /** * Store document relationships for a workflow */ private _storeDocumentRelationships; /** * Group references by section for annotation */ private _groupReferencesBySection; /** * Format reference annotation text */ private _formatReferenceAnnotation; /** * Find section insertion points for annotations */ private _findSectionInsertionPoints; /** * Validate a single cross-reference */ private _validateSingleReference; } export declare const crossReferenceManager: CrossReferenceManager; //# sourceMappingURL=crossReferenceManager.d.ts.map