/** * Shared configuration error reporting utility * * Provides consistent error formatting and suggestions across commands * (config, doctor, etc.) */ export interface ConfigErrorDetails { fileName: string; errors: string[]; } /** * Format configuration validation errors for display * * @param details Error details from config validation * @param maxErrors Maximum number of errors to show (default: 5) * @returns Formatted error messages as string array */ export declare function formatConfigErrors(details: ConfigErrorDetails, maxErrors?: number): string[]; /** * Format helpful suggestions for fixing configuration errors * * @returns Formatted suggestion messages as string array */ export declare function formatConfigSuggestions(): string[]; /** * Display configuration validation errors with suggestions * * Prints formatted error messages and helpful suggestions to stderr. * * @param details Error details from config validation * @param maxErrors Maximum number of errors to show (default: 5) */ export declare function displayConfigErrors(details: ConfigErrorDetails, maxErrors?: number): void; /** * Get error messages as plain strings (for programmatic use) * * Returns error messages without ANSI color codes for use in * structured output or testing. * * @param details Error details from config validation * @param maxErrors Maximum number of errors to show (default: 5) * @returns Array of plain text error messages */ export declare function getPlainConfigErrors(details: ConfigErrorDetails, maxErrors?: number): string[]; /** * Format config errors for doctor command check result * * Returns formatted message and suggestion strings suitable for * DoctorCheckResult structure. * * @param details Error details from config validation * @param maxErrors Maximum number of errors to show (default: 5) * @returns Object with message and suggestion strings */ export declare function formatDoctorConfigError(details: ConfigErrorDetails, maxErrors?: number): { message: string; suggestion: string; }; //# sourceMappingURL=config-error-reporter.d.ts.map