export interface ParseCsvResult {
    headers: string[];
    rows: string[][];
}
export interface ParseCsvError {
    code: 'PARSE_ERROR';
}
export declare function parseCsv(content: string): ParseCsvResult | ParseCsvError;
/**
 * Parses only the header row plus up to `maxRows` data rows — enough to drive
 * the mapping UI and column type detection without reading the whole file
 * (plan D1). Uses papaparse `preview` so parsing stops early instead of
 * parsing everything and slicing.
 */
export declare function parseCsvSample(content: string, maxRows: number): ParseCsvResult | ParseCsvError;
export declare function unparseCsv(headers: string[], rows: string[][]): string;
//# sourceMappingURL=parseCsv.d.ts.map