/** * Convert all objects that represent a bytestring to a node.js Buffer or a Uint8Array. * Objects that that represent bytestrings are objects of the form {"type": "Buffer", data: []}. * This is the kind of object that node.js returns when a Buffer is stringified as JSON. * Note that as an optimization, the conversion (potentially) happens in place. * @param value An object that will be converted in place and recursively * @param useNodeJSBuffer If true decode to node.js Buffer, otherwise use Uint8Array * @returns The converted object with bytestrings replaced by Buffers or Uint8Arrays * * @remark * Ensure you use the return value of this function because if the input value is a bytestring, * it will NOT be converted in place. * */ export declare function decodeBytestrings(value: T, useNodeJSBuffer: boolean): T; //# sourceMappingURL=bytestring.d.ts.map