/** * @file `resolveTrivy()` — Trivy resolution entry point. Tries each source in * order: * * 1. VFS — smol binary's embedded Trivy, when packed * 2. PATH — `trivy` on the system PATH * 3. download — upstream GitHub release archive (only when `downloadIfMissing` * is passed) Returns `undefined` if all of the enabled sources miss. * Memoized per option-shape. */ import type { BinaryDownloader } from '../from-download.js'; import type { HashInput } from '../../crypto/integrity.js'; import type { ResolvedTrivy } from './types.js'; export interface ResolveTrivyOptions { downloadIfMissing?: { version: string; platformArch: string; integrity?: HashInput | undefined; cacheDir?: string | undefined; downloader?: BinaryDownloader | undefined; } | undefined; } export declare function cacheKey(options: ResolveTrivyOptions | undefined): string; export declare function doResolveTrivy(options?: ResolveTrivyOptions | undefined): Promise; /** * @unused No internal or Socket consumers; only its unit tests exercise it. */ export declare function resetTrivyResolution(): void; export declare function resolveTrivy(options?: ResolveTrivyOptions | undefined): Promise;