/** * Known Vulnerable Packages Database * Static database of known CVEs for offline vulnerability detection * This is a sample database - in production, integrate with OSV, NVD, or Snyk APIs */ import { CVEInfo, PackageEcosystem } from '../types'; /** * CVE database entry */ export interface CVEDatabaseEntry { ecosystem: PackageEcosystem; packageName: string; cve: CVEInfo; vulnerableVersions: string[]; } /** * Sample CVE database with well-known vulnerabilities */ export declare const CVE_DATABASE: CVEDatabaseEntry[]; /** * Check if a version matches a vulnerable version pattern */ export declare function isVersionVulnerable(version: string, vulnerablePatterns: string[]): boolean; /** * Get CVEs for a package */ export declare function getCVEsForPackage(packageName: string, ecosystem: PackageEcosystem, version?: string): CVEInfo[]; /** * Get all CVEs in the database */ export declare function getAllCVEs(): CVEDatabaseEntry[]; //# sourceMappingURL=cveDatabase.d.ts.map