import { Cid, LexMap } from '@atproto/lex-data'; import { CidSet } from '@atproto/repo'; import { AtUri, AtUriString, NsidString } from '@atproto/syntax'; import { app, com } from '../../lexicons/index.js'; import { LocalRecords } from '../../read-after-write/types'; import { ActorDb, Backlink } from '../db'; export type RecordDescript = { uri: string; path: string; cid: Cid; }; export declare class RecordReader { db: ActorDb; constructor(db: ActorDb); recordCount(): Promise; listAll(): Promise; listCollections(): Promise; listRecordsForCollection(opts: { collection: string; limit: number; reverse: boolean; cursor?: string; rkeyStart?: string; rkeyEnd?: string; includeSoftDeleted?: boolean; }): Promise<{ uri: AtUriString; cid: string; value: LexMap; }[]>; getRecord(uri: AtUri, cid: string | null, includeSoftDeleted?: boolean): Promise<{ uri: string; cid: string; value: LexMap; indexedAt: string; takedownRef: string | null; } | null>; hasRecord(uri: AtUri, cid: string | null, includeSoftDeleted?: boolean): Promise; getRecordTakedownStatus(uri: AtUri): Promise; getCurrentRecordCid(uri: AtUri): Promise; getRecordBacklinks(opts: { collection: string; path: string; linkTo: string; }): Promise<{ uri: string; cid: string; indexedAt: string; collection: string; rkey: string; repoRev: string; takedownRef: string | null; }[]>; getBacklinkConflicts(uri: AtUri, record: LexMap): Promise; listExistingBlocks(): Promise; getProfileRecord(): Promise; getRecordsSinceRev(rev: string): Promise; } export declare const getBacklinks: (uri: AtUri, record: LexMap) => Backlink[]; //# sourceMappingURL=reader.d.ts.map