/** * @file `opengrepFromDownload()` — fetches upstream OpenGrep and returns a * `ResolvedOpengrep` pointing at the cached binary. macOS/Linux assets are * bare binaries needing no extraction; Windows ships a zip. The asset-map's * `isArchive` flag drives extraction vs. copy. */ import type { BinaryDownloader } from '../from-download.js'; import type { HashInput } from '../../crypto/integrity.js'; import type { ResolvedOpengrep } from './types.js'; export interface OpengrepFromDownloadOptions { version: string; platformArch: string; integrity?: HashInput | undefined; cacheDir?: string | undefined; downloader?: BinaryDownloader | undefined; } export declare function opengrepFromDownload(options: OpengrepFromDownloadOptions): Promise;