/** * @file Upstream Trivy release asset-name mapping per `platform-arch`. Trivy * publishes per-platform archives under * https://github.com/aquasecurity/trivy/releases/download/v/. Asset * names follow `trivy__-.{tar.gz,zip}` where `` is * `macOS` / `Linux` / `windows` and `` is `ARM64` / `64bit`. * Capitalization matters. */ export interface TrivyAssetEntry { /** * Asset-name suffix appended to `trivy__`. */ readonly suffix: string; } export declare const TRIVY_ASSET_MAP: Readonly>; export declare function getTrivyAssetEntry(platformArch: string): TrivyAssetEntry | undefined; export interface TrivyDownloadOptions { /** * Trivy release version, e.g. `'0.69.3'` (no `v` prefix; the helper prepends * it for the release tag). */ version: string; /** * Socket platform-arch token — looked up in `TRIVY_ASSET_MAP`. */ platformArch: string; } /** * Build the GitHub release-asset download URL for an upstream Trivy binary. * Returns `undefined` when no entry exists for the requested platform-arch. * * Reference: https://github.com/aquasecurity/trivy/releases. */ export declare function getTrivyDownloadUrl(options: TrivyDownloadOptions): string | undefined;