UNPKG

jtc-utils

Version:
24 lines 801 B
import type { FileHandle } from "node:fs/promises"; import type { Readable } from "node:stream"; import type { Charset } from "./charset/charset.cjs"; export declare class CsvReader { private reader; private fieldSeparator; private skipEmptyLine; private reSeparator; private endsWithCR; private buf; private index; constructor(src: string | Uint8Array | Blob | ReadableStream<Uint8Array> | FileHandle | Readable, options?: { charset?: Charset; bom?: boolean; fieldSeparator?: string; skipEmptyLine?: boolean; fatal?: boolean; }); read(): Promise<string[] | undefined>; [Symbol.asyncIterator](): AsyncGenerator<string[]>; get count(): number; close(): Promise<void>; } //# sourceMappingURL=CsvReader.d.cts.map