UNPKG

cleanifix

Version:

Intelligent data cleaning CLI with natural language support - Docker-powered Python engine

78 lines 2.55 kB
interface CleaningSummary { missing_before?: number; missing_after?: number; missing_handled?: number; rows_removed?: number; columns_removed?: number; duplicates_removed?: number; values_standardized?: number; strategy_used?: string; } interface CleaningCompleteData { input_file: string; output_file: string; dry_run: boolean; rules_applied: number; initial_stats: any; applied_rules: any[]; } export interface FormatOptions { color?: boolean; verbose?: boolean; json?: boolean; maxWidth?: number; } export declare const formatters: { formatCleaningSummary(summary: CleaningSummary): string; formatCleaningComplete(data: CleaningCompleteData): string; formatError(error: any): string; formatProgress(current: number, total: number, message?: string): string; /** * Format analysis results for display */ formatAnalysisResults(results: any, options?: FormatOptions): string; /** * Format success messages */ formatSuccess(message: string, options?: FormatOptions): string; /** * Format warning messages */ formatWarning(message: string, options?: FormatOptions): string; /** * Format info messages */ formatInfo(message: string, options?: FormatOptions): string; /** * Format a data table */ formatTable(headers: string[], rows: any[][], options?: FormatOptions): string; /** * Format file size in human-readable format */ formatFileSize(bytes: number): string; /** * Format duration in human-readable format */ formatDuration(milliseconds: number): string; /** * Format percentage with color coding */ formatPercentage(value: number, options?: FormatOptions): string; /** * Format number with locale formatting */ formatNumber(num: number): string; formatAnalysisSummary(summary: any, options: FormatOptions): string; formatMissingValues(analysis: any, options: FormatOptions): string; formatDuplicates(analysis: any, options: FormatOptions): string; formatFormatIssues(analysis: any, options: FormatOptions): string; formatCell(value: any, options: FormatOptions): string; calculateColumnWidths(headers: string[], rows: any[][], maxWidth: number): number[]; /** * Format command examples for help display */ formatCommandExamples(examples: Record<string, string[]>, options?: FormatOptions): string; }; export {}; //# sourceMappingURL=formatters.d.ts.map