UNPKG

@atcute/car

Version:

lightweight DASL CAR and atproto repository decoder for AT Protocol.

11 lines (10 loc) 415 B
import * as CBOR from '@atcute/cbor'; import { type CarEntry, type CarHeader } from './types.js'; export interface SyncCarReader { readonly header: CarHeader; readonly roots: CBOR.CidLink[]; /** @deprecated do for..of on the reader directly */ iterate(): Generator<CarEntry>; [Symbol.iterator](): Iterator<CarEntry>; } export declare const fromUint8Array: (buffer: Uint8Array) => SyncCarReader;