/** * Trust Scanner - Rug Check for Crypto Investors * * Analyzes GitHub repositories to detect potential rug pulls and scams. * Returns a trust score (0-100) with plain English explanations. */ export interface TrustCheck { id: string; name: string; status: 'good' | 'warn' | 'bad' | 'info'; points: number; explanation: string; } export interface TrustMetrics { repoAgeDays: number; daysSinceLastPush: number; commitCount: number; contributorCount: number; stars: number; forks: number; watchers: number; openIssues: number; codeFileCount: number; hasTests: boolean; hasReadme: boolean; hasDependencies: boolean; hasLicense: boolean; isFork: boolean; isArchived: boolean; language: string | null; topics: string[]; secretsFound: number; forkChangedLines?: number; forkParentRepo?: string; ownerAccountAgeDays?: number; ownerPublicRepos?: number; ownerTotalContributions?: number; readmeRedFlags?: string[]; codeRedFlags?: string[]; } export interface TrustScanResult { url: string; repoName: string; owner: string; trustScore: number; grade: 'A' | 'B' | 'C' | 'F'; verdict: 'SAFU' | 'DYOR' | 'RISKY' | 'RUG ALERT'; verdictEmoji: string; summary: string; checks: TrustCheck[]; metrics: TrustMetrics; scannedAt: string; } /** * Main trust scan function */ export declare function performTrustScan(gitUrl: string): Promise;