import { EFlag } from '../../types/api/enums'; import type { DisplaySeverity, PreparedVDisk } from './types'; export type SeverityCalculator = (vDisk: PreparedVDisk) => DisplaySeverity; /** * Calculate severity based only on VDiskState * Used in State grouping mode * Uses special mapping where Initial=Yellow and Error=SolidRed * Replicating disks (Replicated=false) remain Blue regardless of state */ export declare function calculateStateSeverity(vDisk: PreparedVDisk): DisplaySeverity; /** * Calculate severity based only on disk space usage * Used in Space grouping mode * Maps capacityAlert to detailed severity levels for visual differentiation */ export declare function calculateSpaceSeverity(vDisk: PreparedVDisk): DisplaySeverity; /** * Calculate severity based only on front queues * Used in FrontQueues grouping mode * Maps FrontQueues flag to detailed severity levels: * - Grey -> N/D (NOT_AVAILABLE_SEVERITY) * - Green -> OK (FRONT_QUEUES_SEVERITY.OK) * - Blue -> ??? (treated as Green/OK) * - Yellow -> Notice (FRONT_QUEUES_SEVERITY.NOTICE) * - Orange -> Warning (FRONT_QUEUES_SEVERITY.WARNING) * - Red -> Impaired (FRONT_QUEUES_SEVERITY.IMPAIRED) * * Note: Unlike Space mode, replicating disks (Replicated=false) do NOT get Blue color. * Instead, they show striped pattern with their actual severity color (handled in CSS). */ export declare function calculateFrontQueuesSeverity(vDisk: PreparedVDisk): DisplaySeverity; /** * Calculate severity based on two related status flags. * Border color is determined by the worst flag: * - Both Green or Blue -> Green border (OK) * - Missing or Grey outranks Green -> no-data styling * - At least one Yellow -> Yellow border (NOTICE) * - At least one Orange or Red -> Red border (WARNING) */ export declare function calculateFlagPairSeverity(firstFlag: EFlag | undefined, secondFlag: EFlag | undefined): DisplaySeverity; export declare function calculateCompactionSeverity(vDisk: PreparedVDisk): DisplaySeverity; /** * Calculate severity for "All" grouping mode using VDiskState semantics. */ export declare function calculateAllSeverity(vDisk: PreparedVDisk): DisplaySeverity;