/** * @file `resolveSbt()` — SBT resolution entry point. Tries each source in * order: * * 1. VFS — smol binary's embedded `sbt-launch.jar`, when packed * 2. PATH — `sbt` script on the system PATH * 3. download — upstream GitHub release tgz (only when `downloadIfMissing` is * passed) VFS-sourced SBT is a `.jar` that must be invoked as `java -jar * ` using the JRE resolved separately via `resolveJre()`. PATH- and * download-sourced SBT is the `sbt` script, which finds its own JRE. * Memoized per option-shape. */ import type { BinaryDownloader } from '../from-download.js'; import type { HashInput } from '../../crypto/integrity.js'; import type { ResolvedSbt } from './types.js'; export interface ResolveSbtOptions { /** * When set, the resolver falls through to a GitHub release download after the * local-discovery tiers miss. Omit to keep the resolver read-only. */ downloadIfMissing?: { version: string; integrity?: HashInput | undefined; cacheDir?: string | undefined; downloader?: BinaryDownloader | undefined; } | undefined; } export declare function cacheKey(options: ResolveSbtOptions | undefined): string; export declare function doResolveSbt(options?: ResolveSbtOptions | undefined): Promise; /** * @unused No internal or Socket consumers — exercised only by its unit tests. */ export declare function resetSbtResolution(): void; export declare function resolveSbt(options?: ResolveSbtOptions | undefined): Promise;