/** * @file `resolveUv()` — uv resolution entry point. Tries each source in order: * * 1. VFS — smol binary's embedded uv, when it was packed in * 2. PATH — `uv` on the system PATH * 3. download — upstream GitHub release archive (only when `downloadIfMissing` * is passed) Returns `undefined` if all of the enabled sources miss. * Memoized per option-shape. */ import type { BinaryDownloader } from '../from-download.js'; import type { HashInput } from '../../crypto/integrity.js'; import type { ResolvedUv } from './types.js'; export interface ResolveUvOptions { downloadIfMissing?: { version: string; platformArch: string; integrity?: HashInput | undefined; cacheDir?: string | undefined; downloader?: BinaryDownloader | undefined; } | undefined; } export declare function cacheKey(options: ResolveUvOptions | undefined): string; export declare function doResolveUv(options?: ResolveUvOptions | undefined): Promise; /** * @unused No internal or Socket consumers; exercised only by its unit tests. */ export declare function resetUvResolution(): void; export declare function resolveUv(options?: ResolveUvOptions | undefined): Promise;