JsonDecoderDag.d.ts 463 B

123456789
  1. import { JsonDecoder } from './JsonDecoder';
  2. import type { PackValue } from '../types';
  3. export declare const fromBase64Bin: (view: DataView, offset: number, length: number) => Uint8Array;
  4. export declare class JsonDecoderDag extends JsonDecoder {
  5. readObj(): PackValue | Record<string, PackValue> | Uint8Array | unknown;
  6. protected tryReadBytes(): Uint8Array | undefined;
  7. protected tryReadCid(): undefined | unknown;
  8. readCid(cid: string): unknown;
  9. }