import { type Cid } from '@atproto/lex-data'; import { BlockMap, type CarBlock, ReadableBlockstore } from '@atproto/repo'; import type { ActorDb } from '../db/index.js'; export declare class SqlRepoReader extends ReadableBlockstore { db: ActorDb; cache: BlockMap; constructor(db: ActorDb); getRoot(): Promise; getRootDetailed(): Promise<{ cid: Cid; rev: string; }>; getBytes(cid: Cid): Promise; has(cid: Cid): Promise; getBlocks(cids: Cid[]): Promise<{ blocks: BlockMap; missing: Cid[]; }>; getCarStream(since?: string): Promise>>; iterateCarBlocks(since?: string): AsyncIterable; getBlockRange(since?: string, cursor?: RevCursor): Promise<{ cid: string; content: Uint8Array; repoRev: string; }[]>; countBlocks(): Promise; destroy(): Promise; } type RevCursor = { cid: Cid; rev: string; }; export declare class RepoRootNotFoundError extends Error { } export {}; //# sourceMappingURL=sql-repo-reader.d.ts.map