cborkit
Version:
A modern, extensible CBOR (Concise Binary Object Representation) library for TypeScript and JavaScript.
13 lines (10 loc) • 414 B
TypeScript
import { c as CborItem, C as CborHeader } from './types-UHBEKmQx.js';
type WithLength<T extends CborItem> = T & {
length: number;
};
type ReadOptions = {
offset?: number;
};
declare const readHeader: (bytes: Uint8Array, offset?: number) => CborHeader;
declare const read: (bytes: Uint8Array, options?: ReadOptions) => WithLength<CborItem>;
export { type ReadOptions, type WithLength, read, readHeader };