@atcute/cbor
Version:
lightweight DASL dCBOR42 codec library for AT Protocol
12 lines (11 loc) • 324 B
TypeScript
export interface Bytes {
$bytes: string;
}
export declare class BytesWrapper implements Bytes {
buf: Uint8Array;
constructor(buf: Uint8Array);
get $bytes(): string;
toJSON(): Bytes;
}
export declare const toBytes: (buf: Uint8Array) => Bytes;
export declare const fromBytes: (bytes: Bytes) => Uint8Array;