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