UNPKG

@atproto/repo

Version:

atproto repo and MST implementation

16 lines 595 B
import { CID } from 'multiformats/cid'; import { BlockMap } from '../block-map'; import { ReadableBlockstore } from './readable-blockstore'; export declare class SyncStorage extends ReadableBlockstore { staged: ReadableBlockstore; saved: ReadableBlockstore; constructor(staged: ReadableBlockstore, saved: ReadableBlockstore); getBytes(cid: CID): Promise<Uint8Array | null>; getBlocks(cids: CID[]): Promise<{ blocks: BlockMap; missing: CID[]; }>; has(cid: CID): Promise<boolean>; } export default SyncStorage; //# sourceMappingURL=sync-storage.d.ts.map