import { Logger } from '../types/cli.types';
import { CacheClearSummary } from './cache-clearing.types';
/**
 * Options for summary display
 */
export interface SummaryDisplayOptions {
    /** Enable verbose output with detailed information */
    verbose?: boolean;
    /** Show timing information for each operation */
    showTiming?: boolean;
    /** Show operation details even for successful operations */
    showDetails?: boolean;
}
/**
 * Generate comprehensive summary showing status for each cache type
 *
 * Creates a detailed summary of cache clearing operations including:
 * - Overall statistics (total, successful, failed)
 * - Timing information for the entire operation
 * - Individual results for each cache type
 * - Error details for failed operations
 *
 * Supports both normal and verbose output modes as specified in requirements.
 *
 * @param summary - Cache clearing summary data
 * @param options - Display options for controlling output detail level
 * @returns Formatted summary string ready for display
 */
export declare function generateCacheClearSummary(summary: CacheClearSummary, options?: SummaryDisplayOptions): string;
/**
 * Display cache clearing summary using logger
 *
 * Outputs the formatted summary using the provided logger with appropriate
 * log levels (success, warn, error) based on the operation results.
 *
 * @param summary - Cache clearing summary data
 * @param logger - Logger instance for formatted output
 * @param options - Display options for controlling output detail level
 */
export declare function displayCacheClearSummary(summary: CacheClearSummary, logger: Logger, options?: SummaryDisplayOptions): void;
/**
 * Generate verbose summary with enhanced detail
 *
 * Creates a comprehensive summary with all available details including:
 * - Individual operation timing
 * - Detailed error information
 * - Operation-specific details
 * - Performance metrics
 *
 * @param summary - Cache clearing summary data
 * @returns Formatted verbose summary string
 */
export declare function generateVerboseSummary(summary: CacheClearSummary): string;
/**
 * Generate compact summary for normal output mode
 *
 * Creates a concise summary showing only essential information:
 * - Overall statistics
 * - Failed operations (if any)
 * - Basic timing information
 *
 * @param summary - Cache clearing summary data
 * @returns Formatted compact summary string
 */
export declare function generateCompactSummary(summary: CacheClearSummary): string;
/**
 * Format duration in milliseconds to human-readable format
 *
 * Converts milliseconds to appropriate units:
 * - < 1000ms: "123ms"
 * - < 60s: "12.3s"
 * - >= 60s: "1m 23s"
 *
 * @param ms - Duration in milliseconds
 * @returns Formatted duration string
 */
export declare function formatDuration(ms: number): string;
/**
 * Calculate success rate percentage
 *
 * @param summary - Cache clearing summary data
 * @returns Success rate as percentage (0-100)
 */
export declare function calculateSuccessRate(summary: CacheClearSummary): number;
/**
 * Get summary status text
 *
 * @param summary - Cache clearing summary data
 * @returns Status text ("success", "partial", "failed")
 */
export declare function getSummaryStatus(summary: CacheClearSummary): 'success' | 'partial' | 'failed';
