export interface SharedPattern {
    id: string;
    sourceProject: string;
    category: string;
    pattern: string;
    confidence: number;
    language?: string;
    framework?: string;
    successRate: number;
    sharedAt: string;
}
export interface CrossProjectInsight {
    sourceProject: string;
    targetProject: string;
    compatiblePatterns: Array<{
        pattern: string;
        compatibility: number;
        reason: string;
    }>;
    sharedErrors: Array<{
        error: string;
        count: number;
        projects: string[];
    }>;
    sharedDecisions: Array<{
        decision: string;
        project: string;
        outcome: string;
    }>;
}
export declare function sharePatternToMemory(projectDir: string, pattern: {
    category: string;
    rule: string;
    language?: string;
    framework?: string;
    successRate?: number;
}): string;
export declare function getSharedPatterns(projectDir: string, category?: string): SharedPattern[];
export declare function getCompatiblePatterns(targetProject: string, targetStack: string[]): SharedPattern[];
export declare function getCrossProjectInsights(projectDir: string, allProjectDirs: string[]): CrossProjectInsight;
export declare function getCrossProjectStats(): {
    totalPatterns: number;
    totalProjects: number;
    topCategories: Array<{
        category: string;
        count: number;
    }>;
    topProjects: Array<{
        project: string;
        count: number;
    }>;
};
//# sourceMappingURL=cross-project-memory.d.ts.map