export interface CrossLayerStoreData {
    reports: Record<string, IntelligenceReport>;
    contextCache: Record<string, UnifiedContext>;
    version: number;
}
export declare function resetCrossLayer(): void;
export type RiskLevelCL = 'low' | 'medium' | 'high' | 'critical';
export type LifecycleStage = 'emerging' | 'growing' | 'mature' | 'declining' | 'dead';
export type ImpactLevel = 'low' | 'medium' | 'high';
export type InsightCategory = 'improving' | 'declining' | 'risk' | 'opportunity' | 'benchmark';
export interface PersonalContext {
    developerId: string;
    languages: string[];
    topCategories: string[];
    patternsUsed: number;
    successRate: number;
    avgConfidence: number;
    avgHealth: number;
}
export interface ProjectContext {
    projectId: string;
    primaryLanguage: string;
    framework: string | null;
    architecture: string;
    complexity: string;
    maturity: string;
    testingStyle: string;
    riskScore: number;
    developmentStyle: string;
    fingerprint: string;
}
export interface TeamContext {
    teamId: string;
    teamName: string;
    memberCount: number;
    successRate: number;
    topLanguages: string[];
    topCategories: string[];
    style: string;
    riskLevel: string;
    riskScore: number;
    testingAdoption: number;
}
export interface OrgContext {
    orgId: string;
    orgName: string;
    teamCount: number;
    memberCount: number;
    avgSuccessRate: number;
    totalOutcomes: number;
}
export interface CommunityContext {
    totalPatterns: number;
    totalDevs: number;
    totalOutcomes: number;
    avgSuccessRate: number;
    topCategories: string[];
    patternRankings: Record<string, number>;
}
export interface UnifiedContext {
    developerId: string;
    personal: PersonalContext | null;
    project: ProjectContext | null;
    team: TeamContext | null;
    org: OrgContext | null;
    community: CommunityContext | null;
    combined: {
        overallSuccessRate: number;
        primaryLanguages: string[];
        primaryCategories: string[];
        patternCount: number;
        orgAligned: boolean;
        communityAligned: boolean;
    };
    builtAt: number;
}
export interface IntelligenceScoreResult {
    overallScore: number;
    dimensions: {
        personalSuccess: number;
        personalConfidence: number;
        communityReputation: number;
        orgAlignment: number;
        graphInfluence: number;
        dnaMaturity: number;
        riskHealth: number;
    };
    weights: Record<string, number>;
    sampleSize: number;
}
export interface EvidencePoint {
    type: 'personal' | 'community' | 'org' | 'graph' | 'dna' | 'outcome';
    source: string;
    value: number;
    sampleSize: number;
    description: string;
    weight: number;
}
export interface EvidenceResult {
    patternId: string;
    category: string;
    totalScore: number;
    evidence: EvidencePoint[];
    confidence: number;
}
export interface KnowledgeGap {
    patternId: string;
    category: string;
    communitySuccessRate: number;
    communitySampleSize: number;
    orgSuccessRate: number;
    orgSampleSize: number;
    gapSize: number;
    impact: ImpactLevel;
    recommendation: string;
}
export interface Opportunity {
    title: string;
    category: string;
    currentValue: number;
    expectedValue: number;
    impact: number;
    confidence: number;
    evidenceCount: number;
    effort: 'low' | 'medium' | 'high';
    description: string;
}
export interface RiskDetail {
    title: string;
    category: string;
    rootCause: string;
    probability: number;
    impact: ImpactLevel;
    riskScore: number;
    recommendation: string;
    evidencePoints: string[];
}
export interface PatternLifecycle {
    patternId: string;
    category: string;
    stage: LifecycleStage;
    communityTrend: string;
    orgTrend: string;
    personalTrend: string;
    totalUsage: number;
    avgSuccessRate: number;
    confidence: number;
    estimatedLifespan: string;
}
export interface Decision {
    priority: number;
    action: string;
    category: string;
    impact: number;
    impactUnit: string;
    confidence: number;
    evidenceCount: number;
    effort: 'low' | 'medium' | 'high';
    recommendations: string[];
    keyEvidence: EvidencePoint[];
}
export interface BenchmarkLevel {
    level: 'personal' | 'team' | 'org' | 'community';
    value: number;
    percentile?: number;
    sampleSize: number;
}
export interface MultiLevelBenchmark {
    metric: string;
    levels: BenchmarkLevel[];
    gapToNext: number | null;
    gapToBest: number | null;
    trend: string;
}
export interface IntelligenceReport {
    reportId: string;
    targetId: string;
    targetType: 'developer' | 'team' | 'org';
    generatedAt: number;
    unifiedContext: UnifiedContext;
    intelligenceScore: IntelligenceScoreResult;
    decisions: Decision[];
    gaps: KnowledgeGap[];
    opportunities: Opportunity[];
    risks: RiskDetail[];
    benchmarks: MultiLevelBenchmark[];
    strengths: string[];
    weaknesses: string[];
    summary: string;
}
export interface UnifiedContextInput {
    developerId: string;
    personal?: {
        languages?: string[];
        topCategories?: string[];
        patternsUsed?: number;
        successRate?: number;
        avgConfidence?: number;
        avgHealth?: number;
    };
    project?: {
        projectId?: string;
        primaryLanguage?: string;
        framework?: string | null;
        architecture?: string;
        complexity?: string;
        maturity?: string;
        testingStyle?: string;
        riskScore?: number;
        developmentStyle?: string;
        fingerprint?: string;
    };
    team?: {
        teamId?: string;
        teamName?: string;
        memberCount?: number;
        successRate?: number;
        topLanguages?: string[];
        topCategories?: string[];
        style?: string;
        riskLevel?: string;
        riskScore?: number;
        testingAdoption?: number;
    };
    org?: {
        orgId?: string;
        orgName?: string;
        teamCount?: number;
        memberCount?: number;
        avgSuccessRate?: number;
        totalOutcomes?: number;
    };
    community?: {
        totalPatterns?: number;
        totalDevs?: number;
        totalOutcomes?: number;
        avgSuccessRate?: number;
        topCategories?: string[];
        patternRankings?: Record<string, number>;
    };
}
export declare function buildUnifiedContext(input: UnifiedContextInput): UnifiedContext;
export declare function getCachedContext(developerId: string): UnifiedContext | null;
export interface IntelligenceScoreInput {
    personalSuccessRate?: number;
    personalConfidence?: number;
    personalPatternsUsed?: number;
    communityReputation?: number;
    communityRank?: number;
    orgTeamSuccessRate?: number;
    orgTeamRiskScore?: number;
    graphInfluenceScore?: number;
    dnaMaturityScore?: number;
    dnaRiskScore?: number;
    outcomeHealth?: number;
    riskLevel?: string;
}
export declare function computeIntelligenceScore(input: IntelligenceScoreInput): IntelligenceScoreResult;
export interface EvidenceInput {
    patternId: string;
    category: string;
    personalSuccessRate?: number;
    personalSampleSize?: number;
    communitySuccessRate?: number;
    communitySampleSize?: number;
    orgSuccessRate?: number;
    orgSampleSize?: number;
    graphInfluenceScore?: number;
    dnaSimilarity?: number;
    outcomeConfidence?: number;
    outcomeHealth?: number;
}
export declare function generateEvidence(input: EvidenceInput): EvidenceResult;
export interface KnowledgeGapInput {
    patterns: Array<{
        patternId: string;
        category: string;
        communitySuccessRate: number;
        communitySampleSize: number;
        orgSuccessRate: number;
        orgSampleSize: number;
    }>;
    minGapThreshold?: number;
    minCommunitySample?: number;
}
export declare function detectKnowledgeGaps(input: KnowledgeGapInput): KnowledgeGap[];
export interface OpportunityInput {
    currentSuccessRate: number;
    communityAvgSuccessRate: number;
    topPerformerRate: number;
    gaps: KnowledgeGap[];
    teamTestingAdoption?: number;
    teamCIRate?: number;
    teamReviewRate?: number;
    orgAvgTestingAdoption?: number;
    orgAvgCIRate?: number;
    orgAvgReviewRate?: number;
}
export declare function findOpportunities(input: OpportunityInput): Opportunity[];
export interface RiskV2Input {
    knowledgeSilos?: KnowledgeGap[];
    busFactorScore?: number;
    teamRiskScore?: number;
    teamTestingAdoption?: number;
    teamSuccessRate?: number;
    orgAvgSuccessRate?: number;
    dependencies?: Array<{
        name: string;
        version: string;
        isOutdated: boolean;
    }>;
    memberCount?: number;
    totalPatterns?: number;
}
export declare function analyzeRisks(input: RiskV2Input): RiskDetail[];
export interface LifecycleInput {
    patterns: Array<{
        patternId: string;
        category: string;
        communityTrend: string;
        communityUsage: number;
        orgTrend?: string;
        orgUsage?: number;
        personalSuccessRate?: number;
        personalUsage?: number;
        totalOutcomes?: number;
        avgSuccessRate?: number;
        confidence?: number;
    }>;
}
export declare function classifyLifecycle(input: LifecycleInput): PatternLifecycle[];
export interface DecisionInput {
    intelligenceScore: IntelligenceScoreResult;
    knowledgeGaps: KnowledgeGap[];
    opportunities: Opportunity[];
    risks: RiskDetail[];
    personalSuccessRate: number;
    personalPatternsUsed: number;
    teamTestingAdoption?: number;
    teamCIRate?: number;
    teamReviewRate?: number;
}
export declare function generateDecisions(input: DecisionInput): Decision[];
export interface BenchmarkInput {
    metrics: Array<{
        name: string;
        personalValue?: number;
        personalSampleSize?: number;
        teamValue?: number;
        teamSampleSize?: number;
        orgValue?: number;
        orgSampleSize?: number;
        communityAvg?: number;
        communityP50?: number;
        communityP90?: number;
        communitySampleSize?: number;
    }>;
}
export declare function computeMultiLevelBenchmarks(input: BenchmarkInput): MultiLevelBenchmark[];
export interface ReportGenerationInput {
    targetId: string;
    targetType: 'developer' | 'team' | 'org';
    unifiedContext: UnifiedContext;
    intelligenceScore: IntelligenceScoreResult;
    knowledgeGaps: KnowledgeGap[];
    opportunities: Opportunity[];
    risks: RiskDetail[];
    benchmarks: MultiLevelBenchmark[];
    patternLifecycles?: PatternLifecycle[];
    decisions?: Decision[];
}
export declare function generateIntelligenceReport(input: ReportGenerationInput): IntelligenceReport;
export declare function getReport(reportId: string): IntelligenceReport | null;
export declare function listReports(): string[];
//# sourceMappingURL=cross-layer-intelligence.d.ts.map