interface CsvOptions { /** Delimiter. If omitted, we'll auto-detect among , ; \t | */ delimiter?: string; /** Use first row as headers (default true). You can also pass explicit headers. */ headers?: boolean | string[]; /** Keep header case (default: false = trim + toLowerCase) */ preserveHeaderCase?: boolean; /** Treat lines starting with this as comments (e.g. '#') */ comment?: string; /** Skip empty lines (default true) */ skipEmptyLines?: boolean; /** Fill missing cells with this value (default null) */ defval?: unknown; /** Try to coerce numbers/booleans/null (default false) */ inferTypes?: boolean; /** Trim cells (default true) */ trimCells?: boolean; } type CsvRow = Record; declare function parseCSV(input: File | Blob | ArrayBuffer | Buffer | string, opts?: CsvOptions): Promise; export { type CsvOptions, type CsvRow, parseCSV as default, parseCSV };