/** * @file Upstream janus release asset-name mapping per `platform-arch`. janus * publishes per-platform tarballs under * https://github.com/divmain/janus/releases/download/v/. At v1.22.0 * only darwin-arm64 is shipped; this map will expand as upstream adds builds. * Callers receive `undefined` for unsupported platforms — surface that as an * actionable "janus is mac-arm64 only" error rather than blindly fetching a * 404. */ export interface JanusAssetEntry { /** * Full asset filename (version-free; the helper interpolates the tag). */ readonly asset: string; } export declare const JANUS_ASSET_MAP: Readonly>; /** * Single source of truth for the platform-arch tokens janus ships. Derived from * JANUS_ASSET_MAP keys so adding a new asset entry automatically updates the * supported set. Use this from `from-download.ts` to throw a helpful error * rather than letting the URL builder silently return undefined. */ export declare const JANUS_SUPPORTED_PLATFORM_ARCHES: readonly string[]; /** * @unused No internal or Socket consumers; exercised only by its unit tests. */ export declare function getJanusAssetEntry(platformArch: string): JanusAssetEntry | undefined; export interface JanusDownloadOptions { /** * Janus release version, e.g. `'1.22.0'` (no `v` prefix; the helper prepends * it for the release tag). */ version: string; /** * Socket platform-arch token — looked up in `JANUS_ASSET_MAP`. Returns * `undefined` for any platform-arch janus doesn't ship a build for. */ platformArch: string; } /** * Build the GitHub release-asset download URL for an upstream janus binary. * Returns `undefined` when no entry exists for the requested platform-arch. * * Reference: https://github.com/divmain/janus/releases. */ export declare function getJanusDownloadUrl(options: JanusDownloadOptions): string | undefined;