/** * @file `janusFromDownload()` — fetches upstream janus and returns a * `ResolvedJanus` pointing at the extracted binary. janus ships tar.gz * archives containing a bare `janus` binary at the archive root (no nested * directory). Defaults install under the shared wheelhouse dir * (`~/.socket/_wheelhouse/janus///`) rather than the * per-process dlx cache, so multiple Socket consumers reuse the same * extracted binary. */ import type { BinaryDownloader } from '../from-download.js'; import type { HashInput } from '../../crypto/integrity.js'; import type { ResolvedJanus } from './types.js'; export interface JanusFromDownloadOptions { version: string; platformArch: string; integrity?: HashInput | undefined; /** * Override the install directory. By default the binary lands in * `/janus///` — a shared * shared location so multiple Socket tools resolve the same binary * without per-process duplication. */ cacheDir?: string | undefined; downloader?: BinaryDownloader | undefined; } export declare function janusFromDownload(options: JanusFromDownloadOptions): Promise;