import { GTFSFeedBase } from './base.js'; import { GTFSLoadedFeed } from './loaded.js'; import type { GTFSTableName } from '../file-info.d.ts'; import type { GTFSAsyncFileRecords, GTFSFileRecords, GTFSFileRow } from '../types.d.ts'; /** * GTFS Feed whoose records are iterable iterator. */ export declare class GTFSIterableFeed extends GTFSFeedBase { /** * Constructor * @param initialValues Initial values. */ constructor(initialValues?: Partial>); /** * Load all table records into array and return GTFSLoadedFeed. * BEWARE NOT TO CALL ON THE SAME TABLE TWICE AS THE RECORDS TYPE IS ITERATOR. * @returns Loaded feed */ load(): GTFSLoadedFeed; /** * Convert generator of the records into asynchronous. * BEWARE NOT TO CALL ON THE SAME TABLE TWICE AS THE RECORDS TYPE IS ITERATOR. * @returns Async iterable feed */ toAsync(): GTFSAsyncIterableFeed; } /** * GTFS Feed whoose records are asynchornous iterable iterator. */ export declare class GTFSAsyncIterableFeed extends GTFSFeedBase { /** * Constructor * @param initialValues Initial values. */ constructor(initialValues?: Partial>); /** * Get records of a specific table. * BEWARE NOT TO CALL ON THE SAME TABLE TWICE AS THE RECORDS TYPE IS ITERATOR. * @param tableName Table name * @returns Promise of records */ getRecords(tableName: GTFSTableName): Promise; /** * Load all table records into array and return GTFSLoadedFeed. * @returns Loaded feed */ load(): Promise; } //# sourceMappingURL=iterable.d.ts.map