import { Buffer } from "node:buffer"; /** Encode a JSON-compatible value to canonical CBOR bytes. */ export declare function encodeCbor(value: unknown): Buffer; /** Decode canonical CBOR bytes back to a JSON-compatible value. */ export declare function decodeCbor(buf: Buffer): unknown; /** True if `buf` looks like a CBOR object (map) rather than legacy JSON (`{`/whitespace). * A CBOR map's initial byte has major type 5 (0xa0–0xbf); JSON starts with 0x7b/ws. */ export declare function looksLikeCbor(buf: Buffer): boolean; //# sourceMappingURL=cbor.d.ts.map