import { Type, Collection, Obj, Nil, Bool, Int, Uint, Float, Bytes, Str, TypedArr, TypedMap, Time, Any, Arr, Map, Struct, Union, structEncoder, structDecoder, unionEncoder, unionDecoder } from "./types"; import { WriteBuffer, ReadBuffer } from "./buffer"; export { WriteBuffer, ReadBuffer, Type, Collection, Obj, Nil, Bool, Int, Uint, Float, Bytes, Str, TypedArr, TypedMap, Time, Any, Arr, Map, Struct, Union, structEncoder, structDecoder, unionEncoder, unionDecoder, encode, decode, }; declare function encode(v: T, typ?: Type): Uint8Array; declare function decode(buf: BufferSource, typ?: Type): T;