import { AtUriString, DidString } from '@atproto/syntax'; import { DataPlaneClient } from '../data-plane/client/index.js'; import { FollowInfo } from '../proto/bsky_pb.js'; import { BlockRecord, FollowRecord, ListItemRecord, ListRecord, StarterPackRecord, VerificationRecord } from '../views/types.js'; import { HydrationMap, ItemRef, RecordInfo } from './util.js'; export type List = RecordInfo; export type Lists = HydrationMap; export type ListItem = RecordInfo; export type ListItems = HydrationMap; export type ListViewerState = { viewerMuted?: string; viewerListBlockUri?: AtUriString; viewerInList?: string; }; export type ListViewerStates = HydrationMap; export type ListMembershipState = { actorListItemUri?: AtUriString; }; export type ListMembershipStates = HydrationMap>; export type Follow = RecordInfo; export type Follows = HydrationMap; export type Block = RecordInfo; export type StarterPack = RecordInfo; export type StarterPacks = HydrationMap; export type Verification = RecordInfo; export type Verifications = HydrationMap; export type StarterPackAgg = { joinedWeek: number; joinedAllTime: number; listItemSampleUris?: AtUriString[]; }; export type StarterPackAggs = HydrationMap; export type ListAgg = { listItems: number; }; export type ListAggs = HydrationMap; export type RelationshipPair = [didA: DidString, didB: DidString]; export declare class Blocks { _blocks: Map; constructor(); static key(didA: string, didB: string): string; set(didA: string, didB: string, block: BlockEntry): Blocks; get(didA: string, didB: string): BlockEntry | null; merge(blocks: Blocks): Blocks; } export type BlockEntry = { blockUri: AtUriString | undefined; blockListUri: AtUriString | undefined; }; export declare class GraphHydrator { dataplane: DataPlaneClient; constructor(dataplane: DataPlaneClient); getLists(uris: AtUriString[], includeTakedowns?: boolean): Promise; getListItems(uris: AtUriString[], includeTakedowns?: boolean): Promise; getListViewerStates(uris: AtUriString[], viewer: string): Promise; private getMutesAndBlocks; getBidirectionalBlocks(pairs: RelationshipPair[]): Promise; getFollows(uris: AtUriString[], includeTakedowns?: boolean): Promise; getVerifications(uris: AtUriString[], includeTakedowns?: boolean): Promise; getBlocks(uris: AtUriString[], includeTakedowns?: boolean): Promise>; getActorFollows(input: { did: DidString; cursor?: string; limit?: number; }): Promise<{ follows: FollowInfo[]; cursor: string; }>; getActorFollowers(input: { did: DidString; cursor?: string; limit?: number; }): Promise<{ followers: FollowInfo[]; cursor: string; }>; getStarterPacks(uris: AtUriString[], includeTakedowns?: boolean): Promise; getStarterPackAggregates(refs: ItemRef[]): Promise; getListAggregates(refs: ItemRef[]): Promise; } //# sourceMappingURL=graph.d.ts.map