/** * Generic parser: transform CSV rows into NormalizedTrade using a column mapping. * Reuses existing normalizers (toISO, toNumber, toTicker, hashRow, inferCurrency). */ import type { NormalizedTrade, ParseResult } from '../adapters/types'; import type { UniversalMapping } from './types'; /** * Convert one row to NormalizedTrade using the given mapping. * Returns null if the row is not a trade (e.g. dividend, transfer) or if normalization fails. */ export declare function genericRowToTrade(row: Record, mapping: UniversalMapping, locale: string): { trade: NormalizedTrade; } | { warning: string; }; /** * Parse full CSV text with the given mapping. Returns ParseResult compatible with existing flow. */ export declare function genericParse(rawCsvText: string, mapping: UniversalMapping, locale?: string): ParseResult;