export type TeamStyle = 'quality-driven' | 'experiment-driven' | 'speed-driven' | 'stability-driven';
export type RiskLevel = 'low' | 'medium' | 'high' | 'critical';
export interface TeamProfile {
    teamId: string;
    name: string;
    memberCount: number;
    totalPatterns: number;
    totalOutcomes: number;
    successCount: number;
    failureCount: number;
    successRate: number;
    avgConfidence: number;
    avgHealth: number;
    topLanguages: string[];
    topCategories: string[];
    teamDNA: {
        style: TeamStyle;
        riskLevel: RiskLevel;
        riskScore: number;
        testingAdoption: number;
        ciAdoption: number;
        reviewAdoption: number;
    };
    periodStart: number;
    periodEnd: number;
}
export interface OrgBenchmark {
    metric: string;
    teamValues: Array<{
        teamId: string;
        teamName: string;
        value: number;
    }>;
    orgAverage: number;
    orgBest: number;
    orgWorst: number;
    unit: string;
}
export interface WorkflowStep {
    fromPattern: string;
    toPattern: string;
    successRate: number;
    totalUses: number;
}
export interface WorkflowSequence {
    teamId: string;
    steps: string[];
    successRate: number;
    frequency: number;
}
export interface KnowledgeSilo {
    patternId: string;
    description: string;
    knownByTeams: string[];
    totalUsers: number;
    orgTotalMembers: number;
    concentrationRatio: number;
    risk: 'low' | 'medium' | 'high';
}
export interface BusFactorEntry {
    memberId: string;
    memberName: string;
    criticalPatterns: number;
    criticalKnowledge: string[];
    busFactorScore: number;
}
export interface RiskReport {
    teamId: string;
    teamName: string;
    testingRisk: number;
    knowledgeRisk: number;
    dependencyRisk: number;
    processRisk: number;
    overallRisk: number;
    riskLevel: RiskLevel;
    factors: string[];
}
export interface OrgPlaybook {
    playbookId: string;
    title: string;
    teamSource: string;
    steps: string[];
    avgSuccessRate: number;
    sampleSize: number;
}
export interface ExecutiveInsight {
    title: string;
    description: string;
    metric: number;
    impact: 'high' | 'medium' | 'low';
    category: 'improving' | 'declining' | 'risk' | 'opportunity' | 'benchmark';
    supportingData: string[];
}
export interface OrgStoreData {
    orgs: Record<string, {
        teams: Record<string, TeamProfile>;
        members: Record<string, {
            patternsUsed: number;
            successCount: number;
            failureCount: number;
        }>;
        history: Array<{
            timestamp: number;
            teams: Record<string, TeamProfile>;
        }>;
        lastUpdated: number;
    }>;
    version: number;
}
export declare function ensureOrganization(orgId: string): void;
export declare function registerTeam(orgId: string, teamId: string, name: string): void;
export declare function ingestTeamOutcomes(orgId: string, teamId: string, memberId: string, outcomes: Array<{
    success: boolean;
    language?: string;
    category?: string;
}>): void;
export declare function getTeamRankings(orgId: string): {
    topTeams: TeamProfile[];
    worstTeams: TeamProfile[];
    fastestImproving: TeamProfile[];
    declining: TeamProfile[];
};
export declare function computeTeamDNA(orgId: string, teamId: string): TeamProfile['teamDNA'] | null;
export declare function getAllTeamDNA(orgId: string): Array<{
    teamId: string;
    name: string;
    dna: TeamProfile['teamDNA'];
}>;
export declare function computeBenchmarks(orgId: string): OrgBenchmark[];
export declare function detectWorkflows(teamHistories: Array<{
    teamId: string;
    steps: Array<{
        from: string;
        to: string;
        success: boolean;
    }>;
}>): {
    sequences: WorkflowSequence[];
    stepStats: WorkflowStep[];
};
export declare function detectKnowledgeSilos(orgId: string): KnowledgeSilo[];
export declare function computeBusFactor(orgId: string): {
    entries: BusFactorEntry[];
    overallScore: number;
};
export declare function computeTeamRisk(orgId: string): RiskReport[];
export declare function generateOrgPlaybooks(orgId: string): OrgPlaybook[];
export declare function generateExecutiveInsights(orgId: string): ExecutiveInsight[];
export declare function takeSnapshot(orgId: string): void;
export declare function resetOrg(orgId?: string): void;
//# sourceMappingURL=org-intelligence.d.ts.map