import { Member, type PlatformID } from '@digitaldefiance/ecies-lib'; import { ConstituentBlockListBlock } from './blocks/cbl'; import { WhitenedBlock } from './blocks/whitened'; import { Readable } from './browserStream'; import { Checksum } from './types'; /** * CblStream provides streaming access to data stored in a ConstituentBlockListBlock. * In the Owner Free Filesystem (OFF), data is stored as: * 1. A CBL containing addresses of data blocks * 2. Each data block is XORed with random blocks for privacy * 3. The CBL itself may be encrypted for privacy * * This stream: * 1. Reads block addresses from the CBL * 2. Loads the corresponding whitened blocks * 3. XORs them together to recover the original data * 4. Decrypts the data if needed */ export declare class CblStream extends Readable { private readonly cbl; private readonly getWhitenedBlock; private currentTupleIndex; private currentData; private overallReadOffset; private currentDataOffset; private readonly maxTuple; private readonly creatorForDecryption?; private readonly blockService; constructor(cbl: ConstituentBlockListBlock, getWhitenedBlock: (blockId: Checksum) => WhitenedBlock, creatorForDecryption?: Member); _read(_size: number): void; private readData; } //# sourceMappingURL=cblStream.d.ts.map