///
import { Reviver } from '@naturalcycles/js-lib';
import { TransformTyped } from '../stream.model';
export interface TransformJsonParseOptions {
/**
* If true - will throw an error on JSON.parse / stringify error
*
* @default true
*/
strict?: boolean;
reviver?: Reviver;
}
/**
* Transforms chunks of JSON strings/Buffers (objectMode=false) into parsed objects (readableObjectMode=true).
*
* if strict - will throw an error on JSON.parse / stringify error
*
* Usage:
*
* await _pipeline([
* readable,
* binarySplit(),
* transformJsonParse(),
* consumeYourStream...
* [)
*/
export declare function transformJsonParse(opt?: TransformJsonParseOptions): TransformTyped;
export declare const bufferReviver: Reviver;