/**
 * Rewrites a CSV so its header row matches the destination field keys and the
 * columns the user chose to skip are dropped.
 *
 * The data-hub import maps columns to fields strictly by `header == field-key`
 * (there is no server-side column mapping), so the chosen mapping has to be
 * applied to the file itself before upload — see plan O1.
 *
 * `resolvedMapping` maps each *original* CSV header to its destination field
 * key, or `null`/absent to skip that column — exactly what
 * `ImportState._resolveFieldMapping` produces. Columns are kept in their
 * original order (order is irrelevant to the server, which maps by header name,
 * but it keeps the output readable).
 *
 * NOTE: this reads the whole file into memory. For very large files a streaming
 * rewrite (papaparse `step`) would avoid that — deferred until it's a problem.
 */
export declare function rewriteCsvForImport(content: string, resolvedMapping: Record<string, string | null>): string;
/**
 * Same rewrite as {@link rewriteCsvForImport} but from already-parsed rows —
 * used by `ImportState`, which holds the parsed CSV in memory and doesn't need
 * to re-parse.
 */
export declare function rewriteParsedCsvForImport(headers: string[], rows: string[][], resolvedMapping: Record<string, string | null>): string;
//# sourceMappingURL=rewriteCsv.d.ts.map