/** * @file `resolveCdxgen()` — cdxgen resolution entry point. Tries each source in * order: * * 1. VFS — smol binary's embedded cdxgen, when packed * 2. PATH — `cdxgen` on the system PATH * 3. download — upstream SEA binary from the GitHub release (slim by default; * pass `variant: 'full'` for the bun+deno-bundled flavor) Single source of * truth: SEA binary only. No npm-package fallback — every Socket * platform-arch is covered by the SEA matrix, and routing through npm * would split the install surface in two for no benefit. 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 { CdxgenVariant } from './asset-names.js'; import type { ResolvedCdxgen } from './types.js'; export interface ResolveCdxgenOptions { downloadIfMissing?: { version: string; platformArch: string; variant?: CdxgenVariant | undefined; integrity?: HashInput | undefined; cacheDir?: string | undefined; downloader?: BinaryDownloader | undefined; } | undefined; } export declare function cacheKey(options: ResolveCdxgenOptions | undefined): string; export declare function doResolveCdxgen(options?: ResolveCdxgenOptions | undefined): Promise; /** * @unused No internal or Socket consumers; exercised only by its unit tests. */ export declare function resetCdxgenResolution(): void; export declare function resolveCdxgen(options?: ResolveCdxgenOptions | undefined): Promise;