import { DependencyRef } from './types.js'; export interface OsvAdvisory { ref: DependencyRef; /** OSV advisory id (e.g. MAL-2026-4312). */ id: string; summary?: string; /** * Enumerated affected versions, when the advisory scopes the malware to * specific releases (a compromised-release incident rather than a * package that is malware in every version). Undefined = all versions. */ affectedVersions?: string[]; } export interface OsvQueryResult { advisories: OsvAdvisory[]; /** Network/API error, when the OSV API could not be reached at all. */ error?: string; } export interface OsvOptions { timeoutMs?: number; fetchFn?: typeof fetch; } /** * Check dependencies against the OSV.dev database for known-malicious packages * (MAL-* entries from the OSV malicious-packages project, which aggregates the * GitHub Advisory Database, PyPI, and partner feeds). Version-range * vulnerabilities are out of scope here: package-level malware applies to every * version, which is exactly the class relevant to hallucinated/typosquatted names. */ export declare function queryOsvMalware(refs: DependencyRef[], opts?: OsvOptions): Promise;