export interface CommunityPattern {
    id: number;
    patternId: string;
    anonymousId: string;
    category: string;
    language: string;
    framework: string;
    rule: string;
    successRate: number;
    usageCount: number;
    votes: number;
    privacySafe: boolean;
    sharedAt: string;
}
export interface CommunityInsight {
    id: number;
    type: string;
    title: string;
    description: string;
    category: string;
    language: string;
    severity: 'critical' | 'warning' | 'info';
    evidence: string;
    createdAt: string;
}
export interface CommunityBenchmark {
    id: number;
    metric: string;
    value: number;
    userValue: number;
    delta: number;
    category: string;
    createdAt: string;
}
export interface CommunityStats {
    totalPatterns: number;
    totalInsights: number;
    totalBenchmarks: number;
    totalVotes: number;
    byCategory: Record<string, number>;
    byLanguage: Record<string, number>;
    topPatterns: CommunityPattern[];
    topInsights: CommunityInsight[];
    recentActivity: Array<{
        type: string;
        count: number;
        lastAt: string;
    }>;
}
export interface TechEvolution {
    technology: string;
    currentUsage: number;
    trend30d: number;
    trend90d: number;
    adoptionPhase: 'emerging' | 'growing' | 'mature' | 'declining';
    relatedMigrations: string[];
}
export interface FailurePattern {
    category: string;
    language: string;
    description: string;
    frequency: number;
    severity: 'critical' | 'warning' | 'info';
    mitigation: string;
}
export declare function shareCommunityPattern(params: {
    category: string;
    rule: string;
    language?: string;
    framework?: string;
    successRate?: number;
    anonymousId?: string;
}): {
    id: number;
    patternId: string;
    privacySafe: boolean;
    warnings: string[];
};
export declare function getCommunityPatterns(filters?: {
    category?: string;
    language?: string;
    minVotes?: number;
    limit?: number;
}): CommunityPattern[];
export declare function voteCommunityPattern(patternId: string, upvote: boolean): {
    success: boolean;
    newVotes: number;
};
export declare function incrementUsage(patternId: string): {
    success: boolean;
    newCount: number;
};
export declare function addCommunityInsight(insight: Omit<CommunityInsight, 'id' | 'createdAt'>): {
    id: number;
};
export declare function getCommunityInsights(filters?: {
    severity?: 'critical' | 'warning' | 'info';
    category?: string;
    limit?: number;
}): CommunityInsight[];
export declare function addBenchmark(params: {
    metric: string;
    value: number;
    userValue?: number;
    category?: string;
}): {
    id: number;
    delta: number;
};
export declare function getBenchmarks(filters?: {
    category?: string;
    limit?: number;
}): CommunityBenchmark[];
export declare function getCommunityStats(): CommunityStats;
export declare function getTechEvolution(): TechEvolution[];
export declare function getFailurePatterns(filters?: {
    language?: string;
    limit?: number;
}): FailurePattern[];
export interface PrivacyValidation {
    safe: boolean;
    errors: string[];
    warnings: string[];
    sanitized: string;
}
export declare function validatePrivacy(rule: string): PrivacyValidation;
export declare function createAnonymousId(): string;
//# sourceMappingURL=community-store.d.ts.map