type MemoryType = 'episodic' | 'semantic' | 'procedural' | 'working'; type MemoryRecord = { id: string; content: string; timestamp: string; source: string; tags: string[]; }; type MemoryStore = { remember: (content: string, options?: { type?: MemoryType; source?: string; importance?: number; tags?: string[]; }) => Promise; search: (query: string, options?: { limit?: number; type?: MemoryType; minImportance?: number; }) => Promise; findByTags?: (tags: string[], options?: { limit?: number; type?: MemoryType; minImportance?: number; }) => Promise; }; export type ContextEntityKind = 'person' | 'team' | 'project' | 'org' | 'role' | 'tool' | 'document' | 'task' | 'system' | 'topic'; export type ContextRelationKind = 'member_of' | 'leads' | 'works_on' | 'owns' | 'depends_on' | 'blocked_by' | 'related_to' | 'uses' | 'reports_to' | 'supports' | 'delivers_to' | 'requested_by' | 'scheduled_for'; export type ContextEntity = { key: string; kind: ContextEntityKind; name: string; description?: string; attributes?: Record; source?: string; updatedAt: string; }; export type ContextRelation = { from: string; to: string; type: ContextRelationKind; description?: string; source?: string; updatedAt: string; }; type EntityInput = { key?: string; kind: ContextEntityKind; name: string; description?: string; attributes?: Record; tags?: string[]; source?: string; importance?: number; }; type RelationInput = { from: string; to: string; type: ContextRelationKind; description?: string; source?: string; fromKind?: ContextEntityKind; toKind?: ContextEntityKind; }; export declare class ContextGraph { private memory; private scope; constructor(memory: MemoryStore, options?: { scope?: string; }); upsertEntity(input: EntityInput): Promise; linkEntities(input: RelationInput): Promise; searchEntities(query: string, options?: { limit?: number; kind?: ContextEntityKind; }): Promise; getRelationsForEntity(key: string, options?: { limit?: number; }): Promise; getContextSummary(query: string, options?: { limit?: number; }): Promise; private normalizeKey; private resolveEntity; private inferKind; private findEntityByKey; private findByTags; private pickMostRecent; } export declare const ContextGraphKinds: { entities: ContextEntityKind[]; relations: ContextRelationKind[]; }; export {};