export type Callback = (error?: Error, result?: IteratorResult) => void; export type IteratorCallback = (callback?: Callback) => void;