1 | import { AsyncIterableInput, AsyncIterableX } from './asynciterablex';
|
2 | /**
|
3 | * Converts an existing string into an async-iterable of characters.
|
4 | *
|
5 | * @export
|
6 | * @param {string} source The string to convert to an async-iterable.
|
7 | * @returns {AsyncIterableX<string>} An async-iterable stream of characters from the source.
|
8 | */
|
9 | export declare function as(source: string): AsyncIterableX<string>;
|
10 | /**
|
11 | * Converts the async iterable like input into an async-iterable.
|
12 | *
|
13 | * @export
|
14 | * @template T The type of elements in the async-iterable like sequence.
|
15 | * @param {AsyncIterableInput<T>} source The async-iterable like input to convert to an async-iterable.
|
16 | * @returns {AsyncIterableX<T>} An async-iterable stream from elements in the async-iterable like sequence.
|
17 | */
|
18 | export declare function as<T>(source: AsyncIterableInput<T>): AsyncIterableX<T>;
|
19 | /**
|
20 | * Converts the single element into an async-iterable sequence.
|
21 | *
|
22 | * @export
|
23 | * @template T The type of the input to turn into an async-iterable sequence.
|
24 | * @param {T} source The single element to turn into an async-iterable sequence.
|
25 | * @returns {AsyncIterableX<T>} An async-iterable sequence which contains the single element.
|
26 | */
|
27 | export declare function as<T>(source: T): AsyncIterableX<T>;
|