import { Readable } from 'stream';
export declare function streamAsJSON(value: any): JSONStream;
declare class JSONStream extends Readable {
    buffer: (string | Buffer)[];
    bufferSize: number;
    jsonIterator: Iterator<string | Buffer> | AsyncIterator<string | Buffer>;
    activeIterators: (Iterator<any> | AsyncIterator<any>)[];
    _amReading?: boolean;
    done?: boolean;
    constructor(options: any);
    serialize(object: any, _topLevel?: boolean): Generator<string | Buffer, string | Buffer | void, unknown>;
    _read(): boolean;
    push(content: any): boolean;
    flush(): boolean;
    readIterator(iterator: any): any;
    _destroy(error: any, callback: any): void;
}
export declare function stringify(value: any): any;
export declare function parse(json: any): any;
export {};
