#!/usr/bin/env node import { Transform } from 'stream'; import { CliConfig } from './types'; export interface Colorizer { bold: (s: string) => string; dim: (s: string) => string; underline: (s: string) => string; red: (s: string) => string; yellow: (s: string) => string; cyan: (s: string) => string; blue: (s: string) => string; } export declare const createColors: (enabled: boolean) => Colorizer; export interface TableOptions { align?: readonly ('l' | 'r' | null)[]; stringLength?: (s: string) => number; } export declare const table: (rows: string[][], options?: TableOptions) => string; /** * Transform stream that formats SwiftLint JSON output into readable formats * Modernized with functional programming patterns */ export declare class CompactStream extends Transform { exitCode: number; private buffer; private config; private colors; constructor(config: CliConfig); _transform(chunk: Buffer, _encoding: BufferEncoding, cb: () => void): void; /** * Parse and validate SwiftLint JSON input with Result pattern */ private parseAndValidateInput; /** * Parse default SwiftLint text reporter lines into issue objects. * Example: path/file.swift:12:8: warning: Message text (rule_id) */ private parseSwiftlintTextReporter; /** * Handle processing errors with improved error management */ private handleProcessingError; _flush(cb: (error?: Error | null) => void): void; /** * Group issues by file path using functional approach */ private groupIssuesByFile; /** * Format a single SwiftLint issue for table display */ private formatIssueForTable; /** * Format issues for a single file into a table string */ private formatFileIssues; /** * Format the summary line showing total problem count */ private formatSummary; /** * Process SwiftLint issues and format them into a readable output */ private processSwiftlintIssues; private formatAsJson; private formatAsTable; private formatAsCompact; } //# sourceMappingURL=index.d.ts.map