import { CID } from 'multiformats/cid'; import { RepoRecord } from '@atproto/lexicon'; import { CidSet } from '@atproto/repo'; import { AtUri } from '@atproto/syntax'; import { Record as ProfileRecord } from '../../lexicon/types/app/bsky/actor/profile'; import { StatusAttr } from '../../lexicon/types/com/atproto/admin/defs'; 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: string; cid: string; value: Record; }[]>; getRecord(uri: AtUri, cid: string | null, includeSoftDeleted?: boolean): Promise<{ uri: string; cid: string; value: Record; 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; uri: string; indexedAt: string; collection: string; rkey: string; repoRev: string; takedownRef: string | null; }[]>; getBacklinkConflicts(uri: AtUri, record: RepoRecord): Promise; listExistingBlocks(): Promise; getProfileRecord(): Promise; getRecordsSinceRev(rev: string): Promise; } export declare const getBacklinks: (uri: AtUri, record: RepoRecord) => Backlink[]; //# sourceMappingURL=reader.d.ts.map