/** * Streaming iteration over a window. * * Layer 7. `readWindow` returns every chunk at once, which is right for a window you are about to * draw and wrong for a whole recording: the array holds every sample the window covers, so a * twelve-hour pass costs twelve hours of memory. * * A pipeline wants the opposite — one bounded piece at a time, with the previous one collectable. * That is spelled `for await`, and doing it by hand means reimplementing the record arithmetic and * the gap handling that `readWindow` already owns. * * Chunks arrive in time order, never span a gap, and carry the same `precededByGap` a * `readWindow` chunk would, so a consumer sees the discontinuities rather than a smooth lie. */ import type { EdfChunk, EdfRecording, ReadOptions, StreamSelection } from './types.js'; /** * Yields a window one bounded chunk at a time. * * `chunkRecords` is the unit of I/O and of memory: each yielded chunk holds that many records of * the requested signals and no more. It is a count of records rather than of bytes or seconds * because the record is the only unit every signal in an EDF file shares — signals may sample at * different rates, so "a second of data" is a different number of samples per channel. */ export declare function streamRecords(recording: EdfRecording, selection: StreamSelection, options?: ReadOptions): AsyncGenerator; //# sourceMappingURL=stream.d.ts.map