/** * @file `resolveJanus()` — janus resolution entry point. Tries each source in * order: * * 1. VFS — the smol binary's embedded janus, when packed * 2. PATH — `janus` on the system PATH * 3. download — upstream GitHub release tar.gz (only when `downloadIfMissing` is * passed) Returns `undefined` if all of the enabled sources miss — * including when `downloadIfMissing` is set but the requested * platform-arch isn't shipped by upstream janus (currently darwin-arm64 * only). Memoized per option-shape. */ import type { BinaryDownloader } from '../from-download.js'; import type { HashInput } from '../../crypto/integrity.js'; import type { ResolvedJanus } from './types.js'; export interface ResolveJanusOptions { downloadIfMissing?: { version: string; platformArch: string; integrity?: HashInput | undefined; cacheDir?: string | undefined; downloader?: BinaryDownloader | undefined; } | undefined; } export declare function cacheKey(options: ResolveJanusOptions | undefined): string; export declare function doResolveJanus(options?: ResolveJanusOptions | undefined): Promise; /** * @unused No internal or Socket consumers; exercised only by its unit tests. */ export declare function resetJanusResolution(): void; export declare function resolveJanus(options?: ResolveJanusOptions | undefined): Promise;