import type { MemeshDatabase } from './storage/sqlite.js'; export type { Entity, Relation, CreateEntityInput, SearchOptions } from './core/types.js'; import type { Entity, Relation, CreateEntityInput, SearchOptions } from './core/types.js'; export interface SearchResult { entities: Entity[]; fallback: 'index_out_of_date' | null; } export declare class KnowledgeGraph { private db; constructor(db: MemeshDatabase); private storedMetadata; private storedText; updateEntityMetadata(name: string, updater: (currentMetadata: Record) => Record | null | undefined): void; createEntity(name: string, type: string, opts?: { observations?: string[]; tags?: string[]; metadata?: Record; namespace?: string; title?: string | null; trustOverride?: 'trusted' | 'untrusted'; }): number; private createEntityInner; createEntitiesBatch(entities: CreateEntityInput[]): void; createRelation(fromName: string, toName: string, relationType: string): void; getEntity(name: string): Entity | null; getEntitiesByIds(ids: number[], opts?: { includeArchived?: boolean; namespace?: string; tag?: string; }): Entity[]; getRelations(entityName: string): Relation[]; search(query?: string, opts?: SearchOptions): Entity[]; searchWithFacts(query?: string, opts?: SearchOptions): SearchResult; private scanActiveRows; trackAccess(entityIds: number[]): void; findConflicts(entityNames: string[]): string[]; listRecent(limit?: number, includeArchived?: boolean, namespace?: string, countAsAccess?: boolean, offset?: number): Entity[]; listByType(type: string, limit?: number, includeArchived?: boolean, namespace?: string, offset?: number): Entity[]; listByProject(project: string, limit?: number, includeArchived?: boolean, namespace?: string, offset?: number): Entity[]; private listRecentInScope; private listRecentByTag; clearEntityData(name: string): void; archiveEntity(name: string): { archived: boolean; name?: string; previousStatus?: string; }; removeObservation(entityName: string, observationContent: string): { removed: boolean; remainingObservations: number; entityFound: boolean; }; deleteEntity(name: string): { deleted: boolean; }; private parseMetadata; private rebuildFts; } //# sourceMappingURL=knowledge-graph.d.ts.map