import type { CborObj } from "../CborObj/index.js"; import { LazyCborObj } from "../LazyCborObj/LazyCborObj.js"; export interface ParseOptions { keepRef: boolean; } export declare const defaultParseOptions: ParseOptions; /** * static class that allows CBOR encoding and decoding * * >**_NOTE:_** some tags that are not defined in the proper CBOR specification are automaticaly treated as PlutusData */ export declare class Cbor { private constructor(); static encode(cborObj: CborObj): Uint8Array; static parse(cbor: Uint8Array | string, parseOpts?: ParseOptions): CborObj; static parseWithOffset(cbor: Uint8Array | string, parseOpts?: ParseOptions): { parsed: CborObj; offset: number; }; static parseLazy(cbor: Uint8Array | string): LazyCborObj; static parseLazyWithOffset(cbor: Uint8Array | string): { parsed: LazyCborObj; offset: number; }; }