import type { SinkRecord } from '../types.js'; type Format = 'csv' | 'json' | 'jsonl'; declare function detectFormat(filePath: string): Format; declare function parseInput(filePath: string): SinkRecord[]; declare function formatOutput(records: SinkRecord[], format: Format): string; /** * Convert a file between formats. */ export declare function drain(inputPath: string, outputPath: string, targetFormat?: Format): { records: number; format: Format; }; export { parseInput, formatOutput, detectFormat };