import type { TenantStorageRawData } from '../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage'; import type { TenantStorageStats } from '../../../../../store/reducers/tenants/utils'; import type { EPathSubType, EPathType } from '../../../../../types/api/schema'; import type { TenantStorageMetrics } from './types'; export declare const TENANT_STORAGE_SEGMENT_KEYS: { readonly rowTables: "rowTables"; readonly columnTables: "columnTables"; readonly topics: "topics"; readonly system: "system"; readonly unknown: "unknown"; }; export declare const TENANT_STORAGE_SYSTEM_DETAIL_KEYS: { readonly hive: "Hive"; readonly coordinator: "Coordinator"; readonly mediator: "Mediator"; readonly schemeShard: "SchemeShard"; readonly sysViewProcessor: "SysViewProcessor"; readonly graphShard: "GraphShard"; readonly statisticsAggregator: "StatisticsAggregator"; readonly bsController: "BSController"; readonly cms: "Cms"; readonly nodeBroker: "NodeBroker"; readonly tenantSlotBroker: "TenantSlotBroker"; readonly console: "Console"; }; export type TenantStorageSegmentKey = (typeof TENANT_STORAGE_SEGMENT_KEYS)[keyof typeof TENANT_STORAGE_SEGMENT_KEYS]; export type TenantStorageSystemDetailKey = (typeof TENANT_STORAGE_SYSTEM_DETAIL_KEYS)[keyof typeof TENANT_STORAGE_SYSTEM_DETAIL_KEYS]; export interface TenantStorageSegment { key: TenantStorageSegmentKey; value: number; displayValue?: number; progressValue?: number; } export interface TenantStorageSystemDetail { key: TenantStorageSystemDetailKey; value: number; } export interface TenantStorageSummary { available?: number; availableApproximate?: boolean; overhead?: number; preserveDisplayValues?: boolean; quota?: number; total?: number; used: number; usedPercent: number; segments: TenantStorageSegment[]; } export interface TenantStorageTopRow { displayPath?: string; displayTypeLabel?: string; path: string; pathType?: EPathType; pathSubType?: EPathSubType; userData: number; physicalDisk?: number; dbShare: number; overhead?: number; } export interface TenantStorageLogicalUserData { rowTables?: number; topics?: number; } export interface TenantStorageData { logicalUserData?: TenantStorageLogicalUserData; summary: { userData: TenantStorageSummary; physical: TenantStorageSummary; }; topRows: TenantStorageTopRow[]; topRowsError?: unknown; userDataSegments: TenantStorageSegment[]; physicalSegmentsByMedia: Record; systemDetailsByMedia: Record; } export interface TenantStorageMediaSection { mediaType: string; userData: TenantStorageSummary; physical: TenantStorageSummary; } export declare function getTenantStorageSegmentDisplayValue(segment: TenantStorageSegment): number; export declare function getTenantStorageMediaKey(mediaType?: string): string; export declare function mergeSystemDetailsByMedia(detailsByMedia: Record): TenantStorageSystemDetail[]; export declare function getTenantStoragePhysicalMediaBreakdown({ allowAggregateFallback, mediaType, physicalSegmentsByMedia, systemDetailsByMedia, }: { allowAggregateFallback?: boolean; mediaType?: string; physicalSegmentsByMedia: Record; systemDetailsByMedia: Record; }): { segments: TenantStorageSegment[] | undefined; systemDetails: TenantStorageSystemDetail[] | undefined; }; export declare function getTenantStoragePhysicalDisplaySegments({ segments, used, }: { segments: TenantStorageSegment[] | undefined; used: number; }): TenantStorageSegment[]; export declare function getTenantStorageUserDataDisplaySummary({ summary, logicalUserData, useLogicalBreakdown, physical, }: { summary: TenantStorageSummary; logicalUserData?: TenantStorageLogicalUserData; useLogicalBreakdown: boolean; physical: TenantStorageSummary; }): TenantStorageSummary; export declare function isSystemStoragePath(path: string): boolean; export declare function buildTenantStorageMediaSections({ blobStorageStats, metrics, tabletStorageStats, }: { blobStorageStats?: TenantStorageStats[]; metrics: TenantStorageMetrics; tabletStorageStats?: TenantStorageStats[]; }): TenantStorageMediaSection[]; export declare function buildTenantStorageData(rawData: TenantStorageRawData | undefined, metrics: TenantStorageMetrics): TenantStorageData;