/** * bjd: a Binary JData (BJData) encoder and decoder for browsers and Node.js * (https://neurojson.org/bjdata, https://github.com/NeuroJSON/js-bjdata) * * import * as bjd from 'bjd'; // or const bjd = require('bjd'), or the bjdata global * const bytes = bjd.dumpb({a: [1, 2, 3], b: new Float32Array([1.5, 2.5])}); * const value = bjd.loadb(bytes); * * Copyright (c) 2019-2026 Qianqian Fang . Apache License 2.0. */ /// import { Decoder, DecodeOptions, loadb, loadbAll, decodeAt, nest } from './decoder'; import { Encoder, EncodeOptions, dumpb } from './encoder'; import { HighPrec, Extension, BJDataError } from './types'; export { Decoder, DecodeOptions, loadb, loadbAll, decodeAt, nest, Encoder, EncodeOptions, dumpb, HighPrec, Extension, BJDataError }; export declare const version = "1.0.0"; /** The BJData bytes of a value (the name of bjd 0.x; the same as dumpb). */ export declare function encode(value: any, opts?: EncodeOptions): Uint8Array; /** [value, offset after it] of the value at an offset (as bjd 0.x returned; loadb returns the * value alone). */ export declare function decode(input: any, offset?: number | DecodeOptions, opts?: DecodeOptions): [any, number]; /** (bjd 0.x) */ export declare const decode_offset: typeof decode; declare const bjd: { version: string; dumpb: typeof dumpb; loadb: typeof loadb; loadbAll: typeof loadbAll; decodeAt: typeof decodeAt; encode: typeof encode; decode: typeof decode; decode_offset: typeof decode; nest: typeof nest; Encoder: typeof Encoder; Decoder: typeof Decoder; HighPrec: typeof HighPrec; Extension: typeof Extension; BJDataError: typeof BJDataError; }; export default bjd;