/** * @file Upstream TruffleHog release asset-name mapping per `platform-arch`. * TruffleHog publishes a single tar.gz per platform-arch under * https://github.com/trufflesecurity/trufflehog/releases/download/v/. * Asset names follow `trufflehog___.tar.gz`. */ export interface TrufflehogAssetEntry { /** * Asset-name suffix appended to `trufflehog__`. */ readonly suffix: string; } export declare const TRUFFLEHOG_ASSET_MAP: Readonly>; /** * @unused No internal or Socket consumers; exercised only by its unit tests. */ export declare function getTrufflehogAssetEntry(platformArch: string): TrufflehogAssetEntry | undefined; export interface TrufflehogDownloadOptions { /** * TruffleHog release version, e.g. `'3.93.8'` (no `v` prefix; the helper * prepends it). */ version: string; /** * Socket platform-arch token — looked up in `TRUFFLEHOG_ASSET_MAP`. Returns * `undefined` when no entry exists for the target. */ platformArch: string; } /** * Build the GitHub release-asset download URL for an upstream TruffleHog * binary. Returns `undefined` when no entry exists for the requested * platform-arch. * * Reference: https://github.com/trufflesecurity/trufflehog/releases. */ export declare function getTrufflehogDownloadUrl(options: TrufflehogDownloadOptions): string | undefined;