/** * Subgraph Client * * Handles GraphQL queries to The Graph subgraph for searching, exporting, * and counting on-chain facts. Query strings are sourced from the Rust WASM * core where possible to ensure consistency across implementations. */ export interface SubgraphFact { id: string; encryptedBlob: string; encryptedEmbedding: string | null; decayScore: string; isActive: boolean; contentFp?: string; sequenceId?: string; blockNumber?: string; timestamp?: string; version?: number; } export declare class SubgraphClient { private endpoint; constructor(endpoint: string); search(owner: string, trapdoors: string[]): Promise; /** * Broadened search: fetch recent active facts by owner without trapdoor filtering. * Used as a fallback when trapdoor search returns 0 candidates. */ searchBroadened(owner: string, maxCandidates?: number): Promise; fetchAllFacts(owner: string): Promise; deltaSyncFacts(owner: string, sinceBlock: number): Promise; getFactCount(owner: string): Promise; private query; } //# sourceMappingURL=client.d.ts.map