/******************************************************************************** * Copyright (c) 2026 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0 * * SPDX-License-Identifier: EPL-2.0 ********************************************************************************/ import { ScanResult } from '../../../context/scan-admin'; export interface DetailBadge { label: string; isEnforced: boolean; type: 'threat' | 'validation' | 'error'; } export declare const ICON_SIZE = 48; export declare const isRunning: (status: ScanResult["status"]) => boolean; export declare const hasFailedScannerJobs: (scan: ScanResult) => boolean; /** * Determines whether the scan card badge/strip should show the striped effect. * Only shows striping when the hypothetical status would be DIFFERENT from the current status. * * - PASSED: Stripe if any threats or validationFailures exist (hypothetical would be QUARANTINED or AUTO REJECTED) * - QUARANTINED: Stripe only if validationFailures exist (hypothetical would be AUTO REJECTED) * - Unenforced threats don't cause striping since hypothetical would still be QUARANTINED * - AUTO REJECTED: Never stripe (hypothetical would still be AUTO REJECTED) */ export declare const shouldShowStriped: (scan: ScanResult) => boolean; export declare const getHypotheticalStatus: (scan: ScanResult) => ScanResult["status"] | null; export declare const getDetailBadges: (scan: ScanResult) => DetailBadge[]; export declare const getStatusColorSx: (status: ScanResult["status"], theme: any) => { backgroundColor: any; color: any; '& .MuiChip-icon': { color: any; }; } | { backgroundColor?: undefined; color?: undefined; '& .MuiChip-icon'?: undefined; }; export declare const getStatusBarColor: (status: ScanResult["status"], theme: any) => any; export declare const shouldShowExpandButton: (scan: ScanResult) => boolean; export declare const hasDownload: (scan: ScanResult) => boolean; export declare const getFileName: (url?: string) => string; //# sourceMappingURL=utils.d.ts.map