/** * Central export of utility functions for CIA Compliance Manager * * This index file provides organized exports of all utility functions * to ensure they're properly accessible throughout the application. * * @packageDocumentation */ import { BUSINESS_IMPACT_CATEGORIES, RISK_LEVELS } from "../constants/riskConstants"; import { calculateRiskLevel } from "../types/cia.utility"; import { SecurityLevel } from "../types/cia"; import * as colorUtils from "./colorUtils"; import * as costUtils from "./costCalculationUtils"; import * as errorUtils from "./errorUtils"; import * as formatUtils from "./formatUtils"; import * as levelUtils from "./levelValuesUtils"; import * as riskUtils from "./riskUtils"; import * as securityUtils from "./securityLevelUtils"; import * as typeGuards from "./typeGuards"; import * as widgetUtils from "./widgetHelpers"; import * as accessibilityUtils from "./accessibility"; export declare const ARIA_ROLES: { readonly NAVIGATION: 'navigation'; readonly MAIN: 'main'; readonly COMPLEMENTARY: 'complementary'; readonly REGION: 'region'; readonly ARTICLE: 'article'; readonly BANNER: 'banner'; readonly CONTENTINFO: 'contentinfo'; readonly SEARCH: 'search'; readonly TABLIST: 'tablist'; readonly TAB: 'tab'; readonly TABPANEL: 'tabpanel'; readonly BUTTON: 'button'; readonly LINK: 'link'; readonly LIST: 'list'; readonly LISTITEM: 'listitem'; readonly ALERT: 'alert'; readonly STATUS: 'status'; readonly PROGRESSBAR: 'progressbar'; }, ARIA_LIVE: { readonly OFF: 'off'; readonly POLITE: 'polite'; readonly ASSERTIVE: 'assertive'; }, getSecurityLevelAriaLabel: typeof accessibilityUtils.getSecurityLevelAriaLabel, getWidgetAriaDescription: typeof accessibilityUtils.getWidgetAriaDescription, getTabAriaProps: typeof accessibilityUtils.getTabAriaProps, getTabPanelAriaProps: typeof accessibilityUtils.getTabPanelAriaProps, getButtonAriaProps: typeof accessibilityUtils.getButtonAriaProps, getSelectAriaProps: typeof accessibilityUtils.getSelectAriaProps, getProgressAriaProps: typeof accessibilityUtils.getProgressAriaProps, getStatusAriaProps: typeof accessibilityUtils.getStatusAriaProps, getChartAriaProps: typeof accessibilityUtils.getChartAriaProps, getTabIndex: typeof accessibilityUtils.getTabIndex, handleArrowKeyNavigation: typeof accessibilityUtils.handleArrowKeyNavigation, getMetricAccessibleName: typeof accessibilityUtils.getMetricAccessibleName, announceToScreenReader: typeof accessibilityUtils.announceToScreenReader, meetsContrastRequirement: typeof accessibilityUtils.meetsContrastRequirement; export declare const getSecurityLevelColorClass: typeof colorUtils.getSecurityLevelColorClass; export declare const getColorForRiskLevel: typeof colorUtils.getSecurityLevelColorClass; export declare const getComplianceStatusColor: typeof colorUtils.getSecurityLevelColorClass; export declare const getProgressColor: (progress: number) => "text-blue-500" | "text-green-500" | "text-red-500" | "text-yellow-500"; export declare const getSeverityColor: (severity: string) => "text-green-500" | "text-red-500" | "text-yellow-500"; export declare const calculateImplementationCost: typeof costUtils.calculateImplementationCost, calculateTotalSecurityCost: typeof costUtils.calculateTotalSecurityCost, calculateSecurityROI: typeof costUtils.calculateSecurityROI, getRecommendedBudgetAllocation: typeof costUtils.getRecommendedBudgetAllocation; export type { CostResult } from "./costCalculationUtils"; export declare const formatBudgetPercentage: typeof formatUtils.formatBudgetPercentage, formatCurrency: typeof formatUtils.formatCurrency, formatDate: typeof formatUtils.formatDate, formatLargeNumber: typeof formatUtils.formatLargeNumber, formatNumber: typeof formatUtils.formatNumber, formatNumberWithDecimals: typeof formatUtils.formatNumberWithDecimals, formatPercentage: typeof formatUtils.formatPercentage, formatRiskLevel: typeof formatUtils.formatRiskLevel, formatTimeframe: typeof formatUtils.formatTimeframe, formatUptime: typeof formatUtils.formatUptime, toTitleCase: typeof formatUtils.toTitleCase; export declare const calculateOverallSecurityLevelFromValues: typeof levelUtils.calculateOverallSecurityLevel, compareSecurityLevels: typeof levelUtils.compareSecurityLevels, getNormalizedSecurityValue: typeof levelUtils.getNormalizedSecurityValue, getNumericSecurityLevelValue: typeof levelUtils.getSecurityLevelValue, getSecurityLevelFromValue: typeof levelUtils.getSecurityLevelFromValue, SECURITY_LEVEL_VALUES: Record; export declare const calculateCombinedRiskLevel: typeof riskUtils.calculateCombinedRiskLevel, calculateRiskScore: typeof riskUtils.calculateRiskScore, getFormattedRiskLevel: typeof riskUtils.getFormattedRiskLevel, getRiskBadgeVariant: typeof riskUtils.getRiskBadgeVariant, getRiskLevelFromSecurityLevel: typeof riskUtils.getRiskLevelFromSecurityLevel, getRiskScoreFromSecurityLevel: typeof riskUtils.getRiskScoreFromSecurityLevel, getRiskSeverityDescription: typeof riskUtils.getRiskSeverityDescription, getStatusBadgeForRiskLevel: typeof riskUtils.getStatusBadgeForRiskLevel, parseRiskLevel: typeof riskUtils.parseRiskLevel; export declare const calculateOverallSecurityLevel: typeof securityUtils.calculateOverallSecurityLevel, asSecurityLevel: typeof securityUtils.asSecurityLevel, formatSecurityLevelString: typeof securityUtils.formatSecurityLevel, getRecommendedSecurityLevel: typeof securityUtils.getRecommendedSecurityLevel, getSecurityIcon: typeof securityUtils.getSecurityIcon, getSecurityLevelBadgeVariant: typeof securityUtils.getSecurityLevelBadgeVariant, getSecurityLevelClass: typeof securityUtils.getSecurityLevelClass, getSecurityLevelDescription: typeof securityUtils.getSecurityLevelDescription, getSecurityLevelPercentage: typeof securityUtils.getSecurityLevelPercentage, getSecurityLevelValue: typeof securityUtils.getSecurityLevelValue, isSecurityLevel: typeof securityUtils.isSecurityLevel, meetsComplianceRequirements: typeof securityUtils.meetsComplianceRequirements, normalizeSecurityLevel: typeof securityUtils.normalizeSecurityLevel; export declare const formatSecurityLevelFromWidget: typeof widgetUtils.formatSecurityLevel, getWidgetColumnSpan: typeof widgetUtils.getWidgetColumnSpan, getWidgetRowSpan: typeof widgetUtils.getWidgetRowSpan, handleWidgetError: typeof widgetUtils.handleWidgetError, KeyValuePair: typeof widgetUtils.KeyValuePair, RiskLevelKeyValue: typeof widgetUtils.RiskLevelKeyValue, sanitizeWidgetId: typeof widgetUtils.sanitizeWidgetId, SecurityLevelBadge: typeof widgetUtils.SecurityLevelBadge, WidgetEmptyState: typeof widgetUtils.WidgetEmptyState, WidgetError: typeof widgetUtils.WidgetError, WidgetLoading: typeof widgetUtils.WidgetLoading; export declare const calculateWidgetRiskLevel: (availabilityLevel: SecurityLevel, integrityLevel: SecurityLevel, confidentialityLevel: SecurityLevel) => "Critical" | "High" | "Low" | "Medium" | "Minimal"; export declare const formatSecurityMetric: (value: number, prefix?: string, suffix?: string) => string; export declare const ensureArray: typeof typeGuards.ensureArray, extractSecurityLevels: typeof typeGuards.extractSecurityLevels, hasProperty: typeof typeGuards.hasProperty, hasTagValue: typeof typeGuards.hasTagValue, isBusinessImpactCategory: typeof typeGuards.isBusinessImpactCategory, isBusinessImpactDetails: typeof typeGuards.isBusinessImpactDetails, isComplianceFramework: typeof typeGuards.isComplianceFramework, isComplianceFrameworkName: typeof typeGuards.isComplianceFrameworkName, isComplianceFrameworkObject: typeof typeGuards.isComplianceFrameworkObject, isComplianceStatus: typeof typeGuards.isComplianceStatus, isNumber: typeof typeGuards.isNumber, isObject: typeof typeGuards.isObject, isRiskLevel: typeof typeGuards.isRiskLevel, isROIEstimate: typeof typeGuards.isROIEstimate, isROIMetricDetails: typeof typeGuards.isROIMetricDetails, isROIMetrics: typeof typeGuards.isROIMetrics, isSecurityProfile: typeof typeGuards.isSecurityProfile, isSecurityResource: typeof typeGuards.isSecurityResource, isString: typeof typeGuards.isString, isWidget: typeof typeGuards.isWidget, isWidgetConfig: typeof typeGuards.isWidgetConfig, isWidgetProps: typeof typeGuards.isWidgetProps, isWidgetType: typeof typeGuards.isWidgetType, safeAccess: typeof typeGuards.safeAccess, safeNumberConversion: typeof typeGuards.safeNumberConversion, hasWidgetProps: typeof typeGuards.hasWidgetProps; export declare const toErrorObject: typeof errorUtils.toErrorObject, formatError: typeof errorUtils.formatError; export { BUSINESS_IMPACT_CATEGORIES, calculateRiskLevel, RISK_LEVELS }; export * from "./keyboardUtils"; export { cn, WidgetClasses } from "./tailwindClassHelpers"; export type { WidgetClassKey } from "./tailwindClassHelpers"; //# sourceMappingURL=index.d.ts.map