import { ForkableIterator } from 'forkable-iterator'; export type Reader = Iterator; export type ReaderResult = IteratorResult; export declare function emptyReader(): Reader; export type ForkableReader = ForkableIterator; /** * Returns a reader that can be forked with the `fork` function. * * The source reader must not be read from directly. */ export declare function buildForkableReader(sourceReader: Reader): ForkableReader; /** * Chains an array of readers together that run consecutively. */ export declare function chainReaders(readers: readonly Reader[]): Reader; /** * Builds a reader that yields each item in the input array. */ export declare function buildArrayReader(input: readonly T[]): Reader;