import { Readable } from 'stream';
export declare function streamAsJSON(value: any): JSONStream;
declare class JSONStream extends Readable {
    constructor(options: any);
    serialize(object: any): any;
    _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 {};
