import type { ReadableOptions } from 'node:stream';
import type { AbortableAsyncMapper } from '@naturalcycles/js-lib/types';
import type { ReadableTyped } from '../stream.model.js';
/**
 * Create Readable from Array.
 * Supports a `mapper` function (async) that you can use to e.g create a timer-emitting-readable.
 *
 * For simple cases use Readable.from(...) (Node.js 12+)
 */
export declare function readableFromArray<IN, OUT>(items: IN[], mapper?: AbortableAsyncMapper<IN, OUT>, opt?: ReadableOptions): ReadableTyped<OUT>;
