import type { GTFSFileInfo } from '../../file-info.d.ts'; import type { GTFSFileRow } from '../../types.d.ts'; /** * Parameter for readChunk() */ export type ReadChunkParam = { /** GTFS file information, to be defined once. */ file: GTFSFileInfo; /** Columns (table header), array if have been read, undefined if not yet. The method alters this property. */ columns: string[] | undefined; /** Input, to redefine this property before calling GTFSFileIO.readChunk. */ chunk: string; /** Output, this will get set by the method. */ records: RowType[]; /** * Input, leave as is or set to undefine for the last iteration. * It contains string (or empty string) when there is left over string from the previous iteration to prepend to the current chunk. * It contains undefuned for the last iteration. */ leftOver: string | undefined; }; /** * Get initial state of read chunk parameters. * @param file File information * @returns Object of chunk reading parameters in the initial state */ export declare function getInitialReadChunkParams(file: GTFSFileInfo): ReadChunkParam; /** * Read chunk to records, this alter params object in the argument. * @param params Chunk reading parameters */ export declare function readChunk(params: ReadChunkParam): void; //# sourceMappingURL=reader.d.ts.map