@atcute/car
Version:
lightweight DASL CAR (content-addressable archives) codec for AT Protocol.
11 lines • 476 B
TypeScript
import type { CidLink } from '@atcute/cid';
import { type CarEntry, type CarHeader } from './types.ts';
export interface SyncCarReader {
readonly header: CarHeader;
readonly roots: CidLink[];
/** @deprecated do for..of on the reader directly */
iterate(): IterableIterator<CarEntry>;
[Symbol.iterator](): Iterator<CarEntry>;
}
export declare const fromUint8Array: (buffer: Uint8Array<ArrayBufferLike>) => SyncCarReader;
//# sourceMappingURL=reader.d.ts.map