1 | declare type SeenWeakSet = WeakSet<any>;
|
2 | declare type Primitive = undefined | boolean | number | string | bigint | symbol;
|
3 | export declare type ToJSON = {
|
4 | toJSON: (key?: any) => string;
|
5 | };
|
6 | export declare const isIterable: <T>(x: unknown) => x is Iterable<T>;
|
7 | export declare const isAsyncIterable: <T>(x: unknown) => x is AsyncIterable<T>;
|
8 |
|
9 |
|
10 |
|
11 | export declare function jsonStringifyGenerator(value: null | Primitive | ToJSON | any[] | Record<string, any> | PromiseLike<any> | AsyncIterable<any> | ReadableStream, seen?: SeenWeakSet): AsyncIterableIterator<string>;
|
12 |
|
13 |
|
14 |
|
15 | export declare function jsonStringifyStream(value: null | Primitive | ToJSON | any[] | Record<string, any> | PromiseLike<any> | AsyncIterable<any> | ReadableStream): ReadableStream<string>;
|
16 | export declare class JSONStringifyReadable extends ReadableStream<string> {
|
17 | constructor(value: any);
|
18 | }
|
19 | export {};
|