import { type Cid, type LexMap } from '@atproto/lex-data'; import { CidSet } from '@atproto/repo'; import { AtUri, type AtUriString, type NsidString } from '@atproto/syntax'; import { app, type com } from '../../lexicons/index.js'; import type { LocalRecords } from '../../read-after-write/types.js'; import type { ActorDb, Backlink } from '../db/index.js'; 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 | AtUriString, 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<{ cid: string; collection: string; indexedAt: string; repoRev: string; rkey: string; takedownRef: string | null; uri: string; }[]>; 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