/** * @file `trivyFromDownload()` — fetches upstream Trivy and returns a * `ResolvedTrivy` pointing at the extracted binary. macOS/Linux ship tar.gz, * Windows ships zip; `downloadAndExtractTool` auto-detects the format from * the archive name. */ import type { BinaryDownloader } from '../from-download.js'; import type { HashInput } from '../../crypto/integrity.js'; import type { ResolvedTrivy } from './types.js'; export interface TrivyFromDownloadOptions { version: string; platformArch: string; integrity?: HashInput | undefined; cacheDir?: string | undefined; downloader?: BinaryDownloader | undefined; } export declare function trivyFromDownload(options: TrivyFromDownloadOptions): Promise;