/**
 * @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';
import type { HashSpec } from '../../integrity';
import type { ResolvedTrivy } from './types';
export interface TrivyFromDownloadOptions {
    version: string;
    platformArch: string;
    integrity?: HashSpec | undefined;
    cacheDir?: string | undefined;
    downloader?: BinaryDownloader | undefined;
}
export declare function trivyFromDownload(opts: TrivyFromDownloadOptions): Promise<ResolvedTrivy | undefined>;
