/** * CSV formatter for CLI * Streams CSV with header row and proper escaping * * Limitations (explicit): * - Nested objects are flattened with dot notation * - Array fields cause an error (not flattened) * - Field order follows first record's key order */ import type { OutputWriter } from '../utils/output.js'; /** * CSV writer that handles streaming */ export declare class CsvWriter { private headers; private readonly writer; constructor(writer: OutputWriter); /** * Write a single record as CSV row * First call establishes header order */ writeRow(record: Record): void; } /** * Format entire array as CSV (for non-streaming use) */ export declare function formatCsv(data: unknown[], writer: OutputWriter): void; //# sourceMappingURL=csv.d.ts.map