import { TrendAnalysis, MetricTrend } from '../types/sonarqube.js'; /** * Format duration from minutes to human readable format */ export declare function formatDuration(minutes: number): string; /** * Parse technical debt string to minutes */ export declare function parseTechnicalDebt(debt: string): number; /** * Calculate percentage change between two values */ export declare function calculatePercentageChange(oldValue: number, newValue: number): number; /** * Determine trend direction from percentage change */ export declare function getTrendDirection(change: number): 'UP' | 'DOWN' | 'STABLE'; /** * Format percentage with proper sign and precision */ export declare function formatPercentage(value: number, decimals?: number): string; /** * Calculate trend analysis from metric history */ export declare function calculateTrends(metricTrends: MetricTrend[]): TrendAnalysis; /** * Get severity level as number for sorting */ export declare function getSeverityLevel(severity: string): number; /** * Get rating color for quality gates and ratings */ export declare function getRatingColor(rating: string): string; /** * Get status emoji for various statuses */ export declare function getStatusEmoji(status: string): string; /** * Format large numbers with appropriate units */ export declare function formatNumber(num: number): string; /** * Get priority level for issues based on type and severity */ export declare function getIssuePriority(type: string, severity: string): number; /** * Sort issues by priority (highest first) */ export declare function sortIssuesByPriority(issues: T[]): T[]; /** * Validate SonarQube project key format */ export declare function isValidProjectKey(key: string): boolean; /** * Parse quality gate operator to human readable text */ export declare function formatQualityGateOperator(operator: string): string; /** * Format metric name to human readable text */ export declare function formatMetricName(metric: string): string; /** * Create a summary text for analysis results */ export declare function createAnalysisSummary(data: { projectName: string; totalIssues?: number; criticalIssues?: number; coverage?: number; duplications?: number; technicalDebt?: string; qualityGate?: string; }): string; /** * Generate recommendations based on analysis results */ export declare function generateRecommendations(data: { coverage?: number; duplications?: number; criticalIssues?: number; vulnerabilities?: number; technicalDebtMinutes?: number; }): string[]; /** * Format issue type for display */ export declare function formatIssueType(type: string): string; /** * Format severity for display */ export declare function formatSeverity(severity: string): string; //# sourceMappingURL=formatting.d.ts.map