import { InferCSVRecord, ParseBinaryOptions } from '../../../core/types'; /** * Synchronously parses binary CSV data into an array of records. * * @param binary - The binary CSV data to parse (BufferSource: Uint8Array, ArrayBuffer, or other TypedArray). * @param options - Parsing options including charset, maxBinarySize, etc. * @returns An array of CSV records. * @throws {RangeError} If the binary size exceeds maxBinarySize limit. * @throws {ParseError} If the CSV data is malformed. * * @remarks * **WARNING**: This function loads the entire binary data into memory synchronously. * For large files (>100MB), consider using streaming alternatives like `parseStream()` or `parseBinaryStream()` * to avoid memory exhaustion and blocking the event loop. * * The default maxBinarySize is 100MB. You can increase it via options, but this may lead to * memory issues with very large files. * * @example * ```ts * const binary = new TextEncoder().encode("name,age\nAlice,30"); * const records = parseBinaryToArraySync(binary); * // [{ name: "Alice", age: "30" }] * ``` */ export declare function parseBinaryToArraySync
, Options extends ParseBinaryOptions
= ParseBinaryOptions
>(binary: BufferSource, options?: Options): InferCSVRecord[];