import type { InfluenceScore, SocialEdge, MoltbookAgent } from '../moltbook/types.js'; declare class SocialGraphAnalyzer { private graph; /** * Calculate influence score for an agent */ calculateInfluenceScore(agent: MoltbookAgent, followers: number, following: number): InfluenceScore; /** * Add or update an agent in the graph */ addAgent(agent: MoltbookAgent): Promise; /** * Add an edge to the graph */ addEdge(from: string, to: string, type: SocialEdge['type'], weight?: number): void; /** * Get influence score for an agent */ getInfluenceScore(agentId: string): InfluenceScore | undefined; /** * Get top influencers */ getTopInfluencers(limit?: number): InfluenceScore[]; /** * Get rising stars (high engagement, moderate followers) */ getRisingStars(limit?: number): InfluenceScore[]; /** * Get agents with high karma but few followers (undervalued) */ getUndervaluedAgents(limit?: number): InfluenceScore[]; /** * Get mutual connections between two agents */ getMutualConnections(agentId1: string, agentId2: string): string[]; /** * Get agents who follow a specific agent */ getFollowers(agentId: string): string[]; /** * Get agents followed by a specific agent */ getFollowing(agentId: string): string[]; /** * Calculate PageRank-like influence propagation */ calculatePageRank(iterations?: number, dampingFactor?: number): Map; /** * Get graph statistics */ getStats(): { nodeCount: number; edgeCount: number; avgFollowers: number; avgKarma: number; topInfluencer: InfluenceScore | null; }; /** * Export graph data for visualization */ exportGraph(): { nodes: InfluenceScore[]; edges: SocialEdge[]; }; /** * Clear the graph */ clear(): void; } export declare const socialGraph: SocialGraphAnalyzer; export {}; //# sourceMappingURL=social-graph.d.ts.map